:root {
  --ink: #17221b;
  --muted: #657168;
  --paper: #f8f5ec;
  --white: #fffef9;
  --green: #59cc5a;
  --green-dark: #237b3a;
  --green-soft: #dff4d7;
  --yellow: #ffd85a;
  --pink: #ff8fab;
  --purple: #6558d3;
  --line: #d8d8cc;
  --shadow: 0 5px 0 #17221b;
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 99; background: var(--ink); color: white; padding: 12px 16px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; width: 100%; height: 76px; display: flex; align-items: center; justify-content: space-between; margin: 0; padding-inline: max(24px, calc((100% - var(--max)) / 2)); background: rgba(248,245,236,.93); backdrop-filter: blur(14px); border-bottom: 2px solid rgba(23,34,27,.12); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 20px/1 "Space Mono", monospace; text-decoration: none; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 38px; color: var(--white); background: var(--ink); border-radius: 10px; font-size: 13px; transform: rotate(-2deg); }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 11px; filter: drop-shadow(0 2px 0 rgba(23,34,27,.25)); transition: transform .25s; }
.brand:hover .brand-logo { transform: rotate(-7deg) scale(1.08); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.language-picker select { max-width: 112px; padding: 8px 28px 8px 9px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; font: 700 11px "Space Mono", monospace; cursor: pointer; }
.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 14px; }
.main-nav a { text-decoration: none; }
.main-nav a:not(.nav-download):hover { color: var(--green-dark); }
.nav-account { padding: 0; color: var(--ink); background: none; border: 0; font-weight: 700; cursor: pointer; }
.nav-account:hover { color: var(--green-dark); }
.nav-download { padding: 11px 17px; color: white; background: var(--green-dark); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.nav-download:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.menu-button { display: none; border: 2px solid var(--ink); background: var(--white); border-radius: 10px; padding: 8px 11px; font-weight: 800; }

.hero { min-height: 690px; max-width: var(--max); margin: auto; padding: 82px 24px 70px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 78px; }
.eyebrow, .kicker { color: var(--green-dark); font: 700 12px/1.4 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--green); border: 1px solid var(--green-dark); border-radius: 50%; box-shadow: 0 0 0 4px rgba(89,204,90,.18); }
.hero h1 { margin: 19px 0 24px; font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { position: relative; color: var(--green-dark); font-style: normal; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px; background: var(--yellow); z-index: -1; transform: rotate(-1.5deg); }
.hero-lead { max-width: 590px; margin: 0 0 30px; color: #4e5b52; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 53px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.button-primary { background: var(--green); }
.button-secondary { background: var(--white); }
.microcopy { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.quest-demo { position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 12px 14px 0 var(--ink); transform: rotate(1deg); }
.quest-topbar { min-height: 56px; padding: 12px 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); font: 700 10px/1 "Space Mono", monospace; letter-spacing: .04em; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border: 1px solid var(--ink); border-radius: 50%; background: var(--pink); }
.window-dots i:nth-child(2) { background: var(--yellow); }
.window-dots i:nth-child(3) { background: var(--green); }
.xp-pill { justify-self: end; padding: 7px 9px; color: var(--green-dark); background: var(--green-soft); border-radius: 8px; }
.progress-track { height: 12px; background: #e8e7df; border-bottom: 2px solid var(--ink); }
.progress-track span { display: block; height: 100%; background: var(--green); border-right: 2px solid var(--ink); }
.quest-body { padding: 30px 34px 34px; }
.lesson-tag { padding: 5px 9px; color: var(--purple); background: #e8e5ff; border-radius: 7px; font: 700 10px "Space Mono", monospace; text-transform: uppercase; }
.quest-body h2 { margin: 14px 0 6px; font-size: 31px; letter-spacing: -.04em; }
.quest-body > p { margin: 0 0 20px; color: var(--muted); }
pre { margin: 0 0 18px; overflow: auto; padding: 20px; color: #f6f4e9; background: var(--ink); border: 2px solid var(--ink); border-radius: 14px; font: 13px/1.75 "Space Mono", monospace; }
pre b { color: #a7e576; font-weight: 400; }
pre mark { padding: 1px 4px; color: var(--ink); background: var(--pink); border-radius: 3px; }
.code-muted { color: #b2b9b4; }
.code-pink { color: var(--pink); }
.answer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.answer-chip { padding: 11px 6px; background: var(--white); border: 2px solid var(--line); border-radius: 10px; font: 700 12px "Space Mono", monospace; cursor: pointer; }
.answer-chip:hover, .answer-chip.selected { border-color: var(--green-dark); background: var(--green-soft); }
.check-button { width: 100%; margin-top: 12px; padding: 13px; border: 2px solid var(--ink); border-radius: 11px; background: var(--yellow); box-shadow: 0 4px 0 var(--ink); font-weight: 800; cursor: pointer; }
.check-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.success-note { display: none; margin-top: 14px; padding: 12px; color: #155f2b; background: var(--green-soft); border-radius: 10px; font-weight: 700; text-align: center; }
.success-note.show { display: block; animation: pop .25s ease-out; }
.floating-sticker { position: absolute; padding: 10px 13px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); font: 700 12px "Space Mono", monospace; transform: rotate(-6deg); }
.sticker-one { left: -42px; bottom: 55px; }
.sticker-two { right: -29px; top: 96px; background: var(--pink); transform: rotate(7deg); }
@keyframes pop { from { transform: scale(.9); opacity: .2; } }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.reveal-ready [data-reveal].revealed { opacity: 1; transform: none; }

.proof-strip { border-block: 2px solid var(--ink); background: var(--yellow); display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-strip p { min-height: 100px; margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 2px solid var(--ink); text-align: center; }
.proof-strip p:last-child { border: 0; }
.proof-strip strong { font: 700 23px "Space Mono", monospace; }
.proof-strip span { color: #5f5636; font-size: 13px; }

.section { max-width: var(--max); margin: auto; padding: 110px 24px; }
.section-heading { margin-bottom: 48px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading > div { max-width: 760px; }
.section-heading h2, .paths h2, .founder h2 { margin: 10px 0 0; max-width: 800px; font-size: clamp(37px, 5vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.underline { position: relative; z-index: 1; }
.underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--pink); z-index: -1; transform: rotate(-1deg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { min-height: 330px; padding: 25px; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 7px 8px 0 var(--ink); }
.step-card:hover .step-icon { transform: rotate(4deg) scale(1.05); }
.step-green { background: var(--green-soft); }
.step-yellow { background: #fff2b5; }
.step-pink { background: #ffe1e9; }
.step-number { float: right; font: 700 13px "Space Mono", monospace; }
.step-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 38px 0 34px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); font: 700 21px "Space Mono", monospace; transition: .2s; }
.step-card h3 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.04em; }
.step-card p { margin: 0; color: #526057; }

.paths { max-width: none; padding-inline: max(24px, calc((100% - var(--max)) / 2)); background: var(--ink); color: var(--white); display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; align-items: center; }
.paths .kicker { color: #9be48d; }
.paths h2 { font-size: clamp(38px, 4.5vw, 58px); }
.paths h2 code { color: var(--yellow); font: inherit; white-space: nowrap; }
.paths-copy > p:not(.kicker) { max-width: 560px; color: #bac3bc; font-size: 18px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 20px; color: inherit; font-weight: 800; text-underline-offset: 5px; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.path-map { position: relative; display: grid; gap: 18px; }
.path-line { position: absolute; left: 31px; top: 35px; bottom: 35px; width: 3px; background: #425047; }
.path-node { position: relative; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; color: var(--ink); background: var(--white); border: 2px solid var(--white); border-radius: 17px; }
.node-dot { z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; background: #e6e9e6; border: 2px solid var(--ink); border-radius: 50%; font: 700 12px "Space Mono", monospace; }
.path-node small { color: var(--green-dark); font: 700 9px "Space Mono", monospace; letter-spacing: .1em; }
.path-node h3 { margin: 3px 0; font-size: 18px; }
.path-node p { margin: 0; color: var(--muted); font-size: 13px; }
.node-status { padding: 6px 8px; background: #e9ece9; border-radius: 7px; font: 700 9px "Space Mono", monospace; }
.path-node.complete .node-dot { background: var(--green); }
.path-node.current { background: #fff5c9; border-color: var(--yellow); box-shadow: 7px 7px 0 var(--purple); transform: translateX(10px); }
.path-node.current .node-dot { background: var(--yellow); }
.path-node.current .node-status { background: var(--yellow); }
.path-node.locked { opacity: .7; }

.section-heading.compact { align-items: end; }
.section-heading.compact h2 { font-size: clamp(38px, 5vw, 56px); }
.article-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 20px; }
.article-card { overflow: hidden; display: flex; flex-direction: column; min-height: 440px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 7px 0 var(--ink); text-decoration: none; transition: transform .2s; }
.article-card:hover { transform: translateY(-5px) rotate(-.3deg); }
.article-art { height: 178px; display: grid; place-items: center; border-bottom: 2px solid var(--ink); }
.article-art i { width: 104px; height: 74px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 12px; box-shadow: 7px 7px 0 rgba(23,34,27,.25); font: 700 20px "Space Mono", monospace; font-style: normal; transform: rotate(-4deg); }
.art-terminal { background: var(--green); }
.art-bug { background: var(--pink); }
.art-bug i { border-radius: 50%; transform: rotate(5deg); }
.art-calendar { background: var(--yellow); }
.article-card > div { padding: 24px; }
.article-meta { color: var(--green-dark); font: 700 10px "Space Mono", monospace; text-transform: uppercase; }
.article-card h3 { margin: 10px 0; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.article-featured h3 { font-size: 29px; }
.article-card p { margin: 0 0 15px; color: var(--muted); }
.read-more { font-weight: 800; }

.founder { padding-top: 35px; }
.founder-card { padding: 58px; display: grid; grid-template-columns: 190px 1fr; gap: 55px; align-items: center; background: #e9e5ff; border: 2px solid var(--ink); border-radius: 28px; box-shadow: 9px 10px 0 var(--ink); }
.founder-mark { width: 170px; height: 170px; display: grid; place-items: center; color: white; background: var(--purple); border: 2px solid var(--ink); border-radius: 44% 56% 51% 49% / 51% 42% 58% 49%; box-shadow: 7px 7px 0 var(--ink); font: 700 45px "Space Mono", monospace; transform: rotate(-4deg); }
.founder h2 { margin-bottom: 20px; font-size: clamp(35px, 4vw, 52px); }
.founder-card p:not(.kicker) { max-width: 780px; color: #535065; font-size: 17px; }
.signature { font-family: "Space Mono", monospace; font-weight: 700; }

.final-cta { position: relative; overflow: hidden; padding: 105px 24px; color: white; background: var(--green-dark); border-block: 2px solid var(--ink); text-align: center; }
.final-cta h2 { max-width: 850px; margin: 0 auto 16px; font-size: clamp(42px, 6vw, 70px); line-height: 1.04; letter-spacing: -.06em; }
.final-cta p { margin: 0 auto 34px; color: #d6eedb; font-size: 18px; }
.cta-code { position: absolute; top: 25px; left: 50%; color: rgba(255,255,255,.08); font: 700 clamp(70px, 13vw, 180px) "Space Mono", monospace; transform: translateX(-50%); white-space: nowrap; }
.centered { justify-content: center; }
.button-light { color: var(--ink); background: var(--yellow); }
.button-dark-outline { color: white; background: transparent; border-color: white; box-shadow: 0 5px 0 white; }
.button-dark-outline:hover { box-shadow: 0 7px 0 white; }

.site-footer { max-width: var(--max); margin: auto; padding: 70px 24px 30px; }
.footer-main { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; }
.footer-brand { margin-bottom: 15px; }
.footer-main > div > p { color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.footer-links h3 { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.footer-links a { display: block; margin: 10px 0; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--green-dark); }
.footer-bottom { margin-top: 60px; padding-top: 22px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 15px; right: 15px; top: 68px; padding: 18px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--white); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 6px 6px 0 var(--ink); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; }
  .nav-account { padding: 10px; text-align: left; }
  .hero { grid-template-columns: 1fr; gap: 65px; padding-top: 55px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .sticker-one { left: -7px; }
  .sticker-two { right: -7px; }
  .steps, .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 0; }
  .paths { grid-template-columns: 1fr; gap: 55px; }
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-mark { margin: auto; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; padding-inline: 16px; }
  .hero { padding: 38px 18px 55px; }
  .hero h1 { font-size: 49px; }
  .button { width: 100%; }
  .quest-demo { box-shadow: 7px 8px 0 var(--ink); }
  .quest-topbar { grid-template-columns: 1fr 1fr; }
  .quest-topbar > span:nth-child(2) { display: none; }
  .quest-body { padding: 24px 18px; }
  pre { font-size: 10.5px; padding: 14px 12px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip p:nth-child(2) { border-right: 0; }
  .proof-strip p:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .section { padding: 78px 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .steps { gap: 17px; }
  .path-node { grid-template-columns: 48px 1fr; padding: 16px 13px; gap: 10px; }
  .node-status { display: none; }
  .path-line { left: 35px; }
  .path-node.current { transform: none; }
  .founder { padding-top: 10px; }
  .founder-card { padding: 38px 22px; gap: 30px; }
  .founder-mark { width: 130px; height: 130px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.user-reduced-motion *, .user-reduced-motion *::before, .user-reduced-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
body[data-theme="dark"] { --paper:#141a16; --white:#202820; --ink:#f7f5eb; --muted:#b2bdb4; --line:#465147; color-scheme:dark; }
body[data-theme="dark"] .site-header { background:rgba(20,26,22,.94); }
body[data-theme="dark"] .brand-logo { filter:none; }
