/* ─── Reset & Variables ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #050a12;
    --bg-surface: #0a1020;
    --bg-card: #0f172a;
    --bg-card-hover: #131d35;
    --bg-elevated: #1a2744;
    --ice: #00bce8;
    --ice-dim: #0891b2;
    --ice-glow: rgba(0, 188, 232, 0.12);
    --amber: #f59e0b;
    --amber-dim: #d97706;
    --green: #22c55e;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

a { color: var(--ice); text-decoration: none; transition: color var(--transition); }
a:hover { color: #4dd9f5; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(5, 10, 18, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

.logo-icon { width: 28px; height: 28px; color: var(--ice); }
.logo-dot { color: var(--ice); }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-switcher { display: flex; gap: 0.25rem; }

.lang-btn {
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--transition);
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: var(--ice);
    border-color: rgba(0, 188, 232, 0.3);
    background: rgba(0, 188, 232, 0.08);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(0, 188, 232, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 85% 60%, rgba(0, 188, 232, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}

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

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ice);
    background: rgba(0, 188, 232, 0.1);
    border: 1px solid rgba(0, 188, 232, 0.2);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text);
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--ice);
    color: #000;
}

.btn-primary:hover {
    background: #4dd9f5;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 188, 232, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--ice);
    color: var(--ice);
    transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ─── Stats Bar ─── */
.hero-stats {
    position: relative;
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding: 2rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--ice);
    letter-spacing: 0.02em;
}

.stat-label, .stat_label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ─── Sections ─── */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Features Grid ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ─── Leagues Grid ─── */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.league-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.league-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.league-featured {
    border-color: rgba(0, 188, 232, 0.2);
    background: linear-gradient(135deg, rgba(0, 188, 232, 0.06), var(--bg-card));
}

.league-cta {
    border-style: dashed;
    border-color: var(--border-light);
}

.league-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(0, 188, 232, 0.1);
    color: var(--ice);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.league-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.league-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.league-location {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.league-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ─── Screenshots ─── */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.screenshot-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    height: 240px;
}

.screenshot-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-zoom {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ─── Screenshot Modal ─── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 95vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    display: block;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.modal-close:hover {
    opacity: 1;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2.5rem;
    width: 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    opacity: 0.7;
    transition: opacity var(--transition), background var(--transition);
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.modal-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

@media (max-width: 600px) {
    .modal-nav {
        width: 36px;
        height: 48px;
        font-size: 2rem;
    }
    .modal-prev { left: 0.5rem; }
    .modal-next { right: 0.5rem; }
}

.screenshots-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.screenshots-placeholder p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ─── Tech Grid ─── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.tech-card {
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--ice);
    letter-spacing: 0.04em;
}

.tech-card ul {
    list-style: none;
}

.tech-card li {
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.tech-card li:last-child { border-bottom: none; }
.tech-card li strong { color: var(--text); font-weight: 600; }

/* ─── Support & Development ─── */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.support-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.support-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.support-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}

.support-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ─── Contact Section ─── */
.section-contact {
    padding: 8rem 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 188, 232, 0.06) 0%, transparent 70%),
        var(--bg-deep);
}

.contact-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.contact-inner p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Footer ─── */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: 0.04em;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ─── Legal Pages ─── */
.legal-page {
    padding-top: 8rem;
    min-height: 80vh;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-intro {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.15rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ─── Cookie Consent Banner (centered modal overlay) ─── */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 4, 8, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    padding: 1.5rem;
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-banner-inner {
    max-width: 480px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 188, 232, 0.08);
    text-align: center;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s ease;
}

.cookie-banner.visible .cookie-banner-inner {
    transform: scale(1) translateY(0);
}

.cookie-banner-text {
    margin-bottom: 1.5rem;
}

.cookie-banner-text strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--ice);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-cookie {
    padding: 0.7rem 1.8rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    flex: 1;
    text-align: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        padding: 2rem 1.5rem 1.5rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }
}

/* ─── Mobile Responsive ─── */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-surface);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.open { right: 0; }

    .mobile-toggle { display: flex; }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-item { flex: 1 0 40%; }

    .features-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

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

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

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .hero { padding-top: 6rem; }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item { flex: none; }

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

    .hero-actions { flex-direction: column; align-items: center; }

    .contact-actions { flex-direction: column; align-items: center; }
}
