/* Worldframe + FREEHOLD: one stylesheet. Dark and cinematic; the studio uses an electric blue accent, the game a street-lamp amber. */
:root {
  --bg: #0a0d12;
  --bg-2: #0f141c;
  --panel: #131a24;
  --panel-2: #18212d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #e9edf3;
  --ink-2: #c3ccd8;
  --muted: #8d99ab;
  --accent: #f0b35a;
  --accent-ink: #1a1206;
  --accent-soft: rgba(240, 179, 90, 0.14);
  --brass: #c9a24d;
  --good: #6fcf97;
  --now: #f0b35a;
  --next: #7fb0ff;
  --later: #8d99ab;
  --danger: #ff7a7a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1160px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
body.studio { --accent: #5cc8ff; --accent-ink: #04121c; --accent-soft: rgba(92, 200, 255, 0.16); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.9em; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-2); max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 13, 18, 0.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; }
.brand span { font-family: var(--font-display); font-size: 1.05rem; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-primary { color: var(--accent-ink); }
@media (max-width: 760px) { .nav-links a.hide-sm { display: none; } .nav .wrap { gap: 12px; } .nav-links { gap: 14px; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
       font: 650 0.98rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px var(--accent-soft); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 8px 14px; font-size: 0.88rem; }
.btn[disabled], .btn.disabled { opacity: 0.5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding: 120px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.35) 0%, rgba(10, 13, 18, 0.15) 35%, rgba(10, 13, 18, 0.85) 78%, var(--bg) 100%),
              linear-gradient(90deg, rgba(10, 13, 18, 0.75) 0%, rgba(10, 13, 18, 0) 65%); }
.hero > .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 15em; text-wrap: balance; }
.hero .lead { max-width: 38em; color: #dde3ec; }
.hero-night::before { background-image: url("/img/hero-night.jpg"); }
.hero-studio::before { background-image: url("/img/dusk.jpg"); }
.hero-tag { display: inline-flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--ink-2); margin-top: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ---------- cards and grids */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 64px 0; } .wrap { padding: 0 16px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; font-size: 0.97rem; }
.card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
             font-weight: 800; margin-bottom: 16px; font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 7; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 0.88rem; color: #e8edf4;
                      background: linear-gradient(0deg, rgba(5, 8, 12, 0.85), rgba(5, 8, 12, 0)); }
.gallery .wide { grid-column: span 4; }
.gallery .half { grid-column: span 3; }
.gallery .third { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery .wide, .gallery .half, .gallery .third { grid-column: auto; } }
.gallery .soon { display: grid; place-items: center; text-align: center; padding: 24px; min-height: 180px; border-style: dashed; color: var(--muted); }

/* ---------- lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.ticks.done li::before { background: var(--good); }

/* ---------- roadmap timeline */
.timeline { position: relative; display: grid; gap: 16px; margin-top: 32px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.step { position: relative; padding-left: 48px; }
.step::before { content: ""; position: absolute; left: 7px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--later); }
.step.done::before { border-color: var(--good); background: var(--good); }
.step.now::before { border-color: var(--now); box-shadow: 0 0 0 6px rgba(240, 179, 90, 0.18); }
.step.next::before { border-color: var(--next); }
.step .card { padding: 18px 22px; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.step-head h3 { margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
        text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.chip.done { color: var(--good); border-color: rgba(111, 207, 151, 0.4); }
.chip.now { color: var(--now); border-color: rgba(240, 179, 90, 0.45); }
.chip.next { color: var(--next); border-color: rgba(127, 176, 255, 0.4); }
.window { color: var(--muted); font-size: 0.9rem; }
.step ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.95rem; columns: 2; column-gap: 32px; }
@media (max-width: 760px) { .step ul { columns: 1; } }

/* ---------- milestones */
.meter { margin: 26px 0 8px; }
.meter-bar { position: relative; height: 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--brass), var(--accent)); border-radius: 999px; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.meter-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.meter-label strong { color: var(--ink); }
.goal { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.goal .amt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--brass); min-width: 4.2em; }
.goal.reached .amt { color: var(--good); }
.goal h3 { margin: 4px 0 6px; }
.goal dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 0.93rem; }
.goal dt { color: var(--muted); }
.goal dd { margin: 0; color: var(--ink-2); }
.goal .reward { color: var(--ink); }
.promise { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(201, 162, 77, 0.35);
           background: rgba(201, 162, 77, 0.08); margin-top: 22px; }
.promise strong { color: var(--brass); }
.promise p { margin: 0; }

/* ---------- updates, faq */
.post { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; }
.post time { color: var(--muted); font-size: 0.85rem; }
.post h3 { margin: 4px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }

/* ---------- forms: the gate and the account page */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden; }
.gate::before { content: ""; position: absolute; inset: 0; background: url("/img/towers-night.jpg") center 30% / cover; filter: saturate(1.05); }
.gate::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(10, 13, 18, 0.35), rgba(10, 13, 18, 0.92) 75%); }
.gate-card { position: relative; z-index: 1; width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: 20px; overflow: hidden;
             border: 1px solid var(--line-2); background: rgba(16, 21, 29, 0.82); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
@media (max-width: 820px) { .gate-card { grid-template-columns: 1fr; } }
.gate-side { padding: 40px; }
.gate-side + .gate-side { background: rgba(255, 255, 255, 0.03); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 820px) { .gate-side { padding: 28px 22px; } .gate-side + .gate-side { border-left: 0; border-top: 1px solid var(--line); } }
.tabs { display: flex; gap: 6px; background: rgba(255, 255, 255, 0.05); padding: 5px; border-radius: 999px; margin: 22px 0 24px; width: fit-content; }
.tabs button { background: none; border: 0; color: var(--muted); font: 650 0.92rem var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }
input { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(5, 8, 12, 0.55); color: var(--ink);
        font: 500 1rem var(--font); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.msg { min-height: 1.4em; font-size: 0.92rem; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--good); }
[hidden] { display: none !important; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2);
        padding: 4px 10px; border-radius: 8px; letter-spacing: 0.08em; color: var(--ink); }
.rewards { display: grid; gap: 10px; margin-top: 12px; }
.reward-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.reward-row .chip { flex-shrink: 0; }
.stat { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }

/* ---------- footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- studio extras */
.manifesto .card { border-top: 3px solid var(--accent); }
.give { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .give { grid-template-columns: 1fr; } }
.where { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.where li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.where .pct { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.where .what { color: var(--ink-2); }
.where .bar { grid-column: 2; height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.where .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.w40 { width: 40%; } .w25 { width: 25%; } .w20 { width: 20%; } .w15 { width: 15%; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
