:root {
    --logo-blue: #00AEEF;
    --logo-blue-dark: #0099cc;
    --bg-color: #0c1419;
    --bg-elevated: #0a1c28;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #edebdf;
    --accent-teal: #00AEEF;
    --accent-teal-dark: #0099cc;
    --accent-teal-light: #33bff2;
    --accent-gold: #ffd700;
    --accent-gold-dark: #ccaa00;
    --accent-purple: #8b5cf6;
    --glow: 0 0 20px rgba(0, 174, 239, 0.3);
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.4);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.pitch-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 100% 80% at 50% 20%, rgba(0, 174, 239, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 80% 100% at 80% 60%, rgba(0, 153, 204, 0.12) 0%, transparent 45%),
        linear-gradient(180deg, #0c1419 0%, #0a1c28 35%, #0c1419 100%);
}

.pitch-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 79px,
        rgba(255, 255, 255, 0.015) 79px,
        rgba(255, 255, 255, 0.015) 80px
    );
    pointer-events: none;
}

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

a {
    color: var(--accent-teal-light);
    text-decoration: none;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
    font-size: 1.15rem;
}

.accent {
    color: var(--accent-teal);
    text-shadow: 0 0 40px rgba(0, 174, 239, 0.4);
}

.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: rgba(12, 20, 25, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-nav {
    display: none;
    gap: 1.25rem;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--accent-teal);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    background-size: 200% 200%;
    color: #fff;
    box-shadow: var(--glow);
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(0, 174, 239, 0.4), 0 0 50px rgba(139, 92, 246, 0.3);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-ghost:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

section {
    padding: 4rem 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-head p {
    margin: 0.5rem 0 0;
    color: rgba(237, 235, 223, 0.7);
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    padding-top: 2rem;
    min-height: calc(100vh - var(--header-h));
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 0.75rem;
}

.hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 0 1.75rem;
}

.countdown {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.countdown-unit {
    min-width: 72px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}

.countdown-unit span {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-teal);
    line-height: 1;
}

.countdown-unit small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(237, 235, 223, 0.55);
}

.countdown-label {
    font-size: 0.85rem;
    color: rgba(237, 235, 223, 0.55);
    margin: 0 0 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.4rem 0.85rem;
    background: rgba(12, 20, 25, 0.9);
    border: 1px solid var(--accent-teal);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-teal);
}

.promo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
}

.promo-features li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
}

.feature-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.promo-features strong {
    display: block;
    font-family: var(--font-display);
}

.promo-features span {
    font-size: 0.9rem;
    color: rgba(237, 235, 223, 0.65);
}

.promo-image img {
    width: 100%;
    border-radius: calc(var(--radius) - 4px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 174, 239, 0.12);
    border-color: var(--accent-teal);
    color: var(--accent-teal-light);
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.match-card {
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 174, 239, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.match-card.selected {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 1px var(--accent-teal), var(--shadow);
}

.match-stage {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(0, 174, 239, 0.15);
    color: var(--accent-teal-light);
    margin-bottom: 0.6rem;
}

.match-teams {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.match-meta {
    font-size: 0.85rem;
    color: rgba(237, 235, 223, 0.6);
    margin: 0 0 1rem;
}

.match-card .btn {
    width: 100%;
    padding: 0.55rem;
    font-size: 0.85rem;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.tool-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tool-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(237, 235, 223, 0.7);
    margin-top: 0.5rem;
}

.tool-form input,
.tool-form select {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.tool-form input:focus,
.tool-form select:focus {
    outline: none;
    border-color: var(--accent-teal);
}

.canvas-wrap {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#invite-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    overflow: hidden;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-footer {
    text-align: center;
    padding: 2rem 1.25rem 3rem;
    border-top: 1px solid var(--card-border);
    color: rgba(237, 235, 223, 0.55);
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.soccer-ball {
    position: fixed;
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #fff 0%, #e0e0e0 40%, #333 41%, #333 45%, transparent 46%),
        linear-gradient(135deg, #fff 0%, #ccc 50%, #fff 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: ball-spin 8s linear infinite;
    z-index: 50;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes ball-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#wcBookingMessage {
    margin-top: 20px;
    text-align: center;
}

.wc-invite-after-booking {
    width: 100%;
    margin-top: 12px;
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        padding-top: 3rem;
    }

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

    .tool-layout {
        grid-template-columns: 320px 1fr;
    }
}

@media (min-width: 1024px) {
    .promo-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .soccer-ball {
        animation: none;
    }

    .match-card:hover,
    .btn:hover {
        transform: none;
    }
}
