:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #0087ff;
    /* Veloce Blue */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 100vh;
    cursor: none;
    /* Hide default cursor */
}

a,
button {
    cursor: none;
    /* Hide default cursor on interactive elements too */
}

/* Custom Cursor Styles */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-wheel,
.cursor-caliper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cursor-wheel svg,
.cursor-caliper svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Smooth scale transition for wheel */
.cursor-wheel {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Caliper heating transition when braking (hovering) */
.caliper-pad {
    transition: stroke 0.3s ease, filter 0.3s ease;
}

/* Hover States (Braking Effect) */
.custom-cursor.hover .cursor-wheel {
    transform: scale(1.4);
}

.custom-cursor.hover .caliper-pad {
    stroke: #ff3300; /* Brake pads glow hot red */
    filter: drop-shadow(0 0 5px rgba(255, 51, 0, 0.85));
}

/* Hide scrollbar */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.logo-text {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 1rem;
    display: block;
    opacity: 0;
    transform: translateY(20px);
}

.progress-wrapper {
    position: absolute;
    bottom: 80px;
    left: 10%;
    width: 80%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-line-container {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 2px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.car-container {
    position: absolute;
    bottom: -10px;
    left: 0%;
    width: 150px;
    transform: translateX(-50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loading-car {
    width: 100%;
    height: auto;
}

.progress-text {
    position: fixed;
    right: 40px;
    bottom: 100px;
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.menu-icon {
    width: 30px;
    height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: var(--text-color);
}

/* Hero Section */
#hero-pin-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    z-index: 10;
}

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

#sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.05);
}

.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.05);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.eyebrow {
    font-size: 0.9rem;
    letter-spacing: 8px;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0;
}

h1 {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 40px;
    opacity: 0;
    transform: scale(1.1);
    mix-blend-mode: overlay;
}

.cta-group {
    display: flex;
    gap: 20px;
    pointer-events: all;
    opacity: 0;
}

/* Hero CTA Buttons - High Specificity */
#hero .cta-group .btn-primary,
#hero .cta-group .btn-secondary {
    padding: 20px 60px !important; /* Wider and taller for premium feel */
    font-size: 0.8rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-transform: uppercase !important;
    border: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#hero .cta-group .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 50px !important;
}

#hero .cta-group .btn-primary:hover {
    background: #f5f5f5 !important;
    transform: translateY(-4px) !important;
}

#hero .cta-group .btn-secondary {
    background: #e2e2e2 !important; /* Authentic light grey from reference */
    color: #000000 !important;
    border-radius: 4px !important;
}

#hero .cta-group .btn-secondary:hover {
    background: #d8d8d8 !important;
    transform: translateY(-4px) !important;
}

/* Bottom Info */
.bottom-info {
    position: absolute;
    bottom: 50px;
    left: 50px;
    display: flex;
    gap: 60px;
    z-index: 10;
    opacity: 0;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-bottom: 5px;
}

.info-item .value {
    font-size: 1.2rem;
    font-weight: 700;
}



/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: var(--text-color);
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 10px);
        opacity: 0;
    }
}

main {
    position: relative;
    z-index: 2;
}

/* Editorial Typography Section */
#about-editorial {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(13, 13, 13, 0.028) 1px, transparent 1px),
        linear-gradient(180deg, #f8f8f6 0%, #f2f2f0 100%);
    background-size: clamp(72px, 11vw, 164px) 100%, 100% 100%;
    color: #050505;
}

#about-editorial::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(236, 236, 232, 0.24));
    opacity: 0.7;
}

.about-label {
    position: absolute;
    top: clamp(28px, 5.5vh, 54px);
    left: clamp(26px, 5.2vw, 70px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #111111;
    font-size: clamp(0.48rem, 0.68vw, 0.62rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
}

.label-marker {
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 6px solid var(--accent-color);
}

.editorial-copy {
    position: relative;
    z-index: 2;
    width: min(92vw, 1560px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(16px);
    will-change: transform;
}

.copy-line {
    display: block;
    color: #c7c7c3;
    opacity: 0.58;
    filter: blur(0.45px);
    transform: translateY(10px);
    font-size: clamp(2.15rem, 2.95vw, 4.35rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
    white-space: nowrap;
    will-change: color, opacity, filter, transform;
}

@media (max-width: 900px) {
    .editorial-copy {
        width: min(88vw, 720px);
    }

    .copy-line {
        font-size: clamp(1.8rem, 6vw, 3.25rem);
        line-height: 1.04;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 4rem;
    }

    .nav-links {
        display: none;
    }

    .bottom-info {
        gap: 30px;
        left: 30px;
    }

    #scroll-indicator {
        right: 20px;
    }

    #about-editorial {
        background-size: 64px 100%, 100% 100%;
    }

    .about-label {
        top: 26px;
        left: 24px;
    }

    .editorial-copy {
        width: calc(100vw - 42px);
    }
}

/* Cinematic Gallery Section - Refined */
#gallery-pin-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #f8f8f6;
    overflow: hidden;
    z-index: 30;
    margin-top: -2px;
    /* Increased overlap to hide gaps */
}

.gallery-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(0, 135, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-grid {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-template-rows: repeat(24, 1fr);
    z-index: 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    will-change: transform, opacity;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* Asymmetrical Placement */
.item-1 {
    grid-column: 2 / 8;
    grid-row: 3 / 9;
}

.item-2 {
    grid-column: 16 / 23;
    grid-row: 2 / 8;
}

.item-3 {
    grid-column: 1 / 6;
    grid-row: 14 / 20;
}

.item-4 {
    grid-column: 8 / 18;
    grid-row: 6 / 18;
    z-index: 50;
    border: none;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.item-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

.item-5 {
    grid-column: 19 / 24;
    grid-row: 12 / 20;
}

.item-6 {
    grid-column: 4 / 10;
    grid-row: 19 / 24;
}

.item-7 {
    grid-column: 14 / 22;
    grid-row: 20 / 24;
}

/* Cinematic Overlay & Typography */
.gallery-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 6vw;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
}

.content-inner {
    text-align: left;
    max-width: 900px;
}

.content-label {
    font-size: clamp(0.7rem, 0.9vw, 1rem);
    letter-spacing: 0.1em;
    text-transform: capitalize;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
}

.content-heading {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.heading-line {
    display: inline;
    opacity: 1;
    transform: none;
}

.content-description {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    text-shadow: none;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(12, 1fr);
    }

    .item-4 {
        grid-column: 2 / 12;
        grid-row: 4 / 10;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-5,
    .item-6,
    .item-7 {
        display: none;
    }
}

/* Technical Specifications - White Blueprint Edition */
#specs-horizontal {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    /* Clean white background */
    overflow: hidden;
    z-index: 20;
    font-family: var(--font-main);
}

.specs-bg-blueprint {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.8;
    pointer-events: none;
}

.specs-pin-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.specs-track {
    display: flex;
    align-items: center;
    padding: 0 12vw;
    gap: 25vw;
    height: 100%;
    will-change: transform;
}

.specs-header {
    min-width: 45vw;
}

.specs-title {
    font-size: clamp(4rem, 12vw, 14rem);
    font-weight: 900;
    line-height: 0.8;
    color: #050505;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.specs-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    opacity: 1;
}

.spec-card {
    position: relative;
    min-width: 35vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-bg-num {
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    font-size: clamp(10rem, 25vw, 30rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.12);
    /* Increased thickness and opacity */
    line-height: 1;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.spec-unit {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.spec-detail {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    color: rgba(0, 0, 0, 0.5);
    max-width: 300px;
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 900px) {
    .specs-track {
        gap: 30vw;
    }

    .spec-card {
        min-width: 80vw;
    }

    .spec-bg-num {
        font-size: 15rem;
    }
}

.spec-image-card {
    position: relative;
    min-width: 35vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(-2deg);
}

.spec-image-card.large {
    min-width: 55vw;
}

.spec-image-card.end-car {
    min-width: 90vw;
}

.spec-image-card img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.12));
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-image-card:hover img {
    transform: scale(1.05) translateY(-10px);
}

.image-label {
    position: absolute;
    bottom: -40px;
    left: 0;
    font-size: 0.65rem;
    letter-spacing: 4px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

@media (max-width: 900px) {

    .spec-image-card,
    .spec-image-card.large {
        min-width: 80vw;
        height: 40vh;
    }
}

/* Footer Redesign - Minimalist & Cinematic */
#site-footer {
    background: #f9f9f4;
    /* Light cream background from reference */
    padding-top: 100px;
    position: relative;
    z-index: 100;
}

.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8vw 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-text h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.cta-text .accent {
    color: var(--accent-color);
}

.cta-text p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn-demo {
    background: var(--accent-color);
    color: white;
    padding: 18px 40px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-secondary {
    background: #e5e5e0;
    color: #1a1a1a;
    padding: 18px 40px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-demo:hover,
.btn-secondary:hover {
    transform: translateY(-5px);
}

.footer-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

.footer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2);
}

.footer-nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8vw;
    background: #ffffff;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-social {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-style: normal;
    font-size: 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
}

.footer-legal-bar {
    display: flex;
    justify-content: space-between;
    padding: 30px 8vw;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.footer-legal-bar .copyright {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
}

.legal-group {
    display: flex;
    gap: 25px;
}

.legal-group a {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

@media (max-width: 1000px) {
    .footer-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
}
}

/* Veloce Finder Section */
#veloce-finder {
    padding: 100px 8vw;
    background: #ffffff;
    position: relative;
    z-index: 100;
}

.finder-container {
    background: #000000;
    border-radius: 0px; /* Removed rounding as requested */
    overflow: hidden;
    display: flex;
    min-height: 500px;
}

.finder-content {
    flex: 0 0 40%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.finder-content h3 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.2;
}

.finder-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
}

.btn-finder {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 18px 35px;
    border-radius: 0px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    width: fit-content;
}

.btn-finder:hover {
    transform: translateY(-5px);
    background: #e5e5e5;
}

.finder-image {
    flex: 1;
    position: relative;
}

.finder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .finder-container {
        flex-direction: column;
    }

    .finder-content {
        flex: 1;
        padding: 60px 40px;
    }

    .finder-image {
        height: 350px;
    }
}