/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Color Palette - Matching future app design */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-light-blue: #dbeafe;
    --border-color: #e5e7eb;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}


/* ===================================
   Hero Section with Car Background
   =================================== */

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    color: white;
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    color: white;
    font-size: var(--font-size-2xl);
    font-weight: 400;
    line-height: 1.5;
    max-width: 42rem;
    margin-bottom: 0;
}

.hero-bottom {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 9999px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
    animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
    width: 24px;
    height: 24px;
}

.launch-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    max-width: 36rem;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-xl);
    }
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    background: var(--bg-primary);
    padding: var(--spacing-3xl) 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

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

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--bg-light-blue);
    border-radius: 50%;
    color: var(--primary-color);
    margin: 0 auto var(--spacing-md);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.feature-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.footer {
    background: var(--bg-secondary);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

.footer p {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

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

/* Tablets and below (768px) */
@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .coming-soon-badge {
        font-size: var(--font-size-base);
    }

    .launch-message {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .how-it-works {
        padding: var(--spacing-2xl) 0;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
    }

    .coming-soon-badge {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .badge-icon {
        width: 20px;
        height: 20px;
    }

    .launch-message {
        font-size: var(--font-size-sm);
    }

    .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-title {
        font-size: var(--font-size-lg);
    }

    .feature-description {
        font-size: var(--font-size-sm);
    }

    .how-it-works {
        padding: var(--spacing-xl) 0;
    }
}

/* Large desktops (1440px and above) */
@media (min-width: 1440px) {
    .hero {
        height: 700px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-light-blue: #1e3a8a;
        --border-color: #374151;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

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

/* Print styles */
@media print {
    .hero {
        height: auto;
        page-break-after: always;
    }

    .hero-image {
        position: relative;
    }

    .hero-overlay {
        display: none;
    }
}
