/* Font Face Declarations */
@font-face {
    font-family: 'Hanson-Bold';
    src: url('../fonts/Hanson-Bold.ttf') format('truetype'),
         url('../fonts/Hanson-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DESIGN TOKENS — trade-clash-design.md
   Dark Terminal / Bloomberg Terminal aesthetic
   ============================================ */
:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-surface: #111111;
    --bg-glass: rgba(10, 10, 10, 0.85);
    --border-default: #1A1A1A;
    --border-hover: rgba(217, 119, 6, 0.5);

    /* Accents */
    --accent-primary: #D97706;
    --accent-hover: #F59E0B;
    --accent-secondary: #0F766E;
    --color-positive: #10B981;
    --color-negative: #EF4444;

    /* Text */
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #757D8A;   /* AA on --bg-primary (4.8:1) — was #4B5563 (2.5:1) */

    /* Typography */
    --font-display: 'Hanson-Bold', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

    /* Radii — minimal, not cute */
    --radius-card: 8px;
    --radius-input: 6px;
    --radius-tag: 4px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    min-height: 100vh;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0;
    line-height: 1.5;
}

em {
    font-style: italic;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--accent-primary);
}

/* Visually hidden — accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus-visible outlines for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: var(--radius-tag);
}

/* Typewriter visual span */
.typewriter-visual {
    display: inline;
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 120px;
}

.section-header {
    text-align: left;
    margin-bottom: 48px;
}

.section-header.centered {
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 115%;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    line-height: 160%;
    color: var(--text-secondary);
    max-width: 720px;
}

.section-header.centered .section-description {
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 101%;
    height: 100%;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 40%, rgba(0,0,0,0.9) 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 101%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.loaded {
    opacity: 1;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 24px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
    backdrop-filter: blur(16px);
    width: 100%;
    height: 160px;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    backdrop-filter: blur(16px);
    padding: 4px;
    width: fit-content;
    margin: 40px auto 0;
}

.nav-link {
    padding: 8px 20px;
    border-radius: var(--radius-tag);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 140%;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link.active {
    background: rgba(217, 119, 6, 0.15);
    color: var(--accent-primary);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 5;
    margin-bottom: 40px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 99%;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.title-line {
    display: block !important;
    width: 100%;
}

.hero-subtitle {
    font-size: 20px;
    letter-spacing: -0.01em;
    line-height: 150%;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button */
.hero-cta {
    margin-bottom: 60px;
    z-index: 5;
}

.cta-button {
    background: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-card);
    padding: 14px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--bg-primary);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 24px rgba(217, 119, 6, 0.4);
    transform: translateY(-2px);
}

.cta-button.primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.cta-button.secondary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 16px;
}

.cta-button svg {
    vertical-align: middle;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
    opacity: 0.3;
    animation: bounce 2s infinite;
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
}

.scroll-indicator:focus-visible {
    opacity: 0.8;
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    border-radius: var(--radius-tag);
}

.chevron-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ============================================
   TLDR SECTION
   ============================================ */
.tldr-section {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    padding: 120px 0 80px;
}

.tldr-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tldr-image {
    flex: none;
    width: 560px;
    max-width: 100%;
    height: 374px;
    position: sticky;
    top: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.tldr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-card);
    transition: transform 0.3s ease;
}

.tldr-image img:hover {
    transform: scale(1.03);
}

.tldr-text {
    flex: 1;
    max-width: 480px;
}

.description-text {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 140%;
    color: var(--text-primary);
}

/* ============================================
   THREE STREETS SECTION
   ============================================ */
.streets-section {
    background-color: var(--bg-secondary);
    padding: 120px 0;
}

.streets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 64px;
}

.street-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    backdrop-filter: blur(16px);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.street-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.1);
}

/* Reveal card spans full width */
.street-card.reveal-card {
    grid-column: 1 / -1;
}

.street-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.street-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.street-info {
    font-size: 15px;
    line-height: 160%;
    color: var(--text-secondary);
}

.street-action {
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-default);
}

.first-place-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: var(--radius-tag);
    background: rgba(217, 119, 6, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

/* ============================================
   GLOBE SECTION
   ============================================ */
.globe-section {
    background: var(--bg-primary);
    padding: 120px 0;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.globe-content {
    display: flex;
    gap: 60px;
    margin-top: 64px;
    align-items: flex-start;
}

.globe-visual {
    flex: none;
    width: 400px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
}

/* Fallback if Globe.gl fails to load */
.globe-visual.fallback {
    background: url('../images/globe.webp') center/contain no-repeat;
}

.globe-details {
    flex: 1;
}

.region-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-tag);
    font-size: 14px;
    color: var(--text-secondary);
    transition: border-color 0.2s ease;
}

.region-item:hover {
    border-color: var(--border-hover);
}

.region-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* the six blocs — colours mirrored from the product (landing.html BLOCS) */
.region-dot.americorp { background: #3B82F6; }
.region-dot.pumpfederation { background: #EF4444; }
.region-dot.bailoutunion { background: #6366F1; }
.region-dot.moonfactory { background: #F43F5E; }
.region-dot.nasiholdings { background: #22D3EE; }
.region-dot.oilcoinemirate { background: #FBBF24; }

.region-name {
    color: var(--text-primary);
    font-weight: 600;
}

.globe-dashboard-note {
    margin-top: 32px;
    padding: 16px 20px;
    background: rgba(217, 119, 6, 0.05);
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: var(--radius-card);
    font-size: 14px;
    line-height: 160%;
    color: var(--text-secondary);
}

/* ============================================
   ANATOMY OF A LOT SECTION
   ============================================ */
.lot-section {
    background: var(--bg-secondary);
    padding: 120px 0;
}

.lot-demo {
    display: flex;
    gap: 60px;
    margin-top: 64px;
    align-items: flex-start;
}

.lot-card {
    flex: none;
    width: 380px;
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    backdrop-filter: blur(16px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.lot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.lot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lot-category {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    background: rgba(217, 119, 6, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-tag);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.lot-drama {
    display: flex;
    gap: 2px;
}

.lot-drama .star {
    font-size: 14px;
    color: var(--text-muted);
}

.lot-drama .star.active {
    color: var(--accent-primary);
}

.lot-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lot-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-default);
}

.lot-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lot-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.lot-positions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lot-position-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.position-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.position-dot.private { background: var(--accent-primary); }
.position-dot.shared { background: var(--accent-secondary); }
.position-dot.burn { background: var(--text-muted); }

.lot-bid-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

.lot-bid-label {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.lot-bid-input {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.lot-bid-cursor {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.lot-timer {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.lot-explanation {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 4px;
}

.lot-explain-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lot-explain-item p {
    font-size: 15px;
    line-height: 160%;
    color: var(--text-secondary);
}

/* ============================================
   TWO GAMES SECTION
   ============================================ */
.two-games-section {
    background-color: var(--bg-primary);
    padding: 120px 0 140px;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 64px;
}

.game-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    backdrop-filter: blur(16px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 24px rgba(217, 119, 6, 0.08);
}

.game-number {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.game-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 115%;
    text-transform: uppercase;
    color: var(--text-primary);
}

.game-description {
    font-size: 16px;
    line-height: 170%;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background-color: var(--bg-primary);
    min-height: 600px;
    height: 100vh;
    max-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    background-image: url('../images/cta-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.cta-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(0deg, var(--bg-primary), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 40px;
    gap: 16px;
}

.cta-logo {
    margin-bottom: 20px;
}

.cta-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    line-height: 115%;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-primary);
    padding: 60px 80px;
    border-top: 1px solid var(--border-default);
}

.footer-content {
    max-width: 720px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-link {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 140%;
    text-align: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-default);
    padding-top: 40px;
    display: flex;
    justify-content: center;
}

.copyright {
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 140%;
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-default);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.mobile-nav-link.active {
    color: var(--accent-primary);
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1440px) {
    .section-container {
        padding: 0 80px;
    }
}

@media (max-width: 1024px) {
    .section-container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 72px;
    }

    .section-title {
        font-size: 36px;
    }

    .tldr-content {
        flex-direction: column;
        gap: 40px;
    }

    .tldr-image {
        width: 100%;
        height: 300px;
    }

    .streets-grid {
        grid-template-columns: 1fr;
    }

    .globe-content {
        flex-direction: column;
        align-items: center;
    }

    .globe-visual {
        width: 300px;
        height: 300px;
    }

    .region-list {
        grid-template-columns: 1fr;
    }

    .lot-demo {
        flex-direction: column;
        align-items: center;
    }

    .lot-card {
        width: 100%;
        max-width: 420px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 16px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Hide desktop nav, show mobile bottom nav */
    .navigation {
        display: none;
    }

    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Add bottom padding so content doesn't hide behind mobile nav */
    .footer {
        padding: 40px 20px 100px;
    }

    .street-card {
        padding: 24px;
    }

    .globe-visual {
        width: 240px;
        height: 240px;
    }

    .lot-card {
        width: 100%;
        padding: 20px;
    }

    .game-card {
        padding: 28px;
    }

    .cta-title {
        font-size: 36px;
    }

    /* CTA section responsive */
    .cta-section {
        min-height: 500px;
        max-height: none;
        height: auto;
    }

    .cta-content {
        position: relative;
        height: auto;
        padding: 60px 20px 80px;
    }

    .cta-logo-img {
        max-width: 200px;
        height: auto;
    }

    /* Section padding reduction */
    .tldr-section {
        padding: 80px 0 60px;
    }

    .streets-section,
    .globe-section,
    .lot-section,
    .two-games-section {
        padding: 80px 0;
    }

    /* Description text */
    .description-text {
        font-size: 20px;
    }

    .section-description {
        font-size: 16px;
    }

    /* Footer links stack better on mobile */
    .footer-links {
        justify-content: center;
    }

    .footer-link svg {
        width: 28px;
        height: 28px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-container > section {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   DELIGHT — Micro-interactions & personality
   ============================================ */

/* Card tilt perspective container */
.street-card,
.game-card,
.lot-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

/* Region dot radar ping on hover */
.region-item:hover .region-dot {
    animation: radarPing 0.8s ease-out;
}

.region-dot {
    position: relative;
}

.region-item:hover .region-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: inherit;
    animation: radarPing 1s ease-out;
}

@keyframes radarPing {
    0% {
        box-shadow: 0 0 0 0 currentColor;
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 0 12px transparent;
        opacity: 0;
    }
}

/* CTA button satisfying press */
.cta-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.6), inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.05s, box-shadow 0.05s;
}

/* Section scanline reveal */
.section-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.section-scanline.sweep {
    animation: scanlineSweep 0.6s ease-out forwards;
}

@keyframes scanlineSweep {
    0% {
        top: 0;
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Lot card bid number cycling */
.lot-bid-input .cycling {
    display: inline-block;
    min-width: 1ch;
    font-variant-numeric: tabular-nums;
}

/* Street card glitch-in stagger */
.street-card .street-label,
.street-card .first-place-badge {
    position: relative;
    overflow: hidden;
}

.street-card .street-label::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    transform: translateX(101%);
    pointer-events: none;
}

.animate-in .street-card .street-label::after {
    animation: glitchWipe 0.4s ease-out forwards;
}

.animate-in .street-card:nth-child(1) .street-label::after { animation-delay: 0.15s; }
.animate-in .street-card:nth-child(2) .street-label::after { animation-delay: 0.25s; }
.animate-in .street-card:nth-child(3) .street-label::after { animation-delay: 0.35s; }
.animate-in .street-card:nth-child(4) .street-label::after { animation-delay: 0.45s; }

@keyframes glitchWipe {
    0% { transform: translateX(-101%); }
    45% { transform: translateX(0%); }
    55% { transform: translateX(0%); }
    100% { transform: translateX(101%); }
}

/* Nav link active transition — amber underline slide */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.25s ease, left 0.25s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* Reduced motion: disable all delight animations */
@media (prefers-reduced-motion: reduce) {
    .region-item:hover .region-dot::after,
    .section-scanline.sweep,
    .animate-in .street-card .street-label::after {
        animation: none;
    }

    .cta-button:active {
        transform: none;
    }

    .nav-link::after {
        transition: none;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   ARENA SECTIONS — added when the site moved from the sealed-lot auction
   game to the agent battle arena. Reuses the existing section vocabulary;
   only genuinely new components are defined here.
   ═══════════════════════════════════════════════════════════════════════ */

.hero-verbs {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.34em;
    color: var(--accent-primary);
    text-transform: uppercase;
}

/* Trailer ---------------------------------------------------------------- */
.trailer-section { padding: 100px 0; background: var(--bg-primary); }

.trailer-frame {
    max-width: 960px;
    margin: 48px auto 0;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px -40px rgba(217, 119, 6, 0.45);
}

.trailer-video { display: block; width: 100%; height: auto; }

/* Leader strip ----------------------------------------------------------- */
.leader-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 56px;
}

.leader { margin: 0; text-align: center; }

.leader img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 50% 12%;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
}

.leader figcaption {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    /* names come from data and can be long — never let one blow out the grid */
    overflow-wrap: anywhere;
}

.leader figcaption span {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    text-transform: uppercase;
}

/* Points-only disclosure — the money rule, stated where the money talk is -- */
.points-note {
    max-width: 760px;
    margin: 56px auto 0;
    padding: 18px 22px;
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-card);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: center;
}

.points-note strong { color: var(--text-primary); }

/* CTA tagline ------------------------------------------------------------ */
.cta-line {
    margin: 18px 0 26px;
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 38px);
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.legacy-note { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.legacy-note a { color: var(--text-secondary); }

/* The battle-plan chip replaced the old star rating in the same slot */
.lot-drama {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--accent-primary);
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: var(--radius-tag);
    padding: 3px 8px;
}

@media (max-width: 900px) {
    .leader-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .leader-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trailer-section { padding: 64px 0; }
}

/* In-page anchors land under the fixed nav without this — every "How It Works" click
   arrived mid-heading. */
#how, #forge, #globe, #trailer, #join { scroll-margin-top: 140px; }


/* ── Layout corrections after the arena rewrite ─────────────────────────────
   The section CSS was written for the auction page's content shapes. Dropping
   different content into it produced a broken grid, a bid-input styled as a
   headline, and a page nearly twice as tall as it needed to be. */

/* The four steps are equal siblings. .reveal-card made the auction's climax card
   span the grid; with four equal steps it just reads as a broken layout. */
.streets-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.street-card.reveal-card { grid-column: auto; }

@media (max-width: 1100px) { .streets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .streets-grid { grid-template-columns: minmax(0, 1fr); } }

/* Standing orders, replacing the bid slot. This is a code-ish artifact, not a
   32px headline number. */
.lot-orders {
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

.lot-orders-label {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.lot-orders-text {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-input);
    padding: 12px 14px;
    /* player-authored text: never let a long order blow out the card */
    overflow-wrap: anywhere;
}

.lot-orders-status {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.lot-orders-status .ok { color: var(--color-positive); }

/* Vertical rhythm: 120px top and bottom on every section put roughly two dead
   screens into the page. */
.streets-section,
.lot-section,
.globe-section,
.two-games-section { padding: 88px 0; }

.tldr-section { padding: 88px 0 72px; }
.trailer-section { padding: 88px 0; }
.streets-grid { margin-top: 44px; }
.leader-strip { margin-top: 44px; }
.points-note { margin-top: 44px; }

@media (max-width: 768px) {
    .streets-section,
    .lot-section,
    .globe-section,
    .two-games-section,
    .tldr-section,
    .trailer-section { padding: 56px 0; }
}

/* Bloc rows are short now (bloc + region); keep them on one line. */
.region-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The old TLDR copy ran five lines at 24px and filled its column. The arena line is
   two short sentences, which left half the section empty — so give it the weight of
   a statement instead of the size of body copy. */
.tldr-content { justify-content: center; }
.tldr-text { max-width: 520px; }
.description-text { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.3; }
.description-text em { font-style: normal; color: var(--accent-primary); }

@media (max-width: 900px) {
    .tldr-content { flex-direction: column; }
    .tldr-image { width: 100%; height: auto; aspect-ratio: 3 / 2; position: static; }
}
