:root {
  color-scheme: dark;
  --ink: #1a0f38;
  --night: #0e0920;
  --paper: #f9f7ff;
  --white: #ffffff;
  --muted: #b8b0d2;
  --purple: #7d33fa;
  --pink: #ff2f94;
  --cyan: #0dd6ef;
  --yellow: #ffd629;
  --green: #63ed91;
  --line: rgba(255, 255, 255, 0.14);
  --font: Inter, ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-family: var(--font);
  font-size: 16px;
  background: var(--night);
  color: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--night); }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.hero,
.steps,
.closing,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: -0.05em;
  clip-path: polygon(0 0, 100% 0, 100% 77%, 64% 77%, 50% 100%, 36% 77%, 0 77%);
  transform: rotate(-3deg);
}
.brand-name { font-size: 1.05rem; font-weight: 1000; letter-spacing: 0.045em; }
.brand-name span { color: var(--cyan); }
nav { display: flex; gap: 28px; }
nav a { color: #d7d1e8; font-size: 0.88rem; font-weight: 800; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--yellow); }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(30px, 7vw, 100px);
  padding: 60px 0 100px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow span { width: 22px; height: 3px; background: currentColor; }
.eyebrow.light { color: var(--ink); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 750px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 1000;
  letter-spacing: -0.075em;
  line-height: 0.88;
}
h1 em { color: var(--cyan); font-style: normal; }
.hero-lede { max-width: 570px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); font-weight: 650; line-height: 1.65; }
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: 215px;
  justify-content: space-between;
  padding: 15px 18px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 14px;
  box-shadow: 0 6px 0 #9d6e00;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.primary-action:hover, .primary-action:focus-visible { transform: translateY(2px); box-shadow: 0 4px 0 #9d6e00; }
.platform-note { margin: 22px 0 0; color: #8f86ac; font-size: 0.82rem; font-weight: 700; }

.hero-game { position: relative; min-height: 500px; display: grid; place-items: center; isolation: isolate; }
.hero-game::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(42vw, 470px);
  aspect-ratio: 1;
  border-radius: 44% 56% 60% 40%;
  background: linear-gradient(145deg, var(--purple), var(--pink));
  transform: rotate(12deg);
  box-shadow: 0 35px 100px rgba(125, 51, 250, 0.32);
}
.burst { position: absolute; z-index: -1; }
.burst-one { width: 100px; height: 100px; top: 20px; right: 8%; border: 18px solid var(--cyan); transform: rotate(18deg); }
.burst-two { width: 56px; height: 56px; bottom: 32px; left: 3%; background: var(--yellow); border-radius: 50%; }
.challenge-card {
  width: min(390px, 86vw);
  padding: 22px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(26, 15, 56, 0.08);
  border-radius: 26px;
  box-shadow: 14px 16px 0 rgba(26, 15, 56, 0.28);
  transform: rotate(-2deg);
}
.challenge-topline { display: flex; justify-content: space-between; color: #675d7d; font-size: 0.68rem; font-weight: 950; letter-spacing: 0.09em; text-transform: uppercase; }
.challenge-topline strong { color: var(--purple); }
.challenge-prompt { margin: 28px 0 22px; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 1000; letter-spacing: -0.04em; line-height: 1.08; }
.answer-list { display: grid; gap: 9px; }
.answer-list span { padding: 12px 14px; background: #ece8f5; border: 2px solid transparent; border-radius: 11px; font-size: 0.87rem; font-weight: 850; }
.answer-list .selected { display: flex; justify-content: space-between; background: rgba(99, 237, 145, 0.2); border-color: #2bbf62; }
.answer-list b { color: #188a42; }
.score-strip { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 2px solid #e4deef; font-size: 0.85rem; font-weight: 950; text-transform: uppercase; }
.score-strip strong { color: var(--pink); font-size: 1rem; }
.brag-stamp {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--yellow);
  font-size: 0.9rem;
  font-weight: 1000;
  line-height: 0.9;
  text-align: center;
  transform: rotate(9deg);
}

.steps { padding: 110px 0 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 58px; }
.section-heading .eyebrow { align-self: flex-start; margin-top: 12px; }
h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5.1rem); font-weight: 1000; letter-spacing: -0.065em; line-height: 0.95; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.step-grid li { min-height: 300px; padding: 32px; background: var(--night); }
.step-number { display: block; margin-bottom: 70px; color: var(--cyan); font-size: 0.8rem; font-weight: 950; letter-spacing: 0.12em; }
.step-grid li:nth-child(2) .step-number { color: var(--pink); }
.step-grid li:nth-child(3) .step-number { color: var(--yellow); }
.step-grid h3 { margin-bottom: 13px; font-size: 1.25rem; font-weight: 950; letter-spacing: -0.025em; }
.step-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.feature-band { padding: 120px max(20px, calc((100vw - 1180px) / 2)); color: var(--ink); background: var(--yellow); }
.feature-intro { display: grid; grid-template-columns: 1fr 1.3fr; align-items: start; gap: 50px; margin-bottom: 70px; }
.feature-intro h2 { justify-self: end; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article { min-height: 300px; padding: 25px; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--ink); }
.feature-grid article:nth-child(even) { transform: translateY(18px); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 55px; border-radius: 15px; font-size: 1.12rem; font-weight: 1000; }
.feature-icon.cyan { background: var(--cyan); }
.feature-icon.yellow { background: var(--yellow); }
.feature-icon.pink { color: white; background: var(--pink); }
.feature-icon.purple { color: white; background: var(--purple); }
.feature-grid h3 { margin-bottom: 12px; font-size: 1.2rem; font-weight: 1000; }
.feature-grid p { color: #625a76; font-size: 0.91rem; line-height: 1.6; }

.closing { position: relative; padding: 160px 0 150px; text-align: center; }
.closing .eyebrow { justify-content: center; }
.closing h2 { font-size: clamp(3.3rem, 8vw, 7.6rem); }
.closing > p:not(.eyebrow) { margin: 20px 0 40px; color: var(--cyan); font-size: 1.35rem; font-weight: 850; }
.closing-mark { position: absolute; top: 60px; right: 6%; color: rgba(255, 255, 255, 0.04); font-size: 17rem; font-weight: 1000; transform: rotate(12deg); }
.topic-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.topic-row span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: #ccc5df; font-size: 0.78rem; font-weight: 850; }

footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #8f86a8; font-size: 0.78rem; }
.footer-brand { color: white; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-game { min-height: 550px; }
  .hero-game::before { width: min(78vw, 470px); }
  .section-heading, .feature-intro { display: block; }
  .section-heading .eyebrow, .feature-intro .eyebrow { margin-bottom: 28px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 0; }
  .step-number { margin-bottom: 38px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 78px; }
  nav { display: none; }
  .hero { min-height: auto; padding: 55px 0 80px; }
  h1 { font-size: clamp(3.4rem, 18vw, 5.2rem); }
  .hero-game { min-height: 470px; }
  .burst-one { right: -10px; }
  .brag-stamp { right: -4px; bottom: 8px; width: 92px; }
  .steps { padding: 90px 0; }
  .feature-band { padding-top: 90px; padding-bottom: 100px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .feature-grid article:nth-child(even) { transform: none; }
  .feature-icon { margin-bottom: 35px; }
  .closing { padding: 110px 0; }
  footer { padding: 30px 0; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
