:root {
  --black: #050507;
  --ink: #0b0b10;
  --white: #f5f5f4;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #0be09a;
  --violet: #8b5cf6;
  --card: rgba(255, 255, 255, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Starfield + magnetic lattice canvases sit behind everything */
#stars, #lattice {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#stars { z-index: 0; }
#lattice { z-index: 1; opacity: 0.55; }

main, header.nav, footer { position: relative; z-index: 2; }

/* Custom cursor glow (desktop only, JS-gated) */
#cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  display: none;
}
body.has-cursor #cursor-glow { display: block; }

/* ── Nav ─────────────────────────────────────────────── */
header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 6vw, 72px);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 7, 0.6);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  color: #000;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* ── Buttons (magnetic via JS) ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--white);
  background: var(--card);
  transition: transform 0.15s ease-out, background 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn-primary {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { border-color: var(--white); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: clamp(70px, 12vh, 140px) 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent);
  border: 1px solid rgba(11, 224, 154, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
h1 {
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
}
h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--violet), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.6;
  margin: 24px auto 36px;
  max-width: 620px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* Orbiting phone visual */
.orbit-wrap {
  position: relative;
  height: 420px;
  margin: 30px auto 0;
  max-width: 700px;
}
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 210px;
  height: 400px;
  transform: translate(-50%, -50%) rotate(-4deg);
  border-radius: 34px;
  border: 1px solid var(--line);
  background: #0d0d12;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.25);
  z-index: 2;
}
.phone-screen { padding: 26px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.mock-bar { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.12); }
.mock-bar.short { width: 55%; }
.mock-video {
  flex: 1;
  border-radius: 16px;
  background: linear-gradient(160deg, #132018, #1c1033 60%, #0b0b10);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  gap: 8px;
}
.mock-chip {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(11,224,154,.4);
  padding: 4px 10px;
  border-radius: 999px;
}
.mock-quiz {
  background: rgba(255,255,255,.9);
  color: #000;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}
.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit.o1 { width: 340px; height: 340px; animation: spin 24s linear infinite; }
.orbit.o2 { width: 480px; height: 480px; animation: spin 40s linear infinite reverse; }
.orbit .sat {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.o1 .sat { background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.o2 .sat { background: var(--violet); box-shadow: 0 0 18px var(--violet); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ── Sections ────────────────────────────────────────── */
section.block { padding: clamp(60px, 9vh, 110px) clamp(20px, 6vw, 72px); max-width: 1120px; margin: 0 auto; }
h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.15s ease-out, border-color 0.25s;
  will-change: transform;
}
.card:hover { border-color: rgba(11, 224, 154, 0.5); }
.card .glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 14px;
}
.step h3 { margin: 12px 0 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ── Legal pages ─────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 60px 22px 100px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 34px; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal p, .legal li { color: #d4d4d8; font-size: 15.5px; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal .toc {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 26px 0;
  background: var(--card);
}
.legal .toc a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 0; }
.legal .toc a:hover { color: var(--white); }
table.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
table.data-table th, table.data-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: #d4d4d8;
}
table.data-table th { background: rgba(255,255,255,0.05); color: var(--white); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 44px clamp(20px, 6vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
footer .flinks { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ── Reveal on scroll ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .orbit.o1, .orbit.o2 { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .orbit-wrap { height: 340px; }
  .orbit.o2 { width: 330px; height: 330px; }
  .orbit.o1 { width: 250px; height: 250px; }
}
