:root {
  --bg: #150d20;
  --bg-2: #1b2140;
  --card: #1b152d;
  --card-2: #221a38;
  --ink: #f6f6f9;
  --muted: #98979d;
  --muted-2: #6b6a78;
  --accent: #fd3777;
  --accent-2: #f706cf;
  --accent-ink: #fff;
  --ok: #3ecf8e;
  --bad: #ff6b6b;
  --line: rgba(74, 79, 109, 0.5);
  --line-soft: rgba(74, 79, 109, 0.28);
  --field: #0e1120;
  --panel: rgba(17, 20, 36, 0.5);
  --max: 1120px;
  --radius: 16px;
  --tok-comment: #6b7394;
  --tok-string: #9ece6a;
  --tok-number: #ff9e64;
  --tok-keyword: #7aa2f7;
  --tok-literal: #bb9af7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(247, 6, 207, 0.10), transparent 60%),
    radial-gradient(1100px 700px at 10% 0%, rgba(27, 33, 64, 0.9), transparent 55%),
    var(--bg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  border: 0; border-radius: 12px;
  padding: 14px 22px;
  font-size: 16px; font-weight: 650;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(253, 55, 119, 0.28);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(253, 55, 119, 0.36); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; background-image: none;
  border: 1px solid var(--line);
  box-shadow: none; color: var(--ink); font-weight: 600;
}
.btn.ghost:hover { border-color: var(--accent); filter: none; }
.btn.sm { padding: 10px 16px; font-size: 14px; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(21, 13, 32, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; text-decoration: none; }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 8px;
  object-fit: cover; display: block;
  box-shadow: 0 6px 16px rgba(247, 6, 207, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.link { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a.link:hover { color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-links a.link { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .4px;
  color: var(--accent-2); text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px;
  background: var(--panel);
}
h1.headline {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05;
  letter-spacing: -1px; margin: 0 0 18px; font-weight: 800;
}
h1.headline .grad {
  background-image: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.hero .ink { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted-2); margin-top: 16px; }
.cta-note b { color: var(--muted); font-weight: 600; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 24px; }
}

/* ---------- gate mock (hero visual) ---------- */
.gate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(0.4deg);
}
.gate-card .lock-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.gate-card .lock-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.gate-card h3 { margin: 0 0 4px; font-size: 19px; }
.gate-card .dom { color: var(--accent-2); font-weight: 700; }
.gate-card .kicker { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 8px; }
.gate-card .prompt {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: 16px; line-height: 1.45;
}
.gate-card .concept {
  margin-top: 10px; border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 10px 14px; background: var(--panel); font-size: 13.5px; color: var(--muted);
}
.gate-card .concept b { color: var(--accent-2); font-weight: 650; text-transform: uppercase; letter-spacing: .5px; font-size: 11.5px; }
.gate-card .answer-row { display: flex; gap: 10px; margin-top: 14px; }
.gate-card .answer-row input {
  flex: 1; background: var(--field); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px;
}
.gate-card .answer-row .go {
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: 0; border-radius: 10px; padding: 0 20px; font-weight: 650; font-size: 15px;
}
.gate-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted-2); }
.gate-card .session-pill { color: var(--ok); font-variant-numeric: tabular-nums; }

/* feedback shown after pressing Unlock */
.gate-card .feedback {
  margin-top: 12px; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; line-height: 1.45; display: none; align-items: flex-start; gap: 10px;
}
.gate-card .feedback.show { display: flex; }
.gate-card .feedback .mark { font-size: 17px; line-height: 1.3; flex: none; }
.gate-card .feedback.ok {
  background: rgba(62, 207, 142, 0.12); border: 1px solid rgba(62, 207, 142, 0.4); color: var(--ok);
}
.gate-card .feedback.ok b { color: #b6f4d6; }
.gate-card .feedback.bad {
  background: rgba(255, 107, 107, 0.10); border: 1px solid rgba(255, 107, 107, 0.32); color: var(--bad);
}
/* solved-state polish */
.gate-card.solved { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(62, 207, 142, 0.45); }
.gate-card.solved .answer-row input { border-color: rgba(62, 207, 142, 0.5); }
@keyframes pop-in { 0% { transform: scale(0.96); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.gate-card .feedback.show { animation: pop-in .18s ease-out; }

/* ---------- generic section ---------- */
section { padding: 64px 0; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.6px; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- mechanism band ---------- */
.mechanism { text-align: center; }
.mechanism .big {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.5px;
  max-width: 18ch; margin: 0 auto; line-height: 1.15;
}
.mechanism .big .grad { background-image: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mechanism .sub { color: var(--muted); max-width: 46ch; margin: 22px auto 0; font-size: 18px; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: rgba(253, 55, 119, 0.12); border: 1px solid rgba(253, 55, 119, 0.25);
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: var(--card-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.step .num {
  counter-increment: step; content: counter(step);
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; margin-bottom: 14px;
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin-inline: auto; }
.compare .col { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 26px; }
.compare .col.them { background: rgba(14, 17, 32, 0.5); }
.compare .col.us { background: var(--card); border-color: rgba(253, 55, 119, 0.4); box-shadow: 0 18px 50px rgba(247, 6, 207, 0.10); }
.compare h3 { margin: 0 0 18px; font-size: 18px; }
.compare h3 .tag { font-size: 12px; font-weight: 600; color: var(--muted-2); display: block; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 9px 0 9px 28px; position: relative; color: var(--muted); font-size: 15.5px; border-top: 1px solid var(--line-soft); }
.compare li:first-child { border-top: 0; }
.compare .them li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }
.compare .us li { color: var(--ink); }
.compare .us li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- audience ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; background: var(--card); }
.aud .ico { font-size: 26px; margin-bottom: 10px; }
.aud h3 { margin: 0 0 6px; font-size: 17px; }
.aud p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
details.q {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: var(--card);
}
details.q[open] { border-color: var(--line); }
details.q summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 650; font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary .chev { color: var(--accent-2); transition: transform .2s ease; flex: none; }
details.q[open] summary .chev { transform: rotate(45deg); }
details.q p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }

/* ---------- final CTA ---------- */
.final {
  text-align: center; border: 1px solid var(--line); border-radius: 24px;
  padding: 64px 32px;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(247, 6, 207, 0.16), transparent 70%),
    var(--card);
}
.final h2 { margin-bottom: 12px; }
.final p { color: var(--muted); font-size: 18px; max-width: 36ch; margin: 0 auto 28px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line-soft); padding: 36px 0; margin-top: 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted-2); font-size: 14px; }
.foot-inner a { color: var(--muted); text-decoration: none; }
.foot-inner a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 22px; }

/* code tokens for the mock */
.tok-comment { color: var(--tok-comment); font-style: italic; }
.tok-string  { color: var(--tok-string); }
.tok-number  { color: var(--tok-number); }
.tok-keyword { color: var(--tok-keyword); }
