@font-face {
            font-family: 'Comfortaa';
            src: url('../fonts/Comfortaa-VariableFont_wght.ttf') format('truetype');
            font-weight: 300 700;
            font-display: swap;
        }

        :root {
            --bg-color: #103F4A;
            --primary-color: #B8D361;
            --text-color: #E7E6C2;
            --accent-color: #FB723B;
            --font-family: 'Comfortaa', Arial, sans-serif;
            --container-padding: 2rem 1.5rem;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: var(--container-padding);
        }

        h1,
        h2,
        h3,
        h4 {
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            color: var(--primary-color);
        }

        h2 {
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            text-align: center;
            margin-bottom: 2rem;
        }

        a {
            color: var(--primary-color);
            text-decoration: none;
            transition: opacity 0.2s ease;
        }

        a:hover {
            opacity: 0.8;
        }

        /* --- Section 1: Hero --- */
        .hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            min-height: 80vh;
            justify-content: center;
            gap: 1.5rem;
            padding-top: 4rem;
        }

        .app-icon {
            width: clamp(100px, 15vw, 160px);
            border-radius: 22.5%;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .hero-tagline {
            font-size: clamp(1.2rem, 2.5vw, 1.5rem);
            max-width: 600px;
            opacity: 0.9;
        }

        /* --- Store Badges --- */
        .store-badges {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 1rem;
            justify-content: center;
        }

        .badge-link {
            display: inline-flex;
            align-items: center;
            line-height: 0;
            border-radius: 8px;
            transition: opacity 0.2s ease, transform 0.15s ease;
            outline-offset: 3px;
        }

        .badge-link:hover {
            opacity: 0.85;
            transform: translateY(-1px);
        }

        .badge-link:focus-visible {
            outline: 2px solid var(--primary-color);
        }

        .badge-link img, .badge-link svg {
            /* To scale the badges, simply change this height. 
               The aspect ratio is preserved automatically. */
            height: 40px;
            width: auto;
        }


        .bottom-badges {
            margin-top: 2.5rem;
            text-align: center;
        }

        .bottom-badges-label {
            font-size: 0.8rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            opacity: 0.55;
            margin-bottom: 0.75rem;
        }

        /* --- Section 2: Video --- */
        .video-section {
            padding: 4rem 1.5rem;
            background-color: rgba(0, 0, 0, 0.1);
        }

        .video-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .lite-youtube {
            position: relative;
            display: block;
            width: 100%;
            aspect-ratio: 16/9;
            background-color: #000;
            background-image: url('https://i.ytimg.com/vi/2AD-yd5efgA/maxresdefault.jpg');
            background-position: center;
            background-size: cover;
            cursor: pointer;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .lite-youtube::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 68px;
            height: 48px;
            background-color: red;
            border-radius: 12px;
            z-index: 1;
            transition: background-color 0.2s;
        }

        .lite-youtube::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-style: solid;
            border-width: 10px 0 10px 20px;
            border-color: transparent transparent transparent #fff;
            z-index: 2;
        }

        .lite-youtube:hover::before {
            background-color: #f00;
        }

        .lite-youtube iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* --- Section 3: Feature Grid --- */
        .features {
            padding: 5rem 1.5rem;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            max-width: 1100px;
            margin: 0 auto;
        }

        .feature-card {
            background-color: rgba(231, 230, 194, 0.05);
            padding: 2rem;
            border-radius: 16px;
            border: 1px solid rgba(231, 230, 194, 0.1);
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .feature-card h3 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        /* --- Section: Choose Your Sport --- */
        .sport-section {
            padding: 4rem 1.5rem;
            background-color: rgba(231, 230, 194, 0.05);
        }

        .sport-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            max-width: 1100px;
            margin: 0 auto;
        }

        .sport-card {
            background-color: var(--bg-color);
            padding: 2rem;
            border-radius: 12px;
            text-align: left;
            border: 1px solid rgba(231, 230, 194, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-decoration: none;
            color: var(--text-color);
        }
        
        .sport-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            opacity: 1;
        }

        .sport-card h3 {
            color: var(--primary-color);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .sport-card h3::after {
            content: '→';
            opacity: 0.5;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        
        .sport-card:hover h3::after {
            opacity: 1;
            transform: translateX(4px);
        }

        .sport-card p {
            font-size: 0.95rem;
            opacity: 0.8;
            margin-top: auto;
        }

        /* --- Section 4: Screenshot Gallery --- */
        .gallery-section {
            padding: 4rem 0;
            background-color: rgba(0, 0, 0, 0.15);
            overflow: hidden;
        }

        .gallery-scroll {
            display: flex;
            gap: 1.5rem;
            overflow-x: auto;
            padding: 2rem 5vw;
            scroll-snap-type: x mandatory;
            scroll-padding-inline: 5vw;
            scrollbar-width: none;
            /* Firefox */
            cursor: grab;
        }

        .gallery-scroll.active {
            cursor: grabbing;
            scroll-snap-type: none;
            /* Disable snapping while dragging for smoother feel */
        }

        .gallery-scroll::-webkit-scrollbar {
            display: none;
            /* Chrome/Safari */
        }

        .gallery-item {
            flex: 0 0 calc(80vw - 3rem);
            max-width: 300px;
            scroll-snap-align: center;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
            border: 4px solid rgba(255, 255, 255, 0.1);
        }

        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            aspect-ratio: 1284 / 2778;
            /* iPhone aspect ratio */
            object-fit: cover;
        }

        /* --- Section 5: How It Works --- */
        .how-it-works {
            background-color: var(--text-color);
            color: var(--bg-color);
            padding: 5rem 1.5rem;
        }

        .how-it-works h2 {
            color: var(--bg-color);
        }

        .steps-container {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            max-width: 900px;
            margin: 0 auto;
        }

        .step {
            display: flex;
            gap: 1.5rem;
            align-items: flex-start;
        }

        .step-number {
            background-color: var(--primary-color);
            color: var(--bg-color);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            flex-shrink: 0;
        }

        /* --- Section 6: FAQ --- */
        .faq-section {
            padding: 5rem 1.5rem;
            max-width: 800px;
            margin: 0 auto;
        }

        details {
            margin-bottom: 1rem;
            background-color: rgba(231, 230, 194, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(231, 230, 194, 0.1);
        }

        summary {
            padding: 1.2rem;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            list-style: none;
            position: relative;
            color: var(--primary-color);
        }

        summary::-webkit-details-marker {
            display: none;
        }

        summary::after {
            content: '+';
            position: absolute;
            right: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
        }

        details[open] summary::after {
            content: '−';
        }

        .faq-answer {
            padding: 0 1.2rem 1.2rem 1.2rem;
            opacity: 0.9;
        }

        /* --- Section 7: Community --- */
        .community {
            padding: 4rem 1.5rem;
            background-color: rgba(0, 0, 0, 0.1);
        }

        .community-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .comm-card {
            background-color: rgba(231, 230, 194, 0.05);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            border: 1px solid rgba(231, 230, 194, 0.1);
        }

        .comm-card svg {
            width: 48px;
            height: 48px;
            fill: var(--primary-color);
            margin-bottom: 1rem;
        }

        /* --- Section 8: Footer --- */
        footer {
            padding: 3rem 1.5rem;
            text-align: center;
            border-top: 1px solid rgba(231, 230, 194, 0.1);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 1rem 0;
            flex-wrap: wrap;
        }

        .footer-social {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }

        .footer-social svg {
            width: 24px;
            height: 24px;
            fill: var(--text-color);
            transition: fill 0.2s;
        }

        .footer-social svg:hover {
            fill: var(--primary-color);
        }

        /* --- Responsive Breakpoints --- */
        @media (min-width: 480px) {
            .feature-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 768px) {
            .steps-container {
                flex-direction: row;
                gap: 2rem;
            }

            .step {
                flex-direction: column;
                align-items: center;
                text-align: center;
                flex: 1;
            }

            .community-grid {
                grid-template-columns: 1fr 1fr;
            }

            .gallery-item {
                flex: 0 0 260px;
            }
        }

        @media (min-width: 1024px) {
            .hero {
                flex-direction: row;
                text-align: left;
                justify-content: space-between;
                max-width: 1000px;
                margin: 0 auto;
            }

            .hero-content {
                flex: 1;
                padding-right: 2rem;
            }

            .hero-content .store-badges {
                justify-content: flex-start;
            }

            .badge-link img, .badge-link svg {
                height: 52px;
            }

            .app-icon {
                flex-shrink: 0;
                margin-left: 2rem;
            }
        }

/* --- String Elongation Lab Banner --- */
.string-lab-banner {
    position: fixed;
    bottom: -150px;
    right: 20px;
    z-index: 9999;
    background-color: #F4F6F4;
    color: #1A241C;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-family, 'Comfortaa', Arial, sans-serif);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.string-lab-banner.visible {
    bottom: 20px;
}

.string-lab-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.string-lab-kicker {
    font-size: 0.56rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.05em;
}

.string-lab-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.string-lab-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.string-lab-button {
    background-color: #34C759;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
}

.string-lab-button:hover {
    background-color: #2eb350;
    transform: scale(1.02);
}

.string-lab-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.string-lab-close:hover {
    background-color: rgba(0,0,0,0.05);
    color: #1A241C;
}

@media (max-width: 600px) {
    .string-lab-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    .string-lab-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 1.5rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    border-top: 1px solid rgba(231, 230, 194, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-text {
    text-align: center;
    font-size: 0.95rem;
    max-width: 800px;
}

.cookie-banner-text a {
    text-decoration: underline;
    font-weight: 700;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    transition: transform 0.2s, opacity 0.2s;
}

.cookie-btn:active {
    transform: scale(0.95);
}

.cookie-btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.cookie-btn-primary:hover {
    opacity: 0.9;
}

.cookie-btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(231, 230, 194, 0.4);
}

.cookie-btn-secondary:hover {
    background-color: rgba(231, 230, 194, 0.1);
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
    }
    .cookie-banner-text {
        text-align: left;
    }
}