/* ============================================================================
   Research Assistant — Production Website
   Design System + Components + Animations
   ============================================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg:            #060810;
  --bg-soft:       #0b0f1c;
  --surface:       #10162a;
  --surface-2:     #161e38;
  --border:        rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);

  --text:          #e8ecf6;
  --text-muted:    #9aa6c2;
  --text-dim:      #5f6b88;

  --brand:         #6366f1;
  --brand-2:       #8b5cf6;
  --brand-3:       #22d3ee;
  --accent:        #f472b6;
  --success:       #34d399;
  --warning:       #fbbf24;
  --danger:        #f87171;

  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
  --grad-text:  linear-gradient(120deg, #a5b4fc 0%, #c4b5fd 40%, #67e8f9 100%);
  --grad-glow:  radial-gradient(circle at 50% 0%, rgba(99,102,241,0.28), transparent 60%);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow:    0 12px 40px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 30px 80px -20px rgba(79,70,229,0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --max-w: 1200px;
  --nav-h: 68px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

::selection { background: rgba(99,102,241,0.35); color: #fff; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #26304d; border-radius: 8px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: #33406a; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.text-center { text-align: center; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  margin: 20px 0 16px;
}
.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted); max-width: 640px; margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(99,102,241,0.7);
  background-size: 180% 180%;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(99,102,241,0.75);
  animation: gradShift 3s ease infinite;
}
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ---------- Glass card ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ============================================================================
   NAVBAR
   ============================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,8,16,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-brand); display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(99,102,241,0.8);
  animation: floatY 5s ease-in-out infinite;
}
.brand-logo svg { width: 20px; height: 20px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--grad-brand); transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-glow); opacity: 0.9;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  animation: floatOrb 14s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; background: #6366f1; top: -120px; left: -80px; }
.orb-2 { width: 380px; height: 380px; background: #22d3ee; bottom: -100px; right: -60px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #8b5cf6; top: 40%; right: 25%; animation-delay: -9s; opacity: 0.3; }

.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px; font-size: 0.83rem; font-weight: 500;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong);
  color: var(--text-muted); margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 850; letter-spacing: -0.035em; line-height: 1.02;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-muted); max-width: 660px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 0.85rem; color: var(--text-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.mouse {
  width: 24px; height: 38px; border: 2px solid var(--text-dim); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.mouse span { width: 4px; height: 7px; border-radius: 2px; background: var(--text-dim); animation: scrollDot 1.8s infinite; }

/* ============================================================================
   LOGO MARQUEE / TECH STRIP
   ============================================================================ */
.marquee-wrap { overflow: hidden; padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); position: relative; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
.marquee { display: flex; gap: 60px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; }

/* ============================================================================
   FEATURES
   ============================================================================ */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px;
}
.feature-card {
  padding: 30px; border-radius: var(--radius); position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(99,102,241,0.14), transparent 45%);
  transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  margin-bottom: 20px; color: var(--brand-2);
  transition: transform 0.35s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800;
  background: var(--surface); border: 2px solid var(--border-strong);
  color: var(--brand-2); position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.step:hover .step-num { transform: scale(1.08); border-color: var(--brand); box-shadow: 0 0 30px -6px var(--brand); }
.step h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================================
   ANIMATED PIPELINE STAGE (Upload → Embed → Retrieve → Generate)
   ============================================================================ */
.pipeline-stage { max-width: 860px; margin: 56px auto 0; }
.stage-viewport {
  position: relative; height: 320px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-strong);
}
.scene {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; padding: 28px;
  opacity: 0; transform: scale(0.98); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.scene.active { opacity: 1; transform: none; pointer-events: auto; }
.scene-cap { font-size: 0.9rem; color: var(--text-muted); text-align: center; }

/* Step selector */
.stage-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px;
  position: relative;
}
.pstep {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 10px; border-radius: var(--radius-sm); color: var(--text-muted);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.92rem; transition: all 0.3s var(--ease);
}
.pstep-num {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: all 0.3s var(--ease);
}
.pstep.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(139,92,246,0.16));
  box-shadow: 0 8px 26px -12px var(--brand);
}
.pstep.active .pstep-num { background: var(--grad-brand); border-color: transparent; color: #fff; }
.pstep:hover { color: var(--text); }

/* ── Scene 1: Upload ─────────────────────────────────────────────────────── */
.up-dropzone {
  width: min(440px, 90%); border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.scene-upload.active .up-dropzone { animation: dzPulse 3.4s ease; }
.up-file {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  opacity: 0; transform: translateY(24px);
}
.scene-upload.active .up-file { animation: fileDrop 0.7s var(--ease) forwards; }
.up-file-ic {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #fff; background: linear-gradient(135deg,#ef4444,#b91c1c);
  flex-shrink: 0;
}
.up-file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.up-file-name { font-size: 0.85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-bar { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--grad-brand); border-radius: 4px; }
.scene-upload.active .up-bar i { animation: barFill 2s var(--ease) 0.6s forwards; }
.up-check {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(52,211,153,0.15); color: var(--success); font-weight: 800; flex-shrink: 0;
  opacity: 0; transform: scale(0.5);
}
.scene-upload.active .up-check { animation: popIn 0.4s var(--ease) 2.5s forwards; }
.up-hint { font-size: 0.8rem; color: var(--text-dim); }

/* ── Scene 2: Embed ──────────────────────────────────────────────────────── */
.em-flow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.em-doc { font-size: 2.4rem; opacity: 0; transform: scale(0.6); }
.scene-embed.active .em-doc { animation: popIn 0.5s var(--ease) forwards; }
.em-chunks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.em-chunk { width: 44px; height: 12px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); opacity: 0; transform: translateX(-10px); }
.scene-embed.active .em-chunk { animation: chunkIn 0.4s var(--ease) forwards; }
.scene-embed.active .em-chunk:nth-child(1) { animation-delay: 0.3s; }
.scene-embed.active .em-chunk:nth-child(2) { animation-delay: 0.45s; }
.scene-embed.active .em-chunk:nth-child(3) { animation-delay: 0.6s; }
.scene-embed.active .em-chunk:nth-child(4) { animation-delay: 0.75s; }
.em-arrow { color: var(--brand-2); font-size: 1.4rem; opacity: 0; }
.scene-embed.active .em-arrow { animation: fadeInUp 0.4s ease 0.9s forwards; }
.em-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.em-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); opacity: 0; transform: scale(0); box-shadow: 0 0 8px var(--brand); }
.scene-embed.active .em-dot { animation: dotPop 0.4s var(--ease) forwards; }

/* ── Scene 3: Retrieve ───────────────────────────────────────────────────── */
.rt-query {
  padding: 11px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 0.9rem; color: var(--text); opacity: 0; transform: translateY(-10px);
}
.scene-retrieve.active .rt-query { animation: fadeInUp 0.5s var(--ease) forwards; }
.rt-field { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.rt-node { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); transition: all 0.4s var(--ease); }
.rt-node.hit { background: var(--brand-3); border-color: transparent; box-shadow: 0 0 14px var(--brand-3); transform: scale(1.7); }

/* ── Scene 4: Generate ───────────────────────────────────────────────────── */
.gen-bubble {
  width: min(500px, 92%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; border-bottom-left-radius: 4px; padding: 18px 20px; font-size: 0.95rem; line-height: 1.6;
}
.gen-text { color: var(--text); }
.gen-cursor { display: inline-block; width: 2px; height: 1em; background: var(--brand-2); margin-left: 2px; vertical-align: text-bottom; animation: blink 1s step-end infinite; }
.gen-cite {
  display: inline-block; margin-top: 14px; font-size: 0.74rem; font-family: var(--font-mono);
  padding: 5px 10px; border-radius: 8px; background: rgba(99,102,241,0.12); color: var(--brand-2);
  border: 1px solid rgba(99,102,241,0.22); opacity: 0;
}
.gen-cite.show { animation: fadeInUp 0.4s var(--ease) forwards; }

/* Scene keyframes */
@keyframes fileDrop { to { opacity: 1; transform: none; } }
@keyframes barFill { to { width: 100%; } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }
@keyframes chunkIn { to { opacity: 1; transform: none; } }
@keyframes dotPop { to { opacity: 1; transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dzPulse { 0%,100% { border-color: var(--border-strong); } 50% { border-color: var(--brand); } }

/* ============================================================================
   SHOWCASE / MOCKUP
   ============================================================================ */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; line-height: 1.12; }
.showcase-copy p { color: var(--text-muted); margin-bottom: 26px; font-size: 1.05rem; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: var(--text); }
.check-list .ic {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(52,211,153,0.14); color: var(--success);
}
.check-list .ic svg { width: 14px; height: 14px; }

.mockup {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
}
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mockup-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar .d1 { background: #ff5f57; } .mockup-bar .d2 { background: #febc2e; } .mockup-bar .d3 { background: #28c840; }
.mockup-bar .url { margin-left: 14px; font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }
.mockup-body { background: var(--bg-soft); padding: 22px; }
.chat-bubble { padding: 13px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 0.9rem; max-width: 85%; }
.chat-bubble.user { background: var(--grad-brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.bot .cite { display: inline-block; margin-top: 8px; font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; background: rgba(99,102,241,0.15); color: var(--brand-2); font-family: var(--font-mono); }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); margin-right: 3px; animation: typing 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================================================
   TECH STACK
   ============================================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.tech-card {
  padding: 26px 22px; border-radius: var(--radius); text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tech-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.tech-card .tname { font-weight: 700; margin-bottom: 6px; }
.tech-card .tdesc { font-size: 0.82rem; color: var(--text-dim); }
.tech-emoji { font-size: 2rem; margin-bottom: 14px; display: block; }

/* ============================================================================
   FAQ
   ============================================================================ */
.faq { max-width: 780px; margin: 54px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-size: 1.05rem; font-weight: 600; transition: color 0.2s;
}
.faq-q:hover { color: var(--brand-2); }
.faq-q .chev { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--text-dim); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 4px 22px; color: var(--text-muted); }

/* ============================================================================
   CTA BANNER
   ============================================================================ */
.cta-banner {
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(34,211,238,0.1));
  border: 1px solid rgba(99,102,241,0.3);
}
.cta-banner::before { content:''; position:absolute; inset:0; background: var(--grad-glow); opacity: 0.6; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-banner p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; font-size: 1.08rem; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 16px; max-width: 300px; }
.footer h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 16px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); transition: all 0.25s; }
.social a:hover { background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }

/* ============================================================================
   SCROLL REVEAL
   ============================================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============================================================================
   KEYFRAMES
   ============================================================================ */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.08); }
  66%     { transform: translate(-30px,20px) scale(0.95); }
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
@keyframes scrollDot { 0% { opacity:1; transform: translateY(0); } 100% { opacity:0; transform: translateY(10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity:0.4; } 30% { transform: translateY(-5px); opacity:1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity:0; transform: translateY(16px);} to { opacity:1; transform:none;} }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 940px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .hero-stats { gap: 34px; }
}
@media (max-width: 560px) {
  .section { padding: 76px 0; }
  .features-grid, .tech-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-banner { padding: 44px 22px; }
  .stage-viewport { height: 300px; }
  .pstep-label { display: none; }
  .pstep { padding: 12px 6px; }
  .rt-field { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
