.sportify-home {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sp-text);
}

.home-hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 77, 0, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.18) 0%, transparent 45%),
        linear-gradient(135deg, #111827 0%, #0f172a 55%, #1e1b4b 100%);
    border-bottom: 1px solid var(--sp-border);
    padding: 5rem 1.5rem 7rem;
    text-align: center;
    overflow: hidden;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/Sportify/images/Sportify_logo.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 300px;
    opacity: 0.1;
    pointer-events: none;
}

.home-hero h1 {
    position: relative;
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--sp-text);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.home-hero h1 span {
    background: linear-gradient(135deg, var(--sp-primary) 0%, #ffb700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero p {
    position: relative;
    font-size: 1.25rem;
    color: var(--sp-muted);
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.home-content {
    max-width: 1200px;
    margin: -4rem auto 0;
    padding: 0 1.5rem 3rem;
    position: relative;
    z-index: 2;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--sp-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--sp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent);
    opacity: 0.85;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-shadow-lg), 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--sp-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--accent);
    border: 2px solid var(--sp-border);
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}

.stat-count {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--sp-text);
}

.home-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.home-panel {
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--sp-shadow);
}

.home-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sp-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.home-panel h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 1.2rem;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--sp-primary), #ffb700);
}

.home-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.home-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    transition: background 0.15s ease;
}

.home-list li:hover {
    background: rgba(255, 77, 0, 0.08);
}

.home-list a {
    color: var(--sp-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.home-list a:hover {
    color: var(--sp-primary-glow);
}

.home-list .pill {
    background: var(--sp-card);
    color: var(--sp-muted);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--sp-border);
}

@media (max-width: 700px) {
    .home-hero {
        padding: 3.5rem 1rem 5.5rem;
    }

    .home-hero h1 {
        font-size: 2.4rem;
    }

    .home-hero p {
        font-size: 1rem;
    }

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

    .home-sections {
        grid-template-columns: 1fr;
    }
}
