:root {
    --bg-dark: #050505;
    --bg-light: #09090B;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, .uppercase-header {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* Utility for fade-in animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-mark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #FFFFFF;
    letter-spacing: 0.15em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-cta {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

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

@media (max-width: 600px) {
    .floating-nav {
        padding: 1rem 1.5rem;
    }
    .brand-mark {
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.8) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 5rem);
    max-width: 90%;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

.anti-gravity-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: #FFFFFF;
    padding: 14px 32px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    animation: antiGravity 4s ease-in-out infinite;
    z-index: 10;
    margin-bottom: 3rem;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite ease-in-out;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--text-primary);
    border-right: 2px solid var(--text-primary);
    transform: rotate(45deg);
    margin-top: -10px;
    animation: arrowFade 2s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

@keyframes arrowFade {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 8rem;
}

.detail-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: background 0.3s ease;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.detail-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-card p {
    color: var(--text-secondary);
    font-weight: 300;
}

/* The Bundle */
.bundle-section {
    text-align: center;
    padding: 5rem 2rem;
    margin-bottom: 2rem;
}

.bundle-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bundle-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Checkout Section */
.checkout-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery styling */
.gallery {
    display: flex;
    gap: 1.5rem;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail.active, .thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
}

.main-image-wrapper {
    flex-grow: 1;
}

.main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

/* Terminal styling */
.terminal {
    padding: 2.5rem;
}

.terminal-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.terminal-price {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #A1A1AA;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 2.5rem;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    width: 50px;
    font-size: 1.1rem;
    font-family: inherit;
    pointer-events: none;
}

/* Director Quote Card */
.director-quote-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #D4AF37;
    border-radius: 6px;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.director-diamond {
    position: absolute;
    top: -15px;
    right: -10px;
    z-index: 2;
    drop-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.director-quote-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #A1A1AA;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-align: right;
    padding-right: 1.5rem;
}

.director-quote-text {
    font-family: 'Georgia', 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0;
}

@keyframes pulse-ice-blue {
    0% {
        box-shadow: 0 0 0 rgba(10, 132, 255, 0);
        border-color: transparent;
    }
    50% {
        box-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
        border-color: rgba(10, 132, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 0 rgba(10, 132, 255, 0);
        border-color: transparent;
    }
}

.cta-btn {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
    font-weight: 400;
    padding: 1.2rem 3rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: pulse-ice-blue 3s infinite ease-in-out;
}

.cta-btn.full-width {
    width: 100%;
    text-align: center;
}

.cta-btn.glowing-hover:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

/* Trust Elements */
.trust-element {
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.2rem;
}

.review-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    text-align: center;
}

.review-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative; /* lets it dictate the container height */
}

.review-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.review-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0 0.5rem;
}

.stars {
    color: #D4AF37; /* Muted sophisticated gold */
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.gateway-text {
    font-size: 0.75rem;
    color: rgba(136, 136, 136, 1);
    line-height: 1.6;
}

/* Footer Carousel Section */
.footer-carousel-section {
    padding: 2.5rem 2rem;
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}
.footer-carousel-section .review-carousel {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Bottom Layout */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-brand {
    font-family: 'Montserrat', sans-serif;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 3rem 1rem; /* uniform side padding */
    }
    
    .checkout-section {
        padding: 1rem 0; /* remove nested horizontal padding */
        width: 100%;
        max-width: 100%;
    }
    
    .gallery {
        flex-direction: column-reverse;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .main-image-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        width: 100%;
        max-width: 100%;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .thumbnail-list::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        padding: 0 1rem;
    }

    .terminal {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .terminal-title {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    .terminal-price {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .product-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .detail-card {
        padding: 2rem 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .floating-nav {
        padding: 1rem 1rem;
        flex-direction: row; /* keep them on same line */
        justify-content: space-between;
        align-items: center;
    }
    
    .brand-mark {
        font-size: 0.7rem;
    }
    
    .nav-cta {
        padding: 8px 14px;
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }
    
    .anti-gravity-btn {
        padding: 12px 24px;
        font-size: 0.75rem;
    }
}
