/* ============================================
   LANDING PAGE STYLES  
   Compatible with RacePool theme
   ============================================ */

/* Override app overflow: hidden to allow scrolling on landing page */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* ── HERO SECTION ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 0 clamp(24px, 5vw, 80px);
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Terrain lines background - subtle gradient lines */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            170deg,
            transparent,
            transparent 60px,
            rgba(102, 126, 234, 0.04) 60px,
            rgba(102, 126, 234, 0.04) 61px
        );
    z-index: 0;
}

/* ── NAVIGATION ── */
.landing-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}

.landing-logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.landing-logo .logo-race {
    color: var(--text-primary);
}

.landing-logo .logo-pool {
    color: #4ade80; /* Brand green */
    margin-left: -1px;
}

.beta-pill {
    background: var(--color-accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ── HERO CONTENT ── */
.hero-body {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0 40px;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.1s forwards;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-accent);
}

.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-title em {
    font-style: normal;
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

/* Underline on emphasized words */
.hero-title em::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6'%3E%3Cpath d='M0 3 Q15 0 30 3 Q45 6 60 3' fill='none' stroke='%23667eea' stroke-width='2'/%3E%3C/svg%3E") repeat-x center;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.35s forwards;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.5s forwards;
}

.btn-landing-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-landing-primary svg {
    transition: transform 0.2s ease;
}

.btn-landing-primary:hover svg {
    transform: translateX(3px);
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── STATS BAR ── */
.stats-bar {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--border-medium);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.65s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-n {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.stat-l {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── FEATURES SECTION ── */
.features {
    padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 80px);
    background: var(--bg-primary);
}

.section-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: var(--color-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feat-card {
    background: var(--bg-surface);
    padding: 40px 36px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-accent);
    transition: height 0.3s ease;
}

.feat-card:hover::before {
    height: 100%;
}

.feat-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.feat-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.feat-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── TEASER SECTION (Carpool) ── */
.teaser {
    margin: 0 clamp(24px, 5vw, 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 48px clamp(32px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.teaser::before {
    content: '🚗';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 140px;
    opacity: 0.1;
    pointer-events: none;
}

.teaser-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.teaser h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.teaser p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
    line-height: 1.6;
}

.teaser-right {
    flex-shrink: 0;
}

.coming-soon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    padding: 14px 24px;
    border-radius: 100px;
    cursor: default;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── FOOTER ── */
.landing-footer {
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 80px) 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--border-light);
    margin-top: clamp(60px, 8vw, 100px);
    background: var(--bg-primary);
}

.landing-footer .landing-logo { 
    font-size: 1.1rem; 
}

.footer-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .hero-title { 
        letter-spacing: -1px; 
    }
    .stats-bar { 
        gap: 24px; 
    }
    .teaser::before { 
        display: none; 
    }
    .feat-card { 
        padding: 32px 24px; 
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
