:root {
  --bg: #0c0a09;
  --bg-elev: #171310;
  --card: #1a1512;
  --line: rgba(255, 106, 0, 0.14);
  --line-strong: rgba(255, 106, 0, 0.4);
  --accent: #ff6a00;
  --accent-soft: #ffb347;
  --text: #ece5df;
  --muted: #a3968c;
  --grad: linear-gradient(120deg, #ff6a00, #ffb347);
  --radius: 14px;
  --shadow-hover: 0 10px 34px rgba(255, 106, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #140b04;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 106, 0, 0.5);
}

.brand-tld {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad);
  color: #140b04;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 106, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 106, 0, 0.35);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 106, 0, 0.08);
  box-shadow: none;
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 128px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 340px at 72% 12%, rgba(255, 106, 0, 0.16), transparent 70%),
    radial-gradient(500px 300px at 12% 80%, rgba(255, 179, 71, 0.07), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 620px;
  margin-top: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 52px;
  max-width: 720px;
}

.section-head .lede {
  margin-top: 16px;
  font-size: 1.02rem;
}

/* ---------- Stages ---------- */

.stages {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stage-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: stage;
}

.stage {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.stage:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.stage-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  margin-bottom: 18px;
}

.stage h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.stage p {
  color: var(--muted);
  font-size: 0.95rem;
}

.stage-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Playbook ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.pill {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #140b04;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tip {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.tip:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.tip.hide {
  display: none;
}

.tip-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.tip h3 {
  font-size: 1.08rem;
  margin: 10px 0 8px;
}

.tip p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.tip-ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.rating {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rating-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.dots {
  display: flex;
  gap: 4px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.dots i.on {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(255, 106, 0, 0.45);
}

/* ---------- Case studies ---------- */

.cases {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.case {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s, border-color 0.18s;
}

.case:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.case h3 {
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.case-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: start;
}

.case-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 6px;
}

.case-after {
  color: var(--accent);
}

.case-flow p {
  color: var(--muted);
  font-size: 0.9rem;
}

.case-arrow {
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1.4;
}

.case-lesson {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Middleman / thin layer ---------- */

.layer-head {
  max-width: 720px;
  margin: 56px 0 24px;
}

.layer-head h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.layer-head p {
  color: var(--muted);
  margin-top: 8px;
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.layer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.18s, border-color 0.18s;
}

.layer:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.layer h3 {
  font-size: 1rem;
}

.layer p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.layer-cut {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* ---------- Meta-game story ---------- */

.story {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 52px;
}

.story-sub {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 800;
  margin: 42px 0 14px;
}

.story-sub:first-child {
  margin-top: 0;
}

.story-sub span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.story p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.story > p:first-of-type::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: 0.85;
  font-weight: 800;
  padding-right: 10px;
  color: var(--accent);
}

.story p em {
  color: var(--text);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
  padding: 18px;
  background: rgba(255, 106, 0, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.fact > span:last-child {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.pullquote {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 34px 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-close {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  margin: 30px 0 0;
}

/* ---------- Quiz ---------- */

.quiz-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}

.quiz-progress {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 0.35s ease;
}

.quiz-q {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 22px;
  letter-spacing: -0.01em;
}

.quiz-opts {
  display: grid;
  gap: 10px;
}

.quiz-opt {
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.quiz-opt:hover {
  border-color: var(--line-strong);
}

.quiz-opt.selected {
  background: rgba(255, 106, 0, 0.12);
  border-color: var(--accent);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.quiz-result {
  text-align: center;
  padding: 12px 0;
}

.quiz-score {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quiz-score small {
  font-size: 1.1rem;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.quiz-tier {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 14px 0 10px;
}

.quiz-result p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  padding-right: 32px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  color: var(--muted);
}

.footer-brand {
  font-weight: 600;
}

.fine-print {
  margin-top: 12px;
  font-size: 0.78rem;
  opacity: 0.65;
  max-width: 640px;
  line-height: 1.6;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tip:hover, .case:hover, .stage:hover, .btn:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .stage-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .stat-strip {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
  }

  .nav-menu .btn-small {
    margin-top: 10px;
  }

  .hero {
    padding: 88px 0 60px;
  }

  section {
    padding: 64px 0;
  }

  .quiz-card {
    padding: 26px 22px;
  }

  .story {
    padding: 30px 24px;
  }

  .fact-row {
    grid-template-columns: 1fr 1fr;
  }

  .case-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-arrow {
    transform: rotate(90deg);
    line-height: 1;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
}
