/* ==========================================================================
   Base Styles & CSS Variables
   ========================================================================== */

:root {
    /* Color Palette - Premium Dark Theme */
    --bg-main: #0a0a0c;
    --bg-secondary: #121216;
    --bg-glass: rgba(20, 20, 25, 0.6);
    --bg-glass-hover: rgba(30, 30, 35, 0.8);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --text-muted: #6e6e78;
    
    --accent-primary: #f03a47; /* Sophisticated racing red */
    --accent-primary-hover: #d22b37;
    --accent-glow: rgba(240, 58, 71, 0.3);
    
    --success: #10b981;
    --error: #ef4444;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 5rem;    /* 80px */
    
    /* Radii */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Document Setup
   ========================================================================== */

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

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

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

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */

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

.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

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

.hidden { display: none !important; }

/* Gradients & Aesthetics */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Specific Layout Sections
   ========================================================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: background-color var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.brand-accent {
    color: var(--accent-primary);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 101;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: var(--space-2xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(10,10,12,0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: var(--space-xl);
}

.hero-content {
    max-width: 800px;
    margin-bottom: var(--space-xl);
    grid-column: 1;
    grid-row: 1;
}

.hero-visual {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -3rem;
}

.hero-logo-big {
    width: clamp(300px, 45vw, 650px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 80px rgba(240, 58, 71, 0.35));
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stats {
    grid-column: 1 / -1;
    grid-row: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Trust Stats */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-2xl);
    max-width: 800px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    background-color: var(--border-glass);
    height: auto;
    margin: 0 var(--space-md);
}

/* Features/Trust Section */
.trust-section {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.step-card {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(240, 58, 71, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(240, 58, 71, 0.1);
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

/* Form Layout Section */
.request-section {
    position: relative;
    overflow: hidden;
}

.request-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.request-content {
    position: sticky;
    top: 120px;
}

.vehicle-silhouette {
    margin-top: var(--space-xl);
    width: 100%;
    height: 300px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400" fill="none"><path d="M100,300 Q150,200 300,180 Q500,180 600,250 Q750,250 750,300 Z" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>') no-repeat center center;
    background-size: contain;
    position: relative;
}

.glow-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-row.triplet {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-glass);
}

/* Footer Layout */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: var(--space-xl) 0 var(--space-lg);
    background-color: var(--bg-secondary);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    text-align: center;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.footer-links a svg {
    color: var(--accent-primary);
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: var(--space-md);
}

/* Media Queries */
@media (max-width: 900px) {
    .request-container {
        grid-template-columns: 1fr;
    }
    
    .request-content {
        position: relative;
        top: 0;
        text-align: center;
    }
    
    .section-title.text-left, .section-subtitle.text-left {
        text-align: center;
    }
    
    .hero-bg-glow {
        width: 100vw;
        height: 100vw;
        top: 0;
        right: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: var(--space-md);
        text-align: center;
    }

    .hero-visual {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: var(--space-xl);
    }

    .hero-stats {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-xl) var(--space-md);
        border-bottom: 1px solid var(--border-glass);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .form-row, .form-row.triplet {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        background: transparent;
        border: none;
    }
    
    .stat-divider {
        width: 50px;
        height: 1px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-logo-big {
        width: 80vw;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
