/* VENTURED homepage — compact, app-like. Tokens from the game (src/theme/tokens.ts). */
:root {
  --bg: #0C0F14; --surface: #171B24; --raised: #1D222D; --line: #2A303C;
  --ink: #F3F5F8; --soft: #AEB6C4; --faint: #7C8596;
  --violet: #7C6AFF; --violet2: #9A8CFF; --amber: #FFA53E; --pop: #FFE14D; --green: #33D690; --red: #FF6B6B;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(800px 500px at 80% -10%, rgba(124,106,255,.22), transparent 60%), radial-gradient(600px 400px at 0% 30%, rgba(255,165,62,.07), transparent 60%); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
.wrap { width: min(1000px, calc(100% - 40px)); margin-inline: auto; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.top.scrolled { background: rgba(12,15,20,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255,255,255,.06); }
.top-in { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--violet2), #4E38CA); box-shadow: 0 0 20px rgba(124,106,255,.4); }
.brand-text { display: flex; flex-direction: column; font-weight: 700; letter-spacing: .16em; font-size: 14px; line-height: 1.1; }
.brand-text small { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; color: var(--pop); margin-top: 3px; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { font-size: 14px; color: var(--soft); padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.btn { display: inline-flex; align-items: center; font-weight: 600; border-radius: 12px; }
.btn-sm { font-size: 14px; padding: 9px 16px; color: #fff; background: linear-gradient(180deg, #8A78FF, #5B46E0); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 40px 0 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; font-weight: 700; margin: 16px 0 14px; }
h1 em { font-style: normal; color: var(--pop); }
.lead { color: var(--soft); font-size: 16.5px; max-width: 30em; }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); transition: transform .15s; }
.store:hover { transform: translateY(-1px); }
.store span { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; line-height: 1.1; }
.store small { font-size: 10px; font-weight: 500; opacity: .7; text-transform: uppercase; letter-spacing: .03em; }
.note { font-size: 13px; color: var(--faint); }
.scene { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 80px rgba(255,165,62,.12); aspect-ratio: 1106/465; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.hud { position: absolute; top: 12px; font-family: var(--mono); font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(12,15,20,.8); border: 1px solid rgba(255,255,255,.14); display: inline-flex; align-items: center; gap: 6px; }
.hud-l { left: 12px; color: var(--pop); } .hud-r { right: 12px; }
.coin { width: 11px; height: 11px; border-radius: 50%; background: var(--pop); box-shadow: inset 0 0 0 2px #C99A00; }
.bubble { position: absolute; left: 44%; top: 30%; font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 2vw, 22px); color: var(--bg); background: var(--green); padding: 6px 14px; border-radius: 999px; box-shadow: 0 0 30px rgba(51,214,144,.5); animation: pop 3.2s ease-in-out infinite; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--green); }
@keyframes pop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.facts { list-style: none; padding: 14px 0; margin: 12px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { text-align: center; font-size: 13px; color: var(--faint); }
.facts b { display: block; font-family: var(--mono); font-size: 20px; color: var(--ink); }

/* Blocks */
.block { padding: 56px 0 0; scroll-margin-top: 72px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.head p { color: var(--faint); font-size: 14.5px; }

/* How it plays: steps + one screen */
.player { display: grid; grid-template-columns: 1fr 250px; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 32px 22px 22px; }
.steps { display: grid; gap: 8px; }
.steps button { font: inherit; color: inherit; text-align: left; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.steps button:hover { background: rgba(255,255,255,.03); }
.steps button span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--violet2); background: rgba(124,106,255,.15); }
.steps b { display: block; font-size: 16px; }
.steps small { display: block; font-size: 14px; color: var(--faint); margin-top: 1px; }
.steps button[aria-selected="true"] { background: var(--raised); border-color: rgba(124,106,255,.45); }
.steps button[aria-selected="true"] span { background: var(--violet); color: #fff; }
.steps button[aria-selected="true"] small { color: var(--soft); }
.screen { position: relative; aspect-ratio: 1206/2622; border-radius: 30px; overflow: hidden; border: 6px solid #232838; background: var(--bg); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .4s; }
.screen img.on { opacity: 1; }

/* What's inside */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.t-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.tile h3 { font-size: 19px; }
.tile p { font-size: 14px; color: var(--faint); margin-top: auto; }
.chips, .langs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li, .langs li { font-size: 12.5px; padding: 4px 9px; border-radius: 8px; background: var(--raised); color: var(--soft); border: 1px solid var(--line); }
.chips .g { color: var(--green); border-color: rgba(51,214,144,.4); }
.chips .y { color: var(--pop); border-color: rgba(255,225,77,.35); }
.chips .r { color: var(--red); border-color: rgba(255,107,107,.4); }
.langs li { font-size: 14px; color: var(--ink); }
.lesson { background: var(--raised); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; border-left: 3px solid var(--violet); }
.lesson b { font-size: 15px; } .lesson span { font-size: 13.5px; color: var(--soft); }

/* Final */
.final { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(500px 200px at 0% 0%, rgba(124,106,255,.22), transparent 70%), var(--surface); }
.final p { color: var(--soft); font-size: 14.5px; margin-top: 6px; }
.final p a { color: var(--violet2); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 40px 0 48px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.06); }
.foot .brand-text small { color: var(--faint); }
.foot nav { display: flex; gap: 18px; font-size: 14px; color: var(--soft); }
.foot nav a:hover { color: var(--ink); }
.dock { display: none; }

@media (max-width: 820px) {
  .nav { display: none; }
  .btn-sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .scene { order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .player { grid-template-columns: 1fr; padding: 14px; }
  .screen { width: min(230px, 64vw); margin: 4px auto 0; order: -1; }
  .steps button { padding: 11px 12px; }
  .grid { grid-template-columns: 1fr; }
  .final { flex-direction: column; align-items: flex-start; padding: 22px; }
  .block { padding-top: 40px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  .top-in { height: 58px; }
  .btn-sm { display: none; }
  body { padding-bottom: 80px; }
  .dock { display: flex; position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 50; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #8A78FF, #5B46E0); box-shadow: 0 12px 30px rgba(124,106,255,.45); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bubble { animation: none; } .screen img { transition: none; } }
