/*
 * DscoreX landing — tokens, base, header, hero, footer.
 * Section blocks live in landing-sections.css. Dark-first: the brand is the
 * venue board, and the results hub (assets/hub/hub.css) shares these values.
 */

:root {
    color-scheme: dark;
    --bg: #07080b;
    --bg-soft: #0d0f14;
    --panel: #12151c;
    --panel-2: #181c25;
    --line: #232833;
    --line-strong: #323847;
    --text: #eef0f5;
    --muted: #8d94a6;
    --gold: #f4c95d;
    --gold-ink: #f4c95d;
    --red: #ff5a5f;
    --blue: #4d9bff;
    --win: #57d9a3;
    --radius: 14px;
    --max: 1140px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(56px, 9vw, 120px);
    --display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #f4f5f8; --bg-soft: #eceef3; --panel: #ffffff; --panel-2: #f7f8fb;
        --line: #dcdfe7; --line-strong: #c3c8d4; --text: #10131a; --muted: #5b6170;
        --gold-ink: #8a6512;
    }
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f5f8; --bg-soft: #eceef3; --panel: #ffffff; --panel-2: #f7f8fb;
    --line: #dcdfe7; --line-strong: #c3c8d4; --text: #10131a; --muted: #5b6170;
    --gold-ink: #8a6512;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.02; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.eyebrow {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-ink); margin-bottom: 14px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #10131a; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
    font: 600 14px/1 var(--sans); text-decoration: none; white-space: nowrap;
    transition: transform 240ms var(--ease), background 160ms, border-color 160ms, color 160ms;
}
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-solid { background: var(--gold); border-color: var(--gold); color: #10131a; }
.btn-solid:hover { background: #ffd977; border-color: #ffd977; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- header ---------- */
.site-head {
    max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
    display: flex; align-items: center; gap: 28px;
}
.wm { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wm i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 6px; vertical-align: middle; }
.site-head nav { display: flex; gap: 22px; margin-left: 8px; }
.site-head nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-head nav a:hover { color: var(--text); border-bottom-color: var(--gold); }
.head-actions { margin-left: auto; display: flex; gap: 10px; }
.lang { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 6px; border: 1px solid transparent; }
.lang:hover { color: var(--gold-ink); border-color: var(--line); }
@media (max-width: 900px) {
    .site-head { flex-wrap: wrap; gap: 12px 18px; }
    .site-head nav { order: 3; width: 100%; margin: 0; gap: 16px; overflow-x: auto; padding-bottom: 2px; }
    .head-actions .btn-ghost { display: none; }
}

/* ---------- hero ---------- */
.hero {
    max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter) var(--section);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(48px, 9.5vw, 120px); line-height: 0.94; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts {
    list-style: none; margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 13px; color: var(--muted);
}
.hero-facts b { display: block; color: var(--text); font-family: var(--display); font-size: 16px; margin-bottom: 2px; }

/* the board: the product's most characteristic screen, in miniature */
.board {
    margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 18px 14px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
    position: relative; overflow: hidden;
}
.board::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
}
.board-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--win); font-family: var(--mono); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(87, 217, 163, 0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 18px; }
.side { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.side-red { border-left: 4px solid var(--red); }
.side-blue { border-right: 4px solid var(--blue); text-align: right; }
.side-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.side-red .side-label { color: var(--red); }
.side-blue .side-label { color: var(--blue); }
.side-name { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); line-height: 1.1; }
.side-meta { font-size: 12px; color: var(--muted); }
.vs { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.votes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.votes li { height: 44px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #10131a; }
.votes .v-red { background: var(--red); }
.votes .v-blue { background: var(--blue); }
.board-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.sample-note { margin-top: 10px; font-size: 11px; color: var(--muted); opacity: 0.8; }
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .hero-facts { grid-template-columns: 1fr; }
    .versus { grid-template-columns: 1fr; }
    .vs { text-align: center; }
    .side-blue { text-align: left; border-right: 0; border-left: 4px solid var(--blue); }
}

/* ---------- footer ---------- */
.site-foot {
    max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 13px;
}
.site-foot nav { display: flex; gap: 18px; }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--gold-ink); }
.site-foot .muted { margin-left: auto; }
