/* ============================================
   CourtsidePlay - Google-Inspired Light Theme
   Clean, white, colorful accents
   ============================================ */

:root {
    --blue: #4285F4;
    --red: #EA4335;
    --yellow: #FBBC05;
    --green: #34A853;
    --blue-dark: #3367D6;
    --green-dark: #2D9249;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-hover: #F1F3F4;
    --bg-card: #FFFFFF;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --text-muted: #9AA0A6;
    --border-color: #DADCE0;
    --border-light: #E8EAED;
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.1), 0 1px 3px rgba(60, 64, 67, 0.08);
    --shadow-md: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 8px rgba(60, 64, 67, 0.1);
    --shadow-lg: 0 2px 6px rgba(60, 64, 67, 0.15), 0 8px 24px rgba(60, 64, 67, 0.12);
    --shadow-hover: 0 4px 12px rgba(60, 64, 67, 0.2), 0 12px 28px rgba(60, 64, 67, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Navigation ---- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 24px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: #E8F0FE;
}

.lang-toggle .flag {
    font-size: 1.1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ---- Hero Section ---- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(66, 133, 244, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(52, 168, 83, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(251, 188, 5, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E8F0FE;
    border: none;
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: white;
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--blue);
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background: #E8F0FE;
    border-color: var(--blue);
    transform: translateY(-1px);
}

.hero-app-preview {
    margin-top: 60px;
    position: relative;
}

.hero-app-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-app-preview .placeholder-screen {
    width: 100%;
    max-width: 700px;
    height: 400px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 auto;
}

/* ---- Section Common ---- */

section {
    padding: 100px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    margin-bottom: 12px;
    background: #E8F0FE;
    padding: 4px 14px;
    border-radius: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* ---- Features Grid ---- */

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:nth-child(1)::before { background: var(--green); }
.feature-card:nth-child(2)::before { background: var(--blue); }
.feature-card:nth-child(3)::before { background: var(--yellow); }
.feature-card:nth-child(4)::before { background: #A142F4; }
.feature-card:nth-child(5)::before { background: var(--red); }
.feature-card:nth-child(6)::before { background: #FF6D00; }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-icon.green { background: #E6F4EA; }
.feature-icon.blue { background: #E8F0FE; }
.feature-icon.orange { background: #FEF7E0; }
.feature-icon.yellow { background: #FEF7E0; }
.feature-icon.purple { background: #F3E8FD; }
.feature-icon.red { background: #FCE8E6; }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ---- Watch Section ---- */

.watch-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.watch-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.watch-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.watch-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: var(--transition);
}

.watch-feature-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.watch-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #E8F0FE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.watch-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.watch-feature-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.watch-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-preview .placeholder-watch {
    width: 240px;
    height: 280px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.watch-preview img {
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
}

/* ---- Health Section ---- */

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.health-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.health-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.health-card:nth-child(1) { border-top: 3px solid var(--red); }
.health-card:nth-child(2) { border-top: 3px solid var(--yellow); }
.health-card:nth-child(3) { border-top: 3px solid var(--green); }
.health-card:nth-child(4) { border-top: 3px solid var(--blue); }

.health-card .metric-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.health-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.health-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ---- Gallery Slider Section ---- */

.screenshots-section {
    background: var(--bg-light) !important;
    border-top: 1px solid var(--border-light) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    user-select: none;
}

.slider-viewport {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
}

.slide img {
    max-width: 100%;
    max-height: 520px;
    height: auto;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.5s ease;
}

.slide.active img {
    transform: scale(1.02);
}

/* Navigation Arrows */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--blue);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-70%) scale(1.08);
}

.slider-arrow:active {
    transform: translateY(-70%) scale(0.95);
}

.slider-prev {
    left: -24px;
}

.slider-next {
    right: -24px;
}

/* Caption Area */

.slider-caption-area {
    text-align: center;
    margin-top: 24px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-caption {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.slider-caption.fade-out {
    opacity: 0;
    transform: translateY(6px);
}

.slider-caption.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dot Indicators */

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot:hover {
    background: var(--text-muted);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--blue);
    width: 28px;
    border-radius: 5px;
}

/* Progress Bar */

.slider-progress {
    width: 100%;
    height: 3px;
    background: var(--border-light);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive adjustments */

@media (max-width: 960px) {
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .slide {
        padding: 20px 12px;
    }

    .slide img {
        max-height: 380px;
    }

    .slider-caption {
        font-size: 0.9rem;
        padding: 0 8px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-prev { left: 4px; }
    .slider-next { right: 4px; }
}

/* ---- CTA Section ---- */

.cta-section {
    text-align: center;
}

.cta-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green));
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.store-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    height: 54px;
    transition: var(--transition);
}

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

.store-badge-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.store-badge-placeholder:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.store-badge-placeholder .store-icon {
    font-size: 1.5rem;
}

/* ---- Footer ---- */

.footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 24px;
    background: var(--bg-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-brand span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .watch-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .watch-preview {
        order: -1;
    }

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

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .health-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 24px;
    }
}

/* ---- Privacy Page ---- */

.privacy-page {
    padding: 120px 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-page h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.privacy-page .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-page h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--blue);
}

.privacy-page p,
.privacy-page ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-page ul {
    padding-left: 24px;
}

.privacy-page li {
    margin-bottom: 8px;
}

.privacy-page a {
    color: var(--blue);
    text-decoration: none;
}

.privacy-page a:hover {
    text-decoration: underline;
}
