/* ==========================================================================
   SCAPETEAMHOUS - WORLD CUP 2026 HUB
   Athletic, High-Energy Sports Analytics Stylesheet - Perfected Design Refinement
   ========================================================================== */

/* CUSTOM VARIABLES */
:root {
    --bg-base: #040710;
    --bg-surface: #0a0f1d;
    --bg-surface-elevated: #11182c;
    --bg-surface-light: #1b253f;
    --primary: #ff003c; /* Electric Red */
    --primary-rgb: 255, 0, 60;
    --secondary: #ff5500; /* Energetic Intense Orange */
    --secondary-rgb: 255, 85, 0;
    --accent-green: #00f2fe; /* High-probability Cyan Accent */
    --text-primary: #ffffff;
    --text-muted: #8495b0;
    --text-dark: #040710;
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-max-width: 1200px;
    --header-height: 56px; /* Slim Header */
    --glow-shadow: 0 0 20px rgba(255, 0, 60, 0.15);
}

/* RESET & GLOBAL STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Prevent layout scrolling when legal modal is open */
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UTILITY CLASSES */
.text-red { color: var(--primary); }
.text-orange { color: var(--secondary); }
.highlight-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #ffffff 40%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}
.accent-orange { color: var(--secondary); font-weight: 700; }
.highlight { color: var(--primary); font-weight: 700; }

/* SECTIONS STRUCTURE */
section {
    padding: 80px 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: skewX(-20deg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 32px;
    border-radius: var(--border-radius-sm);
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    transform: skewX(-10deg);
}

.btn > * {
    transform: skewX(10deg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-primary);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 0, 60, 0.25);
}

.btn-primary:hover {
    transform: skewX(-10deg) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 60, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.btn-secondary:hover {
    transform: skewX(-10deg) translateY(-2px);
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* STICKY SLIM HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(4, 7, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.header-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-slash {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    transform: skewX(-20deg);
}

/* Nav Menu Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-primary);
    padding: 6px 18px;
    border-radius: var(--border-radius-sm);
    transform: skewX(-10deg);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(255, 0, 60, 0.4);
    transform: skewX(-10deg) translateY(-1px);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

/* HERO SECTION */
.hero-section {
    min-height: 85vh;
    padding-top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-container-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at 80% 20%, rgba(255, 85, 0, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 0, 60, 0.05) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.003) 0px, rgba(255, 255, 255, 0.003) 1px, transparent 1px, transparent 12px);
    pointer-events: none;
    z-index: 1;
}

.hero-angle-bg {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255, 0, 60, 0.06) 0%, rgba(4, 7, 16, 0) 70%);
    transform: skewX(-15deg);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-tournament {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: rgba(255, 0, 60, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 0, 60, 0.2);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-subheading {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Premium styled Pitch board on hero */
.hero-visual-board {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pitch-container {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    background: radial-gradient(circle at center, rgba(27, 37, 63, 0.4) 0%, rgba(10, 15, 29, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 12px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.pitch-field {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    position: relative;
}

.pitch-line {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.04);
}

.center-line {
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
}

.penalty-area {
    width: 60%;
    height: 18%;
    left: 20%;
}

.left-penalty {
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.right-penalty {
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tactical-node {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    cursor: default;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-fast);
}

.tactical-node:hover {
    transform: scale(1.1);
}

.node-spain {
    top: 25%;
    left: 28%;
    background: linear-gradient(135deg, #ff003c, #ffaa00);
}

.node-france {
    top: 35%;
    right: 22%;
    background: linear-gradient(135deg, #0055ff, #ff003c);
}

.node-england {
    bottom: 30%;
    left: 22%;
    background: linear-gradient(135deg, #ffffff, #0055ff);
    color: #121824;
}

.node-brazil {
    bottom: 25%;
    right: 28%;
    background: linear-gradient(135deg, #00ff55, #ffdd00);
    color: #121824;
}

.node-tag {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.node-status {
    font-size: 0.7rem;
    opacity: 0.85;
}

.visual-board-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(10, 15, 29, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-indicator {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--secondary);
}

.board-data {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* BANNER */
.hero-stats-banner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-top: 40px;
    backdrop-filter: blur(8px);
}

.banner-item {
    background-color: var(--bg-surface);
    padding: 20px;
    text-align: center;
    transition: background-color var(--transition-fast);
}

.banner-item:hover {
    background-color: var(--bg-surface-elevated);
}

.banner-val {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1;
    color: var(--primary);
    font-weight: 700;
}

.banner-lbl {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* TITLE RACE STRIP */
.title-race-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

.contender-card {
    position: relative;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card-skew-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.04) 0%, rgba(255, 85, 0, 0.04) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    z-index: 1;
}

.contender-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 85, 0, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.contender-card:hover .card-skew-bg {
    opacity: 1;
}

.contender-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.contender-rank {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
    font-weight: 700;
}

.contender-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.contender-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.stat-row:last-of-type {
    margin-bottom: 8px;
}

.stat-row .lbl {
    color: var(--text-muted);
    font-weight: 500;
}

.stat-row .val {
    color: var(--text-primary);
    font-weight: 600;
}

/* Probability meter track */
.probability-track {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 6px;
}

.probability-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
}

/* TOP 10 MATCH PREVIEWS GRID */
.matches-grid-section {
    background-color: rgba(255, 255, 255, 0.003);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.matchups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.match-mini-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.match-mini-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 60, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.m-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.m-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    background-color: var(--bg-surface-elevated);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.m-edge-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.04em;
    background: rgba(255, 85, 0, 0.08);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
}

.teams-versus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    background-color: rgba(255, 255, 255, 0.01);
    padding: 12px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.team-block {
    flex: 1;
}

.text-left { text-align: left; }
.text-right { text-align: right; }

.t-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.t-rank {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.vs-divider {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0 8px;
    opacity: 0.75;
    text-align: center;
}

.m-brief {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    background-color: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transform: skewX(-8deg);
    transition: all var(--transition-fast);
}

.btn-card-action:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: skewX(-8deg) translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 0, 60, 0.25);
}

/* EXPANDED MATCH PREVIEWS */
.expanded-previews-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.previews-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.preview-block {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    padding: 30px;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 15px);
}

.preview-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.preview-header h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--text-primary);
}

.group-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    background-color: var(--primary);
    color: var(--text-primary);
    padding: 2px 12px;
    border-radius: var(--border-radius-sm);
    transform: skewX(-10deg);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.comp-team-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comp-team-card.primary-highlight {
    background-color: rgba(255, 0, 60, 0.02);
    border-color: rgba(255, 0, 60, 0.12);
}

.comp-team-card h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-tag {
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--secondary);
    background-color: rgba(255, 85, 0, 0.08);
    padding: 1px 8px;
    border-radius: 40px;
}

.comp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: var(--border-radius-sm);
}

.comp-stats div {
    font-size: 0.8rem;
    text-align: center;
}

.comp-stats span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-size: 0.75rem;
}

.comp-stats strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.vs-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    justify-self: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.preview-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.preview-column {
    display: flex;
    flex-direction: column;
}

.col-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--secondary);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.preview-text-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* GROUP RACE SNAPSHOT */
.group-snapshot-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.snapshot-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.snapshot-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 85, 0, 0.15);
}

.snap-card-top {
    margin-bottom: 12px;
}

.snap-header {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.snap-matchup {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.snap-details {
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.snap-row-data {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.snap-row-data strong {
    color: var(--text-primary);
}

.snap-verdict {
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--secondary);
    line-height: 1.4;
}

/* HOST NATIONS WATCH */
.hosts-watch-section {
    background-color: rgba(255, 255, 255, 0.003);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.host-card {
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.06) 0%, rgba(255, 85, 0, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.host-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.host-inner h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.host-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.host-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
}

.host-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.host-stat-row span {
    color: var(--text-muted);
}

.host-stat-row strong {
    color: var(--text-primary);
}

/* TOURNAMENT GUIDE */
.guide-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.guide-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.guide-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.06);
}

.guide-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--secondary);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 4px;
}

.guide-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FAQ SECTION */
.faq-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-accordion {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-trigger::after {
    content: '+';
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.faq-trigger:hover {
    background-color: var(--bg-surface-elevated);
}

/* For JS panel active styling */
.faq-item.active .faq-trigger::after {
    transform: rotate(45deg);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    background-color: rgba(0, 0, 0, 0.12);
}

.faq-item.active .faq-panel,
.faq-panel.show {
    max-height: 250px;
}

.faq-panel p {
    padding: 0 20px 16px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* LEGAL OVERLAY & MODALS */
.legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 16, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.legal-overlay.active {
    display: flex;
}

.legal-modal-content {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 2px 12px;
    border-radius: var(--border-radius-sm);
    transform: skewX(-10deg);
    transition: all var(--transition-fast);
}

.close-overlay:hover {
    background-color: var(--primary);
    color: var(--text-primary);
}

.legal-sub-content {
    display: none;
}

.legal-sub-content.active {
    display: block;
}

.legal-sub-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 0.9;
}

.legal-sub-content .meta {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.legal-sub-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 6px;
}

.legal-sub-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-top: 2px solid var(--secondary);
    padding: 16px 20px;
    z-index: 999;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.45);
    display: none;
}

.cookie-banner-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.4;
}

.cookie-banner-content a {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.btn-cookie-accept, .btn-cookie-reject {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.06em;
    padding: 6px 18px;
    border-radius: var(--border-radius-sm);
    transform: skewX(-8deg);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-cookie-accept {
    background-color: var(--secondary);
    color: var(--text-primary);
}

.btn-cookie-accept:hover {
    background-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.25);
}

.btn-cookie-reject {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.btn-cookie-reject:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* FOOTER */
.site-footer {
    background-color: #020409;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 20px 30px 20px;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand .brand-logo {
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 380px;
}

.footer-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.footer-address strong {
    color: var(--text-primary);
}

.footer-links h4, .footer-legal h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a, .footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--primary);
    padding-left: 2px;
}

.footer-links a, .footer-legal a {
    transition: all var(--transition-fast);
}

.footer-bottom {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* RESPONSIVE BREAKPOINTS */

@media screen and (max-width: 1024px) {
    .hero-container-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-visual-board {
        order: -1;
    }

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

@media screen and (max-width: 768px) {
    section {
        padding: 50px 16px;
    }

    .section-desc {
        margin-bottom: 30px;
    }

    /* Header & Mobile Navigation */
    .site-header {
        height: var(--header-height);
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-base);
        flex-direction: column;
        align-items: stretch;
        padding: 30px 20px;
        gap: 16px;
        transition: left var(--transition-normal);
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        padding-bottom: 8px;
    }

    .nav-cta-mobile {
        display: block;
        margin-top: 8px;
        font-family: var(--font-heading);
        font-size: 1.2rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: var(--text-primary);
        padding: 10px;
        border-radius: var(--border-radius-sm);
        text-align: center;
        letter-spacing: 0.04em;
    }

    .nav-cta {
        display: none;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-section {
        padding-top: calc(var(--header-height) + 16px);
        min-height: auto;
    }

    .hero-stats-banner {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .banner-item {
        padding: 12px;
    }

    /* Comparison grids inside previews */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .vs-circle {
        margin: 8px auto;
    }

    .preview-block {
        padding: 20px;
    }

    .preview-header h3 {
        font-size: 1.8rem;
    }

    .preview-text-block {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links h4, .footer-legal h4 {
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }

    .cookie-banner {
        padding: 12px;
    }

    .cookie-btn-group {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn-group button {
        width: 100%;
    }

    .legal-modal-content {
        padding: 20px 14px;
    }

    .legal-sub-content h2 {
        font-size: 2rem;
    }
}