:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --card: rgba(255, 255, 255, 0.045);
  --card-b: rgba(255, 255, 255, 0.09);
  --text: #e6edf6;
  --muted: #93a1b5;
  --teal: #2dd4bf;
  --indigo: #6366f1;
  --amber: #f59e0b;
  --red: #f43f5e;
  --radius: 18px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--card-b);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-size: 0.88em; background: rgba(45, 212, 191, 0.1); color: var(--teal); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 500px at 85% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(45, 212, 191, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 11, 20, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.15rem var(--display); }
.nav-links { display: flex; gap: 28px; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 1rem var(--font); color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary {
  color: #04121a;
  background: linear-gradient(135deg, var(--teal), #5eead4 45%, #818cf8);
  box-shadow: 0 10px 30px -8px rgba(45, 212, 191, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(45, 212, 191, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--card-b); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* HERO */
.hero {
  position: relative; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
  display: flex; align-items: center;
  padding: 60px clamp(16px, 6vw, 96px);
  overflow: hidden;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.55) 45%, rgba(7, 11, 20, 0) 70%),
              linear-gradient(0deg, var(--bg) 0%, transparent 20%);
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; color: var(--teal);
  background: rgba(45, 212, 191, 0.08); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.grad { background: linear-gradient(120deg, var(--teal), #a5b4fc 60%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #c3cedd; max-width: 580px; }
.lead strong { color: var(--text); }
.micro { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.hero-legend {
  position: absolute; z-index: 2; right: clamp(16px, 4vw, 48px); bottom: 32px;
  display: flex; gap: 18px; font-size: 0.8rem; color: var(--muted);
  padding: 10px 16px; border-radius: 12px; background: rgba(7, 11, 20, 0.6); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--card-b);
}
.hero-legend span { display: flex; align-items: center; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-ok { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.sw-warn { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.sw-bad { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* FORMS */
.waitlist { position: relative; display: flex; gap: 10px; margin-top: 28px; max-width: 520px; flex-wrap: wrap; }
.waitlist input, .waitlist select {
  flex: 1 1 220px; min-width: 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--card-b); background: rgba(255, 255, 255, 0.05); color: var(--text);
  font: 1rem var(--font);
}
.waitlist select option { background: var(--bg-2); }
.waitlist input::placeholder { color: #6f7d92; }
.form-msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font-size: 0.9rem; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: #fda4af; }

/* FACTS */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 0 clamp(16px, 6vw, 96px); border-radius: var(--radius); overflow: hidden;
  background: var(--card-b); box-shadow: var(--shadow);
}
.fact { display: flex; gap: 16px; align-items: center; padding: 26px 28px; background: #0b1220; }
.fact b { font: 700 2.2rem var(--display); background: linear-gradient(135deg, #fda4af, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { color: var(--muted); font-size: 0.92rem; }

/* SECTIONS */
.section { padding: 110px clamp(16px, 6vw, 96px) 0; max-width: 1240px; margin: 0 auto; }
.section.narrow { max-width: 860px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--teal); font-weight: 600; margin-bottom: 10px; }

/* CARDS + 3D TILT */
.card {
  position: relative; border-radius: var(--radius); padding: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.tilt { transform-style: preserve-3d; transition: transform 0.25s ease-out, box-shadow 0.25s; will-change: transform; }
.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 212, 191, 0.14), transparent 45%);
}
.tilt:hover::before { opacity: 1; }
.tilt:hover { box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(45, 212, 191, 0.3); }
.tilt > * { transform: translateZ(28px); }
.card p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.step-num { font: 700 3rem var(--display); background: linear-gradient(135deg, var(--teal), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

/* CALCULATOR */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 44px; }
.field { margin: 26px 0 0; border: 0; padding: 0; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 0.95rem; }
.field-top output { font: 700 1.2rem var(--display); color: var(--teal); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--teal) var(--fill, 10%), rgba(255, 255, 255, 0.1) var(--fill, 10%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.35), 0 4px 10px rgba(0, 0, 0, 0.4); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.35); }
.seg legend { font-size: 0.95rem; margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg legend { width: 100%; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 18px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--card-b); font-size: 0.92rem; transition: 0.2s; }
.seg input:checked + span { background: rgba(45, 212, 191, 0.14); box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.calc-right {
  border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; justify-content: center;
  background: radial-gradient(500px 300px at 80% 0%, rgba(244, 63, 94, 0.18), transparent 60%), rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.2);
}
.total-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fda4af; }
.total-num { font: 700 clamp(2.6rem, 5vw, 3.8rem) var(--display); line-height: 1.1; margin-top: 6px; }
.total-num small { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.total-year { color: var(--muted); }
.total-year span { color: var(--text); font-weight: 600; }
.bar-row { display: grid; grid-template-columns: 44px 1fr 90px; align-items: center; gap: 12px; font-size: 0.9rem; margin-bottom: 10px; }
.bar-row b { text-align: right; font-weight: 600; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--red)); transition: width 0.5s cubic-bezier(.2, .8, .2, 1); }

/* FEATURES */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(99, 102, 241, 0.2)); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.3); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* COMPARE */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cmp ul { list-style: none; padding: 0; margin: 0; }
.cmp li { padding: 12px 0 12px 32px; position: relative; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cmp li::before { position: absolute; left: 0; top: 11px; font-weight: 700; }
.cmp-bad { box-shadow: var(--shadow), inset 0 0 0 1px rgba(244, 63, 94, 0.25); }
.cmp-bad h3 { color: #fda4af; }
.cmp-bad li::before { content: "\2715"; color: var(--red); }
.cmp-good { box-shadow: var(--shadow), inset 0 0 0 1px rgba(45, 212, 191, 0.3); }
.cmp-good h3 { color: var(--teal); }
.cmp-good li::before { content: "\2713"; color: var(--teal); }

/* SECURITY */
.security { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 44px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding: 14px 16px 14px 48px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: #04121a; background: var(--teal); }

/* PRICING */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; perspective: 1200px; }
.plan { display: flex; flex-direction: column; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; color: var(--muted); position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price { font: 700 2.8rem var(--display); margin: 4px 0 8px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-hot { background: linear-gradient(160deg, rgba(45, 212, 191, 0.16), rgba(99, 102, 241, 0.1)); box-shadow: 0 40px 80px -30px rgba(45, 212, 191, 0.35), inset 0 0 0 1px rgba(45, 212, 191, 0.45); }
.badge { position: absolute; top: 22px; right: 22px; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; color: #04121a; background: var(--teal); }

/* FAQ */
.faq { padding: 0; margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 16px; font-size: 1.5rem; color: var(--teal); transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 24px 20px; margin: 0; }

/* JOIN */
.join { text-align: center; padding: 64px clamp(20px, 5vw, 64px); background: radial-gradient(600px 300px at 50% 0%, rgba(45, 212, 191, 0.18), transparent 70%), linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); }
.join p { max-width: 560px; margin-left: auto; margin-right: auto; }
.waitlist-full { margin: 28px auto 0; max-width: 640px; }
.waitlist-full button { flex: 1 1 100%; }

/* FOOTER */
.footer { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 80px 16px 40px; font-size: 0.82rem; color: var(--muted); }
.footer .muted { max-width: 760px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .steps, .grid, .pricing { grid-template-columns: 1fr; }
  .calc, .security, .compare { grid-template-columns: 1fr; }
  .calc { padding: 28px; gap: 32px; }
  .facts { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 0; padding-bottom: 40px; }
  #scene { position: relative; inset: auto; height: 340px; margin: 0 calc(-1 * clamp(16px, 6vw, 96px)); width: calc(100% + 2 * clamp(16px, 6vw, 96px)); }
  .hero::after { display: none; }
  .hero-inner { order: 2; margin-top: 8px; }
  .hero-legend { position: static; order: 1; margin: -18px auto 14px; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 560px) {
  .hero-legend { gap: 12px; font-size: 0.72rem; }
  #scene { height: 300px; }
  .fact { padding: 20px; }
  .section { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tilt, .reveal, .btn { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .dot { animation: none; }
}
