/* Kemeow front page — follows the site tokens in games.css, with the
   design-system fonts (Roboto + KickTitle) loaded for the hero wordmark. */

@font-face {
    font-family: "KickTitle";
    src: url("/static/fonts/kick-font.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("/static/fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("/static/fonts/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("/static/fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("/static/fonts/Roboto-Black.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
}

:root {
    --bg: #0d0618;
    --bg-card: rgba(28, 17, 41, 0.85);
    --bg-row: rgba(255, 255, 255, 0.04);
    --bg-row-hover: rgba(184, 140, 255, 0.12);
    --fg: #f7f4ff;
    --muted: #b9aed4;
    --dim: #7a6e93;
    --accent: #b88cff;
    --accent-2: #ff8fcf;
    --good: #92d7a8;
    --bad: #ff6b8a;
    --warn: #ffd166;
    --radius: 2px;
    --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background:
        radial-gradient(circle at 20% 0%, rgba(184, 140, 255, 0.12), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(255, 143, 207, 0.10), transparent 55%),
        linear-gradient(160deg, #1a0e2c 0%, #0d0618 60%, #08030f 100%);
    background-attachment: fixed;
    color: var(--fg);
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.muted { color: var(--muted); font-size: 14px; }

/* ---------- header (matches games.css) ---------- */

.page-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tagline { color: var(--muted); font-size: 13px; }
.nav-links {
    margin-left: auto;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--muted);
    opacity: 0.85;
    font-size: 13px;
    padding: 0 12px;
}
.nav-links a + a { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.nav-links a:hover,
.nav-links a.active { color: var(--accent-2); opacity: 1; }

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

/* ---------- hero ---------- */

.hero {
    text-align: center;
    padding: 64px 12px 56px;
}
.hero-wordmark {
    font-family: KickTitle, Roboto, Arial, sans-serif;
    font-size: clamp(56px, 11vw, 128px);
    line-height: 1;
    letter-spacing: 2px;
    background: linear-gradient(100deg, var(--accent) 15%, var(--accent-2) 60%, var(--accent) 110%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 6s linear infinite;
}
@keyframes sheen {
    from { background-position: 0% 0; }
    to   { background-position: 200% 0; }
}
.hero-sub {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
    letter-spacing: 0.3px;
}
.hero-line {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--fg);
    font-size: 17px;
    line-height: 1.55;
}
.hero-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: var(--grad);
    color: #1c1129;
    font-weight: 700;
    font-size: 14px;
    transition: filter 160ms ease, transform 160ms ease;
}
.btn:hover { color: #1c1129; filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost {
    background: transparent;
    border-color: rgba(184, 140, 255, 0.35);
    color: var(--accent);
    font-weight: 500;
}
.btn.ghost:hover { background: rgba(184, 140, 255, 0.12); color: var(--accent-2); }

/* ---------- explainer turnstile ---------- */

.turnstile { padding: 24px; }
.turnstile-head h2 { font-size: 20px; font-weight: 700; }
.turnstile-head .muted { margin-top: 4px; }

.stage {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.stage video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #08030f;
    border: 1px solid rgba(184, 140, 255, 0.25);
    border-radius: var(--radius);
    object-fit: contain;
}
.stage.pop video { animation: pop 220ms ease; }
@keyframes pop {
    0% { transform: scale(0.98); opacity: 0.6; }
    60% { transform: scale(1.005); }
    100% { transform: scale(1); opacity: 1; }
}
.stage-count {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
}
.stage-meta h3 { margin-top: 6px; font-size: 18px; font-weight: 700; }
.stage-meta .muted { margin-top: 8px; line-height: 1.5; }

.rail-nav {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}
.rail {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.rail-arrow {
    flex: none;
    width: 34px;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(184, 140, 255, 0.35);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 15px;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}
.rail-arrow:hover { background: rgba(184, 140, 255, 0.12); color: var(--accent-2); }
.rail-arrow:disabled { opacity: 0.4; cursor: default; background: transparent; color: var(--accent); }

.token {
    width: 72px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    font: inherit;
    color: inherit;
    padding: 0;
}
.token-ball {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--grad);
    color: #1c1129;
    font-weight: 800;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    border: 1px solid transparent;
    transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}
.token-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--muted);
}
.token:hover .token-ball { filter: brightness(1.08); transform: translateY(-1px); }
.token.active .token-ball {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 2px rgba(255, 143, 207, 0.35);
}
.token.active .token-label { color: var(--accent-2); }
.token:focus-visible { outline: none; }
.token:focus-visible .token-ball { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(184, 140, 255, 0.5); }

/* coming-soon slot: hollow, dim, not interactive */
.token.soon { cursor: default; }
.token.soon .token-ball {
    background: var(--bg-row);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--dim);
    font-weight: 500;
    font-size: 12px;
}
.token.soon .token-label { color: var(--dim); }
.token.soon:hover .token-ball { filter: none; transform: none; }

/* ---------- link row ---------- */

.link-row {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.link-card {
    display: block;
    padding: 16px;
    text-align: center;
    color: var(--fg);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.link-card h3 { font-size: 15px; font-weight: 700; color: var(--fg); }
.link-card:hover {
    background: var(--bg-row-hover);
    border-color: rgba(184, 140, 255, 0.35);
    transform: translateY(-1px);
    color: var(--fg);
}

/* ---------- footer ---------- */

.page-footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 40px;
    text-align: center;
}
.page-footer .muted { font-size: 13px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .stage { grid-template-columns: 1fr; }
    .link-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .page-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .nav-links { margin-left: 0; }
    .nav-links a:first-child { padding-left: 0; }
    .hero { padding: 40px 0 36px; }
    .link-row { grid-template-columns: 1fr; }
    .rail-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wordmark { animation: none; }
    .stage.pop video { animation: none; }
    .btn, .link-card, .token-ball { transition: none; }
}
