/* ========================================
   V28 INTRO - TESLA CYBERTRUCK EXACT STYLE
   ======================================== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #171a20;
    background: #000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   V28 LOGO OVERLAY
   ======================================== */
.v28-logo-overlay {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 10001;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.v28-logo-overlay img {
    display: block;
    height: 101px;
    width: auto;
}

.v28-logo-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile adjustments for V28 logo */
@media (max-width: 768px) {
    .v28-logo-overlay img {
        height: 67px;
    }
}

@media (max-width: 480px) {
    .v28-logo-overlay img {
        height: 50px;
    }
}

/* ========================================
   TESLA-STYLE NAVIGATION
   ======================================== */
.tesla-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    transition: background-color 0.3s ease;
}

.tesla-nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    max-width: 1440px;
    margin: 0 auto;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


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

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.025em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-cta {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.025em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu Button */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.nav-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-logo-scrolled {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-logo-scrolled img {
    height: 26px; /* Or a size that fits well */
    width: auto;
    filter: brightness(0) invert(1);
}

.tesla-nav.scrolled .nav-logo-scrolled {
    opacity: 1;
}


@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .tesla-nav {
        padding: 0 20px;
    }
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 320px;
    background: #fff;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #393c41;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    list-style: none;
    padding: 60px 0 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid #e5e5e5;
}

.mobile-nav-links a {
    display: block;
    padding: 20px 0;
    color: #393c41;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   TESLA SECTION BASE
   ======================================== */
.tesla-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 40px;
}

.hero-text-top {
    text-align: center;
    padding-top: 40px;
}

.hero-content h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.01em;
}

/* Tesla Cybertruck Style Hero CTA Button */
.hero-cta-bottom {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    min-width: 256px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.025em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-cta-bottom:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   TESLA BUTTON STYLES
   ======================================== */
.tesla-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 160px;
}

/* Outline button (white border on dark bg) - Tesla's "Learn More" style */
.tesla-btn-outline {
    background: transparent;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.tesla-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Solid button (white bg) */
.tesla-btn-solid {
    background: #fff;
    color: #171a20;
    border: 3px solid #fff;
}

.tesla-btn-solid:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Outline dark (for light backgrounds) */
.tesla-btn-outline-dark {
    background: transparent;
    color: #171a20;
    border: 3px solid rgba(23, 26, 32, 0.7);
}

.tesla-btn-outline-dark:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #171a20;
}

/* Chevron down icon */
.chevron-down {
    width: 20px;
    height: 20px;
    margin-left: 2px;
    animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}

/* ========================================
   TEXT SECTIONS
   ======================================== */
.text-section {
    background: #fff;
    padding: 120px 40px;
    min-height: 0;
}

.text-section.dark {
    background: #000;
    color: #fff;
}

.section-content {
    max-width: 900px;
    width: 100%;
}

.section-content.centered {
    text-align: center;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c5e62;
    margin-bottom: 12px;
}

.text-section.dark .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.section-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title-large {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: #5c5e62;
    line-height: 1.5;
    margin-bottom: 24px;
}

.section-subtitle.highlight {
    color: #e31937;
    font-weight: 500;
}

.section-body {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.7;
    color: #5c5e62;
}

.section-body.wide {
    max-width: 700px;
    margin: 0 auto;
}

.text-section.dark .section-subtitle,
.text-section.dark .section-body {
    color: rgba(255, 255, 255, 0.7);
}

.section-body p {
    margin-bottom: 20px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* ========================================
   IMAGE SECTIONS (Full Viewport with BG Image)
   ======================================== */
.image-section {
    background: #000;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Placeholder text display */
.image-placeholder::before {
    content: attr(data-placeholder);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    max-width: 300px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 1;
}

/* Hide placeholder text when image has src */
.image-placeholder:has(img[src]:not([src=""])) {
    background: none;
}

.image-placeholder:has(img[src]:not([src=""]))::before {
    display: none;
}

.section-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-bg-image[src=""] {
    display: none;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

.section-overlay.light {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* Content Positioning */
.image-section .section-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 40px;
}

.image-section .section-content.top-center {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 800px;
}

/* Section 4 - Exact center positioning */
#sect4 {
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Section 6 - Dark drop shadow and center positioning */
#amls .section-content {
    top: 50%;
    transform: translate(-50%, -50%);
}

#amls .section-label,
#amls h2,
#amls p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

#amls .section-label {
    font-size: 18px;
    font-weight: 700;
}

/* Section 8 - Center of right half positioning */
#sect8text {
    position: absolute;
    top: 70%;
    left: 75%;
    transform: translate(-50%, -50%);
}

#sect8text .feature-line {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

#sect8text .feature-stack {
    gap: 8px;
}

/* Section 9 - Bottom right positioning */
#future .section-content {
    position: absolute;
    top: auto;
    bottom: 80px;
    left: auto;
    right: 60px;
    transform: none;
    text-align: right;
    max-width: 550px;
}

#future .section-title-split {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
}

#future .section-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Section 10 - Left side positioning */
#stage1 {
    position: absolute;
    top: 50%;
    bottom: auto;
    left: 60px;
    right: auto;
    transform: translateY(-50%);
    text-align: left;
    max-width: 500px;
}

#stage1 .section-label {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

#stage1 .section-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #fff;
}

#stage1 .section-body-text {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Section 11 - Bottom left positioning */
#stage-two .section-content {
    position: absolute;
    top: auto;
    bottom: 80px;
    left: 60px;
    right: auto;
    transform: none;
    text-align: left;
    max-width: 520px;
}

#stage-two .section-label {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

#stage-two .section-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #fff;
}

#stage-two .section-body-text {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Section 12 - Bottom left positioning */
#infrastructure {
    margin-top: 0;
}

#infrastructure .section-bg-image {
    object-position: center top;
}

#global {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: 10px;
    right: auto;
    transform: none;
    text-align: left;
    max-width: 580px;
}

#global .section-label {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

#global .section-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #fff;
}

#global .section-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

#global .section-label,
#global .section-title,
#global .section-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Section 14 - Bottom left positioning */
#final .section-bg-image {
    object-fit: cover;
    object-position: center center;
}

#moonshot {
    position: absolute;
    top: auto;
    bottom: 40px;
    left: 20px;
    right: auto;
    transform: none;
    text-align: left;
}

#moonshot .final-line {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

#moonshot .final-line.accent {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.image-section .section-content.bottom-left {
    position: absolute;
    bottom: 100px;
    left: 40px;
    max-width: 600px;
    text-align: left;
}

.image-section .section-content.stacked-center {
    text-align: center;
}

.image-section .section-label {
    color: rgba(255, 255, 255, 0.7);
}

.image-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.intro-lead {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.section-body-text {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

/* CTA at bottom of image sections */
.section-cta-bottom {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 16px;
}

/* Section Title Split (two lines) */
.section-title-split {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title-split span {
    display: block;
}

/* ========================================
   FEATURE STACK (It's fast... Stable... Composed)
   ======================================== */
.feature-stack,
.final-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-line,
.final-line {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
}

.feature-line.accent,
.final-line.accent {
    color: #e31937;
    font-weight: 600;
}

/* ========================================
   ORDER SECTION
   ======================================== */
.order-section {
    background: #fff;
    min-height: 0;
    padding: 100px 40px;
}

.order-content {
    text-align: center;
}

.order-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: #171a20;
    margin-bottom: 8px;
}

.order-price {
    font-size: 17px;
    color: #5c5e62;
    margin-bottom: 32px;
}

.order-price span {
    color: #171a20;
    font-weight: 500;
}

.order-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Solid button for order section (dark) */
.order-section .tesla-btn-solid {
    background: #171a20;
    color: #fff;
    border-color: #171a20;
}

.order-section .tesla-btn-solid:hover {
    background: #000;
}

/* ========================================
   TESLA FOOTER
   ======================================== */
.tesla-footer {
    background: #000;
    padding: 32px 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1024px) {
    .image-section .section-content.top-center {
        top: 100px;
        padding: 0 24px;
    }

    .image-section .section-content.bottom-left {
        bottom: 80px;
        left: 24px;
        right: 24px;
    }

    .section-cta-bottom {
        bottom: 32px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 20px 32px;
    }

    .hero-cta-bottom {
        padding-bottom: 60px;
    }

    .text-section {
        padding: 80px 24px;
    }

    .image-section .section-content.top-center {
        top: 80px;
    }

    .image-section .section-content.bottom-left {
        bottom: 100px;
    }

    .section-cta-bottom {
        bottom: 32px;
        flex-direction: column;
        align-items: center;
    }

    .tesla-btn {
        min-width: 200px;
    }

    .order-section {
        padding: 80px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .feature-line,
    .final-line {
        font-size: clamp(20px, 5vw, 32px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title-large {
        font-size: 32px;
    }

    .section-title-split {
        font-size: 28px;
    }

    .image-placeholder::before {
        font-size: 14px;
        max-width: 200px;
    }
}
