/* =====================================================================
   Landing page (landing.html) — standalone: does not share rules with
   the games (styles.css locks scrolling and touch, this page scrolls).
   ===================================================================== */
:root {
    --bg: #070a12;
    --bg-2: #0d1220;
    --line: rgba(255, 255, 255, 0.1);
    --ink: #f3f6fb;
    --muted: #9aa6bd;
    --go: #39e06a;
    --go-ink: #04140a;
    --display: "Arial Black", "Segoe UI Black", Impact, "Helvetica Neue", Arial, sans-serif;
    --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1180px;
    --pad: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

h1, h2 {
    font-family: var(--display);
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.2vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
h1 em { font-style: inherit; color: var(--go); }

.eyebrow {
    color: var(--go);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--go);
    color: var(--go-ink);
    font-family: var(--display);
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
    border-radius: 12px;
    transform: skewX(-6deg);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 0 0 rgba(57, 224, 106, 0);
}
.btn:hover { background: #5cf088; box-shadow: 0 10px 34px rgba(57, 224, 106, 0.35); transform: skewX(-6deg) translateY(-2px); }
.btn:active { transform: skewX(-6deg) translateY(0); }
.btn-small { font-size: 13px; padding: 11px 18px; }
.btn-big { font-size: clamp(17px, 2vw, 22px); padding: 20px 34px; }

.link-quiet {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 5px;
}
.link-quiet:hover { text-decoration-color: var(--go); }

a:focus-visible { outline: 3px solid var(--go); outline-offset: 4px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px var(--pad);
    background: rgba(7, 10, 18, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; background: var(--go); position: relative; flex: none;
}
.brand-mark::after {
    content: ""; position: absolute; left: 13px; top: 9px;
    border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--go-ink);
}
.brand-name { font-family: var(--display); font-style: italic; font-size: 17px; letter-spacing: 0.04em; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
main { overflow: hidden; }

.hero {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(40px, 7vw, 92px) var(--pad) clamp(36px, 5vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    right: -10%; top: 0; width: 70%; height: 100%;
    background: radial-gradient(closest-side, rgba(57, 224, 106, 0.16), transparent 70%);
    pointer-events: none;
}
.hero-copy { position: relative; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 34px; }

.screen {
    position: relative;
    border-radius: 16px;
    padding: 8px;
    background: linear-gradient(160deg, #1b2336, #0b0f1a);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.screen img { border-radius: 10px; width: 100%; }
.hero-screen { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }

/* ---------- facts ---------- */
.facts {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.facts li { padding: 24px 18px 24px 0; }
.facts li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-style: italic; font-size: clamp(26px, 3.2vw, 40px); line-height: 1; color: var(--go); }
.facts span { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- blocks ---------- */
.block { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--pad) 0; }
.block-lead { color: var(--muted); max-width: 36em; margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; counter-reset: none; }
.steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 28px; }
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(57, 224, 106, 0.14); color: var(--go);
    font-family: var(--display); font-style: italic; font-size: 20px;
}
.steps h3 { font-size: 20px; line-height: 1.2; margin-top: 18px; }
.steps p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.game {
    display: flex; flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.game:hover { transform: translateY(-4px); border-color: rgba(57, 224, 106, 0.7); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-body { display: block; padding: 14px 16px 18px; }
.game-body strong { display: block; font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 16px; line-height: 1.15; }
.game-body span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; margin-top: 6px; }
.game-wide { grid-column: span 2; grid-row: span 2; }
.game-wide img { flex: 1; aspect-ratio: auto; min-height: 0; }
.game-wide .game-body strong { font-size: 24px; }
.game-wide .game-body span { font-size: 16px; }
.game-icon {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9; font-size: 56px;
    background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tint) 75%, #fff 0%), color-mix(in srgb, var(--tint) 35%, #05070c) 75%);
}

/* ---------- brand split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.checks { margin: 26px 0 30px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
    content: ""; position: absolute; left: 2px; top: 0.42em;
    width: 14px; height: 8px; border-left: 3px solid var(--go); border-bottom: 3px solid var(--go); transform: rotate(-45deg);
}

/* ---------- final ---------- */
.final {
    margin: clamp(64px, 9vw, 120px) auto 0;
    padding: clamp(52px, 7vw, 88px) var(--pad);
    text-align: center;
    background: radial-gradient(ellipse at 50% 120%, rgba(57, 224, 106, 0.22), transparent 62%), var(--bg-2);
    border-top: 1px solid var(--line);
}
.final p { color: var(--muted); margin: 14px 0 30px; }

.foot {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 22px var(--pad);
    color: var(--muted); font-size: 14px;
    border-top: 1px solid var(--line);
}
.foot span { font-family: var(--display); font-style: italic; letter-spacing: 0.04em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .hero, .split { grid-template-columns: minmax(0, 1fr); }
    .hero-screen { transform: none; }
    .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-wide { grid-row: auto; }
    .game-wide img { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav { justify-content: space-between; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
    .brand-name { display: none; }
    .games { grid-template-columns: minmax(0, 1fr); }
    .game-wide { grid-column: auto; }
    .btn-big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .game { transition: none; }
}
