/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary: #243665;
    --primary-dark: #1a2a4d;
    --primary-light: #e8eef4;
    --secondary: #1d3557;
    --accent: #457b9d;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #243665;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary);
}

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

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

/* ===================================
   Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(36, 54, 101, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 70px;
    width: auto;
}

.logo-text {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
    color: white;
}

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

.nav-links .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--secondary);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    padding: 12px 0;
}

.mobile-menu.active {
    display: flex;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 120px 48px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36, 54, 101, 0.9) 0%, rgba(36, 54, 101, 0.75) 100%);
}

.hero-content {
    max-width: 500px;
    color: white;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 24px;
    color: white;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 30px;
}

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

/* ===================================
   Built For Sports Clubs Section
   =================================== */
.built-for {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.built-for-image {
    position: relative;
    overflow: hidden;
}

.built-for-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.built-for-content {
    background: #243665;
    color: white;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.built-for-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: white;
    margin-bottom: 40px;
}

.built-for-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.built-for-item h3 {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.built-for-item p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 120px 0;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

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

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ===================================
   Pricing Section
   =================================== */
.pricing {
    padding: 120px 0;
    background: #243665;
}

.pricing .section-header h2 {
    color: white;
}

.pricing .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f0c14b;
    margin-bottom: 12px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    align-self: flex-start;
    margin-top: 8px;
}

.price .amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.pricing-header .period {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.pricing-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features li.feature-limit {
    gap: 14px;
}

.pricing-features li.feature-divider {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.limit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
}

.pricing-features svg {
    color: #2ecc71;
    flex-shrink: 0;
}

.pricing-card .btn-outline {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.pricing-card .btn-outline:hover {
    background: white;
    color: var(--secondary);
    border-color: white;
}

.pricing-card .btn-primary {
    width: 100%;
    background: white;
    color: var(--secondary);
}

.pricing-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: 120px 0;
    background: var(--bg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 24px 24px;
}

.faq-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
}

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

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

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

.cta .btn-primary:hover {
    background: var(--primary-light);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 64px 0 32px;
    background: #243665;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    display: none;
}

.footer-brand p {
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 0;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 968px) {
    .built-for {
        grid-template-columns: 1fr;
    }
    
    .built-for-image {
        height: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 140px 24px 80px;
    }
    
    .built-for-content {
        padding: 48px 24px;
    }
    
    .features, .pricing, .faq {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-links {
        gap: 48px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}
