:root {
  --bg: #07060d;
  --bg-2: #0e0c1a;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ecebf5;
  --muted: #9a97b3;
  --pink: #ff2e93;
  --violet: #8a5cff;
  --cyan: #2ef2ff;
  --ok: #3dffa8;
  --grad: linear-gradient(100deg, var(--pink), var(--violet) 50%, var(--cyan));
  --radius: 18px;
  --max: 1180px;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* subtle film grain / scanlines */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  z-index: 100;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  color: var(--cyan);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  background-size: 200% 100%;
  color: #0a0812;
  font: 600 1rem var(--sans);
  cursor: pointer;
  transition: background-position .5s, transform .2s, box-shadow .3s;
  box-shadow: 0 0 0 0 rgba(255, 46, 147, 0);
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 10px 40px -10px rgba(255, 46, 147, .6); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: 0 10px 40px -14px rgba(46, 242, 255, .5); }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }

/* ---------- Ticker ---------- */
.ticker {
  background: #000;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font: 500 .72rem var(--mono);
  letter-spacing: .1em;
  color: var(--muted);
}
.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: .5rem 0;
  animation: ticker 40s linear infinite;
}
.ticker__track span:nth-child(5n+1) { color: var(--ok); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(7, 6, 13, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__mark { width: 30px; height: 30px; color: var(--pink); }

.nav__links { display: flex; align-items: center; gap: 2rem; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--text); transition: transform .3s; }
.nav__toggle span:first-child { top: 13px; }
.nav__toggle span:last-child { top: 21px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  padding: 6rem clamp(1.2rem, 4vw, 3rem) 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(138, 92, 255, .28), transparent 60%);
  z-index: -1;
}
#waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

.hero__inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 700; letter-spacing: -0.045em; margin-bottom: .35em; }
.glow {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 46, 147, .35));
}
.lede { max-width: 38rem; font-size: 1.2rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.2rem 0 3.5rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 720px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: rgba(7, 6, 13, .85); padding: 1.1rem 1.3rem; }
.stats dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stats dd { margin: .2rem 0 0; font-size: 1.6rem; font-weight: 700; }

.hero__readout {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3rem);
  bottom: 2rem;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-align: right;
  line-height: 1.9;
}
.hero__readout span { color: var(--text); }
.hero__readout .ok { color: var(--ok); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 3.5rem; margin-left: auto; margin-right: auto; text-align: center; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(46, 242, 255, .35); }
.card p { color: var(--muted); }
.card--feature { border-color: rgba(255, 46, 147, .45); background: linear-gradient(180deg, rgba(255, 46, 147, .08), var(--panel)); }
.card__icon { width: 52px; height: 52px; padding: 10px; border-radius: 14px; background: rgba(46, 242, 255, .08); color: var(--cyan); margin-bottom: 1.5rem; }
.card--feature .card__icon { background: rgba(255, 46, 147, .1); color: var(--pink); }

.tag {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3em .8em;
  border-radius: 999px;
  background: var(--pink);
  color: #0a0812;
  font-weight: 600;
}

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: .82rem; }
.ticks li { padding: .45rem 0; border-top: 1px dashed var(--line); }
.ticks li::before { content: "→ "; color: var(--cyan); }

/* ---------- Coverage ---------- */
.coverage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.coverage p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.coverage__form { display: flex; gap: .6rem; margin-top: 2rem; max-width: 460px; }
.coverage__form input {
  flex: 1;
  min-width: 0;
  padding: .85em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .4);
  color: var(--text);
  font: 500 1rem var(--mono);
  text-transform: uppercase;
  outline: none;
  transition: border-color .2s;
}
.coverage__form input:focus { border-color: var(--cyan); }
.coverage__result { margin-top: 1.4rem; min-height: 3.5em; font-size: .9rem; color: var(--muted); }
.coverage__result strong { color: var(--ok); font-weight: 600; }
.coverage__result .warn { color: #ffc23d; }
.coverage__result a { color: var(--cyan); border-bottom: 1px dashed currentColor; }

.radar {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(46, 242, 255, .3);
  background:
    radial-gradient(circle, transparent 0 24.5%, rgba(46, 242, 255, .18) 25%, transparent 25.5% 49.5%, rgba(46, 242, 255, .18) 50%, transparent 50.5% 74.5%, rgba(46, 242, 255, .18) 75%, transparent 75.5%),
    linear-gradient(rgba(46, 242, 255, .12), rgba(46, 242, 255, .12)) center / 1px 100% no-repeat,
    linear-gradient(rgba(46, 242, 255, .12), rgba(46, 242, 255, .12)) center / 100% 1px no-repeat,
    radial-gradient(circle, rgba(46, 242, 255, .06), transparent 70%);
  overflow: hidden;
}
.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(46, 242, 255, .45), transparent 22%);
  animation: sweep 4s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: blip 4s var(--d, 0s) infinite;
  opacity: 0;
}
@keyframes blip { 0%, 100% { opacity: 0; transform: scale(.5); } 10% { opacity: 1; transform: scale(1.3); } 60% { opacity: .6; transform: scale(1); } }

/* ---------- Plans ---------- */
.toggle { display: inline-flex; padding: 4px; margin-top: 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.toggle__btn { border: 0; background: none; color: var(--muted); font: 500 .9rem var(--sans); padding: .55em 1.2em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.toggle__btn small { color: var(--pink); font-family: var(--mono); font-size: .72rem; }
.toggle__btn.is-active { background: var(--text); color: var(--bg); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.plan--feature {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
  transform: scale(1.03);
  box-shadow: 0 30px 80px -30px rgba(138, 92, 255, .5);
}
.plan h3 { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.plan__speed { font-size: 2.2rem; font-weight: 600; margin: 0; letter-spacing: -0.03em; }
.plan__price { font-size: 3rem; font-weight: 700; margin: .5rem 0 1.5rem; letter-spacing: -0.04em; }
.plan__price .cur { font-size: 1.4rem; vertical-align: super; color: var(--muted); margin-right: 2px; }
.plan__price .per { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.plan li { padding: .55rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.plan li::before { content: "✓"; color: var(--ok); margin-right: .7em; }
.plan .btn { justify-content: center; }

/* ---------- Labs ---------- */
.labs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.lab {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .3s, background .3s;
}
.lab:hover { border-color: rgba(138, 92, 255, .5); background: rgba(138, 92, 255, .06); }
.lab__meta { font-size: .72rem; letter-spacing: .1em; color: var(--violet); text-transform: uppercase; }
.lab p:not(.lab__meta) { color: var(--muted); }
.lab__chip { display: inline-block; font-size: .7rem; padding: .3em .8em; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.spectrum { margin-top: 4rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, .35); }
.spectrum__bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.spectrum__bars span {
  flex: 1;
  background: var(--grad);
  background-size: 100% 120px;
  background-position: bottom;
  border-radius: 2px 2px 0 0;
  transition: height .12s linear;
  opacity: .85;
}
.spectrum__axis { display: flex; justify-content: space-between; margin-top: .7rem; font-size: .7rem; color: var(--muted); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.story p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.story strong { color: var(--text); }
.story__word { display: flex; flex-direction: column; font-size: clamp(4rem, 11vw, 9rem); font-weight: 700; line-height: .9; letter-spacing: -0.06em; }
.story__word span:nth-child(1) { color: var(--text); }
.story__word span:nth-child(2) { color: var(--muted); font-size: .4em; padding-left: .2em; }
.story__word span:nth-child(3) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.contact__email a { color: var(--cyan); font-size: 1.1rem; border-bottom: 1px dashed currentColor; }
.contact__form { display: grid; gap: 1rem; }
.contact__form label { display: grid; gap: .4rem; font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__form input, .contact__form select, .contact__form textarea {
  padding: .85em 1em;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .4);
  color: var(--text);
  font: 400 1rem var(--sans);
  text-transform: none;
  letter-spacing: 0;
  outline: none;
  resize: vertical;
}
.contact__form select option { background: var(--bg-2); }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { border-color: var(--cyan); }
.contact__form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { padding: 3rem clamp(1.2rem, 4vw, 3rem) 2rem; border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.footer__tag { color: var(--muted); font-size: .8rem; margin: 0; flex: 1; }
.footer__links { display: flex; gap: 1.5rem; font-size: .9rem; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { max-width: var(--max); margin: 2rem auto 0; font-size: .72rem; color: var(--muted); opacity: .7; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan--feature { transform: none; }
  .coverage, .story, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .labs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__readout { display: none; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem clamp(1.2rem, 4vw, 3rem) 2rem;
    background: rgba(7, 6, 13, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .footer__tag { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
