:root {
  --bg: #000;
  --surface: #0d0d0d;
  --surface-2: #161616;
  --line: #262626;
  --text: #fff;
  --muted: #a3a3a3;
  --accent: #00ffff;
  --accent-ink: #001a1a;
  --radius: 18px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: 12px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--surface-2); }
.actions { display: flex; gap: 10px; }
.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 12px; width: 18px; height: 2px;
  background: var(--text); content: ""; border-radius: 2px;
}
.burger span { top: 20px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7dffff; }
.btn-ghost { border-color: #3a3a3a; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(0,255,255,.16), transparent 62%);
  pointer-events: none;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; opacity: .5; pointer-events: none; }
.hero-wave svg { width: 200%; height: 100%; animation: drift 18s linear infinite; }
.hero-wave path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.hero-wave path:nth-child(2) { opacity: .5; }
.hero-wave path:nth-child(3) { opacity: .25; }
@keyframes drift { to { transform: translateX(-50%); } }

.hero .container { position: relative; }
.eyebrow {
  display: inline-block; padding: 6px 14px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--accent); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; background: var(--surface);
}
h1 {
  font-size: clamp(38px, 6.2vw, 74px); line-height: 1.04;
  letter-spacing: -.035em; font-weight: 800; max-width: 15ch;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 24px; max-width: 62ch; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; max-width: 760px; }
.stat { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-size: 32px; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.028em; font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(0,255,255,.45); transform: translateY(-3px); }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card .tag {
  display: inline-block; margin-bottom: 14px; padding: 3px 11px;
  border-radius: 999px; background: rgba(0,255,255,.1); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.prose p { color: #d4d4d4; margin-top: 18px; }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.panel { padding: 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { margin-bottom: 16px; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); color: #d4d4d4; font-size: 16px; }
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 15px; }

.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative;
  padding: 24px 24px 24px 84px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s); position: absolute; left: 24px; top: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800;
}
.steps h3 { font-size: 18px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; color: var(--accent); }

.note {
  margin-top: 24px; padding: 18px 22px; border-radius: 14px;
  border: 1px solid rgba(0,255,255,.3); background: rgba(0,255,255,.06);
  color: #d4d4d4; font-size: 15.5px;
}
.note.warn { border-color: rgba(255,200,0,.4); background: rgba(255,200,0,.06); }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px;
  font-weight: 600; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 14px; font-size: 28px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

.cta { padding: 90px 0; text-align: center; }
.cta-box {
  padding: 64px 28px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(0,255,255,.18), var(--surface) 65%);
}
.cta h2 { max-width: 22ch; margin: 0 auto; }
.cta p { margin: 16px auto 30px; max-width: 54ch; color: var(--muted); }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--bg); color: var(--text); border: 1px solid #3a3a3a;
  font: inherit; font-size: 16px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result { padding: 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.result .big { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; line-height: 1.15; }
.result small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 40px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-grid img { height: 34px; margin-bottom: 16px; }
.footer-grid p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid li a { display: block; padding: 5px 0; color: #d4d4d4; font-size: 15.5px; }
.footer-grid li a:hover { color: var(--accent); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav, .actions { display: none; }
  .site-header.open .container { flex-wrap: wrap; height: auto; padding: 14px 0 20px; }
  .site-header.open .nav { display: flex; flex-direction: column; width: 100%; order: 3; margin: 8px 0 0; }
  .site-header.open .actions { display: flex; width: 100%; order: 4; }
  .site-header.open .actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .stats, .calc-row { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .steps li { padding: 20px 20px 20px 72px; }
  .steps li::before { left: 18px; top: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
