/* DeepScan AI - Complete Stylesheet */

:root {
  --bg-primary: #050816;
  --bg-secondary: #0a0f2e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --violet: #7c3aed;
  --violet-light: #9d5cf6;
  --violet-dark: #5b21b6;
  --cyan: #00d4ff;
  --cyan-dark: #0099cc;
  --pink: #ec4899;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 58, 237, 0.4);
  --shadow-violet: 0 0 40px rgba(124, 58, 237, 0.3);
  --shadow-cyan: 0 0 40px rgba(0, 212, 255, 0.3);
  --shadow-green: 0 0 40px rgba(16, 185, 129, 0.3);
  --shadow-red: 0 0 40px rgba(239, 68, 68, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-light); }

/* ── Background ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: rgba(124, 58, 237, 0.15); top: -200px; left: -200px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: rgba(0, 212, 255, 0.1); top: 30%; right: -150px; animation-delay: -3s; }
.orb-3 { width: 400px; height: 400px; background: rgba(236, 72, 153, 0.08); bottom: -100px; left: 30%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ── Layout ── */
#app { position: relative; z-index: 1; }

.view { display: none; }
.view.active { display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo svg { flex-shrink: 0; }
.logo-text span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: rgba(5, 8, 22, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { color: var(--text-secondary); text-decoration: none; font-size: 1rem; font-weight: 500; display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--text-primary); }

/* ── Typography ── */
.text-gradient {
  background: linear-gradient(135deg, var(--violet-light), var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-cyan { color: var(--cyan); }
.text-violet { color: var(--violet-light); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-secondary); }

/* ── Glass ── */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-violet);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-violet); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ── Tags / Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-cyan { background: rgba(0, 212, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 212, 255, 0.25); }
.tag-purple { background: rgba(124, 58, 237, 0.15); color: var(--violet-light); border: 1px solid rgba(124, 58, 237, 0.3); }
.tag-green { background: rgba(16, 185, 129, 0.12); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.25); }
.tag-red { background: rgba(239, 68, 68, 0.12); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.25); }
.tag-amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.25); }

/* ── Animations ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes scanLine {
  0% { top: 0; }
  100% { top: 100%; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes progressFill {
  from { width: 0; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px currentColor; }
  50% { box-shadow: 0 0 50px currentColor, 0 0 80px currentColor; }
}
@keyframes strokeDraw {
  from { stroke-dashoffset: 283; }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }

.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* CTA */
.cta-section { padding: 80px 0; }
.cta-box {
  padding: 64px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 36px; font-size: 1.05rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ── Upload View ── */
#view-upload { padding-top: 100px; min-height: 100vh; }

.upload-header { text-align: center; margin-bottom: 48px; }
.upload-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 12px; }
.upload-header p { color: var(--text-secondary); }

.upload-container { max-width: 680px; margin: 0 auto; }

.upload-zone {
  border: 2px dashed rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(124, 58, 237, 0.03);
  position: relative;
  overflow: hidden;
}
.upload-zone:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}
.upload-zone.drag-active {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.2), inset 0 0 40px rgba(0, 212, 255, 0.05);
  transform: scale(1.01);
}
.upload-zone.has-file {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.05);
}

.upload-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.upload-zone:hover .upload-icon,
.upload-zone.drag-active .upload-icon {
  background: rgba(0, 212, 255, 0.15);
  transform: scale(1.1);
}
.upload-zone h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.upload-zone p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.upload-zone input[type="file"] { display: none; }

.file-info {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  margin-top: 20px;
  text-align: left;
}
.file-info.visible { display: flex; }
.file-info-icon { color: var(--green); flex-shrink: 0; }
.file-info-name { font-weight: 600; font-size: 0.9rem; }
.file-info-size { color: var(--text-secondary); font-size: 0.8rem; }
.file-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.file-remove:hover { color: var(--red); }

.upload-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

/* Progress Panel */
.progress-panel {
  display: none;
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.progress-panel.visible { display: block; }
.progress-panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 24px; color: var(--text-secondary); }

.progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  background-size: 200% 100%;
  transition: width 0.5s ease;
  animation: shimmer 2s linear infinite;
}

.stage-list { display: flex; flex-direction: column; gap: 14px; }
.stage-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.stage-item.active { color: var(--text-primary); }
.stage-item.done { color: var(--green); }

.stage-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: var(--transition);
}
.stage-item.active .stage-icon {
  border-color: var(--cyan);
  color: var(--cyan);
}
.stage-item.active .stage-icon::after {
  content: '';
  width: 10px; height: 10px;
  border: 2px solid var(--cyan);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.stage-item.done .stage-icon {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.stage-item.done .stage-icon::after { content: '✓'; animation: none; border: none; width: auto; height: auto; }

/* ── Results View ── */
#view-results { padding-top: 100px; min-height: 100vh; padding-bottom: 80px; }

.results-header { text-align: center; margin-bottom: 48px; }
.results-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 8px; }
.results-header p { color: var(--text-secondary); }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Verdict Card */
.verdict-card {
  grid-column: 1 / -1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.verdict-card.real { border-color: rgba(16, 185, 129, 0.4); box-shadow: var(--shadow-green); }
.verdict-card.fake { border-color: rgba(239, 68, 68, 0.4); box-shadow: var(--shadow-red); }

.verdict-left { flex: 1; min-width: 200px; }
.verdict-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.verdict-text {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.verdict-text.real { color: var(--green); text-shadow: 0 0 40px rgba(16, 185, 129, 0.5); }
.verdict-text.fake { color: var(--red); text-shadow: 0 0 40px rgba(239, 68, 68, 0.5); }
.verdict-confidence { margin-top: 16px; color: var(--text-secondary); font-size: 1rem; }
.verdict-confidence strong { color: var(--text-primary); font-size: 1.3rem; }

.verdict-probs { display: flex; flex-direction: column; gap: 12px; min-width: 200px; }
.prob-row { display: flex; flex-direction: column; gap: 6px; }
.prob-label { display: flex; justify-content: space-between; font-size: 0.85rem; }
.prob-bar-wrap { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.prob-bar { height: 100%; border-radius: 4px; animation: progressFill 1s ease forwards; }
.prob-bar.real { background: linear-gradient(90deg, var(--green), #34d399); }
.prob-bar.fake { background: linear-gradient(90deg, var(--red), #f87171); }

/* Confidence Circle */
.confidence-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.confidence-circle-wrap {
  position: relative;
  width: 160px;
  height: 160px;
}
.confidence-svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}
.confidence-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 10;
}
.confidence-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.confidence-fill.real { stroke: var(--green); filter: drop-shadow(0 0 8px var(--green)); }
.confidence-fill.fake { stroke: var(--red); filter: drop-shadow(0 0 8px var(--red)); }

.confidence-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.confidence-pct { font-size: 2rem; font-weight: 800; line-height: 1; }
.confidence-sub { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.confidence-card h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); text-align: center; }

/* Metrics Card */
.metrics-card { padding: 32px; }
.metrics-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 24px; }
.metric-list { display: flex; flex-direction: column; gap: 16px; }
.metric-item {}
.metric-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.metric-name { font-size: 0.85rem; color: var(--text-secondary); }
.metric-value { font-size: 0.85rem; font-weight: 600; }
.metric-bar-wrap { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.metric-bar {
  height: 100%;
  border-radius: 3px;
  animation: progressFill 1s ease forwards;
  animation-delay: var(--delay, 0s);
}
.metric-bar.high { background: linear-gradient(90deg, var(--green), #34d399); }
.metric-bar.mid { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.metric-bar.low { background: linear-gradient(90deg, var(--red), #f87171); }

/* Warnings Card */
.warnings-card { padding: 32px; }
.warnings-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.warning-list { display: flex; flex-direction: column; gap: 10px; }
.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--amber);
}
.warning-icon { flex-shrink: 0; margin-top: 1px; }
.no-warnings {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.875rem;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
}

/* Video Info Card */
.info-card { padding: 32px; }
.info-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-item {}
.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.info-value { font-size: 1rem; font-weight: 600; }

/* Processing Info */
.processing-card { padding: 32px; grid-column: 1 / -1; }
.processing-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.processing-details { display: flex; gap: 32px; flex-wrap: wrap; }
.processing-item { display: flex; flex-direction: column; gap: 4px; }
.processing-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.processing-value { font-size: 1rem; font-weight: 600; color: var(--cyan); }

.results-actions { text-align: center; margin-top: 40px; }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  animation: slideUp 0.3s ease forwards;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--green); }
.toast.error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--red); }
.toast.info { background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.25); color: var(--cyan); }
.toast-close { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; opacity: 0.7; font-size: 1rem; padding: 0 4px; }
.toast-close:hover { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .results-grid { grid-template-columns: 1fr; }
  .verdict-card { grid-column: 1; }
  .processing-card { grid-column: 1; }
  .verdict-card { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-box { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .upload-actions { flex-direction: column; }
  .upload-actions .btn-primary,
  .upload-actions .btn-secondary { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .upload-zone { padding: 40px 20px; }
  .verdict-text { font-size: 3rem; }
  .processing-details { flex-direction: column; gap: 16px; }
}

/* ── Page-specific (technology, model, about) ── */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.page-content { padding: 0 0 80px; }
.page-section { padding: 60px 0; border-top: 1px solid var(--border); }
.page-section:first-child { border-top: none; }
.page-section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.page-section p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.page-section ul { color: var(--text-secondary); line-height: 1.8; padding-left: 20px; }
.page-section ul li { margin-bottom: 8px; }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.tech-item { padding: 24px; }
.tech-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--cyan); }
.tech-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.model-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.model-stat { padding: 24px; text-align: center; }
.model-stat-num { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.model-stat-label { font-size: 0.8rem; color: var(--text-secondary); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; }
.team-card { padding: 32px 24px; text-align: center; }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.team-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Hero Section ── */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Scan Visual */
.scan-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: 20px;
}
.scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.3);
  animation: scanPulse 3s ease-out infinite;
}
.scan-ring:nth-child(2) { animation-delay: 1s; }
.scan-ring:nth-child(3) { animation-delay: 2s; }
.scan-center {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scanDown 2s ease-in-out infinite;
  border-radius: 1px;
}
@keyframes scanPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes scanDown {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Stats ── */
.stats-section { padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card { padding: 28px 24px; text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-header p { color: var(--text-secondary); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ── Features ── */
.features-section { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card { padding: 32px; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-icon.violet { background: rgba(124, 58, 237, 0.15); }
.feature-icon.cyan { background: rgba(0, 212, 255, 0.12); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.12); }
.feature-icon.green { background: rgba(16, 185, 129, 0.12); }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }

/* ── How It Works ── */
.how-section { padding: 80px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card { padding: 32px 28px; position: relative; }
.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

/* ── Frame Slider ── */
.frame-slider-wrap {
  padding: 20px 24px;
  margin-top: 16px;
  border-radius: var(--radius);
}
.frame-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.frame-slider-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.frame-slider-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.frame-count-badge {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 40px;
  text-align: right;
}
.frame-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}
input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  cursor: pointer;
  box-shadow: 0 0 8px rgba(124,58,237,0.5);
}
