/* ==========================================================================
   GymBoard Marketing — Gradient Flow Theme
   ========================================================================== */

/* --- Variables & Reset --- */
:root {
    --base: #050505;
    --card: #111;
    --border: #262626;
    --text: #fafafa;
    --text-muted: #737373;
    --text-dim: #525252;
    --blue: #3b82f6;
    --purple: #a855f7;
    --pink: #ec4899;
    --green: #22c55e;
    --yellow: #fbbf24;
    --orange: #f97316;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--base);
    color: var(--text);
    line-height: 1.6;
}

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.logo span {
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
}

.nav-center {
    display: flex;
    gap: 0.5rem;
}

.nav-center a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-center a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-social-link {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-social-link:hover {
    opacity: 1;
}

.nav-social-link img {
    display: block;
    border-radius: 4px;
}

.nav-login {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.nav-login:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 201;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin-bottom: 5px;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

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

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-nav .btn-primary {
    margin-top: 1rem;
}

.mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.mobile-nav-social a:hover {
    opacity: 1;
}

.mobile-nav-social img {
    display: block;
    border-radius: 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.1) 40%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    background: linear-gradient(135deg, #f9fafb, #d4d4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .cycling-word {
    -webkit-text-fill-color: currentColor;
}

.cycling-word {
    display: inline-block;
    transition: opacity 0.6s ease, width 0.4s ease;
    text-align: center;
    vertical-align: bottom;
}

.cycling-word.fade-out {
    opacity: 0;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

/* --- Card Fan Carousel --- */
.card-fan {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin-top: 3rem;
    aspect-ratio: 16 / 9;
}

.card-fan-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: 70%;
    transform: translateX(-50%);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.8s ease-in-out;
}

.card-fan-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-fan-slide.active {
    transform: translateX(-50%) scale(1) rotate(0deg);
    z-index: 2;
    opacity: 1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

.card-fan-slide.left {
    transform: translateX(-85%) scale(0.85) rotate(-5deg);
    z-index: 1;
    opacity: 0.7;
}

.card-fan-slide.right {
    transform: translateX(-15%) scale(0.85) rotate(5deg);
    z-index: 1;
    opacity: 0.7;
}

.card-fan-slide.hidden {
    transform: translateX(-50%) scale(0.8);
    z-index: 0;
    opacity: 0;
}

/* --- Carousel Indicators (mobile only) --- */
.carousel-indicators {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-indicators .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-indicators .dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   Trusted By
   ========================================================================== */

.trusted-by {
    padding: 3rem 2rem;
    text-align: center;
}

.trusted-by-label {
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo {
    max-height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* ==========================================================================
   Features
   ========================================================================== */

.features {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); }
.icon-purple { background: rgba(168, 85, 247, 0.15); }
.icon-pink { background: rgba(236, 72, 153, 0.15); }
.icon-green { background: rgba(34, 197, 94, 0.15); }
.icon-yellow { background: rgba(251, 191, 36, 0.15); }
.icon-orange { background: rgba(249, 115, 22, 0.15); }
.icon-red { background: rgba(239, 68, 68, 0.15); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing {
    padding: 5rem 2rem;
}

.pricing-card-wrapper {
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
    padding: 1px;
    border-radius: 13px;
    max-width: 400px;
    margin: 0 auto;
}

.pricing-card {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 2.5rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.price-amount {
    background: linear-gradient(135deg, #f9fafb, #d4d4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-card .description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-addons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.pricing-addon {
    text-align: center;
}

.pricing-addon-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.pricing-addon-price {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
}

.pricing-addon-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq {
    padding: 5rem 2rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* No-JS fallback: answers visible by default */
.faq-answer {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.3s ease;
}

/* When JS is present, collapse by default */
.js-enabled .faq-answer {
    grid-template-rows: 0fr;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-white {
    background: white;
    color: #050505;
    border-radius: 20px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-white:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: #0a0a0a;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--text);
}

footer nav {
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-social img {
    display: block;
    border-radius: 4px;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#cookie-banner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
    min-width: 250px;
}

#cookie-banner a {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-decline {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-accept {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border: none;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .nav-login {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    .hero {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    /* Mobile carousel fallback */
    .card-fan-slide {
        position: relative;
        left: auto;
        width: 100%;
        transform: none;
        display: none;
    }

    .card-fan-slide.active {
        display: block;
        transform: none;
        opacity: 1;
    }

    .card-fan-slide.left,
    .card-fan-slide.right,
    .card-fan-slide.hidden {
        display: none;
    }

    .card-fan {
        aspect-ratio: auto;
    }

    .carousel-indicators {
        display: flex;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Legal Pages (Privacy, Terms)
   ========================================================================== */

.legal-page {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.legal-container section {
    margin-bottom: 2.5rem;
}

.legal-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.legal-container p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-container ul {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.legal-container li {
    margin-bottom: 0.5rem;
}

.legal-container a {
    color: var(--blue);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 5rem 1rem 3rem;
    }

    .legal-container h1 {
        font-size: 2rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
