/* Quantix — quantix.nax.works. Dark, smooth, a little playful. No frameworks, no trackers. */
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #06070a; --bg1: #0a0c10; --bg2: #0f1218; --bg3: #151922; --bg4: #1c212c;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #eef0f5; --dim: #a2a8b6; --faint: #646b7b;
  --accent: #7c6cff; --accent2: #a598ff;
  --math: #8b7cf6; --phys: #3ba0ff; --chem: #f5a524; --bio: #2fd07b; --eng: #ff6b5a; --code: #22d3ee;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --r: 18px; --maxw: 1180px;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 700px at 80% -10%, rgba(124,108,255,.16), transparent 60%), radial-gradient(900px 600px at -10% 20%, rgba(59,160,255,.08), transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(124,108,255,.45); }
.mono { font-family: var(--mono); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.lead { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--accent2); margin: 0 0 14px; }

/* ---------- buttons */
.btn { --bgc: var(--bg3); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--bgc); color: var(--text); font: 600 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--spring), background .25s var(--ease), border-color .25s, box-shadow .35s var(--ease); will-change: transform; }
.btn > span { display: inline-block; transition: transform .5s var(--spring); pointer-events: none; }
.btn:hover { border-color: rgba(255,255,255,.25); }
.btn:active { transform: scale(.96); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, #8b7cff, #6a58ff); border-color: rgba(255,255,255,.18); box-shadow: 0 8px 30px -8px rgba(124,108,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 14px 44px -8px rgba(124,108,255,.95), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255,255,255,.04); }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-small { padding: 9px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- custom cursor (fine pointers only) */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 1000; display: none; }
@media (pointer: fine) { .cursor { display: block; } body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor summary { cursor: none; } body.has-cursor input, body.has-cursor textarea { cursor: text; } }
.cursor-dot, .cursor-ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(255,255,255,.55); transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .3s, border-color .3s; }
.cursor.big .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(124,108,255,.14); border-color: rgba(165,152,255,.8); }
.cursor.grab .cursor-ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; border-style: dashed; border-color: var(--chem); }
.cursor.hidden { opacity: 0; }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px) scale(.96); opacity: 0; z-index: 999; padding: 12px 18px; border-radius: 14px; background: rgba(20,23,31,.92);
  border: 1px solid var(--line2); backdrop-filter: blur(14px); font-weight: 600; font-size: 15px; transition: transform .5s var(--spring), opacity .3s; pointer-events: none; max-width: 92vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(var(--maxw), calc(100% - 28px)); display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(10,12,16,.55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .4s, border-color .4s, transform .6s var(--ease), box-shadow .4s; }
.nav.scrolled { background: rgba(10,12,16,.8); border-color: var(--line2); box-shadow: 0 10px 40px -10px rgba(0,0,0,.6); }
.nav.hide { transform: translate(-50%, -120%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { border-radius: 8px; transition: transform .8s var(--spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.badge { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); background: rgba(124,108,255,.14); border: 1px solid rgba(124,108,255,.3); padding: 3px 8px; border-radius: 999px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--dim); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .25s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: rgba(255,255,255,.06); }
.nav-burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; position: relative; }
.nav-burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--spring), top .4s var(--spring); }
.nav-burger i:first-child { top: 16px; } .nav-burger i:last-child { top: 24px; }
.nav.open .nav-burger i:first-child { top: 20px; transform: rotate(45deg); } .nav.open .nav-burger i:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- hero */
.hero { position: relative; padding: 150px 20px 40px; min-height: 100vh; overflow: hidden; }
.hero-toys { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.hero-inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; text-align: center; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--bio); box-shadow: 0 0 0 0 rgba(47,208,123,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,208,123,0); } 100% { box-shadow: 0 0 0 0 rgba(47,208,123,0); } }
.hero-title { font-size: clamp(48px, 9vw, 118px); font-weight: 900; letter-spacing: -.045em; line-height: .98; margin: 6px 0 22px; }
.cycler { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.06em; white-space: nowrap; justify-items: start; transition: width .9s var(--ease); }
.cycler > span { grid-area: 1 / 1; display: block; width: max-content; padding-right: .04em; background: linear-gradient(100deg, var(--c1, #a598ff), var(--c2, #6a58ff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .9s var(--ease), opacity .6s var(--ease), filter .6s; }
.cycler > span.out { transform: translateY(-105%) rotate(-4deg); opacity: 0; filter: blur(4px); }
.cycler > span.pre { transform: translateY(105%) rotate(4deg); opacity: 0; filter: blur(4px); }
.hero-sub { color: var(--dim); font-size: clamp(18px, 2vw, 22px); max-width: 720px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-hint { margin-top: 22px; font-size: 13.5px; color: var(--faint); font-style: italic; }
.hero-window-wrap { position: relative; z-index: 1; perspective: 1600px; max-width: var(--maxw); margin: 70px auto 0; pointer-events: none; }
.hero-window { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg2);
  box-shadow: 0 60px 140px -40px rgba(124,108,255,.45), 0 30px 60px -30px rgba(0,0,0,.9); transform-origin: 50% 0%; transform: rotateX(var(--tilt, 22deg)) scale(var(--sc, .9)); will-change: transform; transition: transform .1s linear; }
.hero-glow { position: absolute; inset: -1px; border-radius: 20px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 30%); }

/* ---------- marquee */
.marquee { padding: 46px 0 20px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--dim); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s, transform .5s var(--spring); }
.pill:hover { color: var(--text); border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent); transform: translateY(-3px) rotate(-1.5deg); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 12px var(--pc); }

/* ---------- sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 120px 20px 40px; }
.section-head { margin-bottom: 48px; }

/* ---------- demo window */
.app-window { border-radius: 18px; border: 1px solid var(--line2); background: var(--bg1); overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset; }
.aw-titlebar { display: flex; align-items: center; gap: 16px; height: 54px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.aw-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.aw-brand img { border-radius: 5px; }
.aw-dim { color: var(--faint); font-weight: 500; }
.aw-tabs { display: flex; gap: 4px; margin: 0 auto; background: var(--bg2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.aw-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--dim); font: 600 14px Inter, sans-serif; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: background .3s var(--ease), color .2s; }
.aw-tab:hover { color: var(--text); }
.aw-tab.active { background: var(--bg4); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.c-math { background: var(--math); } .c-phys { background: var(--phys); } .c-eng { background: var(--eng); }
.aw-lights { display: flex; gap: 7px; } .aw-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg4); }
.aw-body { position: relative; height: min(600px, 72vh); }
.aw-pane { position: absolute; inset: 0; display: grid; grid-template-columns: 300px 1fr; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s; }
.aw-pane.active { opacity: 1; visibility: visible; transform: none; }
.aw-side { padding: 18px; border-right: 1px solid var(--line); background: var(--bg1); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.aw-stage { position: relative; background: radial-gradient(800px 500px at 50% 0%, #10141d, #07080c); overflow: hidden; }
.aw-stage.paper { background: #fffdf7; }
.aw-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.readout { position: absolute; left: 12px; top: 12px; font-size: 12.5px; color: var(--dim); background: rgba(10,12,16,.8); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.readout.on { opacity: 1; }
.field-label { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.field { width: 100%; background: var(--bg3); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 11px 12px; font-size: 16px; transition: border-color .2s, box-shadow .3s; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124,108,255,.18); }
.field-error { margin: 0; min-height: 1.2em; color: #ff8577; font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--dim); border-radius: 999px; padding: 6px 11px; font: 600 12.5px Inter, sans-serif; cursor: pointer; transition: all .3s var(--ease); }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.25); transform: translateY(-1px); }
.chip.on { background: rgba(124,108,255,.18); border-color: rgba(124,108,255,.55); color: #fff; }
.aw-note { color: var(--faint); font-size: 13px; margin: 4px 0 0; }
.slider-row { display: grid; grid-template-columns: 22px 1fr 52px; gap: 8px; align-items: center; font-family: var(--mono); font-size: 14px; color: var(--dim); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--bg4); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; transition: transform .3s var(--spring); }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.25); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.energy { display: grid; gap: 8px; }
.ebar { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; font: 600 12.5px Inter, sans-serif; color: var(--dim); }
.ebar i { display: block; height: 10px; border-radius: 6px; background: var(--bg3); position: relative; overflow: hidden; }
.ebar i::after { content: ""; position: absolute; inset: 0; width: var(--v, 0%); border-radius: 6px; background: var(--ec, var(--accent)); transition: width .12s linear; }
#eKE { --ec: var(--phys); } #ePE { --ec: var(--bio); } #eME { --ec: var(--accent2); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.code-side { gap: 10px; }
.code { flex: 1; min-height: 240px; resize: none; background: #0b1020; color: #dfe3ee; border: 1px solid var(--line2); border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.55; tab-size: 4; }
.code:focus { outline: none; border-color: var(--accent); }
.kbd { font: 600 11.5px Inter, sans-serif; color: var(--faint); border: 1px solid var(--line2); padding: 4px 7px; border-radius: 6px; }
.aw-status { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12.5px; color: var(--dim); }
.aw-status .aw-dim { margin-left: auto; }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bio); }

/* ---------- bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--bg2)), var(--bg2) 60%); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  transform-style: preserve-3d; transition: transform .7s var(--ease), border-color .4s, box-shadow .5s var(--ease); will-change: transform; min-height: 420px; }
.card:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(400px 260px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.09), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card-text { padding: 26px 26px 18px; }
.card-text p { color: var(--dim); font-size: 15.5px; margin: 10px 0 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.card img { margin-top: auto; width: calc(100% - 26px); margin-left: 26px; border-radius: 12px 0 0 0; border: 1px solid var(--line2); border-right: 0; border-bottom: 0; transform: translateY(6px); transition: transform .8s var(--ease); object-fit: cover; object-position: left top; aspect-ratio: 16 / 10; }
.card:hover img { transform: translateY(-4px) translateX(-6px); }
.span-2 { grid-column: span 2; }

/* the search card */
.find { margin: auto 22px 22px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(6,7,10,.7); overflow: hidden; }
.find-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.find-icon { color: var(--accent2); display: grid; place-items: center; }
.find-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text, #fff); font: inherit; font-size: 15px; }
.find-box input::placeholder { color: var(--dim); opacity: .7; }
.find-box kbd { font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 6px; }
.find-list { list-style: none; margin: 0; padding: 6px; min-height: 196px; }
.find-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14.5px; cursor: pointer;
  animation: findIn .45s var(--ease) both; transition: background .25s; }
.find-list li:hover, .find-list li.on { background: rgba(255,255,255,.06); }
.find-list li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.find-list li small { margin-left: auto; color: var(--dim); font-size: 12px; }
.find-list li mark { background: none; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 3px; }
.find-list .find-none { color: var(--dim); cursor: default; }
@keyframes findIn { from { opacity: 0; transform: translateY(6px); } }
@media (pointer: coarse) { .find-box kbd { display: none; } }

/* ---------- labs scrollytelling */
.labs-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 26px 0 26px 22px; border-left: 2px solid var(--line); transition: border-color .5s var(--ease), opacity .5s; opacity: .45; min-height: 30vh; display: flex; flex-direction: column; justify-content: center; }
.step h3 { font-size: 26px; transition: color .4s; }
.step p { color: var(--dim); margin: 8px 0 0; }
.step.active { opacity: 1; border-color: var(--accent); }
.step.active h3 { color: #fff; }
.labs-visual { position: sticky; top: 110px; }
.labs-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg2); box-shadow: 0 50px 120px -40px rgba(59,160,255,.35); }
.labs-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); filter: blur(8px); transition: opacity .8s var(--ease), transform 1.2s var(--ease), filter .8s var(--ease); }
.labs-frame img.show { opacity: 1; transform: none; filter: none; }

/* ---------- numbers */
.numbers { max-width: var(--maxw); margin: 80px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg1); }
.num b { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -.04em; background: linear-gradient(120deg, #fff, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { color: var(--dim); font-weight: 500; }

/* ---------- split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split-shot { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 50px 120px -40px rgba(47,208,123,.3); transition: transform .7s var(--ease); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--dim); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: rgba(47,208,123,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%232fd07b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks.small li { font-size: 15px; }

/* ---------- pricing */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; max-width: 900px; margin: 0 auto; align-items: center; }
.plan { position: relative; padding: 32px; border-radius: 22px; border: 1px solid var(--line2); background: var(--bg1); }
.plan-hero { background: linear-gradient(180deg, rgba(124,108,255,.16), var(--bg1) 55%); border-color: rgba(124,108,255,.45); box-shadow: 0 40px 120px -30px rgba(124,108,255,.5); padding: 38px; }
.plan-ribbon { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; background: linear-gradient(135deg, #8b7cff, #6a58ff); }
.price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 60px; font-weight: 900; letter-spacing: -.04em; }
.price span { color: var(--faint); font-weight: 600; }
.price s { color: var(--faint); font-size: 24px; font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--eng); align-self: center; }
.plan-sale { background: linear-gradient(135deg, #2fd07b, #16a34a); color: #04120a; animation: salePulse 2.6s var(--ease) infinite; }
@keyframes salePulse { 0%, 100% { transform: rotate(0) scale(1); } 8% { transform: rotate(-6deg) scale(1.08); } 16% { transform: rotate(4deg) scale(1.04); } 24% { transform: none; } }
.sale-note { margin: -2px 0 10px; font-size: 13px; font-weight: 700; color: #2fd07b; }
.plan-sub { color: var(--dim); margin: 0 0 22px; }
.plan .btn { margin-bottom: 22px; }
.fine { color: var(--faint); font-size: 14px; margin-top: 30px; }

/* ---------- faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--bg1); overflow: hidden; transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line2); background: var(--bg2); }
.faq summary { list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 17.5px; cursor: pointer; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .5s var(--spring), margin .5s var(--spring); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details > div { padding: 0 22px; color: var(--dim); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq details > div > p { overflow: hidden; margin: 0; }
.faq details.opening > div, .faq details[open]:not(.closing) > div { grid-template-rows: 1fr; padding-bottom: 20px; }
.faq a { color: var(--accent2); }

/* ---------- final */
.final { position: relative; text-align: center; padding: 160px 20px 140px; overflow: hidden; }
.final h2 { font-size: clamp(40px, 7vw, 86px); margin-bottom: 36px; }
.final-orbit { position: relative; width: 200px; height: 200px; margin: 0 auto 40px; }
.final-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(165,152,255,.25); animation: spin 14s linear infinite; }
.final-orbit i::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--phys)); box-shadow: 0 0 16px var(--c, var(--phys)); }
.final-orbit .o1 { inset: 0; --c: var(--phys); } .final-orbit .o2 { inset: 28px; animation-duration: 9s; animation-direction: reverse; --c: var(--chem); } .final-orbit .o3 { inset: 56px; animation-duration: 6s; --c: var(--bio); }
@keyframes spin { to { transform: rotate(360deg); } }
.final-logo { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 16px; box-shadow: 0 10px 40px rgba(124,108,255,.6); transition: transform .6s var(--spring); cursor: pointer; }
.confetti { position: fixed; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; z-index: 998; will-change: transform, opacity; }

/* ---------- footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 50px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--dim); font-size: 14.5px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.foot-brand img { border-radius: 6px; } .foot-brand span { color: var(--faint); font-weight: 500; }
.foot-links { display: flex; gap: 18px; margin-left: auto; } .foot-links a { text-decoration: none; } .foot-links a:hover { color: var(--text); }
.foot-fine { width: 100%; margin: 0; color: var(--faint); font-size: 13px; }

/* ---------- responsive */
@media (max-width: 960px) {
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; background: rgba(10,12,16,.95); border: 1px solid var(--line2); border-radius: 20px; padding: 10px; gap: 2px;
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .3s, transform .45s var(--spring); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 17px; }
  .nav-burger { display: block; }
  .nav > .btn { display: none; }
  .bento { grid-template-columns: 1fr 1fr; } .span-2, .card-find { grid-column: span 2; }
  .labs-grid, .split { grid-template-columns: 1fr; }
  .labs-visual { position: sticky; top: 84px; z-index: 2; order: -1; }
  .step { min-height: 24vh; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .aw-pane { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .aw-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 46%; }
  .aw-body { height: 720px; }
  .aw-brand .aw-dim, .aw-lights { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .bento { grid-template-columns: 1fr; } .span-2, .card-find { grid-column: auto; }
  .card { min-height: 0; }
  .aw-tab { padding: 8px 10px; font-size: 13px; }
  .aw-tabs { margin-left: auto; margin-right: 0; }
  .aw-brand { display: none; }
  .badge { display: none; }
  .aw-status .aw-dim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
