/* Nova design tokens (shared with every in-game Nova UI, see nova_banking/web/style.css). */
:root {
    --bg: #07090d;
    --panel: rgba(12, 14, 20, 0.85);
    --panel-border: rgba(255, 255, 255, 0.06);
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --text: #f1f3f5;
    --text-dim: rgba(241, 243, 245, 0.6);
    --text-faint: rgba(241, 243, 245, 0.35);
    --ok: #51cf66;
    --warn: #ffa94d;
    --bad: #ff6b6b;
    --accent: #74c0fc;
    /* Same Open Color family, for extra variety on the site. */
    --pink: #f783ac;
    --violet: #b197fc;
    --yellow: #ffd43b;

    --radius: 16px;
    --nav-h: 64px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth; /* fallback when Lenis isn't loaded */
}

/* Lenis (smooth scroll) required rules. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    min-height: 100vh;
    overflow-x: hidden;
    /* No background here: html paints it, so the fixed .bg layer (z-index -1) stays visible. */
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(116, 192, 252, 0.35); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img, svg { display: block; }

.container {
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
}

.container.narrow { width: min(820px, 100% - 32px); }

/* ---------------------------------------------------------------- Background */

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 20%, #111826 0%, var(--bg) 65%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    will-change: transform;
    pointer-events: none;
}

/* The drift animates `translate`; scroll parallax (app.js) sets `transform`. They compose. */
.glow.one {
    top: -20vmax;
    right: -10vmax;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, rgba(116, 192, 252, 0.42), rgba(116, 192, 252, 0.12) 40%, transparent 68%);
    animation: drift-one 26s ease-in-out infinite alternate;
}

.glow.two {
    top: 70vh;
    left: -15vmax;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(circle, rgba(81, 207, 102, 0.24), rgba(81, 207, 102, 0.07) 40%, transparent 68%);
    animation: drift-two 32s ease-in-out infinite alternate;
}

.glow.three {
    top: 30vh;
    right: 15vmax;
    width: 35vmax;
    height: 35vmax;
    background: radial-gradient(circle, rgba(255, 169, 77, 0.18), rgba(255, 169, 77, 0.05) 40%, transparent 68%);
    animation: drift-three 22s ease-in-out infinite alternate;
}

@keyframes drift-one { to { translate: -12vmax 10vmax; scale: 1.1; } }
@keyframes drift-two { to { translate: 14vmax -8vmax; scale: 0.9; } }
@keyframes drift-three { to { translate: -10vmax -6vmax; scale: 1.2; } }

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------------------------------------------------------------- Scroll progress */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 2px;
}

.scroll-progress-fill {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--ok));
    will-change: transform;
}

/* ---------------------------------------------------------------- Shared bits */

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--eyebrow, var(--accent));
}

.section-title {
    margin-top: 10px;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-sub {
    margin-top: 16px;
    max-width: 560px;
    font-size: 1.08rem;
    color: var(--text-dim);
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }

.section { padding: clamp(96px, 14vw, 160px) 0; }

.panel {
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--panel-border);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.card-title {
    margin-bottom: 16px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--warn);
}

kbd {
    display: inline-block;
    min-width: 30px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    color: var(--text);
}

/* Buttons: Nova pill buttons. */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}

.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-sm { padding: 9px 16px; font-size: 0.72rem; }
.btn-lg { padding: 16px 28px; font-size: 0.88rem; }

.btn-primary {
    color: #06121c;
    background: linear-gradient(135deg, var(--accent), #a5d8ff);
    box-shadow: 0 8px 30px -8px rgba(116, 192, 252, 0.6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -8px rgba(116, 192, 252, 0.75);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.18);
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
    transition: letter-spacing 0.3s var(--ease);
}

.text-link:hover { letter-spacing: 0.14em; }

/* ---------------------------------------------------------------- Nav */

.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1200px, 100% - 32px);
    height: var(--nav-h);
    padding: 0 12px 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    transform: translateX(-50%);
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease);
}

.nav.scrolled {
    background: rgba(12, 14, 20, 0.92);
    border-color: var(--panel-border);
    box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
}

.nav.hidden { transform: translate(-50%, calc(-100% - 24px)); }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(116, 192, 252, 0.12);
    border: 1px solid rgba(116, 192, 252, 0.25);
}

.brand-mark svg { width: 16px; height: 16px; fill: var(--accent); }

.brand-name {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.3em;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-hover); }

.nav-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-btn {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--panel-border);
}

.menu-btn span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }


/* ---------------------------------------------------------------- Nav dropdown (Stats > City stats / My characters) */

.nav-group {
    position: relative;
    display: flex;
}

.nav-links .nav-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links .nav-group-btn:hover,
.nav-group.open .nav-group-btn { color: var(--text); background: var(--surface); }
.nav-links .nav-group-btn.active { color: var(--text); background: var(--surface-hover); }

.nav-group-btn svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: rotate 0.3s var(--ease);
}

.nav-group.open .nav-group-btn svg { rotate: 180deg; }

.nav-sub {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 230px;
    padding: 6px;
    border-radius: 16px;
    background: #0c0e14;
    border: 1px solid var(--panel-border);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s ease, transform 0.3s var(--ease), visibility 0.2s;
}

/* Invisible bridge so the pointer can cross the gap without the menu closing. */
.nav-sub::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.nav-group.open .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-links .nav-sub a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.nav-sub a b {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.nav-sub a span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-faint);
}

.nav-links .nav-sub a.active { background: var(--surface-hover); }

/* Phone menu: the two pages sit indented under Stats, always visible. */
@media (max-width: 860px) {
    .nav-group { flex-direction: column; }
    /* Here "Stats" is just a label for the two pages below it, so it never looks like a pressed button. */
    .nav-links .nav-group-btn,
    .nav-links .nav-group-btn.active { padding: 14px 16px; font-size: 0.85rem; pointer-events: none; background: none; }
    .nav-group-btn svg { display: none; }

    .nav-sub,
    .nav-group.open .nav-sub {
        position: static;
        min-width: 0;
        padding: 0 0 4px 14px;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        opacity: 1;
        /* inherit, not visible: a visible child inside the closed (hidden) menu would stay tappable. */
        visibility: inherit;
        transform: none;
    }

    .nav-sub::before { display: none; }
    .nav-links .nav-sub a { padding: 10px 16px; }
}

/* ---------------------------------------------------------------- Hero */

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 48px) 16px 120px;
    text-align: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform, opacity;
}

.status-pill { animation: rise 0.8s 0.1s var(--ease) backwards; }

.status-pill .dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
}

.status-pill.online .dot { background: var(--ok); }

/* The pulse ring animates transform/opacity only, so it runs on the GPU. (Animating box-shadow
   repainted the whole hero, giant title included, every frame - even with nothing else moving.) */
.status-pill.online .dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2s ease-out infinite;
}

.status-pill.online b { color: var(--text); }

@keyframes pulse {
    from { transform: scale(1); opacity: 0.6; }
    70%, to { transform: scale(3.2); opacity: 0; }
}

.hero-title {
    display: flex;
    flex-direction: column;
    margin-top: 28px;
    font-size: clamp(4.5rem, 22vw, 11rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-line {
    display: block;
    overflow: hidden;
    padding: 0.04em 0 0.04em 0.08em; /* letter-spacing adds trailing space; balance it */
}

.hero-line.sub {
    font-size: 0.42em;
    font-weight: 800;
    letter-spacing: 0.42em;
    color: var(--accent);
    padding-left: 0.42em;
}

.hero-line .char {
    display: inline-block;
    animation: char-in 1.1s var(--ease) backwards;
    animation-delay: calc(0.25s + var(--i) * 0.05s);
}

@keyframes char-in {
    from { opacity: 0; transform: translateY(105%) rotate(6deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-tagline {
    max-width: 560px;
    margin-top: 28px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 500;
    color: var(--text-dim);
    animation: rise 0.9s 0.7s var(--ease) backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    animation: rise 0.9s 0.85s var(--ease) backwards;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-faint);
    animation: fade 1s 1.4s both;
}

@keyframes fade { from { opacity: 0; } }

.scroll-cue-line {
    position: relative;
    width: 1px;
    height: 48px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-cue-line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--accent);
    animation: cue 2s var(--ease) infinite;
}

@keyframes cue {
    from { transform: translateY(-100%); }
    to { transform: translateY(260%); }
}

/* ---------------------------------------------------------------- Marquee */

.marquee {
    overflow: hidden;
    padding: 22px 0;
    border-block: 1px solid var(--panel-border);
    background: rgba(12, 14, 20, 0.5);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee span {
    padding: 0 28px;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-dim);
}

.marquee i {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    transform: rotate(45deg);
    background: var(--accent);
}

/* ---------------------------------------------------------------- About */

.manifesto {
    margin-top: 24px;
    font-size: clamp(1.6rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.manifesto .word {
    color: rgba(241, 243, 245, 0.14);
    transition: color 0.25s ease;
}

.manifesto .word.lit { color: var(--text); }
.manifesto .word.lit.hl { color: var(--accent); }

.about { padding-bottom: clamp(48px, 7vw, 80px); }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 80px;
}

.stat {
    padding: 26px 24px;
}

.stat-value {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ---------------------------------------------------------------- Features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature {
    position: relative;
    overflow: hidden;
    padding: 28px;
    transition: border-color 0.3s ease, transform 0.5s var(--ease);
}

/* Spotlight that follows the cursor (set by app.js). */
.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(116, 192, 252, 0.1), transparent 45%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature:hover { border-color: rgba(255, 255, 255, 0.12); }
.feature:hover::before { opacity: 1; }

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--c);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature p {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* ---------------------------------------------------------------- Jobs (horizontal on scroll) */

.jobs {
    position: relative;
    height: 400vh; /* app.js sets the real height from the track width */
}

.jobs-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.jobs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.jobs-counter {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
    color: var(--text-faint);
    white-space: nowrap;
}

.jobs-counter span:first-child { color: var(--text); }

.jobs-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding-inline: max(16px, (100vw - 1200px) / 2);
    will-change: transform;
}

.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(440px, 80vw);
    min-height: 400px;
    padding: 32px;
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%),
        var(--panel);
    border: 1px solid var(--panel-border);
}

.job-card::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%);
    pointer-events: none;
}

.job-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-tag {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}

.job-num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
}

.job-card h3 {
    margin-top: auto;
    padding-top: 48px;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.job-card p {
    margin-top: 12px;
    color: var(--text-dim);
}

.grades {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    list-style: none;
}

.grades li {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--panel-border);
}

.grades li.boss {
    color: var(--c);
    border-color: color-mix(in srgb, var(--c) 35%, transparent);
}

.jobs-bar {
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.jobs-bar-fill {
    height: 100%;
    transform-origin: left;
    transform: scaleX(0);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--warn));
    will-change: transform;
}

/* ---------------------------------------------------------------- Steps */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    list-style: none;
}

.step {
    padding: 32px 28px;
}

.step-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 50%;
    font-weight: 900;
    color: #06121c;
    background: linear-gradient(135deg, var(--ok), var(--accent));
}

.step h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.step p {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
    padding: 10px 10px 10px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: border-color 0.2s ease;
}

.copy:hover { border-color: rgba(116, 192, 252, 0.4); }

.copy code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.82rem;
    color: var(--accent);
}

.copy-label {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--surface-hover);
}

.copy.copied .copy-label { color: #06121c; background: var(--ok); }

.controls-panel {
    margin-top: 14px;
    padding: 24px 28px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 20px;
    list-style: none;
}

.controls li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

/* ---------------------------------------------------------------- FAQ */

.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq details {
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq details[open] { border-color: rgba(255, 255, 255, 0.12); }

.faq summary {
    position: relative;
    padding: 22px 64px 22px 24px;
    list-style: none;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 24px;
    width: 12px;
    height: 12px;
    margin-top: -8px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
    transition: transform 0.35s var(--ease), margin 0.35s var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq-body { overflow: hidden; }

.faq-body p {
    padding: 0 24px 22px;
    color: var(--text-dim);
}

/* ---------------------------------------------------------------- CTA */

.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 9vw, 110px) 24px;
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(116, 192, 252, 0.28), transparent 60%),
        radial-gradient(ellipse at 0% 0%, rgba(81, 207, 102, 0.12), transparent 50%),
        var(--panel);
    border: 1px solid var(--panel-border);
}

.cta-title {
    margin-top: 14px;
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-actions.center { animation: none; }

/* ---------------------------------------------------------------- Footer */

.footer {
    padding: 48px 0 40px;
    border-top: 1px solid var(--panel-border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap; /* several links won't fit on one line on a phone */
    gap: 10px 22px;
}

.footer-links a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text); }

.footer-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: var(--text); }

.footer-note {
    width: 100%;
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* ---------------------------------------------------------------- Reveal on scroll */

[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease) var(--delay, 0s), transform 0.9s var(--ease) var(--delay, 0s), border-color 0.3s ease;
}

[data-reveal].in {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 980px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .controls { grid-template-columns: repeat(2, 1fr); }
}

/* Below 860px the nav links move into the menu button's dropdown. */
@media (max-width: 860px) {
    .menu-btn { display: block; }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 2px;
        padding: 10px;
        border-radius: 20px;
        background: #0c0e14;
        box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
        border: 1px solid var(--panel-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0.25s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a { padding: 14px 16px; font-size: 0.85rem; }

    .nav.menu-open {
        background: rgba(12, 14, 20, 0.96);
        border-color: var(--panel-border);
    }
}

@media (max-width: 860px) {
    .hide-sm { display: none; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .stats { gap: 10px; margin-top: 56px; }
    .stat { padding: 20px 18px; }
    .jobs-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .job-card { min-height: 380px; padding: 26px; }
    .jobs-sticky { gap: 32px; }
    .hero-actions .btn { width: 100%; }
    .hero-line.sub { letter-spacing: 0.3em; padding-left: 0.3em; }
    .hero-actions { width: 100%; max-width: 360px; }
    .hero-actions.center { margin-inline: auto; }
    .nav { padding-left: 14px; }
    .brand-name { font-size: 0.85rem; }
}

/* ---------------------------------------------------------------- City map (behind the jobs section) */

.jobs-sticky > *:not(.city) {
    position: relative;
    z-index: 1;
}

.city {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Fade to transparent (not to a colour) at the top and bottom, so the page glows show through and there's no seam. */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 90%, transparent 100%);
}

/* One big layer moved with transform only (app.js), so panning never repaints. */
.city-map {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    /* Fade the map's own edges so the land never ends in a hard line. */
    -webkit-mask-image:
        linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
        linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent),
        linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
    mask-composite: intersect;
}

.city-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Keeps the heading readable and blends the map into the sections above and below. */
.city-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 9, 13, 0.75) 0%, rgba(7, 9, 13, 0) 40%);
}

.blips {
    position: absolute;
    inset: 0;
}

.blip {
    position: absolute;
    width: 0;
    height: 0;
}

.blip-dot {
    position: absolute;
    left: -11px;
    top: -11px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0c0e14;
    border: 2px solid color-mix(in srgb, var(--c) 65%, transparent);
    opacity: 0.75;
}

.blip-dot svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--c);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.blip-dot svg .solid { fill: var(--c); stroke: none; }

.blip.major .blip-dot {
    left: -17px;
    top: -17px;
    width: 34px;
    height: 34px;
    background: color-mix(in srgb, var(--c) 20%, #0c0e14);
    border-color: var(--c);
    opacity: 0.85;
    transition: transform 0.5s var(--ease), box-shadow 0.5s ease, opacity 0.3s ease;
}

.blip.major .blip-dot svg { width: 17px; height: 17px; }

.blip.major.active .blip-dot {
    opacity: 1;
    transform: scale(1.25);
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent),
        0 0 40px color-mix(in srgb, var(--c) 55%, transparent);
}

.blip-pulse {
    position: absolute;
    left: -42px;
    top: -42px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid var(--c);
    opacity: 0;
}

.blip.active .blip-pulse { animation: blip-pulse 2s var(--ease) infinite; }

@keyframes blip-pulse {
    from { transform: scale(0.3); opacity: 0.9; }
    to { transform: scale(1.6); opacity: 0; }
}

/* Label sits left of the blip on desktop (blip is on the right), right of it on phones. */
.blip-label {
    position: absolute;
    top: -15px;
    right: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(12, 14, 20, 0.92);
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.35s ease, transform 0.5s var(--ease);
}

.blip.active .blip-label { opacity: 1; transform: none; }

.city.label-right .blip-label { right: auto; left: 34px; transform: translateX(-8px); }
.city.label-right .blip.active .blip-label { transform: none; }

/* Active job card picks up its colour. */
.job-card {
    background:
        linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%),
        rgba(12, 14, 20, 0.8);
    transition: border-color 0.4s ease;
}

.job-card.active { border-color: color-mix(in srgb, var(--c) 45%, transparent); }

/* ---------------------------------------------------------------- LSPD light bar */

.lightbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 0;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.5) 0 50%, rgba(116, 192, 252, 0.5) 50% 100%);
    pointer-events: none;
}

.lightbar i {
    position: absolute;
    top: -90px;
    width: 70%;
    height: 180px;
    border-radius: 50%;
    opacity: 0;
    will-change: opacity;
}

.lightbar .red {
    left: -15%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.55), transparent 65%);
}

.lightbar .blue {
    right: -15%;
    background: radial-gradient(ellipse at center, rgba(116, 192, 252, 0.6), transparent 65%);
}

/* Only flashes while the LSPD card is the active one. */
.job-card.active .lightbar .red { animation: flash-red 1.2s linear infinite; }
.job-card.active .lightbar .blue { animation: flash-blue 1.2s linear infinite; }

@keyframes flash-red {
    0%, 4% { opacity: 1; } 8%, 12% { opacity: 0; } 16%, 20% { opacity: 1; } 24%, 100% { opacity: 0; }
}

@keyframes flash-blue {
    0%, 50% { opacity: 0; } 54%, 58% { opacity: 1; } 62%, 66% { opacity: 0; } 70%, 74% { opacity: 1; } 78%, 100% { opacity: 0; }
}

/* ---------------------------------------------------------------- Wanted level divider */

.wanted {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 80px;
}

.stars {
    display: flex;
    gap: 10px;
}

.stars svg {
    width: 34px;
    height: 34px;
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.2;
    stroke-linejoin: round;
    transition: fill 0.3s ease, stroke 0.3s ease, transform 0.45s var(--ease);
}

.stars svg.lit {
    fill: var(--text);
    stroke: var(--text);
    transform: scale(1.1);
}

/* Five stars: they flash, like when the cops lose sight of you. */
.wanted.full .stars svg { animation: star-flash 1.1s ease-in-out infinite; }

@keyframes star-flash {
    50% { opacity: 0.3; }
}

.wanted-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------------------------------------------------------------- "Mission passed" banner */

.mission {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    pointer-events: none;
    visibility: hidden;
}

.mission.show { visibility: visible; }

.mission-band {
    width: 100%;
    padding: 34px 16px 30px;
    text-align: center;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(4, 5, 8, 0.85) 20%, rgba(4, 5, 8, 0.85) 80%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    padding-block: 56px 52px;
}

.mission.show .mission-band { animation: mission-band 3s var(--ease) forwards; }

.mission-title {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yellow);
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 212, 59, 0.3);
}

.mission.show .mission-title { animation: mission-title 3s var(--ease) forwards; }

.mission-line {
    width: min(420px, 70vw);
    height: 2px;
    margin: 16px auto 14px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.mission-sub {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

@keyframes mission-band {
    0% { opacity: 0; }
    10%, 82% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes mission-title {
    0% { opacity: 0; transform: scale(1.3); }
    12%, 100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .stars svg { width: 28px; height: 28px; }
    .wanted { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .mission.show .mission-band, .mission.show .mission-title { animation: none; opacity: 1; }
}


/* ---------------------------------------------------------------- Hero: footage + skyline */

.hero {
    --skyline-h: clamp(170px, 30vh, 330px);
    overflow: clip;
}

/* Lift the title and buttons clear of the skyline. */
body.has-skyline .hero { padding-bottom: calc(var(--skyline-h) * 0.9); }
.hero-inner, .scroll-cue { z-index: 2; }
.hero-inner { position: relative; }

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-media:empty { display: none; }

.hero-media video,
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease;
}

.hero-slide.active {
    opacity: 1;
    animation: hero-zoom 16s linear forwards;
}

@keyframes hero-zoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.12); }
}

/* Keeps the title readable over bright footage and fades it into the page. */
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(7, 9, 13, 0.35) 0%, rgba(7, 9, 13, 0.75) 100%),
        linear-gradient(180deg, rgba(7, 9, 13, 0.6) 0%, rgba(7, 9, 13, 0.2) 35%, rgba(7, 9, 13, 0.55) 70%, var(--bg) 100%);
}

.skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: var(--skyline-h);
    pointer-events: none;
}

.skyline:empty { display: none; }

.sky-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.sky-layer svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* GTA V sunset behind the skyline. */
.sunset {
    inset: -40% 0 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 169, 77, 0.34), rgba(247, 131, 172, 0.16) 45%, transparent 75%),
        radial-gradient(ellipse 90% 60% at 50% 100%, rgba(177, 151, 252, 0.12), transparent 70%);
}

.sun {
    position: absolute;
    left: 50%;
    bottom: 30%;
    width: clamp(80px, 9vw, 150px);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    background: linear-gradient(180deg, rgba(255, 212, 59, 0.8), rgba(255, 169, 77, 0.6) 55%, rgba(247, 131, 172, 0.45));
    box-shadow: 0 0 60px 16px rgba(255, 169, 77, 0.18);
    /* GTA-style horizontal bands through the lower half of the sun. */
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82%);
    mask-image: linear-gradient(180deg, #000 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82%);
}


/* YouTube background: a 16:9 player scaled to cover the hero (like object-fit: cover), slightly
   oversized so YouTube's edge UI stays off-screen. Hidden until it's actually playing. */
.hero-media { container-type: size; }

.hero-yt {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    border: 0;
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.hero-media.yt-playing .hero-yt { opacity: 1; }
/* The thumbnail slowly zooms while YouTube starts up, so the wait reads as motion, not a still. */

/* With real footage behind it, the painted sunset steps back. */
body.has-hero-media .sunset { opacity: 0.45; }

/* Skyline's foreground blends into the marquee strip below. */
.skyline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18%;
    background: linear-gradient(180deg, transparent, var(--bg));
}

@media (max-width: 600px) {
    .hero { --skyline-h: clamp(150px, 24vh, 220px); }
}

/* ---------------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
