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

:root {
    --primary: #6A1110;
    --primary-dark: #5A0E0D;
    --dark: #1C1C1E;
    --light: #FFFFFF;
    --gray-light: #F2F2F7;
    --gray-mid: #8E8E93;
    --text-dark: #1C1C1E;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header Navigation - Mobile First */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sign-in-btn {
    color: var(--primary);
    background: transparent;
}

.sign-in-btn:hover {
    background: var(--gray-light);
}

.download-btn {
    background: var(--primary);
    color: white;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Hero Section */
.hero {
    margin-top: 64px;
    padding: 40px 16px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--light) 100%);
}

.hero h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--gray-mid);
    margin-bottom: 24px;
    padding: 0 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tagline {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-dark);
}

/* App Mockup Section */
.app-showcase {
    position: relative;
    max-width: 320px;
    margin: 0 auto 0;
}

.phone-mockup {
    width: 100%;
    background: transparent;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.phone-screen {
    width: 100%;
    background-color: transparent;
    border-radius: inherit;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: calc(100% + 6px);
    max-width: none;
    height: auto;
    border-radius: inherit;
    background-color: transparent;
    display: block;
    margin: -3px;
}

/* Sports Gallery */
.sports-section {
    padding: 0 16px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.sports-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    margin-top: 10px;
}

.sports-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.sport-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

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

.sport-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-mid);
    text-align: center;
    padding: 0;
    border: none;
    border-radius: var(--radius);
}

.sport-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.sport-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sport-description {
    font-size: 12px;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 60px 16px;
    background: var(--gray-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--gray-mid);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.cta-primary {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.3);
}

.store-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.store-badge {
    height: 40px;
    background: var(--dark);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 32px 16px;
    text-align: center;
    color: var(--gray-mid);
    font-size: 14px;
}

/* Tablet and up */
@media (min-width: 768px) {
    nav {
        padding: 16px 24px;
    }

    .logo {
        width: 128px;
        height: 128px;
    }

    .nav-btn {
        padding: 10px 24px;
        font-size: 16px;
    }

    .hero {
        padding: 80px 24px 30px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero .subtitle {
        font-size: 22px;
        max-width: 600px;
    }

    .tagline {
        font-size: 16px;
        gap: 40px;
    }

    .app-showcase {
        max-width: 400px;
    }

    .sports-section {
        padding: 0 24px 40px;
    }

    .sports-section h2 {
        margin-top: 15px;
    }

    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .sport-title {
        font-size: 22px;
    }

    .sport-description {
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .store-badges {
        gap: 16px;
    }

    .store-badge {
        height: 48px;
        font-size: 14px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: 120px 32px 40px;
    }

    .hero h1 {
        font-size: 72px;
    }

    .hero .subtitle {
        font-size: 24px;
    }

    .sports-section {
        padding: 0 32px 80px;
    }

    .sports-section h2 {
        margin-top: 20px;
    }

    .sports-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .sport-card {
        aspect-ratio: 16/12;
    }
}

/* Large Desktop - 2x3 grid for 1920x1080 */
@media (min-width: 1440px) {
    .sports-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
        gap: 40px;
    }
    
    .sport-card {
        aspect-ratio: 16/10;
        height: auto;
        max-height: 300px;
    }
}

/* Extra Large Desktop - optimized for 1920x1080 and larger */
@media (min-width: 1920px) {
    .sports-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1600px;
        margin: 0 auto;
        gap: 60px;
        padding: 0 40px;
    }
    
    .sport-card {
        aspect-ratio: 16/10;
        height: auto;
        max-height: 350px;
    }
    
    .sport-title {
        font-size: 24px;
    }
    
    .sport-description {
        font-size: 16px;
    }
}

/* Ultra Large Desktop - for very large screens */
@media (min-width: 2560px) {
    .sports-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 2000px;
        margin: 0 auto;
        gap: 80px;
        padding: 0 60px;
    }
    
    .sport-card {
        aspect-ratio: 16/10;
        height: auto;
        max-height: 400px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sign-in-btn {
    color: var(--primary);
    background: transparent;
}

.sign-in-btn:hover {
    background: var(--gray-light);
}

/* New: primary-styled Sign Up button */
.sign-up-btn {
    background: var(--primary);
    color: white;
}

.sign-up-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.download-btn {
    background: var(--primary);
    color: white;
}
