/* =========================================
   NAYXO — Design System
   Palette: Bleu ciel vif (#4DC0EB) → Bleu ocean (#1278BD)
   Accent: Navy (#0A2647)
   ========================================= */
:root {
    --grad-start: #4DC0EB;
    --grad-mid:   #1FA0D8;
    --grad-end:   #1278BD;
    --gradient: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);

    --navy:       #0A2647;
    --navy-light: #163d6e;

    --bg:         #FFFFFF;
    --bg-soft:    #F0F8FE;
    --text:       #0A2647;
    --text-muted: #527090;

    --white:      #FFFFFF;
    --radius:     20px;
    --radius-sm:  12px;
    --radius-xl:  32px;
    --shadow:     0 8px 30px rgba(18, 120, 189, 0.22);
    --shadow-md:  0 16px 48px rgba(10, 38, 71, 0.13);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --nav-h:      72px;
    --max-w:      1200px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth;
}
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
.hero, .sports-section, .strava-section, .features, .how-it-works, .download {
    animation: fadeIn 0.8s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }

.section-badge {
    display: inline-block;
    background: rgba(10, 95, 173, 0.12);
    color: var(--grad-end);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.badge-white {
    background: rgba(255,255,255,0.2);
    color: white;
}

.section-title { margin-bottom: 1rem; }
.section-title.white { color: white; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-nav {
    background: var(--navy);
    color: white;
    padding: .6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
}
.btn-nav:hover { background: var(--navy-light); transform: translateY(-2px); }

.btn-white {
    background: white;
    color: var(--grad-end);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.btn-glass {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255,255,255,0.3); transform: translateY(-3px); }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: var(--nav-h);
    background: transparent;
    z-index: 9999 !important;
    transition: var(--transition);
}
/* Base Navbar Styles moved before scrolled overrides */
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-size: .95rem;
}
.nav-links a:hover { color: white; opacity: .7; }

/* Aggressive Scrolled Styles */
.navbar.scrolled {
    background-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Force dark color on logo and links when background is white */
.navbar.scrolled .logo,
.navbar.scrolled .nav-container .logo {
    color: #0A2647 !important;
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-container .nav-links a {
    color: #0A2647 !important;
}

.navbar.scrolled .nav-links a:hover {
    color: #1278BD !important;
    opacity: 1 !important;
}

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

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}
.blob-1 {
    width: 600px; height: 600px;
    background: #3BB5E8;
    top: -200px; right: -150px;
    animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
    width: 400px; height: 400px;
    background: #0F6BAD;
    bottom: -100px; left: -100px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.6);
    color: white;
    padding: .4rem 1.2rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    color: white;
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.92);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.7;
}

.sport-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.pill {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
    color: white;
    padding: .5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
    cursor: default;
    transition: var(--transition);
}
.pill:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   SECTIONS COMMON
   ========================================= */
.section-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6rem 2rem;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* =========================================
   SPORTS SECTION
   ========================================= */
.sports-section { background: var(--bg-soft); }

.sports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1100px) { .sports-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sports-grid { grid-template-columns: 1fr; } }

.sport-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1.5px solid transparent;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.sport-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 143, 213, 0.2);
}
.sport-card.card-large {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}
@media (max-width: 600px) { .sport-card.card-large { grid-column: span 1; flex-direction: column; } }

.sport-emoji {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.sport-info h3 { color: var(--navy); }
.sport-info p { color: var(--text-muted); font-size: .95rem; margin-bottom: .5rem; }
.sport-tag {
    display: inline-block;
    background: rgba(30,143,213,0.1);
    color: var(--grad-end);
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
}

/* =========================================
   STRAVA SECTION
   ========================================= */
.strava-section {
    position: relative;
    background: var(--gradient);
    overflow: hidden;
}
.strava-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.strava-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.s1 { width: 500px; height: 500px; background: #2EB4EE; top: -200px; left: -100px; animation: blobFloat 9s ease-in-out infinite; }
.s2 { width: 400px; height: 400px; background: #0C6EB8; bottom: -150px; right: -100px; animation: blobFloat 7s ease-in-out infinite reverse; }

.strava-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) { .strava-grid { grid-template-columns: 1fr; } }

.strava-text .section-header { text-align: left; }
.strava-desc { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.8; }
.strava-btn { margin-top: 1rem; }

.xp-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.xp-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.xp-item:hover { background: rgba(255,255,255,0.2); transform: translateX(6px); }
.xp-icon { font-size: 1.75rem; flex-shrink: 0; }
.xp-item strong { display: block; color: white; font-size: 1rem; }
.xp-item span { color: rgba(255,255,255,0.75); font-size: .9rem; }

/* Strava Card */
.strava-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.strava-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.strava-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #FC4C02; /* Strava orange */
}
.connected-badge {
    background: rgba(52, 199, 89, 0.12);
    color: #1a7a32;
    padding: .3rem .85rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
}

.activity-feed { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.75rem; }
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.activity-item:hover { background: rgba(232,72,74,0.06); }
.activity-item.streak { background: rgba(255, 155, 100, 0.1); }
.act-icon { font-size: 1.5rem; }
.act-info { flex: 1; }
.act-info strong { display: block; font-size: .95rem; color: var(--navy); }
.act-info span { font-size: .8rem; color: var(--text-muted); }
.act-xp {
    background: rgba(30,143,213,0.1);
    color: var(--grad-end);
    font-weight: 800;
    font-size: .9rem;
    padding: .25rem .75rem;
    border-radius: 50px;
    white-space: nowrap;
}
.act-xp.bonus {
    background: rgba(255,155,60,0.15);
    color: #d46a00;
}

.xp-progress { border-top: 1px solid #f0f0f0; padding-top: 1.25rem; }
.xp-level { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.level-badge {
    background: var(--gradient);
    color: white;
    padding: .3rem .9rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
}
.xp-total { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.progress-bar { height: 10px; background: #f0f0f0; border-radius: 99px; overflow: hidden; margin-bottom: .6rem; }
.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 99px;
    transition: width 1.5s ease-out;
}
.next-level { font-size: .8rem; color: var(--text-muted); text-align: center; }

/* =========================================
   FEATURES
   ========================================= */
.features { background: var(--bg); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1.5px solid transparent;
    transition: var(--transition);
}
.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    border-color: rgba(30,143,213,0.15);
    transform: translateY(-6px);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { color: var(--navy); margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works { background: var(--bg-soft); }
.steps-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.step-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step-num {
    position: absolute;
    top: -1rem;
    left: -1rem;
    background: var(--gradient);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    box-shadow: var(--shadow);
}
.step-emoji { font-size: 3rem; margin-bottom: 1rem; }
.step-card h3 { color: var(--navy); font-size: 1.2rem; }
.step-card p { color: var(--text-muted); font-size: .95rem; }
.step-arrow { font-size: 2rem; color: var(--text-muted); flex-shrink: 0; }
@media (max-width: 700px) { .step-arrow { display: none; } }

/* =========================================
   DOWNLOAD
   ========================================= */
.download {
    position: relative;
    background: var(--navy);
    overflow: hidden;
    text-align: center;
    padding: 6rem 2rem;
}
.download-bg { position: absolute; inset: 0; pointer-events: none; }
.dl-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(80px);
}
.b1 { width: 500px; height: 500px; background: var(--grad-end); top: -200px; right: -100px; }
.b2 { width: 400px; height: 400px; background: #5BC8F5; bottom: -150px; left: -100px; }

.download-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.download-inner h2 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.download-inner p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 3rem; }

.store-buttons { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.store-btn {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.15);
    padding: .85rem 2rem;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    transition: var(--transition);
    min-width: 180px;
}
.store-btn:hover { background: var(--gradient); border-color: transparent; transform: translateY(-4px); box-shadow: 0 8px 30px rgba(30,143,213,0.4); }
.store-text { display: flex; flex-direction: column; text-align: left; }
.store-text small { font-size: .75rem; opacity: .7; }
.store-text strong { font-size: 1.05rem; }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: #0f1a2e; color: white; padding: 4rem 2rem 2rem; }
.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .footer-logo { display: block; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.5); max-width: 220px; font-size: .95rem; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.link-group h4 { color: white; font-size: 1rem; margin-bottom: 1.25rem; }
.link-group a { display: block; color: rgba(255,255,255,0.5); margin-bottom: .65rem; font-size: .9rem; }
.link-group a:hover { color: #74D7F7; transform: translateX(4px); }
.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: .85rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .7s forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Removed Wave Separators for a cleaner multi-page look */
.sports-section,
.features,
.how-it-works,
.strava-section,
.download {
    position: relative;
    padding-bottom: 6rem;
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   COPY EMAIL BUTTON
   ========================================= */
.copy-email {
    display: block;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: .65rem;
    text-align: left;
    position: relative;
    transition: var(--transition);
}
.copy-email:hover {
    color: #74D7F7;
    transform: translateX(4px);
}
.copy-email.copied {
    color: #4ade80;
}

.copy-tooltip {
    display: inline-block;
    margin-left: .5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: .1rem .5rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .5px;
    vertical-align: middle;
    opacity: 0;
    transition: var(--transition);
}
.copy-email:hover .copy-tooltip {
    opacity: 1;
}
.copy-email.copied .copy-tooltip {
    opacity: 1;
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}
