/* Reset & Base */
:root {
    --bg-color: #fbfbfd;
    --text-color: #1d1d1f;
    --accent-gray: #86868b;
    --pistons-red: #C8102E;
    --pistons-blue: #1d428a;
    --dark-bg: #000000;
    --dark-text: #f5f5f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.3em;
}

p {
    font-size: 19px;
    line-height: 1.45;
    color: var(--text-color);
}

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

/* Utilities */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-weight: 600;
    font-size: 14px;
}

.nav-link {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;

}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Darken for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 60px;
    /* Offset for nav */
}

.hero h1 {
    font-size: 64px;
}

.hero-logo {
    display: block;
    max-width: 300px;
    width: 100%;
    margin: 0 auto 20px;
}

/* Countdown */
.countdown-container {
    margin: 40px 0;
}

.countdown-container p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-size: 40px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.time-unit label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.launch-date {
    margin-top: 15px;
    font-weight: 500;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #0071e3;
    color: #fff;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0077ed;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Info Section */
.info-section {
    padding: 120px 0;
    background-color: #000;
    color: #f5f5f7;
}

.info-section h2,
.info-section h3,
.info-section .large-text,
.info-section .avail-item h3 {
    color: #f5f5f7;
}

.info-section .sub-text,
.info-section .avail-item p {
    color: #a1a1a6;
}

.large-text {
    font-size: 32px;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 30px;
}

.sub-text {
    font-size: 21px;
    color: var(--accent-gray);
    max-width: 700px;
    margin: 0 auto 60px;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.avail-item h3 {
    font-size: 21px;
    color: var(--text-color);
}

.avail-item p {
    font-size: 17px;
    color: var(--accent-gray);
}

/* Product Sections */
.product-section {
    padding: 100px 0;
    overflow: hidden;
}

.dark-bg {
    background-color: #000;
    color: #f5f5f7;
}

.dark-bg p,
.dark-bg h2 {
    color: #f5f5f7;
}

.light-bg {
    background-color: #fbfbfd;
}

.product-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

.product-grid.reverse {
    flex-direction: row-reverse;
}

.product-text {
    flex: 1;
}

.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.02);
}

.product-label {
    display: block;
    color: #bf4800;
    /* Subtle orange/red hint */
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dark-bg .product-label {
    color: #ff6b00;
}

.price {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.description {
    font-size: 19px;
    line-height: 1.5;
    color: var(--accent-gray);
}

.dark-bg .description {
    color: #a1a1a6;
}

.warning {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.3);
    padding: 10px;
    border-radius: 8px;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Change as needed */
  }
  
  .iframe-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

/* Event Section */
.event-section {
    padding: 120px 0;
    background: #fff;
    text-align: center;
}

.event-image-container {
    max-width: 800px;
    margin: 60px auto 0;
    border-radius: 20px;
    overflow: hidden;
}

.event-image-container img {
    width: 100%;
    display: block;
}

.date {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d428a, #C8102E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

/* Footer */
footer {
    background: #f5f5f7;
    padding: 40px 0;
    font-size: 12px;
    color: var(--accent-gray);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .product-grid,
    .product-grid.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        margin-top: 0;
    }

    .availability-grid {
        grid-template-columns: 1fr;
    }

    #countdown {
        gap: 15px;
    }

    .time-unit span {
        font-size: 24px;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    /* Removed default styling from product-image img to rely on container */
    border-radius: 0;
    box-shadow: none;
}

/* Make sure the product-image container doesn't conflict */
.product-image .carousel-container img {
    transition: transform 0.3s ease;
}

.product-image .carousel-container img:hover {
    transform: scale(1.02);
}


/* Navigation Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    /* Centering text */
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #fff;
}