/* ===================== Design tokens ===================== */
:root {
  --bg:        #0a0e1a;
  --bg-alt:    #0e1424;
  --surface:   #121a2e;
  --surface-2: #18223a;
  --border:    #21304f;
  --text:      #e8edf7;
  --muted:     #9fb0cc;
  --faint:     #6b7c9c;
  --accent:    #ffd23f;   /* lightning gold */
  --accent-2:  #3b82f6;   /* electric blue */
  --accent-3:  #22d3ee;   /* cyan */
  --ok:        #34d399;
  --no:        #f87171;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ===================== Reset ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .8em 1.4em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent {
  background: var(--accent); color: #1a1400;
  box-shadow: 0 8px 24px -8px rgba(255, 210, 63, .5);
}
.btn--accent:hover { box-shadow: 0 12px 30px -8px rgba(255, 210, 63, .65); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent-3); color: #fff; }
.btn--lg { font-size: 1.05rem; padding: 1em 1.8em; }

/* ===================== Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 26, .9); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand__bolt { color: var(--accent); font-size: 1.4rem; filter: drop-shadow(0 0 10px rgba(255,210,63,.5)); }
.brand__text { font-weight: 700; font-size: 1.15rem; letter-spacing: .5px; line-height: 1; }
.brand__sub { display: block; font-size: .62rem; font-weight: 500; letter-spacing: 3px; color: var(--faint); text-transform: uppercase; margin-top: 3px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 9vw, 110px); }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .35;
}
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.28), transparent 60%);
  filter: blur(40px); pointer-events: none;
}
.hero__inner { position: relative; text-align: center; max-width: 880px; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent-3);
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 28px;
  background: rgba(34, 211, 238, .06);
}
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -1.5px;
}
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-3) 60%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin: 26px auto 0; max-width: 620px; font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: var(--muted); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 64px; max-width: 760px; margin-inline: auto; text-align: left;
}
.hero__stats > div {
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.hero__stats dt { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: #fff; }
.hero__stats dd { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ===================== Sections ===================== */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.kicker { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -1px; line-height: 1.1; }
.section__intro { color: var(--muted); font-size: 1.12rem; max-width: 680px; margin-top: 18px; }

.lede-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.lede { font-size: 1.15rem; color: var(--muted); }
.lede strong { color: var(--text); }
.protocol__visual { margin-top: 28px; font-size: 1.05rem; color: var(--muted); }
.protocol__visual a { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.protocol__visual a:hover { color: var(--accent-3); border-color: var(--accent-3); }
.footnote { margin-top: 36px; color: var(--faint); font-size: .9rem; }
.footnote a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== Cards (problem) ===================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ===================== Steps (solution) ===================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.step {
  position: relative; padding: 28px 24px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.step::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 3px; height: 100%; background: linear-gradient(var(--accent), var(--accent-3)); }
.step__num { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; }
.step h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .93rem; }
.step code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .82em; color: var(--accent-3); background: rgba(34,211,238,.08); padding: 1px 5px; border-radius: 5px; }

.callout {
  margin-top: 36px; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, rgba(59,130,246,.14), transparent 55%), var(--surface);
}
.callout p { font-size: 1.2rem; color: var(--muted); }
.callout strong { color: var(--text); }
.hl { color: var(--accent); font-weight: 600; }

/* ===================== Features ===================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform .25s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--accent-3); }
.feature__icon {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 12px; background: linear-gradient(145deg, rgba(255,210,63,.16), rgba(59,130,246,.16));
  border: 1px solid var(--border); margin-bottom: 16px;
}
.feature h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ===================== Why / compare table ===================== */
.why { margin-top: 56px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.why h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 12px; }
.why p { color: var(--muted); max-width: 760px; }
.why strong { color: var(--text); }
.compare { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-head); color: var(--faint); font-weight: 600; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; }
.compare td.ok { color: var(--ok); font-weight: 600; }
.compare td.no { color: var(--no); font-weight: 600; }

/* ===================== Timeline ===================== */
.timeline { position: relative; margin-top: 44px; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding: 0 0 36px 52px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: 7px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); }
.timeline__item.done .timeline__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(255,210,63,.6); }
.timeline__item h3 { font-family: var(--font-head); font-size: 1.25rem; }
.timeline__date { color: var(--accent-3); font-size: .85rem; font-weight: 600; margin: 2px 0 6px; }
.timeline__item p:last-child { color: var(--muted); font-size: .95rem; }

/* ===================== About ===================== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.pillars { margin-top: 24px; display: grid; gap: 12px; }
.pillars li { padding-left: 26px; position: relative; color: var(--muted); }
.pillars li::before { content: "⚡"; position: absolute; left: 0; color: var(--accent); }
.pillars strong { color: var(--text); }
.paper-card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: sticky; top: 96px;
}
.paper-card__tag { font-family: var(--font-head); font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.paper-card h3 { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.25; }
.paper-card__meta { color: var(--faint); font-size: .9rem; margin: 10px 0 22px; }
.paper-card__contact { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.paper-card__contact a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== CTA ===================== */
.cta { padding: clamp(70px, 11vw, 130px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(255,210,63,.12), transparent 60%);
}
.cta__inner { position: relative; }
.cta h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -1px; }
.cta p { color: var(--muted); font-size: 1.15rem; margin: 16px auto 32px; max-width: 520px; }

/* ===================== Footer ===================== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand { max-width: 280px; }
.footer__brand .brand__bolt { font-size: 1.4rem; }
.footer__brand .brand__text { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--font-head); font-weight: 700; }
.footer__brand p { color: var(--faint); font-size: .9rem; margin-top: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; align-content: start; }
.footer__links a { color: var(--muted); font-size: .92rem; }
.footer__links a:hover { color: var(--text); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: .82rem; }

/* ===================== Contact form ===================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: .5px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-3); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
/* Honeypot — visually hidden but present for bots. */
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .btn { justify-self: start; }
.contact__form .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.contact__status { font-size: .92rem; color: var(--muted); min-height: 1.2em; margin: 0; }
.contact__status.is-error { color: #fca5a5; }
.contact__status.is-ok { color: var(--accent-3); }

/* ===================== Reveal animation ===================== */
.section .kicker, .section__title, .section__intro,
.cards > *, .steps > *, .features > *, .timeline__item, .callout, .why, .about > *, .lede {
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .section .kicker, .section__title, .section__intro,
  .cards > *, .steps > *, .features > *, .timeline__item, .callout, .why, .about > *, .lede { opacity: 1; transform: none; }
}

/* stagger */
.cards > *:nth-child(2), .steps > *:nth-child(2), .features > *:nth-child(2) { transition-delay: .08s; }
.cards > *:nth-child(3), .steps > *:nth-child(3), .features > *:nth-child(3) { transition-delay: .16s; }
.cards > *:nth-child(4), .steps > *:nth-child(4), .features > *:nth-child(4) { transition-delay: .24s; }
.features > *:nth-child(5) { transition-delay: .16s; }
.features > *:nth-child(6) { transition-delay: .24s; }

/* ===================== Responsive ===================== */
@media (max-width: 920px) {
  .cards, .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .lede-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .paper-card { position: static; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav.open .nav__links a { padding: 14px 24px; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__stats { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cards, .steps, .features { grid-template-columns: 1fr; }
  .compare { font-size: .85rem; }
  .compare th, .compare td { padding: 10px 8px; }
}
