:root {
    --bg-dark: #030303;
    --bg-light: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent: #F9561F;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;
    --spacing-xxl: 15rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--bg-dark);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: 800px;
}

.text-center { text-align: center; }
.padding-y { padding: clamp(4rem, 8vw, 8rem) 0; }

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.dark-section .text-secondary {
    color: var(--text-secondary);
}

/* Film Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

.btn-dark {
    background-color: var(--bg-dark);
    color: var(--bg-light);
}

.btn-dark:hover {
    transform: scale(1.05);
    background-color: #222;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.nav-logo {
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-cta {
    color: var(--bg-dark);
    font-size: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
}

.nav-cta:hover {
    background: var(--bg-dark);
    color: var(--bg-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: clamp(6rem, 10vw, 10rem) var(--spacing-md);
}

.hero-logo-wrapper {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-svg {
    width: 72px;
    height: 72px;
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
}

.hero-logo-text {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--bg-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-logo-tagline-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

.tagline-line {
    height: 1.5px;
    width: 40px;
    background-color: var(--bg-dark);
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--bg-dark);
}

.hero-headline {
    font-size: clamp(3rem, 8vw, 6.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--bg-dark);
    max-width: 1000px;
}

.hero-subheadline {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.launch-label {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--bg-dark); /* Increased contrast */
    font-size: 0.75rem;
    font-weight: 600; /* Added weight */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1.5px; /* Slightly thicker */
    height: 60px;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
}

/* The Idea Section */
.the-idea {
    padding-bottom: var(--spacing-md); /* Removing massive top padding to rely on .padding-y */
}

.idea-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.idea-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.idea-text {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.idea-text:last-child {
    margin-bottom: 0;
}

/* App Experience (Storytelling) */
.experience {
    background-color: var(--bg-light);
}

.experience-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 6vw, 6rem);
    max-width: 1100px;
    margin: 0 auto;
}

/* Each step is a row: mockup | text by default */
.step {
    display: flex;
    flex-direction: column; /* Mobile: stacked */
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

/* Desktop: side by side */
@media (min-width: 768px) {
    .step {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: clamp(3rem, 5vw, 5rem);
    }

    /* Reverse step flips icon to the right */
    .step.step-reverse {
        flex-direction: row-reverse;
        text-align: right;
    }
}

.step-text {
    flex: 1;
}

.step-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    color: #111;
    line-height: 1.1;
}

.step-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #666;
    max-width: 480px;
    line-height: 1.6;
}

/* On reverse steps, align desc text to the right within its container */
@media (min-width: 768px) {
    .step.step-reverse .step-desc {
        margin-left: auto;
    }
}


/* Journey / Timeline Section */
.journey {
    background-color: var(--bg-light);
    color: var(--bg-dark);
    overflow: hidden;
}

.journey-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-xl);
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-sm) 0;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E2E2E2;
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #000000;
    z-index: 2;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.timeline-wrapper.is-visible .timeline-line::before {
    width: 75%;
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    text-align: center;
    position: relative;
}

.timeline-dot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 3px solid #E2E2E2;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--bg-dark);
    font-family: monospace; /* For numbers to look technical */
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-dot {
    border-color: #000000;
    background-color: #EFEFEF;
}

.timeline-item.active .timeline-dot {
    border-color: #000000;
    background-color: #000000;
    color: #FFFFFF;
}

.timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid #000;
    color: #000;
    font-family: monospace;
}

.status-in-progress {
    border-color: #000000;
    color: #000000;
    background-color: rgba(0,0,0,0.05); /* very light contrast */
}

.status-upcoming {
    border-color: #E2E2E2;
    color: #A0A0A0;
}

.timeline-item.interactive {
    cursor: pointer;
}

.timeline-item.interactive:hover .timeline-dot {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timeline-details {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 250px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.timeline-item.show-details .timeline-details {
    opacity: 1;
    max-height: 150px; /* Arbitrary max-height for transition */
    transform: translateY(0);
}

/* Mobile responsive for timeline */
@media (max-width: 768px) {
    .timeline-items {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .timeline-line {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
    }
    
    .timeline-line::before {
        width: 100%;
        height: 0;
        transition: height 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
    }
    
    .timeline-wrapper.is-visible .timeline-line::before {
        height: 75%;
        width: 100%;
    }
    
    .timeline-item {
        width: 100%;
    }
    
    .timeline-dot {
        margin-bottom: 1rem;
    }
}

/* Why RideSynk Section */
.why-ridesynk {
    background-color: var(--bg-light);
    color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
}

.why-subheadline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.why-text {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Waitlist Section */
.waitlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Reduced from 70vh for a tighter gap */
}

.waitlist-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
}

.waitlist-desc {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.waitlist-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.premium-input {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.05); /* slightly visible bg */
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.premium-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.premium-input:focus {
    outline: none;
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    font-weight: 600;
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: clamp(4rem, 8vw, 8rem) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
}

.footer-social p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 300px;
}

.social-link {
    display: inline-block;
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 0.25rem;
}

.footer-apps {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-badge {
    display: inline-block;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-badge img {
    height: 100%;
    width: auto;
    display: block;
}

.store-badge:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Overrides */
@media (min-width: 768px) {
    .waitlist-form {
        gap: 1.5rem;
    }
    
    .input-row {
        flex-direction: row;
        gap: 1rem;
    }

    .btn-submit {
        width: 100%; /* Keep button full width below the inputs */
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
}

.slide-up { transform: translateY(60px); }
.slide-up.is-visible { transform: translateY(0); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); }

.fade-in { transition: opacity 1.5s ease; }

.fade-up { transform: translateY(40px); }
.fade-up.is-visible { transform: translateY(0); transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); }

.zoom-in { transform: scale(0.95); }
.zoom-in.is-visible { transform: scale(1); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); }

.scale-up { transform: scale(0.9); opacity: 0; }
.scale-up.is-visible { transform: scale(1); opacity: 1; transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); }

.slide-left { transform: translateX(-40px); }
.slide-left.is-visible { transform: translateX(0); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); }

.slide-right { transform: translateX(40px); }
.slide-right.is-visible { transform: translateX(0); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.5s; }

/* Global Staggered specific classes fix */
.is-visible.delay-1 { transition-delay: 0.1s; }
.is-visible.delay-2 { transition-delay: 0.2s; }
.is-visible.delay-3 { transition-delay: 0.3s; }
.is-visible.delay-4 { transition-delay: 0.5s; }

/* ==========================================================================
   Mockup Integration Styles
   ========================================================================== */

/* The wrapper explicitly defines the layout space taken by the scaled phone */
.mockup-wrapper {
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}

/* Base Phone Container (unscaled native size) */
.phone {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    width: 280px;
    height: 580px;
    background: #0d0d16;
    border-radius: 48px;
    border: 2.5px solid #252535;
    overflow: hidden;
    box-shadow: 0 50px 120px rgba(0,0,0,0.95), 0 0 0 1px #1a1a28, inset 0 1px 0 rgba(255,255,255,0.07);
    font-family: var(--font-main);
    color: #fff;
    text-align: left;
}

/* --- Scaling Logic --- */

/* Small Mobile (< 400px) */
@media (max-width: 399px) {
    .mockup-wrapper { width: 210px; height: 435px; } /* 280*0.75, 580*0.75 */
    .phone { transform: scale(0.75); }
}

/* Mobile (400px - 767px) */
@media (min-width: 400px) and (max-width: 767px) {
    .mockup-wrapper { width: 238px; height: 493px; } /* 0.85 scale */
    .phone { transform: scale(0.85); }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .mockup-wrapper { width: 154px; height: 319px; } /* 0.55 scale */
    .phone { transform: scale(0.55); }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .mockup-wrapper { width: 196px; height: 406px; } /* 0.70 scale */
    .phone { transform: scale(0.70); }
}
.phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #0d0d16;
    border-radius: 0 0 16px 16px;
    z-index: 100;
    border: 2.5px solid #252535;
    border-top: none;
}
.phone-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 46px;
    position: relative;
}

/* Common Backgrounds */
.screen-bg { position: absolute; inset: 0; background: #08080f; }
.dark-bg { position: absolute; inset: 0; background: #08080f; }

/* Map Common */
.map { position: absolute; inset: 0; background: linear-gradient(160deg, #1a2744 0%, #1e3354 45%, #16253d 100%); }
.map-nav { background: linear-gradient(150deg, #1a2744, #0f1e38); }
.map-reroute { background: linear-gradient(155deg, #1a2744 0%, #0f1e38 100%); }
.map-grid { position: absolute; inset: 0; opacity: 0.09; }

/* Status & Headers */
.sbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 34px 22px 0;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}
.hdr {
    position: absolute;
    top: 60px;
    left: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hdr-title { font-size: 14px; font-weight: 800; color: #fff; }
.back-btn { width: 34px; height: 34px; background: #141422; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hdr-name { font-size: 13px; font-weight: 800; color: #fff; }
.hdr-sub { font-size: 9px; font-weight: 400; color: #505070; margin-top: 2px; }

/* Tracking (Step 1) Specific */
.nav-banner { position: absolute; top: 60px; left: 0; right: 0; background: #2563eb; padding: 10px 18px; display: flex; align-items: center; gap: 11px; z-index: 25; }
.nb-arrow { width: 32px; height: 32px; background: rgba(255,255,255,0.18); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.nb-t1 { font-size: 11px; font-weight: 800; color: #fff; }
.nb-t2 { font-size: 9px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.topbar { position: absolute; top: 116px; left: 15px; right: 15px; z-index: 20; }
.trip-pill { background: rgba(13,13,22,0.93); border-radius: 13px; padding: 9px 14px; backdrop-filter: blur(12px); margin-bottom: 6px; }
.trip-name { font-size: 12px; font-weight: 800; color: #fff; }
.stats { display: flex; gap: 6px; }
.stat { flex: 1; background: rgba(13,13,22,0.88); border-radius: 11px; padding: 7px 5px; text-align: center; backdrop-filter: blur(10px); }
.stat .lbl { font-size: 8px; color: #60608a; }
.stat .val { font-size: 11px; font-weight: 800; color: #fff; margin-top: 2px; }
.rdot { position: absolute; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; box-shadow: 0 3px 14px rgba(0,0,0,0.6); z-index: 20; }
.rdot .gdot { position: absolute; bottom: -2px; right: -2px; border-radius: 50%; border: 2px solid #0d0d16; }
.pulse-tracking { position: absolute; inset: -7px; border-radius: 50%; border: 2.5px solid; animation: mockup-pr 2s ease-out infinite; opacity: 0; }
@keyframes mockup-pr{ 0%{ transform: scale(0.8); opacity: 0.7; } 100%{ transform: scale(1.9); opacity: 0; } }
.mctrl { position: absolute; right: 15px; display: flex; flex-direction: column; gap: 6px; z-index: 20; }
.mc { width: 36px; height: 36px; background: rgba(13,13,22,0.92); border-radius: 10px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); color: #fff; font-size: 16px; font-weight: 600; }
.sos-btn { position: absolute; bottom: 185px; right: 15px; width: 48px; height: 48px; background: #dc2626; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: #fff; border: 2.5px solid rgba(255,255,255,0.3); box-shadow: 0 0 0 6px rgba(220,38,38,0.2), 0 8px 24px rgba(220,38,38,0.55); z-index: 25; letter-spacing: 0.5px; }
.panel { position: absolute; bottom: 0; left: 0; right: 0; background: #0d0d16; border-radius: 24px 24px 0 0; border-top: 1px solid #1e1e2e; z-index: 30; }
.drag { width: 38px; height: 3.5px; background: #252535; border-radius: 2px; margin: 10px auto 0; }
.tabs { display: flex; padding: 9px 18px 0; border-bottom: 1px solid #1a1a28; }
.tab { flex: 1; text-align: center; font-size: 10px; font-weight: 700; color: #505070; padding-bottom: 8px; position: relative; }
.tab.on { color: #fff; }
.tab.on::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2.5px; background: #ff2d20; border-radius: 2px; }
.timeline { padding: 14px 18px 12px; position: relative; }
.spine { position: absolute; left: 24px; top: 18px; bottom: 12px; width: 2px; background: linear-gradient(to bottom,#fff,#2563eb,#ef4444); opacity: 0.3; border-radius: 2px; }
.tl-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.tl-row:last-child { margin-bottom: 0; }
.tl-d { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; z-index: 1; }
.tl-d.done { background: #fff; }
.tl-d.curr { background: #2563eb; box-shadow: 0 0 10px rgba(59,130,246,0.85); }
.tl-d.end { background: #ef4444; }
.t1 { font-size: 10.5px; font-weight: 700; color: #fff; }
.t2 { font-size: 8.5px; color: #505070; margin-top: 2px; }
.t-eta { font-size: 8px; font-weight: 800; color: #3b82f6; background: rgba(59,130,246,0.12); padding: 2px 7px; border-radius: 20px; margin-top: 3px; display: inline-block; }

/* Navigation (Step 2) Specific */
.members-card { position: absolute; top: 104px; left: 16px; right: 16px; z-index: 20; background: #121220; border-radius: 18px; border: 1px solid #1e1e30; padding: 12px 14px; }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #141424; }
.mem-row:last-child { border-bottom: none; padding-bottom: 0; }
.m-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; position: relative; }
.st-dot { position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #08080f; }
.st-live { background: #22c55e; }
.st-stale { background: #facc15; }
.st-off { background: #2a2a3e; }
.m-name { font-size: 10.5px; font-weight: 700; color: #fff; }
.m-bike { font-size: 8.5px; color: #505070; margin-top: 2px; }
.m-tag { font-size: 8.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; }
.t-live { background: rgba(34,197,94,0.14); color: #22c55e; }
.t-stale { background: rgba(250,204,21,0.12); color: #facc15; }
.t-off { background: #141422; color: #505070; }
.t-you { background: rgba(34,197,94,0.14); color: #22c55e; }
.mini-map { position: absolute; bottom: 18px; left: 16px; right: 16px; z-index: 20; height: 148px; background: linear-gradient(150deg,#1a2744,#0f1e38); border-radius: 18px; overflow: hidden; border: 1px solid #1e1e30; }
.mm-label { position: absolute; top: 10px; left: 13px; font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.6); }
.mm-live { position: absolute; top: 10px; right: 13px; background: #22c55e; border-radius: 20px; padding: 3px 9px; font-size: 8px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 5px; }
.mm-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: mockup-blink 1s infinite; }
@keyframes mockup-blink { 0%,100%{ opacity: 1; } 50%{ opacity: 0; } }
.rider-badge { position: absolute; top: 60px; right: 16px; z-index: 25; background: #22c55e; border-radius: 20px; padding: 4px 11px; font-size: 9px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 5px; }
.rb-pulse { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: mockup-blink 1s infinite; }

/* SOS (Step 3) Specific */
.alert-list { position: absolute; top: 106px; left: 16px; right: 16px; z-index: 10; }
.a-card { background: #121220; border-radius: 16px; border: 1px solid #1e1e30; padding: 13px; margin-bottom: 9px; }
.a-card.active { border-color: #dc2626; }
.a-row { display: flex; gap: 10px; align-items: flex-start; }
.a-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.a-icon.red { background: #dc2626; }
.a-icon.grey { background: #1e1e2e; }
.a-name { font-size: 11px; font-weight: 800; color: #fff; }
.a-type { font-size: 9px; color: #505070; margin-top: 2px; }
.badge-active { background: #dc2626; color: #fff; font-size: 7.5px; font-weight: 800; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; }
.badge-res { background: #0f2a18; color: #4ade80; font-size: 7.5px; font-weight: 800; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.a-meta span { font-size: 8.5px; color: #505070; }
.a-btns { display: flex; gap: 7px; margin-top: 10px; }
.btn-call { flex: 1; height: 33px; background: #dc2626; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 9.5px; font-weight: 800; color: #fff; }
.btn-res { flex: 1; height: 33px; background: #1a1a28; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; color: #808098; }
.dim { position: absolute; inset: 0; background: rgba(0,0,0,0.62); z-index: 40; border-radius: 46px; }
.modal { position: absolute; top: 50%; left: 16px; right: 16px; transform: translateY(-58%); background: #14141f; border: 1.5px solid #dc2626; border-radius: 22px; padding: 22px; z-index: 55; }
.modal-ring { width: 58px; height: 58px; background: #dc2626; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 28px; box-shadow: 0 0 0 8px rgba(220,38,38,0.18); animation: mockup-glow 2s ease-in-out infinite; }
.modal-h { text-align: center; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.modal-sub { text-align: center; font-size: 10.5px; color: #808098; margin-bottom: 3px; }
.modal-loc { text-align: center; font-size: 9.5px; color: #505068; margin-bottom: 18px; }
.modal-btns { display: flex; gap: 9px; }
.mb-call { flex: 1; height: 38px; background: #dc2626; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10.5px; font-weight: 800; color: #fff; }
.mb-dis { flex: 1; height: 38px; background: #1c1c2a; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #808098; }
@keyframes mockup-glow { 0%,100%{ box-shadow: 0 0 0 8px rgba(220,38,38,0.18); } 50%{ box-shadow: 0 0 0 14px rgba(220,38,38,0.08); } }

/* Reroute (Step 4) Specific */
.reroute-banner { position: absolute; top: 60px; left: 0; right: 0; background: #d97706; padding: 11px 18px; display: flex; align-items: center; gap: 12px; z-index: 25; }
.rb-icon { width: 32px; height: 32px; background: rgba(0,0,0,0.2); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.rb1 { font-size: 11px; font-weight: 800; color: #fff; }
.rb2 { font-size: 9px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.catchup { position: absolute; top: 124px; left: 15px; right: 15px; z-index: 22; background: rgba(13,13,22,0.96); border-radius: 14px; padding: 11px 14px; border: 1px solid #1e1e2e; display: flex; align-items: center; gap: 11px; backdrop-filter: blur(10px); }
.cc-icon { width: 34px; height: 34px; background: #1d4ed8; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cc1 { font-size: 10.5px; font-weight: 700; color: #fff; }
.cc2 { font-size: 9px; color: #3b82f6; margin-top: 2px; }
.route-card { position: absolute; bottom: 20px; left: 15px; right: 15px; z-index: 22; background: rgba(13,13,22,0.97); border-radius: 18px; padding: 15px; border: 1px solid #1e1e2e; backdrop-filter: blur(12px); }
.rc-title { font-size: 10.5px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: 0.3px; }
.ro { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; margin-bottom: 7px; }
.ro:last-child { margin-bottom: 0; }
.ro.sel { background: #1d4ed8; }
.ro.alt { background: #141422; }
.ro-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ro-n { font-size: 10px; font-weight: 700; color: #fff; }
.ro-d { font-size: 8.5px; color: #6080b0; margin-top: 2px; }
.ro-ck { color: #60a5fa; font-size: 14px; margin-left: auto; }
@keyframes mockup-spin { from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }
.spin-anim { display: inline-block; animation: mockup-spin 2s linear infinite; }
