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

:root {
    --bg: #0a0a0a;
    --accent: #7c3aed;
    --text: #e5e5e5;
    --text-secondary: #999999;
    --card: #141414;
    --card-hover: #1a1a1a;
    --border: #333333;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(124, 58, 237, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: "Syne", serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

p {
    color: var(--text-secondary);
    font-weight: 350;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: transparent;
    transition: transform 0.3s var(--ease-out);
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

.logo {
    font-family: "Syne", serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 450;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-link {
    color: white !important;
    font-weight: 450 !important;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.cta-link:hover {
    color: #7c3aed !important;
    text-shadow: 0 0 12px #7c3aed;
}

/* Hero Section */
.hero {
    position: relative;
    height: 860vh;
    background: var(--bg);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    contain: layout style;
    transform: translateZ(0);
}

.hero-frames {
    position: relative;
    width: 100%;
    height: 100%;
}

.scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    will-change: opacity;
    transform: translateZ(0);
}

.scene.active {
    opacity: 1;
    pointer-events: all;
}

.scene-text {
    position: absolute;
    z-index: 10;
    text-align: left;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 60px 36px;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
    min-height: 28vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    will-change: opacity;
}

.scene-text.revealed {
    opacity: 1;
}

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

.scene-text.left {
    /* Vertically centered, left side */
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: auto;
    width: 45%;
    min-width: 320px;
    padding: 48px 48px 48px 60px;
    text-align: left;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 70%, transparent 100%);
    min-height: unset;
    justify-content: center;
}

.scene-text.right {
    /* Vertically centered, right side */
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    left: auto;
    width: 45%;
    min-width: 320px;
    padding: 48px 60px 48px 48px;
    text-align: right;
    align-items: flex-end;
    background: linear-gradient(to left, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 70%, transparent 100%);
    min-height: unset;
    justify-content: center;
}

.scene-headline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.scene-subtext {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
    max-width: none;
    /* Promote to GPU layer so src-swap doesn't trigger full repaint chain */
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: auto;
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
    background: var(--bg);
}

.section:nth-child(even) {
    background: #0f0f0f;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Switches */
.switches-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.switch-card {
    background: var(--card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    transform: translateY(40px);
}

.switch-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.switch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.2);
}

.switch-card h3 {
    color: white;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 1.5rem;
}

.switch-specs {
    margin-bottom: 24px;
}

.switch-spec {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.switch-spec:last-child {
    border-bottom: none;
}

.spec-value {
    color: var(--accent);
    font-weight: 500;
}

.switch-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Specs */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out) 0.2s;
}

.specs-grid.revealed {
    opacity: 1;
    transform: translateY(0);
}

.spec-category {
    background: var(--card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.spec-category h3 {
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 700;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item span:first-child {
    color: var(--text-secondary);
}

.spec-item span:last-child {
    color: white;
    font-weight: 350;
}

/* Buy CTA */
.buy-cta {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
    position: relative;
    overflow: hidden;
}

.buy-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.2), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.cta-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.price {
    font-family: "Syne", serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--accent);
    margin: 24px 0;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.cta-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 1.125rem;
    font-weight: 550;
    border-radius: 8px;
    cursor: pointer;
    margin: 24px 0;
    transition: all 0.2s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: #8045d5;
    box-shadow: var(--glow), 0 8px 24px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: scale(0.97) translateY(-1px);
}

.shopping,
.availability {
    font-size: 1rem;
    margin: 16px 0;
    color: var(--text-secondary);
}

.shopping {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

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

.footer-brand p {
    margin-top: 8px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 32px;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out) 0.1s;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .nav-links {
        gap: 16px;
        font-size: 0.9rem;
    }

    .cta-link {
        padding: 8px 16px;
    }

    .scene-text.left,
    .scene-text.right {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        text-align: center;
        align-items: center;
        padding: 32px 24px;
        background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
        justify-content: flex-end;
        min-height: 28vh;
    }

    .scene-subtext {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .switches-comparison {
        grid-template-columns: 1fr;
    }

    /* Scroll-reveal start position less for mobile */
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .feature-card,
    .switch-card,
    .spec-category {
        padding: 28px;
    }
}