/* ==========================================================================
   RoadRanger — Landing Page
   Editorial startup-studio grammar (oversized tight-tracked display type,
   numbered index tags, hairline stat grid, flat yellow block callouts)
   reinterpreted with RoadRanger's own brand yellow and real product content.
   No persistent nav — a plain brand mark anchors the hero, one clear CTA
   carries the page.
   ========================================================================== */

:root {
    --ink:        #111110;
    --paper:      #f1efe9;
    --paper-dim:  #6b6862;
    --line:       rgba(17,17,16,0.14);
    --dark:       #0e0e0d;
    --dark-line:  rgba(255,255,255,0.16);
    --dark-dim:   #9a9a97;
    --yellow:     #ffc53d;
    --yellow-ink: #171400;

    --font-display: 'Archivo', 'Arial Black', sans-serif;
    --font-body:    'Inter', 'Segoe UI', sans-serif;
    --font-mono:    'IBM Plex Mono', 'Consolas', monospace;

    --edge: clamp(20px, 5vw, 56px);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

body.rr-landing {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.rr-landing ::selection { background: var(--yellow); color: var(--yellow-ink); }
.rr-landing :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.rr-landing ::-webkit-scrollbar { width: 12px; }
.rr-landing ::-webkit-scrollbar-track { background: var(--paper); }
.rr-landing ::-webkit-scrollbar-thumb { background: #d8d5cb; border: 3px solid var(--paper); border-radius: 6px; }
html { scrollbar-color: #d8d5cb var(--paper); }

.rr-landing img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.rr-landing h1, .rr-landing h2, .rr-landing h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    text-wrap: balance;
}

.section-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--paper-dim);
    margin-bottom: 18px;
}

.section-tag .num { color: var(--ink); font-weight: 600; }
.on-dark .section-tag { color: var(--dark-dim); }
.on-dark .section-tag .num { color: #fff; }

.eyebrow-link {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eyebrow-link:hover { text-decoration: underline; }

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.brand-logo {
    height: 64px;
    width: auto;
    display: block;
}

.auth-status {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--dark-dim);
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.auth-status a { font-weight: 600; color: #fff; }
.auth-status a:hover { text-decoration: underline; }

/* ---------- partner logos, quiet at the bottom of the yellow panel ---------- */
.hero-partners { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.partner-logos { display: flex; align-items: center; gap: 12px; }
.partner-logos img { display: block; height: 32px; width: auto; }
/* the white RoadRanger mark sits on a solid black tile so it reads white-on-black on the yellow */
.partner-logos img.partner-rr { height: 32px; width: 32px; box-sizing: border-box; padding: 4px; background: var(--ink, #171400); border-radius: 4px; }
.hero-block .partner-copy { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; line-height: 1.4; opacity: 0.75; }

/* ---------- hero (dark) ---------- */
.hero {
    position: relative;
    background: var(--dark);
    color: #fff;
    padding: clamp(28px, 5vw, 44px) var(--edge) clamp(48px, 7vw, 88px);
    overflow: hidden;
}

.hero-topbar {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-topbar .brand { color: #fff; }

.hero-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dark-dim);
}

.hero-status .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--yellow);
}

.hero-grid {
    position: relative;
    max-width: 1240px;
    margin: clamp(48px, 8vw, 84px) auto 0;
    display: grid;
    grid-template-columns: 0.58fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: end;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-copy h1,
.hero-copy .lede,
.hero-copy .cta-pill,
.hero-block {
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy .lede { animation-delay: 0.12s; }
.hero-copy .cta-pill { animation-delay: 0.22s; }
.hero-block { animation-delay: 0.55s; }

.hero-block {
    background: var(--yellow);
    color: var(--yellow-ink);
    padding: 24px;
    border-radius: 4px;
}

.hero-block-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
}

.hero-block-icon svg { width: 100%; height: 100%; }

.hero-block-stats {
    display: flex;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(23,20,0,0.16);
}

.hero-block-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-block-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.hero-block-stats span { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.02em; opacity: 0.75; }

.hero-block p {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 16px;
    max-width: 32ch;
    font-weight: 600;
}

.hero-block .details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 5.4vw, 4.4rem);
    line-height: 1.08;
}

.hero-highlight {
    background: var(--yellow);
    color: var(--yellow-ink);
    padding: 0.02em 0.1em;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-cityscape-wrap {
    display: none;
}

.hero-copy .lede {
    margin-top: 22px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 17.5px);
    color: var(--dark-dim);
    max-width: 46ch;
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    background: var(--yellow);
    color: var(--yellow-ink);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14.5px;
    padding: 15px 22px;
    border-radius: 999px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cta-pill:hover { transform: translateY(-2px); background: #ffd469; }
.cta-pill svg { width: 15px; height: 15px; }

/* Desktop: commit the hero to full-bleed split color, same flat-block
   language as .process-panel / .paint-swatch, just carried up to the
   first viewport instead of confined to a small card. */
@media (min-width: 981px) {
    .hero {
        min-height: 100vh;
        padding: 0;
        z-index: 0;
    }

    .hero-topbar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
        max-width: none;
        margin: 0;
        padding: clamp(20px, 3vw, 32px) var(--edge) 0;
    }

    .hero-grid {
        min-height: 100vh;
        max-width: none;
        margin: 0;
        grid-template-columns: 0.44fr 1fr;
        gap: 0;
        align-items: stretch;
    }

    .hero-block { position: relative; }
    .hero-partners { position: absolute; left: clamp(32px, 4vw, 64px); bottom: clamp(18px, 3vh, 30px); margin: 0; }

    .hero-block {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: clamp(100px, 14vh, 140px) clamp(32px, 4vw, 64px) clamp(40px, 5vw, 72px);
        border-radius: 0;
        animation: panel-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes panel-rise {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    @keyframes logo-reveal {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes cityscape-rise {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 0.6; transform: translateY(0); }
    }

    .hero-topbar .brand {
        opacity: 0;
        animation: logo-reveal 0.5s ease-out 0.75s both;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: clamp(100px, 14vh, 140px) var(--edge) clamp(40px, 5vw, 72px);
    }

    .hero-copy h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }

    .hero-cityscape-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        position: absolute;
        right: 0;
        bottom: clamp(16px, 3vh, 40px);
        pointer-events: none;
        z-index: -1;
        opacity: 0;
        animation: cityscape-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
    }

    .hero-cityscape-tag {
        font-family: var(--font-mono);
        font-size: 12px;
        letter-spacing: 0.02em;
        color: var(--dark-dim);
        padding-right: 4px;
    }

    .hero-cityscape {
        display: block;
        width: clamp(440px, 48vw, 800px);
        height: auto;
    }

    .hero-block-icon { width: 52px; height: 52px; margin-bottom: 24px; }
    .hero-block-stats strong { font-size: 26px; }
}

.cta-pill-dark {
    background: var(--ink);
    color: #fff;
}

.cta-pill-dark:hover { background: #2b2a26; }

/* ---------- light section shell ---------- */
.rr-section {
    padding: clamp(56px, 8vw, 96px) var(--edge);
    max-width: 1240px;
    margin: 0 auto;
}

.rr-section.on-dark { background: var(--dark); color: #fff; max-width: none; }
.rr-section.on-dark > .rr-inner { max-width: 1240px; margin: 0 auto; }

.section-head {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head h2 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 0.98;
}

/* ---------- stat strip ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1.5px solid var(--line);
}

.stat {
    padding: 48px 24px 32px 0;
    border-right: 1.5px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    margin-top: 10px;
    font-weight: 600;
    font-size: 15px;
}

.stat-sub {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--paper-dim);
}

/* ---------- games grid ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 2vw, 20px);
}

.game-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    transition: transform 0.15s ease;
}

.game-card:hover { transform: translateY(-3px); }
.game-card.is-yellow { background: var(--yellow); color: var(--yellow-ink); }

.game-card-top { display: flex; justify-content: space-between; align-items: flex-start; }

.game-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}

.is-yellow .game-tag { background: rgba(17,17,16,0.1); }

.game-stat { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

.game-glyph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 0;
}

.game-glyph svg { width: 62%; height: 62%; opacity: 0.94; }

.game-card-bottom { position: relative; z-index: 1; }
.game-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.game-cat { margin-top: 2px; font-size: 12.5px; opacity: 0.68; }

.games-desc {
    margin-top: clamp(28px, 4vw, 44px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 2vw, 20px);
}

.games-desc div { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--paper-dim); margin-bottom: 8px; }
.games-desc p { margin: 0; font-size: 13.5px; color: #4b4942; line-height: 1.55; }

/* ---------- process / journey ---------- */
.process-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.process-list {
    border-top: 1.5px solid var(--line);
}

.process-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1.5px solid var(--line);
}

.process-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--paper-dim); }
.process-row h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; }
.process-row .desc { grid-column: 2 / 3; margin-top: 4px; font-size: 13.5px; color: var(--paper-dim); max-width: 42ch; }
.process-row { grid-template-rows: auto auto; }
.process-arrow { grid-row: 1 / 2; align-self: start; color: var(--paper-dim); }
.process-arrow svg { width: 16px; height: 16px; }

.process-panel {
    background: var(--yellow);
    color: var(--yellow-ink);
    border-radius: 6px;
    padding: clamp(28px, 4vw, 44px);
}

.process-panel-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.process-panel-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4rem);
    letter-spacing: -0.03em;
}

.process-panel-unit { font-family: var(--font-mono); font-size: 13px; }

.process-panel-steps {
    margin-top: clamp(24px, 4vw, 40px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 40px);
}

.process-panel-steps div { font-family: var(--font-mono); font-size: 11px; margin-bottom: 4px; opacity: 0.7; }
.process-panel-steps strong { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; }

/* ---------- mission / about (dark, full bleed) ---------- */
.mission {
    position: relative;
    background: var(--dark);
    color: #fff;
    padding: clamp(56px, 9vw, 108px) var(--edge);
    overflow: hidden;
}

.mission-grid {
    position: relative;
    max-width: 720px;
    margin: 0 auto 0 0;
}

.mission-copy h2 {
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    line-height: 1.0;
    max-width: 14ch;
}

.mission-copy .lede {
    margin-top: 20px;
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--dark-dim);
    max-width: 44ch;
}

.mission-facts {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mission-facts > span {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--dark-dim);
    border: 1px solid var(--dark-line);
    border-radius: 999px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mission-facts .dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--yellow); padding: 0; border: none; }

/* ---------- footer ---------- */
.site-footer {
    background: var(--dark);
    color: #fff;
    padding: clamp(40px, 6vw, 64px) var(--edge) 28px;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1.5px solid var(--dark-line);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--dark-dim);
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: var(--dark-dim); }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--dark-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-block { order: 2; max-width: 360px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1.5px solid var(--line); padding-bottom: 20px; }
    .stat:nth-child(3), .stat:nth-child(4) { padding-top: 20px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .games-desc { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: 1fr; }
    .mission-grid { grid-template-columns: 1fr; }
    .mission-block { order: 2; max-width: 420px; }
}

@media (max-width: 640px) {
    .hero-topbar { flex-wrap: wrap; row-gap: 12px; }
    .games-grid { grid-template-columns: 1fr; }
    .games-desc { grid-template-columns: 1fr; }
    .game-card { aspect-ratio: 16 / 10; }
    .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .rr-landing * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.rr-reveal { opacity: 0; transform: translateY(14px); }
.rr-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
