@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');

:root {
    --primary: #10b981; /* Emerald 500 */
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #020617; /* Slate 950 */
    --accent: #6366f1; /* Indigo 500 */
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Fluid Typography System */
    --font-size-hero: clamp(3rem, 12vw, 8rem);
    --font-size-section: clamp(2.5rem, 8vw, 6rem);
    --font-size-body: clamp(1rem, 1.2vw, 1.25rem);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: #f1f5f9;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Hub */
h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}

.text-hero { font-size: var(--font-size-hero); }
.text-section { font-size: var(--font-size-section); }
.text-body { font-size: var(--font-size-body); }

.text-gradient {
    background: linear-gradient(135deg, #fff 40%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Polish */
header {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
    transition: all 0.3s;
}

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

/* Glassmorphism Refined */
.glass {
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

/* Character/Word Animations (Optimized for wrapping) */
.word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.25em;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(1.5rem) scale(0.85);
    transition: all 0.45s cubic-bezier(0.2, 1, 0.4, 1);
}

.char.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* SVG Scroll Decor */
#scroll-path-container {
    position: fixed;
    top: 0; left: 40px; width: 2px; height: 100%;
    z-index: 10; pointer-events: none;
}

#scroll-path {
    fill: none; stroke: var(--primary); stroke-width: 2;
    stroke-dasharray: 20, 20; opacity: 0.3;
}

#scroll-car {
    position: fixed; left: 31px; top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: var(--primary); font-size: 20px; z-index: 11;
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Steerable Wheel Animation (Fixed size for bottom-right) */
.steering-wheel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 100;
    opacity: 0.3;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.2));
    transition: transform 0.1s linear, opacity 0.3s;
    pointer-events: none;
}

.steering-wheel:hover {
    opacity: 0.8;
}

/* Vehicle Section Fixes */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card .img-container {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}

.vehicle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.4, 1);
}

.vehicle-card:hover img { transform: scale(1.1); }

/* Premium Form Re-design */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #64748b;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.25rem 1.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder { color: #334155; }

/* Snappy Animations */
[data-reveal="true"] {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.4, 1);
}

[data-reveal="true"].active {
    opacity: 1;
    transform: translateY(0);
}
