:root {
  --bg: #0b0b14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f7;
  --muted: #a3a3b8;
  --faint: #6e6e85;
  --accent: #5c6bff;
  --accent-hi: #7b88ff;
  --accent-2: #b36bff;
  --rec: #ff3b30;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 8px; }

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s var(--ease) infinite alternate; }
.g1 { width: 46rem; height: 46rem; left: -12rem; top: -18rem; background: radial-gradient(circle, #3a3fd8 0%, transparent 65%); }
.g2 { width: 40rem; height: 40rem; right: -14rem; top: 8rem; background: radial-gradient(circle, #7a3fd8 0%, transparent 65%); animation-delay: -8s; }
.g3 { width: 36rem; height: 36rem; left: 30%; top: 70vh; background: radial-gradient(circle, #1f3a9e 0%, transparent 65%); animation-delay: -14s; opacity: .35; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(6rem, 4rem, 0) scale(1.12); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  max-width: 1200px; margin: 0 auto; padding: .9rem 1.5rem;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: linear-gradient(rgba(11,11,20,.75), rgba(11,11,20,.35));
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.25rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 8px 30px -8px rgba(92,107,255,.75);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative; overflow: hidden;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 14px 40px -8px rgba(92,107,255,.9); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-sm { padding: .5rem .95rem; font-size: .88rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn-ghost { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 500; transition: color .2s, gap .25s var(--ease); }
.btn-ghost svg { width: 1rem; height: 1rem; }
.btn-ghost:hover { color: var(--text); gap: .65rem; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 5.5rem 1.5rem 3rem; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.4rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
}
.eyebrow svg { width: .95rem; height: .95rem; fill: currentColor; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; margin: 0; font-weight: 800; }
.grad {
  background: linear-gradient(92deg, #8f9bff 0%, #c084ff 45%, #ff7ab8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }
.lede { max-width: 40rem; margin: 1.5rem auto 0; font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); }
.cta { display: flex; gap: 1.6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2.2rem; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: 1.2rem 0 0; color: var(--faint); font-size: .85rem; }
.meta b { color: var(--muted); font-weight: 500; }

/* Hero stage */
.stage { position: relative; margin: 4.5rem auto 0; max-width: 1040px; perspective: 1800px; }
.window {
  border-radius: 16px; padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  box-shadow: 0 50px 120px -30px rgba(70,60,220,.55), 0 30px 60px -30px rgba(0,0,0,.9);
  transform: rotateX(8deg) scale(.96);
  transform-origin: 50% 0;
  transition: transform 1.2s var(--ease);
}
.stage.in .window { transform: none; }
.shot { position: relative; border-radius: 11px; overflow: hidden; background: #111; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.mask { fill: rgba(4, 4, 12, .5); opacity: 0; }
.sel { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; opacity: 0; }
.corners path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.arrow, .arrow-head { fill: none; stroke: var(--rec); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.flash { fill: #fff; opacity: 0; }
.dim-pill, .note {
  position: absolute; opacity: 0; pointer-events: none;
  font: 600 clamp(.6rem, 1.3vw, .82rem)/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  white-space: nowrap;
}
.dim-pill { padding: .35em .6em; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-variant-numeric: tabular-nums; transform: translate(-50%, 0); }
.note {
  display: flex; align-items: center; gap: .45em;
  padding: .45em .8em .45em .45em; border-radius: 999px;
  background: var(--rec); color: #fff; box-shadow: 0 8px 24px -6px rgba(255,59,48,.7);
  transform: scale(.6); transform-origin: left center;
}
.step { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #fff; color: var(--rec); font-size: .9em; }
.qa {
  position: absolute; left: -2%; bottom: -7%; width: 46%;
  border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0; transform: translateY(24px) scale(.96);
}

/* Highlights strip */
.strip {
  max-width: 1040px; margin: 5rem auto 0; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
}
.strip div { padding: 1.4rem 1rem; text-align: center; border-left: 1px solid var(--border); }
.strip div:first-child { border-left: 0; }
.strip b { display: block; font-size: 1.7rem; letter-spacing: -.03em; }
.strip span { color: var(--faint); font-size: .85rem; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 7rem 1.5rem 0; }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.kicker { margin: 0 0 .7rem; color: var(--accent-hi); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.08rem; margin: 1rem 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  position: relative; padding: 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(92,107,255,.18), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(123,136,255,.35); background: var(--surface-hi); }
.card:hover::before { opacity: 1; }
.card > svg {
  width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 12px;
  color: var(--accent-hi); background: rgba(92,107,255,.12); border: 1px solid rgba(92,107,255,.25);
}
.card h3 { margin: 1.1rem 0 .4rem; font-size: 1.08rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Shortcuts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .section-head { text-align: left; margin: 0; }
.keys { list-style: none; margin: 0; padding: .6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.keys li { display: flex; align-items: center; gap: .35rem; padding: .7rem .9rem; border-radius: 12px; transition: background .25s; }
.keys li:hover { background: var(--surface-hi); }
.keys li span { margin-right: auto; color: var(--muted); }
kbd {
  display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .45rem;
  border-radius: 8px; font: 600 .9rem/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: linear-gradient(180deg, #2a2a3a, #1c1c28); color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 3px 0 #0d0d14, 0 4px 10px rgba(0,0,0,.4);
  transition: transform .15s, box-shadow .15s;
}
.keys li:hover kbd { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 1px 0 #0d0d14, 0 2px 6px rgba(0,0,0,.4); }

/* Install */
.install { padding-bottom: 6rem; }
.install-card {
  max-width: 44rem; margin: 0 auto; padding: 3.5rem 2rem; text-align: center;
  border-radius: 28px; border: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(92,107,255,.22), transparent 70%), var(--surface);
}
.install-icon { margin: 0 auto 1.2rem; border-radius: 22px; filter: drop-shadow(0 20px 40px rgba(92,107,255,.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 2rem auto 2.2rem; max-width: 28rem; text-align: left; display: grid; gap: .9rem; }
.steps li { counter-increment: s; display: flex; gap: .9rem; align-items: baseline; color: var(--muted); }
.steps li::before {
  content: counter(s); flex: none; display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: rgba(92,107,255,.18); color: var(--accent-hi); font-weight: 700; font-size: .85rem;
  transform: translateY(.35rem);
}
.steps b { color: var(--text); font-weight: 600; }

.foot { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 3rem; display: flex; justify-content: space-between; color: var(--faint); font-size: .85rem; border-top: 1px solid var(--border); }
.foot a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .section-head { text-align: center; margin: 0 auto; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .nav { gap: 1rem; padding: .8rem 1rem; }
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding: 3.5rem 1rem 2rem; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .section { padding: 5rem 1rem 0; }
  .qa { width: 70%; left: 2%; bottom: -12%; }
  .stage { margin-top: 3rem; }
  .install-card { padding: 2.5rem 1.25rem; }
  .keys li { padding: .6rem .5rem; }
  kbd { min-width: 1.7rem; height: 1.7rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
}
