:root {
    /* Colors */
    --navy-base: #070b14;
    --navy-light: #111a2e;
    --navy-card: rgba(17, 26, 46, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --green-accent: #10b981;
    --green-glow: rgba(16, 185, 129, 0.3);
    --gold-highlight: #f59e0b;
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-med: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--navy-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--green-accent);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Classes */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.gold-text {
    color: var(--gold-highlight);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--trans-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--green-accent);
    color: var(--navy-base);
}

.btn-primary:hover {
    background-color: #0ea5e9; /* Swap to an alternate active state */
    color: #fff;
}

.btn-secondary {
    background-color: var(--navy-light);
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn-secondary:hover {
    background-color: var(--green-accent);
    color: var(--navy-base);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--navy-base);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--navy-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Layout Utilities */
.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: #04070a;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    transition: background var(--trans-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-cta {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--trans-fast);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.pitch-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    background-color: rgba(7, 11, 20, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subheadline {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--navy-card);
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--green-accent);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-highlight);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Matches Grid */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.match-card {
    display: flex;
    flex-direction: column;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.group-badge {
    background: var(--navy-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gold-highlight);
    border: 1px solid var(--border-glass);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-glass);
}

.team {
    text-align: center;
    flex: 1;
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.vs {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0 10px;
}

.match-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.metric {
    text-align: center;
}

.metric-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-accent);
}

.metric-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-short-preview {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Analytics Panels */
.analytics-panel {
    margin-bottom: 30px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 15px;
}

.panel-head h3 {
    font-size: 1.5rem;
    color: var(--gold-highlight);
}

.panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.comparison-table td:nth-child(2) {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comparison-table td:first-child,
.comparison-table td:last-child {
    font-weight: 700;
    color: var(--green-accent);
}

.tactical-breakdown h4 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.tactical-breakdown p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.tactical-breakdown strong {
    color: var(--gold-highlight);
}

/* Power Rankings */
.rankings-list {
    max-width: 800px;
    margin: 0 auto;
}

.ranking-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-glass);
}

.ranking-row:last-child {
    border-bottom: none;
}

.header-row {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.02);
}

.rank-num {
    width: 60px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-highlight);
}

.rank-team {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.rank-score {
    flex: 1;
    background: var(--navy-base);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.score-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--navy-light), var(--green-accent));
    text-align: right;
    padding-right: 15px;
    line-height: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-base);
    border-radius: 15px;
}

/* Forecasts */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.forecast-card {
    text-align: center;
    border-top: 4px solid var(--green-accent);
}

.forecast-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.forecast-result {
    background: var(--navy-base);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.forecast-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.forecast-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-highlight);
}

.forecast-note {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-style: italic;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--navy-card);
    color: var(--text-main);
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--trans-fast);
}

.faq-question:hover {
    background: var(--navy-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--green-accent);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--trans-med);
    background: var(--navy-base);
}

.faq-answer p {
    padding: 20px;
    color: #cbd5e1;
}

/* Footer */
.site-footer {
    background: #020408;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h3, .footer-address h3 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--green-accent);
}

.footer-address address {
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.6;
}

.footer-notice {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Legal Pages Styling */
.legal-header {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 40px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--gold-highlight);
}

.legal-content p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    background: var(--navy-base);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--green-accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--navy-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    padding: 20px;
    z-index: 9999;
    transition: bottom var(--trans-med);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-main);
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .panel-body {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--navy-base);
        flex-direction: column;
        justify-content: center;
        transition: right var(--trans-med);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-stats-ribbon {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-row {
        display: none;
    }
    
    .rank-score {
        width: 100%;
    }
}