/* ═══════════════════════════════════════════════════════════════
   Orbit — orbitstats.app · v3
   Deep-space court: near-black ground with a faint grid, indigo→
   lavender gradients, centered composition, a live orbiting mark.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/jost-600.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/jost-700.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/jost-800.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/dmsans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/dmsans-500.woff2") format("woff2"); }

:root {
  --ink: #F6F6FB;
  --ink-2: #B7B7CE;
  --mut: #83839F;
  --ground: #050508;
  --panel: rgba(18, 18, 30, 0.55);
  --panel-solid: #101018;
  --line: rgba(120, 120, 170, 0.16);
  --ind: #6E6BF2;
  --ind-deep: #4845D2;
  --lav: #B9B7F6;
  --live: #3BD68B;
  --grad: linear-gradient(96deg, #8B88FF 0%, #6E6BF2 45%, #B9B7F6 100%);

  --font: "DM Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --disp: "Jost", "DM Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "Jost", "DM Sans", -apple-system, system-ui, sans-serif;
  --w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, h4, .brand-name, .btn, .nav-cta, .stat-big { font-family: var(--disp); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(60% 42% at 50% 0%, rgba(110,107,242,.16), transparent 62%),
    radial-gradient(50% 40% at 12% 110%, rgba(72,69,210,.12), transparent 60%),
    linear-gradient(rgba(130,130,190,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,130,190,.05) 1px, transparent 1px),
    var(--ground);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b { color: var(--lav); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ind); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ─── reveal ─────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mark-orbit, .live-pulse, .marquee-track, .pill-dot { animation: none !important; }
}

/* ─── nav ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5,5,10,.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { border-radius: 7px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.nav-cta {
  font-size: 13.5px; font-weight: 700; color: #fff;
  padding: 9px 20px; border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 6px 22px -8px rgba(110,107,242,.8);
  transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(110,107,242,.95); }

/* ─── hero ───────────────────────────────────────────── */
.hero { max-width: var(--w); margin: 0 auto; padding: 64px 24px 24px; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero-copy { text-align: left; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--lav);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(110,107,242,.35);
  background: rgba(110,107,242,.08);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  text-wrap: balance;
}
.lede { font-size: 17.5px; color: var(--ink-2); max-width: 50ch; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; font-size: 13.5px; color: var(--mut); }
.hero-trial { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--lav); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 700;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 15px 28px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
}
.btn-grad { color: #fff; background: var(--grad); box-shadow: 0 12px 36px -10px rgba(110,107,242,.75); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(110,107,242,.95); }
.btn-dark { color: var(--ink); background: rgba(18,18,30,.7); border: 1px solid var(--line); }
.btn-dark:hover { border-color: rgba(110,107,242,.5); transform: translateY(-2px); }
.btn:focus-visible, .nav-cta:focus-visible, .seg button:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }

/* hero stage: the ring mark orbits behind the phone */
.hero-stage { position: relative; overflow: clip; display: grid; place-items: center; min-height: 620px; }
.mark-glow { position: absolute; width: min(520px, 100%); aspect-ratio: 1; background: radial-gradient(50% 50% at 50% 50%, rgba(110,107,242,.42), transparent 70%); filter: blur(14px); }
.mark-wrap { position: absolute; width: min(560px, 100%); aspect-ratio: 1; }
.mark-ring { width: 100%; height: 100%; opacity: .9; }
.mark-orbit { position: absolute; inset: 0; animation: orbitSpin 14s linear infinite; }
.mark-sat {
  position: absolute; top: 7.5%; left: 50%; margin-left: -9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #CFCEFF; box-shadow: 0 0 18px 4px rgba(139,136,255,.8);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* CSS iPhone: titanium rail, Dynamic Island */
.iphone {
  position: relative; z-index: 2; width: var(--pw, 290px);
  padding: 8px; border-radius: 17.5% / 8.1%;
  background: linear-gradient(160deg, #3a3a4e 0%, #15151f 38%, #2b2b3d 100%);
  box-shadow: 0 0 0 1px rgba(160,160,220,.22), 0 0 0 3px #0a0a10, 0 50px 90px -34px rgba(0,0,0,.95), 0 30px 90px -24px rgba(110,107,242,.45);
}
.iphone-screen { position: relative; overflow: hidden; border-radius: 15.5% / 7.2%; background: #000; aspect-ratio: 1170 / 2532; }
.iphone-screen img { width: 100%; height: 100%; display: block; object-fit: cover; }
.iphone-island { position: absolute; z-index: 3; top: 1.35%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.6%; border-radius: 99px; background: #000; }
.iphone::before, .iphone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2a3a; }
.iphone::before { left: -3px; top: 17%; height: 7%; box-shadow: 0 60px 0 #2a2a3a; }
.iphone::after { right: -3px; top: 24%; height: 11%; }

/* ─── marquee ────────────────────────────────────────── */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; background: rgba(10,10,18,.5); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 34px; padding: 17px 0; white-space: nowrap; animation: marquee 36s linear infinite; }
.marquee-track span:not(.dot) { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.marquee-track .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ind); opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── stat cards ─────────────────────────────────────── */
.stats { max-width: var(--w); margin: 0 auto; padding: 64px 24px 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; max-width: 880px; margin: 0 auto; }
.stat-card {
  text-align: center; padding: 34px 20px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .25s, transform .25s;
}
.stat-card:hover { border-color: rgba(110,107,242,.45); transform: translateY(-3px); }
.stat-big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-sub { margin-top: 10px; font-size: 13.5px; color: var(--mut); }

/* ─── section headers ────────────────────────────────── */
.sec-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ind);
  text-align: center;
}
.sec-title {
  margin: 14px auto 0;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  text-align: center; text-wrap: balance; max-width: 20ch;
}

/* ─── features ───────────────────────────────────────── */
.features { max-width: var(--w); margin: 0 auto; padding: 96px 24px 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 48px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px 26px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature:hover { border-color: rgba(110,107,242,.5); transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(110,107,242,.5); }
.chip {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(110,107,242,.8);
  margin-bottom: 18px;
}
.feature h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 9px; }
.feature p { font-size: 14.5px; color: var(--ink-2); }

/* ─── tour ───────────────────────────────────────────── */
.tour { max-width: var(--w); margin: 0 auto; padding: 96px 24px 20px; }
.tour-bar { display: flex; justify-content: center; margin-top: 30px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line); }
.seg button {
  font-family: var(--disp); font-size: 14px; font-weight: 700; letter-spacing: .01em;
  color: var(--mut); background: transparent; border: 0; cursor: pointer;
  padding: 9px 22px; border-radius: 999px; transition: background .2s, color .2s;
}
.seg button[aria-checked="true"] { background: var(--ind-deep); color: #fff; }
.seg button:not([aria-checked="true"]):hover { color: var(--ink); }

.tour-track { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin-top: 52px; align-items: start; }
.tour-item { margin: 0; display: flex; flex-direction: column; align-items: center; }
.tour-item .iphone { width: 100%; max-width: 250px; }
.tour-item:nth-child(2) { margin-top: 28px; }
.tour-item:nth-child(3) { margin-top: 56px; }
.tour-item:nth-child(4) { margin-top: 84px; }
.tour-item figcaption { margin-top: 22px; max-width: 24ch; text-align: center; font-size: 15px; color: var(--ink-2); }
.tour-item figcaption b { display: block; font-family: var(--disp); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tour-dots { display: none; }

/* ─── CTA band ───────────────────────────────────────── */
.cta-band { max-width: var(--w); margin: 72px auto 0; padding: 0 24px 88px; }
.cta-inner {
  position: relative; overflow: hidden;
  text-align: center; padding: 72px 28px 60px;
  border: 1px solid rgba(110,107,242,.35); border-radius: 26px;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(110,107,242,.24), transparent 58%),
    linear-gradient(180deg, #14141F, #0C0C14);
}
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.cta-inner > p { margin: 14px 0 30px; color: var(--ink-2); font-size: 15.5px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn { white-space: nowrap; }

.waitlist { max-width: 420px; margin: 40px auto 0; }
.waitlist-lbl { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--mut); margin-bottom: 10px; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist input {
  flex: 1; min-width: 0;
  font-family: var(--font); font-size: 14.5px; color: var(--ink);
  background: rgba(5,5,10,.6); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; outline: none; transition: border-color .2s;
}
.waitlist input::placeholder { color: var(--mut); }
.waitlist input:focus { border-color: var(--ind); }
.waitlist-msg { margin-top: 10px; font-size: 13px; color: var(--mut); min-height: 1.2em; }
.waitlist-msg[data-state="ok"] { color: var(--live); }
.waitlist-msg[data-state="err"] { color: #FB7185; }

/* ─── footer ─────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: rgba(3,3,7,.85); }
.foot-grid { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 46px 24px 30px; }
.foot-brand p { margin-top: 12px; font-size: 13.5px; color: var(--mut); max-width: 26ch; }
.foot-links h4 { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--mut); margin-bottom: 12px; }
.foot-links a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { max-width: var(--w); margin: 0 auto; padding: 16px 24px 30px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }

/* ─── responsive ─────────────────────────────────────── */
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-top: 72px; }
}
@media (max-width: 959px) {
  .hero-copy { text-align: center; }
  .lede { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-stage { min-height: 520px; }
}
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .stats { padding: 44px 16px 8px; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 18px 8px 16px; border-radius: 14px; }
  .stat-big { font-size: 26px; }
  .stat-sub { margin-top: 8px; font-size: 11.5px; line-height: 1.3; }
  .tour-track {
    position: relative;
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 40px -24px 0; padding: 0 24px 4px; scroll-padding: 0 24px; scrollbar-width: none;
  }
  .tour-track::-webkit-scrollbar { display: none; }
  .tour-item { flex: 0 0 min(260px, 72vw); scroll-snap-align: center; margin-top: 0 !important; }
  .tour-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
  .tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
  .tour-dots span.on { background: var(--lav); width: 20px; border-radius: 4px; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding-top: 40px; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .hero-stage { min-height: 480px; }
  .iphone { --pw: 250px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-track { scroll-behavior: auto; }
}
