:root {
    --color-primary-light: #778beb;
    --color-primary: #546de5;
    --color-primary-dark: #3e52b5;
    --color-accent: #e77f67;
    --color-success: #3dc1d3;
    --color-error: #e74c3c;
    --color-bg: #f8f9fa;
    --color-surface: #FFFFFF;
    --color-text-primary: #2d3436;
    --color-text-muted: #636e72;
    --font-main: 'Inter', system-ui, sans-serif;
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #f8f9fa 0%, #dcfce7 100%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

.text-error {
    color: var(--color-error);
    font-weight: 600;
}

.text-success {
    color: var(--color-success);
    font-weight: 600;
}

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

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

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

    .btn-primary:hover {
        background-color: var(--color-primary-dark);
        transform: translateY(-2px);
    }

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
}

    .btn-accent:hover {
        background-color: #d35400;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-disabled {
    background-color: #E5E7EB;
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-full {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

    .btn-outline:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

.btn-error {
    background-color: var(--color-error);
    color: white;
    border: none;
}

    .btn-error:hover {
        background-color: #c0392b;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phase-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    color: white;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.form-card {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .form-group input {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        outline: none;
        font-family: inherit;
    }

        .form-group input:focus {
            border-color: var(--color-primary);
        }

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-right: 1.5rem;
    transition: var(--transition);
}

    .nav-link:hover, .nav-link.active {
        color: white;
    }


.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(rgba(26, 60, 110, 0.75), rgba(26, 60, 110, 0.95)), url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?q=80&w=2000&auto=format&fit=crop') center/cover fixed;
    color: white;
    margin: 0;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.hero .highlight {
    color: var(--color-accent);
    text-transform: uppercase;
    display: inline-block;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}