/* ============================================
   Rote8 Landing Page — Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Primary palette */
    --blue: #0066FF;
    --blue-light: #3388FF;
    --blue-dark: #0044CC;
    --green: #39FF14;
    --green-dim: #2ECC10;
    --orange: #FC4C02;
    --purple: #8B5CF6;
    --cyan: #06B6D4;
    --red: #FF4444;

    /* Backgrounds */
    --bg-dark: #0A1628;
    --bg-medium: #1A2F4A;
    --bg-light: #2A4060;
    --bg-card: #1E3A5F;
    --bg-card-hover: #244A72;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A0B4CC;
    --text-muted: #6B7F96;

    /* Borders */
    --border: #2A4060;
    --border-hover: #3A5575;

    /* Sizing */
    --container-width: 1200px;
    --nav-height: 72px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-orange {
    background: linear-gradient(135deg, var(--orange), #FF8A50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--green);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 64, 96, 0.5);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 1px;
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--text-primary) !important;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 12px rgba(0, 102, 255, 0.3);
}

.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5);
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0 24px 20px;
    gap: 4px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
    background: rgba(42, 64, 96, 0.4);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + 60px) 24px 80px;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.hero-orb--blue {
    width: 600px;
    height: 600px;
    background: var(--blue);
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.hero-orb--green {
    width: 400px;
    height: 400px;
    background: var(--green);
    bottom: -100px;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(42, 64, 96, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 64, 96, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-20px, 30px); }
    75% { transform: translate(20px, 20px); }
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.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; box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(135deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.55);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(42, 64, 96, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(42, 64, 96, 0.6);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: inline;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
    display: inline;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease 0.3s both;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 300px;
    background: var(--bg-medium);
    border-radius: 36px;
    padding: 12px;
    border: 2px solid var(--border);
    box-shadow:
        0 0 0 1px rgba(42, 64, 96, 0.5),
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 102, 255, 0.08);
    position: relative;
    z-index: 2;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: var(--bg-dark);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
}

.phone-screen {
    background: var(--bg-dark);
    border-radius: 24px;
    padding: 16px;
    min-height: 500px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* App UI inside phone */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.app-header-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.app-header-icon {
    width: 28px;
    height: 28px;
    background: var(--blue);
    color: white;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.shoe-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.shoe-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.shoe-emoji {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.shoe-info {
    flex: 1;
    min-width: 0;
}

.shoe-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shoe-mileage {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.life-bar {
    height: 6px;
    background: rgba(42, 64, 96, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.life-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
}

.life-bar--good {
    background: linear-gradient(90deg, var(--green), #66FF44);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.life-bar--warning {
    background: linear-gradient(90deg, #FFB800, #FFC940);
    box-shadow: 0 0 8px rgba(255, 184, 0, 0.3);
}

.life-bar--danger {
    background: linear-gradient(90deg, var(--red), #FF6B6B);
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Sections --- */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding: 4px 14px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 100px;
}

.section-tag--orange {
    color: var(--orange);
    background: rgba(252, 76, 2, 0.1);
    border-color: rgba(252, 76, 2, 0.2);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Features Section --- */
.features {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-medium) 50%, var(--bg-dark));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(30, 58, 95, 0.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: rgba(30, 58, 95, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.feature-icon--blue {
    background: rgba(0, 102, 255, 0.15);
    color: var(--blue);
}

.feature-icon--green {
    background: rgba(57, 255, 20, 0.1);
    color: var(--green);
}

.feature-icon--orange {
    background: rgba(252, 76, 2, 0.12);
    color: var(--orange);
}

.feature-icon--purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--purple);
}

.feature-icon--cyan {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
}

.feature-icon--red {
    background: rgba(255, 68, 68, 0.12);
    color: var(--red);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- How It Works --- */
.how-it-works {
    padding: 100px 24px;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 340px;
    background: rgba(30, 58, 95, 0.4);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(57, 255, 20, 0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.step-icon-container {
    width: 72px;
    height: 72px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: grid;
    place-items: center;
    position: relative;
}

.step-emoji {
    font-size: 2rem;
}

.step-plus,
.step-emoji-secondary {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    background: var(--blue);
    border-radius: 8px;
    font-weight: 700;
}

.step-emoji-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.step-connector {
    color: var(--text-muted);
    flex-shrink: 0;
    padding: 0 8px;
}

/* --- Strava Section --- */
.strava-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-medium) 50%, var(--bg-dark));
}

.strava-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.strava-text {
    max-width: 520px;
}

.strava-text .section-title {
    text-align: left;
}

.strava-text .section-description {
    text-align: left;
    margin: 0 0 32px 0;
}

.strava-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.strava-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.strava-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Notification Mockup */
.notification-mockup {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
}

.notification-mockup:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.notif-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.notif-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.notif-app-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    flex: 1;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.notif-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.notif-actions {
    display: flex;
    gap: 10px;
}

.notif-btn {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    color: var(--blue-light);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.notif-btn:hover {
    background: rgba(0, 102, 255, 0.25);
    border-color: var(--blue);
}

.strava-badge-container {
    display: flex;
    justify-content: center;
}

.strava-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(252, 76, 2, 0.08);
    border: 1px solid rgba(252, 76, 2, 0.2);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.strava-logo {
    flex-shrink: 0;
}

/* --- Download Section --- */
.download {
    padding: 100px 24px;
}

.download-card {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-medium));
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 2;
}

.download-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.download-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.download-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    min-width: 200px;
}

.store-badge:hover {
    border-color: var(--border-hover);
    background: rgba(10, 22, 40, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.store-badge svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-badge-small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.store-badge-large {
    font-size: 1.15rem;
    font-weight: 700;
}

/* --- Footer --- */
.footer {
    padding: 60px 24px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 60px;
}

.footer-brand {
    max-width: 340px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-link {
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strava-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: calc(var(--nav-height) + 40px) 24px 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .phone-frame {
        width: 260px;
    }

    .phone-screen {
        min-height: 420px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-grid {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .strava-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .strava-text {
        max-width: 100%;
    }

    .strava-text .section-title,
    .strava-text .section-description {
        text-align: center;
    }

    .strava-features {
        align-items: center;
    }

    .download-card {
        padding: 60px 24px;
    }

    .download-title {
        font-size: 1.8rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }
}

/* --- Scroll Animations --- */
.feature-card,
.step-card,
.notification-mockup,
.download-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.step-card.visible,
.notification-mockup.visible,
.download-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for feature cards */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

.step-card:nth-child(1) { transition-delay: 0s; }
.step-card:nth-child(3) { transition-delay: 0.15s; }
.step-card:nth-child(5) { transition-delay: 0.3s; }
