/* Design System - Color Palette */
:root {
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #667eea;
    --primary-600: #5a67d8;
    --primary-700: #4c51bf;
    --primary-800: #4338ca;
    --primary-900: #3730a3;
    
    /* Secondary Colors */
    --secondary-50: #fdf4ff;
    --secondary-100: #e9d5ff;
    --secondary-200: #d8bbfe;
    --secondary-300: #c084fc;
    --secondary-400: #a855f7;
    --secondary-500: #764ba2;
    --secondary-600: #6d28d9;
    --secondary-700: #5b21b6;
    --secondary-800: #4c1d95;
    --secondary-900: #581c87;
    
    /* Success Colors */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-300: #86efac;
    --success-400: #4ade80;
    --success-500: #48bb78;
    --success-600: #16a34a;
    --success-700: #059669;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    /* Typography Scale */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    /* Spacing Scale */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Smooth Animations */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-300);
    --border-color: var(--gray-700);
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --border-color: var(--gray-200);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-lg);
}

.theme-toggle:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    transition: transform var(--transition-base);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: color var(--transition-base), background-color var(--transition-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* Enhanced Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    font-size: var(--text-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-500);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Typography Scale */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.letter-tight { letter-spacing: -0.025em; }
.letter-normal { letter-spacing: 0; }
.letter-wide { letter-spacing: 0.025em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Mobile Touch States */
.btn:active,
.btn.touch-active,
.btn.mouse-active {
    transform: scale(0.98);
    opacity: 0.9;
    transition: all var(--transition-fast);
}

.request-btn:active,
.request-btn.touch-active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: var(--space-4) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-500);
    letter-spacing: -0.025em;
}

.nav-brand i {
    font-size: var(--text-2xl);
}

.nav-menu {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-500);
    background: rgba(102, 126, 234, 0.1);
}

.nav-actions {
    display: flex;
    gap: var(--space-3);
}

.nav-brand i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 30s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: var(--text-xl);
    opacity: 0.9;
    margin-bottom: var(--space-10);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease 0.8s both;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.app-preview {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.map-view {
    height: 70%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    position: relative;
    overflow: hidden;
}

.car-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gray-400);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    animation: float 30s linear infinite;
    box-shadow: var(--shadow-md);
}

.shared-ride-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success-500);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Shadows and Depth */
.depth-1 { box-shadow: var(--shadow-sm); }
.depth-2 { box-shadow: var(--shadow-md); }
.depth-3 { box-shadow: var(--shadow-lg); }
.depth-4 { box-shadow: var(--shadow-xl); }

/* Glass Morphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neumorphism Effects */
.neo {
    background: linear-gradient(145deg, var(--gray-100), var(--bg-primary));
    box-shadow: 
        8px 8px 16px rgba(255, 255, 255, 0.9),
        -8px -8px 16px rgba(0, 0, 0, 0.9);
        8px -8px 16px rgba(255, 255, 255, 0.9),
        -8px 8px 16px rgba(255, 255, 255, 0.9);
}

.neo-pressed {
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.route-line {
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.route-line::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    bottom: -8px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent var(--space-3),
        var(--primary-500) var(--space-3),
        var(--primary-500) calc(var(--space-3) * 1.5)
    );
    animation: shimmer 3s linear infinite;
}

.app-bottom {
    height: 30%;
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.location-input {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    gap: 12px;
}

.location-input i {
    color: #667eea;
}

.location-input input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.request-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.request-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.request-btn.loading {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    cursor: wait;
    position: relative;
}

.request-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.request-btn.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-trip-btn {
    width: 100%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-trip-btn:hover {
    transform: translateY(-2px);
}

.request-btn:hover {
    transform: translateY(-2px);
}

/* Enhanced Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
}

.section-header h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.025em;
    position: relative;
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Enhanced Cards */
.card-hover {
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.card-hover:hover::before {
    transform: scaleX(1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Features Section with Grid System */
.features {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    padding: var(--space-10) var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: var(--space-20);
    height: var(--space-20);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    color: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-6);
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    font-size: var(--text-sm);
}

/* Grid System Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Spacing Utilities */
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.m-2 { margin: var(--space-2); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

/* How It Works Section with Grid */
.how-it-works {
    padding: var(--space-24) 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-10);
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
    padding: var(--space-4);
    transition: all var(--transition-base);
}

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

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    color: var(--primary-500);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    margin: 0 auto var(--space-6);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.step:hover .step-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    color: var(--secondary-500);
    background: rgba(118, 75, 162, 0.1);
}

.step h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.step p {
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    font-size: var(--text-sm);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
}

.step p {
    color: #718096;
    line-height: 1.6;
}

/* Popular Routes Section */
.popular-routes {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.route-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.route-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.route-direction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.origin {
    font-weight: 700;
    color: #2d3748;
    font-size: 18px;
}

.destination {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

.route-direction i {
    color: #718096;
    margin: 0 12px;
}

.route-stats {
    display: flex;
    gap: 12px;
}

.route-stats .time {
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.route-stats .price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.route-details {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.route-info i {
    color: #667eea;
    font-size: 14px;
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.route-btn {
    width: 100%;
    justify-content: center;
    border-radius: 0;
    border-top: 1px solid #e0e0e0;
    padding: 16px;
}

.regional-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.region-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.region-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.region-header i {
    color: #667eea;
    font-size: 20px;
}

.region-header h3 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 700;
}

.region-routes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.region-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.region-route:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.route-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.route-info-text {
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: #f8fafc;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card.popular {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
}

.price {
    margin-bottom: 8px;
}

.currency {
    font-size: 24px;
    color: #718096;
    vertical-align: top;
}

.amount {
    font-size: 48px;
    font-weight: 800;
    color: #2d3748;
}

.period {
    font-size: 16px;
    color: #718096;
    margin-left: 8px;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #4a5568;
}

.features-list i {
    color: #48bb78;
    font-size: 16px;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: #667eea;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 16px;
}

.footer-brand i {
    font-size: 28px;
}

.footer-section p {
    color: #718096;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: #718096;
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Animation Classes */
.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.8s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s ease forwards; }
.animate-fadeInScale { animation: fadeInScale 0.6s ease forwards; }
.animate-slideInUp { animation: slideInUp 0.6s ease forwards; }
.animate-slideInDown { animation: slideInDown 0.6s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.6s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce { animation: bounce 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Loading States */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform var(--transition-fast);
}

.hover-glow:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.focus-lift:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Stagger Animations */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Intersection Observer Animations */
.observe-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.observe-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Bottom Navigation Mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    .nav-menu,
    .nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 0 0 16px 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .nav-menu.mobile-active,
    .nav-actions.mobile-active {
        display: flex;
        flex-direction: column;
        max-height: 80vh;
        padding: 20px;
    }
    
    .nav-menu.mobile-active {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 0;
    }
    
    .nav-actions.mobile-active {
        padding-top: 10px;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
        margin-bottom: 20px;
    }
    
    .stat {
        text-align: center;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .phone-mockup {
        transform: none;
        width: 280px;
        height: 560px;
    }
    
    .features-grid,
    .steps,
    .pricing-cards,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Popular Routes Mobile */
    .routes-grid,
    .regional-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .route-card {
        margin-bottom: 20px;
    }
    
    .route-details {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .route-info {
        flex: 1 1 45%;
        min-width: 120px;
    }
    
    .region-header h3 {
        font-size: 18px;
    }
    
    .region-route {
        padding: 10px 12px;
    }
    
    .route-name {
        font-size: 13px;
    }
    
    .route-info-text {
        font-size: 12px;
    }
}
    
    /* Enhanced Mobile Navigation */
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        font-size: 16px;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-actions .btn {
        width: 100%;
        margin-bottom: 12px;
        justify-content: center;
    }
}
    
    .hamburger {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        transform: none;
    }
    
    .features-grid,
    .steps,
    .pricing-cards,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .cta h2 {
        font-size: 32px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Enhanced Mobile Buttons */
    .btn {
        min-height: 48px;
        font-size: 16px;
        padding: 12px 20px;
        touch-action: manipulation;
    }
    
    .btn-large {
        min-height: 56px;
        font-size: 18px;
        padding: 16px 24px;
    }
    
    .request-btn {
        min-height: 52px;
        font-size: 16px;
        padding: 14px 20px;
        touch-action: manipulation;
    }
    
    /* Bottom Navigation Bar */
    .bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid #e0e0e0;
    }
    
    .bottom-nav .container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        max-width: 100%;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        background: none;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        touch-action: manipulation;
        min-width: 60px;
    }
    
    .nav-item i {
        font-size: 18px;
        color: #718096;
        transition: color 0.2s ease;
    }
    
    .nav-item span {
        font-size: 11px;
        color: #718096;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    
    .nav-item.active {
        background: rgba(102, 126, 234, 0.1);
    }
    
    .nav-item.active i,
    .nav-item.active span {
        color: #667eea;
    }
    
    .nav-item:active {
        transform: scale(0.95);
    }
    
    /* Adjust footer to account for bottom nav */
    .footer {
        padding-bottom: 80px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Loading States */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

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

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Theme transitions */
[data-theme] {
    transition: 
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base);
}

/* Enhanced smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Focus visible for better accessibility */
.focus-visible:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}