/* ScorvoAI marketing site — hand-tuned, no framework.
   Palette mirrors mobile/lib/theme/app_theme.dart so the site and the app
   read as one product. Layout is fluid: clamp() type, grid auto-fit, four
   breakpoints (560 / 820 / 1080 / 1400). */

:root {
  --bg: #0b0b18;
  --bg-2: #13132a;
  --surface: #1a1a36;
  --surface-2: #242449;
  --line: #2f2f58;
  --line-soft: rgba(129, 140, 248, .14);
  --text: #f6f6fb;
  --text-2: #b4b4cf;
  --text-3: #7a7a99;
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --indigo-3: #4f46e5;
  --violet: #8b5cf6;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --cyan: #06b6d4;
  --paper: #f5f6fb;
  --paper-2: #e9ebf4;
  --ink: #14142b;
  --ink-2: #3d3d5c;
  --ink-3: #6a6a86;
  --paper-line: #c8cbdb;

  --font-body: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur: .6s;

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(99, 102, 241, .45); color: #fff; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.08; font-weight: 700; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  letter-spacing: -.035em;
  line-height: .98;
}
.display em, .h2 em, .eyebrow em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  background: linear-gradient(92deg, #c7d2fe 0%, #818cf8 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.03em; line-height: 1.02; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.015em; line-height: 1.25; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--text-2); line-height: 1.6; max-width: 58ch; margin: 0; }
.muted { color: var(--text-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow em { text-transform: none; letter-spacing: 0; font-size: 1.1rem; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease-spring), box-shadow .35s ease, background .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97) !important; }
.btn:focus-visible { outline: 2px solid var(--indigo-2); outline-offset: 3px; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(99, 102, 241, .85), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, .04);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(129, 140, 248, .5); transform: translateY(-2px); }

.btn-light { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(20, 20, 43, .7); }

.btn-lg { padding: 18px 28px; font-size: 1.05rem; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

/* Google Play badge-like button */
.btn-play { padding-left: 16px; gap: 12px; text-align: left; }
.btn-play .play-ico { width: 24px; height: 24px; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.05; }
.btn-play small { font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 64px;
  background: rgba(11, 11, 24, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: rgba(47, 47, 88, .7);
}
.nav .container { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { width: 30px; height: 36px; object-fit: contain; }
.brand b { font-weight: 800; }
.brand span { color: var(--indigo-2); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--text-2); font-size: .93rem; font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s ease, top .35s var(--ease-out);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(11, 11, 24, .96);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer a.link {
  display: block; text-decoration: none; color: var(--text);
  font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.drawer.open a.link { opacity: 1; transform: none; }
.drawer.open a.link:nth-child(1) { transition-delay: .06s; }
.drawer.open a.link:nth-child(2) { transition-delay: .11s; }
.drawer.open a.link:nth-child(3) { transition-delay: .16s; }
.drawer.open a.link:nth-child(4) { transition-delay: .21s; }
.drawer.open a.link:nth-child(5) { transition-delay: .26s; }
.drawer .drawer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.progress {
  position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--indigo), var(--violet), var(--cyan));
}

/* ---------- Ambient background ---------- */

.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle at 30% 30%, #6366f1, transparent 65%); }
.orb-2 { width: 520px; height: 520px; right: -120px; top: 40px; background: radial-gradient(circle at 60% 40%, #8b5cf6, transparent 65%); animation-delay: -6s; animation-duration: 22s; }
.orb-3 { width: 420px; height: 420px; left: 40%; bottom: -220px; background: radial-gradient(circle, #06b6d4, transparent 65%); opacity: .3; animation-delay: -11s; animation-duration: 26s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 100%);
  animation: gridShift 40s linear infinite;
}
@keyframes gridShift { to { background-position: 72px 72px; } }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head .eyebrow { justify-self: start; }
.section-head.center .eyebrow { justify-self: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- Hero ---------- */

.hero {
  position: relative; z-index: 2;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 96px);
  min-height: 92vh;
  min-height: 92svh;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-copy { display: grid; gap: 26px; }
.hero-copy .lede { max-width: 52ch; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(19, 19, 42, .7);
  font-size: .85rem; font-weight: 500; color: var(--text-2);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }

.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > span { display: inline-block; transform: translateY(110%); opacity: 0; animation: wordUp .9s var(--ease-out) forwards; }
@keyframes wordUp { to { transform: none; opacity: 1; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--text-3); font-size: .9rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

.hero-visual { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 520px; }
.float-card {
  position: absolute; z-index: 3;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(26, 26, 54, .86); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  font-size: .82rem; color: var(--text-2);
  display: flex; align-items: center; gap: 10px;
  animation: floatY 6s ease-in-out infinite;
}
.float-card b { color: var(--text); font-weight: 700; display: block; font-size: .9rem; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.fc-1 { left: -6%; top: 14%; animation-delay: -1s; }
.fc-2 { right: -8%; top: 64%; animation-delay: -3s; }
.fc-3 { left: 0%; bottom: 8%; animation-delay: -5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Phone mockup */
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 19.2;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2a2a52, #0e0e22 60%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 40px 80px -30px rgba(0,0,0,.8),
    0 0 120px -30px rgba(99, 102, 241, .55);
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
  will-change: transform;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 999px; background: #050510; z-index: 5;
}
.screen {
  position: absolute; inset: 10px; border-radius: 36px; overflow: hidden;
  background: var(--bg);
}
.pane {
  position: absolute; inset: 0; padding: 58px 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateX(24px) scale(.98);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  pointer-events: none;
}
.pane.active { opacity: 1; transform: none; }
.pane.leaving { opacity: 0; transform: translateX(-24px) scale(.98); }
.pane .top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--text-3); }
.pane .top b { color: var(--text); font-size: .85rem; }
.pane .q { font-size: .8rem; line-height: 1.45; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.pane .opt { display: flex; align-items: center; gap: 10px; font-size: .76rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); transition: background .3s, border-color .3s, color .3s; }
.pane .opt i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: .65rem; font-weight: 700; color: var(--text-3); flex: none; }
.pane .opt.pick { border-color: var(--indigo-2); background: rgba(99,102,241,.16); color: var(--text); }
.pane .opt.right { border-color: var(--green); background: rgba(16,185,129,.14); color: var(--text); }
.pane .opt.right i { background: var(--green); color: #fff; border-color: var(--green); }
.pane .opt.wrong { border-color: var(--red); background: rgba(239,68,68,.12); }
.pane .bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pane .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--violet)); transition: width 1.2s var(--ease-out); }
.pane.active .bar i { width: var(--w, 60%); }
.pane .ring { --p: 0; width: 132px; height: 132px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--indigo-2) calc(var(--p) * 1%), var(--surface-2) 0); transition: --p 1.2s ease; position: relative; }
.pane .ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--bg); }
.pane .ring b { position: relative; font-size: 1.7rem; letter-spacing: -.03em; }
.pane .ring small { position: relative; display: block; text-align: center; font-size: .62rem; color: var(--text-3); font-weight: 500; }
.pane .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pane .kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: .68rem; color: var(--text-3); }
.pane .kpi b { display: block; font-size: 1rem; color: var(--text); letter-spacing: -.02em; }
.pane .kpi b.up { color: var(--green); }
.pane .msg { max-width: 88%; font-size: .74rem; line-height: 1.45; padding: 10px 12px; border-radius: 14px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease-out); }
.pane .msg.show { opacity: 1; transform: none; }
.pane .msg.me { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 4px; }
.pane .msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-2); }
.pane .msg.bot b { color: var(--text); }
.pane .typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.pane .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: bounce 1s infinite; }
.pane .typing i:nth-child(2) { animation-delay: .15s; } .pane .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.pane .tag { align-self: flex-start; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo-2); }
.pane-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pane-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.pane-dots i.on { background: var(--indigo-2); width: 16px; border-radius: 3px; }

/* ---------- Marquee ---------- */

.marquee { padding: 26px 0; border-block: 1px solid var(--line); background: rgba(19, 19, 42, .5); overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track::after { content: ""; }
@keyframes marquee { to { transform: translateX(-50%); } }
.exam-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.exam-chip small { color: var(--text-3); font-weight: 500; }
.exam-chip i { width: 8px; height: 8px; border-radius: 50%; }
.ssc i { background: var(--indigo-2); } .bank i { background: var(--green); } .rail i { background: var(--amber); }
.marquee-label { text-align: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }

/* ---------- Bento ---------- */

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
}
.card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(26,26,54,.9), rgba(19,19,42,.9));
  border: 1px solid var(--line);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .5s var(--ease-out), border-color .4s ease, box-shadow .5s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(129,140,248,.18), transparent 45%);
  opacity: 0; transition: opacity .4s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(129,140,248,.45); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.card:hover::before { opacity: 1; }
.card .h3 { position: relative; }
.card p { margin: 0; color: var(--text-2); font-size: .97rem; line-height: 1.55; position: relative; }
.card .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(99,102,241,.16); color: var(--indigo-2); border: 1px solid rgba(129,140,248,.25);
}
.card .ic svg { width: 20px; height: 20px; }
.card .demo { margin-top: auto; position: relative; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }

/* demos inside cards */
.mini-q { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 14px; display: grid; gap: 8px; font-size: .82rem; }
.mini-q .stem { color: var(--text); line-height: 1.45; min-height: 2.9em; }
.mini-q .o { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); font-size: .78rem; transition: all .35s ease; }
.mini-q .o i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: .6rem; font-weight: 700; flex: none; }
.mini-q .o.right { border-color: var(--green); background: rgba(16,185,129,.12); color: var(--text); }
.mini-q .o.right i { background: var(--green); border-color: var(--green); color: #fff; }
.mini-q .o.wrong { border-color: var(--red); background: rgba(239,68,68,.1); }
.mini-q .foot { display: flex; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: .72rem; }
.mini-q .foot > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-q .foot b { color: var(--indigo-2); font-weight: 600; }

.hash-list { display: grid; gap: 8px; align-content: start; overflow: hidden; contain: layout; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; color: var(--text-3); }
.hash-list div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.hash-list span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash-list em { font-style: normal; color: var(--green); font-size: .68rem; }
.hash-list div.skip span { text-decoration: line-through; opacity: .5; }
.hash-list div.skip em { color: var(--amber); }

.blueprint { width: 100%; border-collapse: collapse; font-size: .82rem; }
.blueprint th, .blueprint td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.blueprint th { color: var(--text-3); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.blueprint td:last-child, .blueprint th:last-child { text-align: right; }
.blueprint tfoot td { border-bottom: 0; color: var(--text); font-weight: 600; }
.timer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; font-size: .9rem; }
.timer i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: .2; } }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mock-head .lbl { font-size: .8rem; color: var(--text-3); }
.mock-head .lbl b { color: var(--text); display: block; font-size: .95rem; }

.stream { font-size: .84rem; line-height: 1.55; color: var(--text-2); min-height: 6.2em; overflow: hidden; contain: layout; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg); }
.stream b { color: var(--text); }
.stream .caret { display: inline-block; width: 2px; height: 1em; background: var(--indigo-2); vertical-align: -2px; margin-left: 2px; animation: blink .9s steps(2) infinite; }

.sheet { display: grid; gap: 6px; }
.sheet div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; color: var(--text-2); }
.sheet div i { width: 6px; height: 22px; border-radius: 3px; background: var(--red); flex: none; }
.sheet div:nth-child(2) i { background: var(--amber); }
.sheet div:nth-child(3) i { background: var(--green); }
.sheet b { color: var(--text); font-weight: 600; }
.sheet small { margin-left: auto; color: var(--text-3); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--indigo-2), var(--indigo-3)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease-out); }
.in-view .bars i { transform: scaleY(1); }
.bars i:nth-child(2) { transition-delay: .08s; } .bars i:nth-child(3) { transition-delay: .16s; } .bars i:nth-child(4) { transition-delay: .24s; } .bars i:nth-child(5) { transition-delay: .32s; } .bars i:nth-child(6) { transition-delay: .4s; } .bars i:nth-child(7) { transition-delay: .48s; background: linear-gradient(180deg, var(--green), #059669); }
.bars-x { display: flex; justify-content: space-between; font-size: .68rem; color: var(--text-3); margin-top: 6px; }

.news { display: grid; gap: 8px; }
.news div { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .8rem; }
.news b { color: var(--text); font-weight: 600; line-height: 1.35; }
.news small { color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.news small span { color: var(--indigo-2); }

.solve { display: grid; gap: 8px; font-size: .8rem; }
.solve .cam { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-3); }
.solve .cam svg { width: 18px; height: 18px; color: var(--indigo-2); }
.solve ol { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 4px; }
.solve ol b { color: var(--text); }

/* ---------- How it works (paper section) ---------- */

.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--indigo-3); }
.paper .h2 em { background: linear-gradient(92deg, #4f46e5, #7c3aed); -webkit-background-clip: text; background-clip: text; }
.paper .lede { color: var(--ink-2); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 12px; }
.steps::before {
  content: ""; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out);
}
.steps.in-view::before { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--paper-line); box-shadow: 0 20px 40px -30px rgba(20, 20, 43, .35); }
.step .n { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--indigo), var(--violet)); box-shadow: 0 14px 30px -14px rgba(99,102,241,.8); }
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-3); font-size: .9rem; }
.step ul li { display: flex; gap: 8px; align-items: flex-start; }
.step ul li::before { content: "→"; color: var(--indigo-3); font-weight: 600; }

/* ---------- Vidya ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split .copy { display: grid; gap: 22px; }
.ctx { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ctx li { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: .82rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.ctx li i { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-2); }
.chat {
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 460px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.chat .head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat .avatar { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; font-weight: 700; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.chat .head b { display: block; }
.chat .head small { color: var(--text-3); font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.chat .head small i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat .m { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s var(--ease-out); }
.chat .m.show { opacity: 1; transform: none; }
.chat .me { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 5px; }
.chat .bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); color: var(--text-2); border-bottom-left-radius: 5px; }
.chat .bot b { color: var(--text); }
.chat .bot .src { display: inline-flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chat .bot .src span { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: rgba(99,102,241,.16); color: var(--indigo-2); border: 1px solid rgba(129,140,248,.3); }
.chat .typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; opacity: 0; transition: opacity .3s; }
.chat .typing.show { opacity: 1; }
.chat .typing.done { visibility: hidden; }
.chat .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: bounce 1s infinite; }
.chat .typing i:nth-child(2) { animation-delay: .15s; } .chat .typing i:nth-child(3) { animation-delay: .3s; }
.chat .input { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text-3); font-size: .88rem; }
.chat .input span { flex: 1; }
.chat .input i { width: 36px; height: 36px; border-radius: 50%; background: var(--indigo); display: grid; place-items: center; color: #fff; }
.chat .input i svg { width: 16px; height: 16px; }

/* ---------- Exams ---------- */

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.tabs button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: .93rem; cursor: pointer; transition: color .25s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: linear-gradient(135deg, var(--indigo), var(--violet)); transition: left .45s var(--ease-spring), width .45s var(--ease-spring); }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.exam-panel { display: none; }
.exam-panel.active { display: block; }
.exam-card { border-radius: var(--r-md); padding: 20px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; transition: transform .4s var(--ease-out), border-color .3s; }
.exam-card:hover { transform: translateY(-3px); border-color: rgba(129,140,248,.45); }
.exam-card b { font-size: 1.05rem; letter-spacing: -.01em; }
.exam-card small { color: var(--text-3); font-size: .82rem; }
.exam-card .stages { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-card .stages span { font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--text-2); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.stat { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 6px; }
.stat b { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; display: inline-block; background: linear-gradient(180deg, #fff, #b4b4cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-3); font-size: .9rem; }

/* ---------- Anywhere ---------- */

.anywhere { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.way { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 32px; display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.way::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.35), transparent 70%); pointer-events: none; }
.way h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.way p { margin: 0; color: var(--text-2); }
.way .btn { justify-self: start; }
.way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text-3); font-size: .92rem; }
.way ul li { display: flex; gap: 10px; align-items: center; }
.way ul svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: rgba(129,140,248,.45); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease-spring), background .3s; }
.faq summary i::before { content: "+"; font-style: normal; font-weight: 500; color: var(--text-2); line-height: 1; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--indigo); border-color: var(--indigo); }
.faq details[open] summary i::before { color: #fff; }
.faq .a { padding: 0 22px 22px; color: var(--text-2); line-height: 1.6; }
.faq .a a { color: var(--indigo-2); }

/* ---------- CTA band ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-xl); padding: clamp(56px, 8vw, 104px) clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #6d28d9);
  color: #fff; isolation: isolate;
}
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; }
.cta::before { width: 480px; height: 480px; left: -140px; top: -200px; background: rgba(255,255,255,.22); animation: drift 14s ease-in-out infinite alternate; }
.cta::after { width: 380px; height: 380px; right: -120px; bottom: -180px; background: rgba(6,182,212,.4); animation: drift 18s ease-in-out infinite alternate-reverse; }
.cta .h2 { color: #fff; }
.cta .h2 em { background: none; color: #e0e7ff; -webkit-text-fill-color: #e0e7ff; }
.cta p { color: rgba(255,255,255,.82); max-width: 54ch; margin: 18px auto 30px; font-size: 1.1rem; }
.cta .btn-white { --btn-bg: #fff; --btn-fg: var(--indigo-3); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.cta .btn-white:hover { transform: translateY(-2px); }
.cta .btn-outline { --btn-bg: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.cta .btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.cta .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */

footer { padding: 64px 0 40px; border-top: 1px solid var(--line); position: relative; z-index: 2; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text-2); text-decoration: none; font-size: .95rem; transition: color .2s; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { color: var(--text-3); margin: 14px 0 0; max-width: 34ch; font-size: .95rem; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: .82rem; }
.foot-bottom p { margin: 0; max-width: 72ch; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(19,19,42,.85); backdrop-filter: blur(10px);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-out), background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--indigo); border-color: var(--indigo); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .56s; }
.reveal-stagger.in-view > *:nth-child(n+9) { transition-delay: .62s; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .bento { grid-auto-rows: auto; }
  .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8 { grid-column: span 12; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 40px); }
  .orb { animation: none; filter: blur(48px); transform: none !important; }
  .grid-lines { animation: none; }
  .grain { display: none; }
  .cta::before, .cta::after { animation: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 0; padding: 18px 0 8px; }
  .float-card { display: none; }
  .fc-2 { display: flex; right: 0; top: auto; bottom: 20px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .anywhere { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .span-4, .span-5, .span-6 { grid-column: span 12; }
  .hero-actions .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 10px 8px; font-size: .85rem; }
  .phone { width: min(290px, 80vw); }
  .cta .row .btn { flex: 1 1 100%; }
}

@media (min-width: 1400px) {
  :root { --container: 1280px; }
}

@media (hover: none) {
  .card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .word > span { transform: none; opacity: 1; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
