:root {
  --bg: #05060d;
  --bg-2: #0a0c18;
  --text: #eef1ff;
  --muted: #9aa3c7;
  --faint: #5d6488;
  --blue: #2962ff;
  --blue-2: #5b7cfa;
  --cyan: #22d3ff;
  --violet: #8b5cf6;
  --green: #22c55e;
  --red: #ff5470;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--glass-strong); padding: .1em .4em; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
::selection { background: rgba(41, 98, 255, .45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }

/* ---------- Background layers ---------- */
#grid, #sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#grid { z-index: -3; }
#sparks { z-index: 60; }

.glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.glow span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: float 22s var(--ease) infinite alternate;
}
.glow span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(41,98,255,.55), transparent 65%); }
.glow span:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 10vh; background: radial-gradient(circle, rgba(34,211,255,.32), transparent 65%); animation-delay: -7s; }
.glow span:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; top: 120vh; background: radial-gradient(circle, rgba(139,92,246,.3), transparent 65%); animation-delay: -12s; }
@keyframes float { to { transform: translate3d(6vw, 8vh, 0) scale(1.15); } }

.grain {
  position: fixed; inset: -100%; z-index: 70; pointer-events: none; opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(-4%, -5%); }
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor .cursor { display: block; }
}
.cursor-dot, .cursor-frame { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; will-change: transform; }
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
}
.cursor-frame {
  width: 34px; height: 34px;
  transition: width .35s var(--ease), height .35s var(--ease), opacity .2s;
  animation: spin 6s linear infinite;
}
.cursor-frame.locked { animation: none; }
.cursor-frame i {
  position: absolute; width: 10px; height: 10px; border: 2px solid #fff;
  mix-blend-mode: difference; transition: all .35s var(--ease);
}
.cursor-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.cursor-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 3px; }
.cursor-frame i:nth-child(3) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 3px; }
.cursor-frame i:nth-child(4) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 3px; }
.cursor-frame.locked i { border-color: var(--cyan); }
.cursor.down .cursor-frame { width: 26px; height: 26px; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -30px rgba(0,0,0,.8);
}

/* Spotlight that follows the pointer */
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(41,98,255,.18), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,255,.7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 550; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, #4a7bff, var(--blue));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px -10px rgba(41,98,255,.9);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 14px 40px -8px rgba(41,98,255,1); }
.btn-ghost:hover { border-color: var(--stroke-2); background: rgba(255,255,255,.08); }
.btn:active { transform: scale(.97); }
.link { color: var(--cyan); }
.link:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; display: flex; justify-content: center; }
.nav {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 760px;
  padding: 7px 7px 7px 14px; border-radius: 999px;
  background: rgba(10, 12, 24, .5);
  transition: background .3s, max-width .5s var(--ease);
}
.nav.scrolled { background: rgba(10, 12, 24, .72); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; max-width: 1240px; margin: 0 auto;
  padding: 140px 24px 60px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border-radius: 999px; font-size: 13.5px; margin-bottom: 28px; max-width: 100%;
}
.pill > span { white-space: nowrap; }
.pill .muted { overflow: hidden; text-overflow: ellipsis; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,255,.18); animation: pulse 2s infinite; flex: none; }
.pill-sep { color: var(--faint); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,211,255,0); } }

.shiny {
  background: linear-gradient(110deg, #c9d4ff 35%, #fff 50%, #c9d4ff 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 3.5s linear infinite; font-weight: 550;
}
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }

.hero-title { font-size: clamp(44px, 7vw, 92px); font-weight: 650; letter-spacing: -.045em; line-height: .98; }
.hero-title > span { display: block; }
.hero-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  font-size: 1.12em; padding-right: .08em;
}
.grad em {
  background: linear-gradient(90deg, var(--cyan), var(--blue-2) 45%, var(--violet), var(--cyan)) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s linear infinite reverse;
}
.hero-sub { margin-top: 26px; max-width: 560px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); }
.hero-sub strong { color: var(--text); font-weight: 550; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--faint); font-family: var(--mono); }

/* Blur-in words */
.word { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(18px); }
.word.in { animation: blurIn .9s var(--ease) forwards; }
@keyframes blurIn { to { opacity: 1; filter: blur(0); transform: none; } }

/* Phones */
.phone {
  margin: 0; position: relative; aspect-ratio: 390 / 844; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #262b44, #0b0d18 40%, #141829);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(41,98,255,.4);
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 22%; height: 18px; translate: -50% 0;
  background: #05060d; border-radius: 99px; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.hero-phones { position: relative; height: min(640px, 72vh); perspective: 1400px; }
.hero-phones .phone { position: absolute; top: 50%; left: 50%; width: min(290px, 44%); transition: transform 1s var(--ease); }
.phone-c { z-index: 2; transform: translate(-50%, -50%) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); animation: bob 7s ease-in-out infinite; }
.phone-l { transform: translate(-115%, -44%) rotate(-9deg) scale(.86); opacity: .75; filter: saturate(.8); }
.phone-r { transform: translate(15%, -44%) rotate(9deg) scale(.86); opacity: .75; filter: saturate(.8); }
@keyframes bob { 50% { translate: 0 -12px; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--stroke); background: rgba(255,255,255,.02);
  overflow: hidden; padding: 18px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--muted); white-space: nowrap; }
.marquee-track b { color: var(--blue-2); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 120px 24px 20px; }
.section.narrow { max-width: 820px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2, .showcase h2, .cta h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.04em; }
.section-head .muted { margin-top: 16px; font-size: 17px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(34,211,255,.25); background: rgba(34,211,255,.06);
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 21px; margin: 18px 0 10px; letter-spacing: -.025em; }
.card p { color: var(--muted); font-size: 15px; }
.span-2 { grid-column: span 2; }
.span-2 h3 { font-size: 28px; }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--stroke);
}
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 12.5px var(--mono); padding: 6px 11px; border-radius: 999px; background: rgba(41,98,255,.12); border: 1px solid rgba(91,124,250,.3); color: #c3cfff; }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; display: grid; gap: 14px; }
.timeline::before {
  content: ""; position: absolute; left: 50px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(var(--cyan), var(--blue), var(--violet), transparent);
  opacity: .5;
}
.tl-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; }
.tl-item time { font: 500 15px var(--mono); color: var(--text); }
.tl-item h4 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 4px; }
.tl-item p { color: var(--muted); font-size: 14.5px; }
.tl-item.is-cancelled h4 { text-decoration: line-through; text-decoration-color: var(--red); color: var(--muted); }
.tag { font: 500 12px var(--mono); padding: 5px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.tag-cyan { color: var(--cyan); border-color: rgba(34,211,255,.35); background: rgba(34,211,255,.08); }
.tag-blue { color: #8fb0ff; border-color: rgba(91,124,250,.4); background: rgba(41,98,255,.1); }
.tag-red { color: var(--red); border-color: rgba(255,84,112,.35); background: rgba(255,84,112,.08); }
.tag-violet { color: #c4b5fd; border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.1); }
.tag-green { color: #86efac; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase h2 { margin-bottom: 30px; }
.tabs { display: grid; gap: 6px; }
.tabs button {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: 16px;
  padding: 14px 18px; display: grid; gap: 2px; position: relative; overflow: hidden;
  transition: background .3s, border-color .3s;
}
.tabs button strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--muted); transition: color .3s; }
.tabs button span { display: block; overflow: hidden; font-size: 14px; color: var(--faint); max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.tabs button:hover strong { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--glass); border-color: var(--stroke); }
.tabs button[aria-selected="true"] strong { color: var(--text); }
.tabs button[aria-selected="true"] span { max-height: 60px; opacity: 1; color: var(--muted); }
.tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform-origin: left; animation: progress var(--dur, 5s) linear forwards;
}
.tabs.paused button::after { animation: none; transform: scaleX(1); opacity: .5; }
@keyframes progress { from { transform: scaleX(0); } }

.showcase-phone { position: relative; display: grid; place-items: center; }
.halo { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--blue), var(--cyan), var(--violet), var(--blue)); filter: blur(80px); opacity: .35; animation: spin 14s linear infinite; }
.phone-lg { width: min(340px, 80%); transform-style: preserve-3d; transition: transform .6s var(--ease); }
#shot { transition: opacity .35s, transform .5s var(--ease), filter .35s; }
#shot.swap { opacity: 0; transform: scale(.97); filter: blur(6px); }

/* Download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.dl { display: flex; flex-direction: column; gap: 22px; padding: 30px; }
.dl-top { display: flex; gap: 16px; align-items: center; }
.dl-top h3 { margin: 0 0 2px; font-size: 24px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 8px; flex: 1; }
.steps li::marker { color: var(--blue-2); font-family: var(--mono); }
.steps em { color: var(--text); font-style: normal; }
#download > .small { margin-top: 26px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; overflow: hidden; }
.faq summary {
  list-style: none; padding: 20px 56px 20px 24px; font-weight: 550; font-size: 16.5px; letter-spacing: -.015em; position: relative; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font: 300 24px var(--mono); color: var(--muted);
  transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; color: var(--cyan); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta { border-radius: 32px; padding: 72px 28px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.cta img { border-radius: 18px; margin-bottom: 18px; box-shadow: 0 20px 60px -10px rgba(41,98,255,.6); }
.cta h2 { max-width: 640px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.footer { max-width: 1180px; margin: 0 auto; padding: 80px 24px 48px; display: grid; gap: 20px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--stroke); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; gap: 20px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-phones { height: 560px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase-copy { text-align: center; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tabs button { text-align: center; padding: 12px 8px; }
  .tabs button span { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .section { padding-top: 90px; }
  .hero-phones { height: 470px; }
  .hero-phones .phone { width: min(230px, 56%); }
  .phone-l { transform: translate(-100%, -44%) rotate(-9deg) scale(.82); }
  .phone-r { transform: translate(0%, -44%) rotate(9deg) scale(.82); }
  .bento, .dl-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .span-2 h3 { font-size: 23px; }
  .card { padding: 22px; }
  .timeline::before { display: none; }
  .tl-item { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 18px; }
  .tl-item time { grid-column: 1; }
  .tl-item .tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .tl-item > div { grid-column: 1 / -1; }
  .pill-sep, .pill .muted { display: none; }
  .marquee-track span { font-size: 16px; }
  .cta { padding: 52px 20px; }
}
@media (max-width: 400px) {
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .word { opacity: 1; filter: none; transform: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .grain { animation: none; }
}
