/* ============================================
   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, 'PingFang SC', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, 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);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-lang {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-white)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235F6368' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 28px 6px 14px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
    transition: var(--transition);
    min-height: 40px;
    min-width: 4.25rem;
    max-width: 4.75rem;
    text-align: center;
    text-align-last: center;
}

.lang-select:hover,
.lang-select:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
    background-color: #E8F0FE;
    outline: none;
}

.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-social {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.footer-social a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.footer-social a:hover {
    text-decoration: underline;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.footer-container--extended {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}

.footer-container--extended .footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 40px;
    width: 100%;
}

.footer-sports-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-sports-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
}

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

.footer-sports-links a:hover,
.footer-sports-links a[aria-current="page"] {
    color: var(--blue);
}

.footer-sports-links a[aria-current="page"] {
    font-weight: 600;
}

/* Hero — supported sports (index) */

.hero h1.hero-headline {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
    max-width: 720px;
}

.hero-sports-tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin: 0 auto 10px;
}

.hero-features-tagline {
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: 0.02em;
    max-width: 680px;
    margin: 0 auto 24px;
    opacity: 0.92;
}

.hero-sports {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: left;
}

.hero-sport-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.hero-sport-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hero-sport-card .sport-emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.hero-sport-card .sport-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-sport-card .sport-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.hero-sport-card--tennis:hover { border-color: var(--green); }
.hero-sport-card--padel:hover { border-color: #9C27B0; }
.hero-sport-card--beach:hover { border-color: var(--yellow); }
.hero-sport-card--badminton:hover {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(52, 168, 83, 0.08), rgba(66, 133, 244, 0.08));
}

.sport-accent-bar {
    height: 4px;
    width: 48px;
    border-radius: 2px;
    margin: 12px auto 0;
}

.sport-accent-bar--tennis { background: linear-gradient(90deg, var(--green), var(--blue)); }
.sport-accent-bar--padel { background: linear-gradient(90deg, #7B1FA2, #9C27B0); }
.sport-accent-bar--beach { background: linear-gradient(90deg, #F9A825, #FBBC05); }
.sport-accent-bar--badminton { background: linear-gradient(90deg, var(--green), var(--blue)); }

.sports-crosslinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.sports-crosslinks a {
    padding: 8px 18px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.sports-crosslinks a:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: #E8F0FE;
}

.sports-crosslinks a.is-active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

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

@media (max-width: 768px) {
    /* nav handled by the 1024px block below */

    .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;
    }

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

    .footer-sports-links {
        justify-content: center;
    }

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

    section {
        padding: 60px 20px;
    }
}

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

@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;
}

/* ============================================
   Advanced Analytics Pages
   (swing analysis, shot types, intensity, spin)
   ============================================ */

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--border-color);
}

.feature-hero {
    padding: 40px 24px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.feature-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
    color: var(--text-primary);
}

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

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-detail.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-detail.reverse .feature-detail-image {
    order: 2;
}

.feature-detail-image {
    display: flex;
    justify-content: center;
}

.feature-detail-image img {
    max-width: 340px;
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(60, 64, 67, 0.18);
    border: 1px solid var(--border-light);
}

.feature-detail-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-detail-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-detail-content ul li {
    position: relative;
    padding: 8px 0 8px 32px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-detail-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    background: #E6F4EA;
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.stat-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

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

.stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.stat-tile .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.stat-tile.blue .stat-value   { color: var(--blue); }
.stat-tile.green .stat-value  { color: var(--green); }
.stat-tile.orange .stat-value { color: #FF6D00; }
.stat-tile.red .stat-value    { color: var(--red); }
.stat-tile.yellow .stat-value { color: #B08500; }
.stat-tile.purple .stat-value { color: #A142F4; }

.stat-tile .stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.shot-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 24px 22px;
    transition: var(--transition);
    border-left: 4px solid var(--blue);
}

.shot-type-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shot-type-card .shot-emoji {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

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

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

.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.shot-grid .shot-type-card:nth-child(3n+1) { border-left-color: var(--green); }
.shot-grid .shot-type-card:nth-child(3n+2) { border-left-color: var(--blue); }
.shot-grid .shot-type-card:nth-child(3n+3) { border-left-color: #FF6D00; }

.next-feature-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 40px 24px;
    border-top: 1px solid var(--border-light);
}

.next-feature-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.next-feature-nav a.next {
    color: var(--blue);
}

.callout {
    background: linear-gradient(135deg, #E8F0FE, #E6F4EA);
    border-radius: var(--radius);
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

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

.callout p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-detail,
    .feature-detail.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-detail.reverse .feature-detail-image {
        order: 0;
    }

    .next-feature-nav {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================
   Mobile navigation — hamburger dropdown
   Menu drops below the navbar using position:absolute
   within the fixed navbar's stacking context.
   Page content stays visible behind the dropdown.
   ============================================ */

@media (max-width: 1024px) {
    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        border-radius: 8px;
        transition: background 0.15s ease;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus-visible {
        background: var(--bg-hover);
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none;
    }

    /* Dropdown panel — absolutely positioned below the navbar bar */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        position: absolute;
        top: 100%;          /* flush below the navbar bottom edge */
        left: 0;
        right: 0;

        background: #ffffff;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgba(60, 64, 67, 0.14);

        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 20px 32px;
    }

    .nav-links.open a {
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-primary);
        padding: 14px 16px;
        border-radius: 10px;
        text-align: left;
        display: block;
        width: 100%;
    }

    .nav-links.open a:hover,
    .nav-links.open a:focus-visible {
        background: var(--bg-hover);
        color: var(--blue);
    }

    .nav-links.open .lang-toggle {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    .nav-links.open .lang-select {
        margin-top: 8px;
        width: 100%;
        max-width: none;
        padding: 14px 36px 14px 14px;
        border-radius: 10px;
        font-size: 1.4rem;
        text-align: center;
        text-align-last: center;
    }
}

/* Below 420px: hide wordmark to keep hamburger from being squeezed */
@media (max-width: 420px) {
    .nav-logo-text {
        display: none;
    }

    .nav-container {
        padding: 0 16px;
    }
}
