/* ===== CSS VARIABLES ===== */
:root {
    --porsche-red: #E63946;
    --deep-black: #0A0A0A;
    --matte-gray: #1C1C1C;
    --silver: #C0C0C0;
    --white: #FFFFFF;
    
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--deep-black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--porsche-red);
}

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

.nav-link {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--porsche-red);
    transition: var(--transition-fast);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--matte-gray) 0%, var(--deep-black) 50%, var(--deep-black) 100%);
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(230, 57, 70, 0.4);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-20px); opacity: 0.8; }
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 25vw;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px rgba(230, 57, 70, 0.15);
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--porsche-red);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 12vw, 140px);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--porsche-red);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--porsche-red) 0%, #c62828 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.arrow {
    transition: var(--transition-fast);
}

.btn:hover .arrow {
    transform: translateX(5px);
}

/* Hero Car */
.hero-car {
    position: relative;
    animation: fadeIn 1.2s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.car-image {
    width: 100%;
    animation: carFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(230, 57, 70, 0.3));
}

@keyframes carFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.car-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--porsche-red);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--porsche-red);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1;
}

/* ===== HISTORY SECTION ===== */
.history {
    padding: 120px 0;
    background: var(--deep-black);
}

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

.history-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--matte-gray);
    transition: var(--transition-medium);
    cursor: pointer;
}

.history-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.history-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.history-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
}

.history-year {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--porsche-red);
    line-height: 1;
}

.history-model {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0 12px;
}

.history-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-specs {
    display: flex;
    gap: 16px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-item .spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--porsche-red);
}

.spec-item .spec-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* ===== SPECS SECTION ===== */
.specs {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--deep-black) 0%, var(--matte-gray) 100%);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.specs-image {
    position: relative;
}

.tech-car {
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.tech-highlight {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transition: var(--transition-medium);
}

.tech-highlight.active {
    opacity: 1;
}

.specs-content .section-title {
    margin-bottom: 24px;
}

.specs-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin-bottom: 40px;
}

.specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.spec-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(28, 28, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition-medium);
    cursor: pointer;
}

.spec-card:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.4);
    transform: translateY(-4px);
}

.spec-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--porsche-red);
    flex-shrink: 0;
}

.spec-icon svg {
    width: 24px;
    height: 24px;
}

.spec-info h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.spec-info .spec-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
}

.spec-info .spec-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== PERFORMANCE SECTION ===== */
.performance {
    padding: 120px 0;
    background: var(--deep-black);
    position: relative;
    overflow: hidden;
}

.speed-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(230, 57, 70, 0.05) 100px,
        rgba(230, 57, 70, 0.05) 102px
    );
    animation: speedMove 20s linear infinite;
}

.performance.performance-boost .speed-lines {
    animation: speedMove 1.8s linear infinite, speedPulse 1.8s ease;
}

@keyframes speedMove {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 0; }
}

@keyframes speedPulse {
    0%, 100% { opacity: 1; }
    35% { opacity: 0.35; }
    70% { opacity: 1; }
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.stat-box {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-box:hover::before {
    left: 100%;
}

.stat-box:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 57, 70, 0.6);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}

.stat-box.stat-boost {
    animation: statPulse 1.1s ease;
}

@keyframes statPulse {
    0% {
        border-color: rgba(230, 57, 70, 0.3);
        box-shadow: none;
    }
    45% {
        border-color: rgba(230, 57, 70, 0.85);
        box-shadow: 0 18px 42px rgba(230, 57, 70, 0.25);
    }
    100% {
        border-color: rgba(230, 57, 70, 0.3);
        box-shadow: none;
    }
}

.stat-number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
}

.counter {
    background: linear-gradient(135deg, var(--porsche-red) 0%, #ff6b6b 50%, var(--porsche-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-size: 32px;
    color: var(--porsche-red);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

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

.feature-item {
    text-align: center;
    padding: 24px;
    background: rgba(28, 28, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.feature-item:hover {
    border-color: rgba(230, 57, 70, 0.5);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--porsche-red);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== CONFIG SECTION ===== */
.config {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--matte-gray) 0%, var(--deep-black) 100%);
}

.config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 0.85fr);
    gap: 70px;
    align-items: center;
}

.config-car {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.color-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    filter: blur(80px);
    transition: background 0.8s ease;
    z-index: -1;
}

.config-image {
    width: 100%;
    transition: filter 0.5s ease, transform 0.5s ease;
}

.config-car:hover .config-image {
    transform: translateY(-8px);
}

.config-preview-panel {
    position: absolute;
    right: 24px;
    bottom: 18px;
    width: min(320px, calc(100% - 48px));
    padding: 18px;
    background: rgba(10, 10, 10, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.preview-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.45);
}

.config-preview-panel strong {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--white);
}

.preview-tags,
.config-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-tags span,
.config-summary span {
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.config-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.config-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.config-group {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.config-group.compact {
    padding-bottom: 18px;
}

.config-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.config-group-head span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 11px;
    font-weight: 700;
    color: var(--porsche-red);
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.28);
    border-radius: 50%;
}

.config-group-head h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.76);
}

.color-picker {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.color-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn.active {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.5);
    transform: scale(1.2);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.option-card {
    min-height: 112px;
    padding: 16px;
    text-align: left;
    color: var(--white);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.option-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.option-card span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.option-card:hover,
.option-card.active {
    border-color: rgba(230, 57, 70, 0.75);
    background: rgba(230, 57, 70, 0.1);
}

.toggle-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.toggle-row {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
}

.toggle-row input {
    accent-color: var(--porsche-red);
}

.color-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    background: rgba(28, 28, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    margin-top: 8px;
}

.color-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.color-code {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.color-code span {
    color: var(--porsche-red);
    font-weight: 600;
}

.config-price {
    text-align: right;
}

.config-price span {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.42);
}

.config-price strong {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
}

.config-summary {
    grid-column: 1 / -1;
    padding-top: 4px;
}

.color-info .btn {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
}

.config-telemetry {
    margin-top: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

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

.telemetry-head span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.45);
}

.telemetry-head strong {
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--porsche-red);
}

.telemetry-row {
    display: grid;
    grid-template-columns: 92px 1fr 34px;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.telemetry-row span,
.telemetry-row strong {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.telemetry-row strong {
    text-align: right;
    color: var(--white);
}

.telemetry-row div {
    height: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.telemetry-row i {
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--porsche-red), #ff7a83);
    border-radius: inherit;
    transition: width 0.45s ease;
}

/* ===== CONFIG MODAL ===== */
.config-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.config-modal.active {
    opacity: 1;
    visibility: visible;
}

.config-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.config-modal-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    background: rgba(14, 14, 14, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    transform: translateY(18px) scale(0.98);
    transition: var(--transition-fast);
}

.config-modal.active .config-modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    font-size: 26px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--white);
    border-color: rgba(230, 57, 70, 0.65);
}

.modal-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--porsche-red);
}

.config-modal-dialog h3 {
    max-width: 620px;
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1.1;
}

.modal-desc {
    max-width: 620px;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.58);
}

.modal-build {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: center;
    margin-top: 28px;
}

.modal-build-media {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.modal-build-media img {
    position: relative;
    z-index: 1;
    width: 100%;
}

.modal-glow {
    position: absolute;
    inset: 8%;
    filter: blur(70px);
}

.modal-build-details {
    display: grid;
    gap: 18px;
}

.modal-price {
    padding: 22px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.28);
    border-radius: 8px;
}

.modal-price span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.55);
}

.modal-price strong {
    font-family: var(--font-display);
    font-size: 34px;
}

.modal-spec-list {
    display: grid;
    gap: 10px;
}

.modal-spec-list div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-spec-list dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.42);
}

.modal-spec-list dd {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.payment-panel {
    margin-top: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.payment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.payment-head h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
}

.payment-head > strong {
    font-family: var(--font-display);
    font-size: 28px;
    white-space: nowrap;
    color: var(--porsche-red);
}

.payment-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.payment-controls label {
    display: grid;
    gap: 7px;
}

.payment-controls span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.45);
}

.payment-controls select {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    color: var(--white);
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
}

.payment-controls select:focus {
    border-color: rgba(230, 57, 70, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.payment-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.56);
}

.payment-breakdown strong {
    color: rgba(255, 255, 255, 0.9);
}

.payment-note {
    width: 100%;
    color: rgba(255, 255, 255, 0.4);
}

.garage-panel {
    margin-top: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.garage-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.garage-head h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
}

.garage-save {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 10px;
    width: min(420px, 100%);
}

.garage-save input,
.compare-controls select {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    color: var(--white);
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
}

.garage-list {
    display: grid;
    gap: 10px;
}

.garage-empty {
    padding: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.garage-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.garage-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.garage-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.garage-actions {
    display: flex;
    gap: 8px;
}

.garage-mini-btn {
    padding: 8px 10px;
    font: inherit;
    font-size: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
}

.garage-mini-btn:hover {
    border-color: rgba(230, 57, 70, 0.6);
}

.compare-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.compare-controls label {
    display: grid;
    gap: 7px;
}

.compare-controls span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.45);
}

.compare-table {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.compare-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-row span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.compare-row strong {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.checkout-panel {
    display: none;
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

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

.checkout-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.checkout-head span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.46);
}

.checkout-back {
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: var(--white);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.checkout-card-preview {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(230, 57, 70, 0.9), rgba(20, 20, 20, 0.94)),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22), transparent 32%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.checkout-card-preview::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.card-brand {
    align-self: flex-end;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.checkout-card-preview strong {
    font-family: var(--font-display);
    font-size: 25px;
    letter-spacing: 2px;
}

.checkout-card-preview div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.checkout-form {
    display: grid;
    gap: 12px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(10, 10, 10, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.checkout-total span,
.checkout-form label span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.48);
}

.checkout-total strong {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
}

.checkout-form label {
    display: grid;
    gap: 7px;
}

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 12px;
}

.checkout-form input {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    color: var(--white);
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
    transition: var(--transition-fast);
}

.checkout-form input:focus {
    border-color: rgba(230, 57, 70, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.checkout-form input.input-error {
    border-color: rgba(230, 57, 70, 0.9);
}

.checkout-error {
    min-height: 18px;
    font-size: 12px;
    color: #ff7a83;
}

.checkout-submit {
    justify-content: center;
    width: 100%;
    border: 0;
}

.checkout-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.checkout-steps span {
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.checkout-steps span.active {
    color: var(--white);
    border-color: rgba(230, 57, 70, 0.65);
    background: rgba(230, 57, 70, 0.12);
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 30px;
    background: var(--deep-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--white);
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.footer-info {
    min-height: 100%;
    padding: 26px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.footer-kicker {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--porsche-red);
}

.footer-info h3 {
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
}

.footer-info p,
.footer-list {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.footer-list li {
    position: relative;
    padding-left: 18px;
}

.footer-list li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--porsche-red);
}

.contact-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-form label {
    display: grid;
    gap: 7px;
}

.contact-form label span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.55);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 13px;
    color: var(--white);
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    outline: none;
    transition: var(--transition-fast);
}

.contact-form textarea {
    resize: vertical;
    min-height: 92px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(230, 57, 70, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.contact-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    border: 0;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.72;
    cursor: default;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .history-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-car {
        order: 1;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .specs-grid,
    .config-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .config-car {
        min-height: 360px;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
    }
    
    .specs-list {
        grid-template-columns: 1fr;
    }

    .footer-info-grid {
        grid-template-columns: 1fr;
    }

    .modal-build {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-150%);
        transition: var(--transition-medium);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .option-grid,
    .toggle-list {
        grid-template-columns: 1fr;
    }

    .color-info {
        grid-template-columns: 1fr;
    }

    .config-price {
        text-align: left;
    }

    .config-car {
        flex-direction: column;
    }

    .config-preview-panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 18px;
    }

    .telemetry-row {
        grid-template-columns: 76px 1fr 30px;
    }

    .config-modal {
        padding: 14px;
    }

    .config-modal-dialog {
        padding: 26px 18px;
    }

    .config-modal-dialog h3 {
        font-size: 30px;
        padding-right: 40px;
    }

    .modal-build-media {
        min-height: 190px;
    }

    .modal-spec-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .payment-head,
    .payment-breakdown {
        flex-direction: column;
    }

    .payment-head > strong {
        white-space: normal;
    }

    .payment-controls {
        grid-template-columns: 1fr;
    }

    .garage-head,
    .garage-item {
        grid-template-columns: 1fr;
    }

    .garage-head,
    .garage-save,
    .garage-actions {
        flex-direction: column;
    }

    .garage-save,
    .compare-controls,
    .compare-row {
        grid-template-columns: 1fr;
    }

    .garage-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .checkout-panel {
        padding: 18px;
    }

    .checkout-head,
    .checkout-total {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .checkout-card-preview {
        min-height: 190px;
    }

    .footer-links {
        justify-content: center;
        gap: 18px;
    }

    .footer-info {
        padding: 22px;
    }
    
    .color-picker {
        flex-wrap: wrap;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
    background: var(--porsche-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4d5a;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(230, 57, 70, 0.3);
    color: var(--white);
}
