/* ============================================
   PLUS PLUS CALIBRATION - Premium Dark Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --charcoal: #111111;
    --charcoal-light: #1a1a1a;
    --card-bg: #0d0d0d;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --gold-bright: #FFD700;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-300: #cccccc;
    --gray-500: #555555;
    --gray-700: #333333;
    --gray-800: #222222;
    --green: #4ade80;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition);
}

.nav-logo-img:hover {
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--gray-300);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black) url('images/backgroundcars.avif') center center / cover no-repeat;
}

@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 10px 28px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 28px;
}

.title-plus {
    display: block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 12px;
    color: var(--white);
}

.title-cal {
    display: block;
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 16px;
    color: var(--gold);
    margin-top: 8px;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-brands span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
}

.brand-dot {
    width: 4px !important;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    padding: 16px 48px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--white);
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray-300);
    letter-spacing: 1px;
}

/* --- Tuning Section --- */
.tuning-section {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.tuning-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

/* --- Custom Select --- */
.selector-panel {
    background: var(--charcoal);
    border: 1px solid var(--gray-800);
    border-radius: 2px;
    padding: 40px;
    padding-bottom: 60px;
    margin-bottom: 40px;
    overflow: visible;
    position: relative;
    z-index: 50;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    position: relative;
}

.select-wrapper {
    position: relative;
    z-index: 10;
}

.select-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Desktop/Mobile toggle */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none !important;
    }
}

/* Native select for mobile */
.native-select {
    width: 100%;
    background: var(--charcoal-light);
    border: 1px solid var(--gray-700);
    padding: 14px 42px 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23D4AF37' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    transition: border-color var(--transition);
}

.native-select:focus {
    border-color: var(--gold);
}

.native-select:disabled {
    opacity: 0.35;
}

.native-select option {
    background: var(--charcoal-light);
    color: var(--white);
}

.custom-select {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.custom-select.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.select-display {
    background: var(--charcoal-light);
    border: 1px solid var(--gray-700);
    padding: 14px 42px 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    transition: border-color var(--transition);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
    display: flex;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
}

.select-display::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: translateY(-60%) rotate(45deg);
    transition: transform var(--transition);
}

.custom-select.open .select-display::after {
    transform: translateY(-30%) rotate(-135deg);
}

.custom-select.open {
    z-index: 101;
}

.custom-select.open .select-display,
.select-display:hover {
    border-color: var(--gold);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal-light);
    border: 1px solid var(--gold);
    border-top: none;
    max-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 100;
    transition: max-height 0.3s ease;
}

.custom-select.open .select-options {
    max-height: 320px;
}

.select-option {
    padding: 14px 16px;
    font-size: 16px;
    color: var(--gray-300);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.select-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.select-option.selected {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

/* Select scrollbar */
.select-options::-webkit-scrollbar {
    width: 4px;
}
.select-options::-webkit-scrollbar-track {
    background: var(--charcoal);
}
.select-options::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

/* --- Results Panel --- */
.results-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.results-panel.active {
    display: block;
}

.results-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.results-inner {
    background: var(--charcoal);
    border: 1px solid var(--gray-800);
    border-radius: 2px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.results-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
}

/* --- Vehicle Header --- */
.vehicle-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-800);
    position: relative;
}

.vehicle-logo-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vehicle-logo {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    opacity: 0.9;
}

.vehicle-logo.invert-logo {
    filter: brightness(0) invert(1);
}

.vehicle-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--white);
}

.vehicle-year {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: 4px;
    display: block;
}

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: pulseRing 2s ease-out infinite;
}

.pulse-circle.delay-1 {
    animation-delay: 0.6s;
}

.pulse-circle.delay-2 {
    animation-delay: 1.2s;
}

@keyframes pulseRing {
    0% {
        width: 12px;
        height: 12px;
        opacity: 1;
    }
    100% {
        width: 48px;
        height: 48px;
        opacity: 0;
    }
}

/* --- Stats --- */
.stats-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 24px;
}

.stat-unit {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 400;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--gray-500);
    width: 60px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.bar-track {
    flex: 1;
    height: 32px;
    background: rgba(255,255,255,0.03);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.factory-bar {
    background: linear-gradient(90deg, var(--gray-700), var(--gray-500));
}

.stage1-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.stage2-bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.bar-value {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.gain-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* --- Contact Quote Banner --- */
.contact-quote-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 16px 24px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--gray-300);
    flex-wrap: wrap;
}

.contact-quote-banner.visible {
    display: flex;
}

.quote-icon {
    color: var(--gold);
    font-size: 1.1rem;
}

.quote-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quote-link:hover {
    color: var(--gold-bright);
}

/* --- Price Section --- */
.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    flex-wrap: wrap;
}

.price-badge {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    padding: 14px 36px;
    display: inline-block;
}

.book-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 16px 36px;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    display: inline-block;
    text-align: center;
}

.book-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* --- TCU Switch --- */
.tcu-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 24px;
    margin-bottom: 4px;
}

.tcu-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.tcu-switch-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gray-300);
    transition: color 0.3s;
}

.tcu-switch.active .tcu-switch-label {
    color: var(--gold);
}

.tcu-switch-track {
    width: 52px;
    height: 28px;
    background: var(--gray-800);
    border: 1px solid var(--gray-500);
    border-radius: 14px;
    position: relative;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.tcu-switch.active .tcu-switch-track {
    background: var(--gold-dark);
    border-color: var(--gold);
}

.tcu-switch-thumb {
    width: 22px;
    height: 22px;
    background: var(--gray-300);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tcu-switch.active .tcu-switch-thumb {
    transform: translateX(24px);
    background: var(--gold-bright);
    box-shadow: 0 0 8px rgba(201,167,83,0.5);
}

.tcu-included-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
}

/* --- Why Section --- */
.why-section {
    padding: 120px 0;
    background: var(--charcoal);
    position: relative;
}

.why-section::before,
.why-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.2;
}

.why-section::before { top: 0; }
.why-section::after { bottom: 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--gray-800);
    padding: 40px 28px;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--gray-300);
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact-section {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-map-wrap {
    overflow: hidden;
    border: 1px solid var(--gray-800);
    border-radius: 2px;
    flex: 1;
    min-height: 200px;
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--gold);
}

.contact-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 400;
}

a.contact-value:hover {
    color: var(--gold);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--charcoal);
    border: 1px solid var(--gray-800);
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-form .form-group:last-of-type {
    flex: 1;
}

.contact-form textarea {
    height: 100%;
    min-height: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--charcoal-light);
    border: 1px solid var(--gray-700);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.submit-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    border: none;
    padding: 16px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--charcoal);
    border: 1px solid var(--gray-700);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: 16px;
        width: 44px;
        height: 44px;
    }
}


/* --- Gallery Section --- */
.gallery-section {
    padding: 120px 0 80px;
    background: var(--black);
    overflow: hidden;
    position: relative;
}

.gallery-wrapper {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: galleryScroll 40s linear infinite;
    width: max-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-slide {
    flex-shrink: 0;
    width: 380px;
    height: 280px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-800);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s;
}

.gallery-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    z-index: 1;
    transition: opacity 0.4s;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    z-index: 2;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.gallery-img:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.gallery-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gray-700);
    background: transparent;
    color: var(--gray-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.gallery-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,167,83,0.05);
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 40px;
    background: var(--charcoal);
    border-top: 1px solid var(--gray-800);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: block;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 8px;
}

.footer-ig {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-ig:hover {
    color: var(--gold);
}

.footer-ig-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-500);
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-comparison {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        height: -webkit-fill-available;
        background: rgba(0,0,0,0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) 0;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 8px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .selector-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .selector-panel {
        padding: 24px;
    }

    .results-inner {
        padding: 28px 20px;
    }

    .vehicle-header {
        flex-wrap: wrap;
    }

    .pulse-ring {
        display: none;
    }

    .vehicle-name {
        font-size: 1.3rem;
    }

    .stats-comparison {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bar-label {
        width: 48px;
        font-size: 0.6rem;
    }

    .gain-badge {
        min-width: 55px;
        font-size: 0.65rem;
    }

    .price-section {
        flex-direction: column;
        gap: 16px;
    }

    .tcu-switch-label {
        font-size: 0.7rem;
    }

    .tcu-included-label {
        font-size: 0.7rem;
    }

    .gallery-section {
        padding: 80px 0 60px;
    }

    .gallery-slide {
        width: 280px;
        height: 200px;
    }

    .gallery-wrapper {
        margin-top: 40px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .hero-brands {
        gap: 10px;
    }

    .hero-brands span {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .title-plus {
        letter-spacing: 4px;
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .title-cal {
        letter-spacing: 6px;
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .hero-badge {
        font-size: 0.65rem;
        letter-spacing: 2px;
        padding: 8px 16px;
    }

    .hero-tagline {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .hero-cta {
        padding: 16px 32px;
        font-size: 0.85rem;
        min-height: 48px;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        letter-spacing: 3px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .tuning-section {
        padding: 80px 0;
    }

    .selector-panel {
        padding: 16px;
    }

    .results-inner {
        padding: 20px 14px;
    }

    .vehicle-header {
        gap: 12px;
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .vehicle-logo-wrap {
        width: 48px;
        height: 48px;
    }

    .vehicle-logo {
        max-width: 48px;
        max-height: 48px;
    }

    .vehicle-name {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .stat-title {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .bar-track {
        height: 28px;
    }

    .bar-value {
        font-size: 0.75rem;
        padding-right: 6px;
    }

    .bar-label {
        width: 44px;
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .gain-badge {
        min-width: 50px;
        font-size: 0.6rem;
    }

    .bar-row {
        gap: 6px;
    }

    .price-badge {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .book-btn {
        padding: 14px 24px;
        font-size: 0.8rem;
        min-height: 48px;
        width: 100%;
        text-align: center;
    }

    .contact-form-wrap {
        padding: 20px 16px;
    }

    .contact-inner {
        gap: 32px;
    }

    .why-section {
        padding: 80px 0;
    }

    .contact-section {
        padding: 80px 0;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .contact-quote-banner {
        padding: 12px 14px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .footer {
        padding: 40px 0 24px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* iPhone SE / very small screens */
@media (max-width: 375px) {
    .title-plus {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .title-cal {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .hero-brands span {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .hero-brands {
        gap: 6px;
    }

    .bar-label {
        width: 38px;
        font-size: 0.5rem;
    }

    .gain-badge {
        min-width: 42px;
        font-size: 0.55rem;
    }

    .vehicle-name {
        font-size: 0.9rem;
    }
}

/* Landscape phone */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        min-height: 100svh;
        padding: 60px 0 40px;
    }

    .hero-content {
        padding: 0 48px;
    }

    .title-plus {
        font-size: 3rem;
    }

    .title-cal {
        font-size: 1.5rem;
    }

    .hero-tagline {
        display: none;
    }

    .hero-brands {
        margin-bottom: 24px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix iOS rubber-band scrolling on body */
    body {
        position: relative;
    }

    /* Prevent iOS text selection on interactive elements */
    .custom-select,
    .nav-toggle,
    .hero-cta,
    .book-btn,
    .submit-btn {
        -webkit-touch-callout: none;
    }
}
