:root {
  --bg: #070b14;
  --panel: rgb(15 21 34 / 78%);
  --panel-solid: #0f1522;
  --line: rgb(255 255 255 / 10%);
  --text: #eef2f7;
  --muted: #9aa6b8;
  --accent: #2dd4bf;
  --accent-ink: #052b26;
  --blue: #3b82f6;
  --px: 'Silkscreen', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgb(7 11 20 / 72%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { image-rendering: pixelated; }
.brand b, .foot-brand b { color: var(--accent); font-weight: 800; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 -3px 0 rgb(0 0 0 / 18%);
  transition: transform .15s ease, box-shadow .15s ease, background .3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 -3px 0 rgb(0 0 0 / 18%); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 11px; box-shadow: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 16px 0; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 11 20 / 55%) 0%, rgb(7 11 20 / 45%) 40%, var(--bg) 92%); }
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgb(7 11 20 / 60%); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--muted);
}
.px { font-family: var(--px); font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
h1 {
  margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  text-shadow: 0 4px 30px rgb(0 0 0 / 45%);
}
.accent { color: var(--accent); font-family: var(--px); font-weight: 400; letter-spacing: 0; }
.lead { max-width: 620px; margin: 22px auto 0; font-size: 19px; color: #d5dce6; text-shadow: 0 2px 16px rgb(0 0 0 / 50%); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; scroll-margin-top: 90px; }
.meta { font-size: 13px; color: #e2e8f0; padding: 4px 12px; border-radius: 999px; background: rgb(7 11 20 / 55%); backdrop-filter: blur(6px); }
.shot {
  position: relative; z-index: 1; max-width: 1060px; margin: 64px auto 0;
  border-radius: 18px 18px 0 0; overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%); border-bottom: 0;
  box-shadow: 0 -10px 80px rgb(45 212 191 / 14%), 0 30px 80px rgb(0 0 0 / 60%);
}

/* $0 band */
.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 44px 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.num { font-family: var(--px); font-size: clamp(54px, 8vw, 84px); line-height: 1; color: var(--accent); }
.per { font-size: 20px; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.facts li { padding: 10px 16px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-size: 16px; margin-right: 4px; }

/* sections */
.section { max-width: 1120px; margin: 0 auto; padding: 96px 16px 0; scroll-margin-top: 60px; }
h2 { margin: 0; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; }
.sub { margin: 12px 0 0; color: var(--muted); font-size: 18px; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.card {
  padding: 24px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-2px); }
.ic {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px;
  background: linear-gradient(135deg, #14b8a6, #2563eb); color: #fff; font-family: var(--px); font-size: 15px;
}
.card h3, .step h3 { margin: 16px 0 6px; font-size: 18px; }
.card p, .step p { margin: 0; color: var(--muted); font-size: 15px; }

/* themes */
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.theme { margin: 0; border-radius: 16px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); transition: transform .2s ease; }
.theme:hover { transform: translateY(-4px); }
.theme > img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; image-rendering: pixelated; }
.theme figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 12px 14px; font-weight: 600; }
.theme small { width: 100%; color: var(--muted); font-weight: 400; font-size: 12px; }
.ti { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }

/* free */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.step { padding: 24px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); }
.n { font-family: var(--px); font-size: 28px; color: var(--accent); }

/* faq */
details { margin-top: 12px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); padding: 0 20px; }
details:first-of-type { margin-top: 32px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--px); color: var(--accent); }
details[open] summary::after { content: '-'; }
details p { margin: 0 0 18px; color: var(--muted); }

/* final + footer */
.final { text-align: center; padding: 110px 16px; }
.final h2 { margin-bottom: 28px; }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 1120px; margin: 0 auto; padding: 28px 16px 40px; border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.foot-brand img { image-rendering: pixelated; }
.muted { color: var(--muted); font-weight: 400; }
.credit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.credit svg { color: #4d6bfe; }
.credit:hover { color: var(--text); }

@media (max-width: 900px) {
  .links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding-top: 64px; }
  .lead { font-size: 17px; }
  .themes { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg video { display: none; }
  .hero-bg { background: url(assets/themes/ocean.jpg) center / cover; }
}

/* ---- themes (the same five worlds as the app) ---- */
html[data-theme="ocean"] { --accent: #2dd4bf; --accent-ink: #052b26; }
html[data-theme="galaxy"] { --accent: #a78bfa; --accent-ink: #1b0f33; }
html[data-theme="village"] { --accent: #fbbf24; --accent-ink: #2b1a02; }
html[data-theme="city"] { --accent: #f472b6; --accent-ink: #3b0a24; }
html[data-theme="nature"] { --accent: #4ade80; --accent-ink: #052e14; }
.hero-bg video { transition: opacity .4s ease; }

.theme-dots { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgb(255 255 255 / 5%); border: 1px solid var(--line); }
.theme-dots button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; cursor: pointer; padding: 0; transition: background .15s ease, transform .15s ease; }
.theme-dots button:hover { background: rgb(255 255 255 / 8%); transform: translateY(-1px); }
.theme-dots button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-dots img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }

/* feature icons from Agnes */
.fi { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 35%)); }

/* theme cards are buttons now */
button.theme { padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.theme .cap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 12px 14px; font-weight: 600; }
button.theme[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 14px 40px rgb(0 0 0 / 40%); }
button.theme:focus-visible, .theme-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) { .theme-dots { margin-left: auto; } .nav .btn-small { margin-left: 0; } }
@media (max-width: 420px) { .theme-dots button { width: 26px; height: 26px; } .brand span { display: none; } }
