:root {
    --bg-dark: #070D1F;
    --bg-container: #0C1326;
    --bg-container-high: #11192F;
    --primary: #81ECFF;
    --secondary: #FF51FA;
    --tertiary: #9492FF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.65);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scroll Progress HUD */
.scroll-hud {
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.hud-segments {
    display: flex;
    gap: 4px;
    width: 100%;
}

.segment {
    height: 4px;
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.segment.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    border-color: var(--primary);
}

.hud-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--primary);
}

.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at center, rgba(129, 236, 255, 0.15) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
    will-change: transform;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: 0.3s;
}

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

.cta-pill {
    background: var(--primary);
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
}

/* Sections */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    gap: 4rem;
    padding-top: 15vh;
    scroll-snap-align: start;
}

.hero-content { flex: 1.2; }
.hero-visual { flex: 0.8; display: flex; justify-content: center; }

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.5vw, 5.2rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Fix for SplitType */
.gradient-text .char, .gradient-text .word {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

p.hero-p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-container);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, var(--primary) 50%, transparent 55%);
    opacity: 0.05;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(129, 236, 255, 0.4);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 15px solid var(--bg-dark);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

/* Feature Sections */
.feature-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10vh 10%;
    gap: 8rem;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.section-reverse { flex-direction: row-reverse; }

.section-content { flex: 1; }
.section-hero { flex: 1.2; display: flex; justify-content: center; position: relative; }

.icon-box {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    background: rgba(129, 236, 255, 0.1);
    border: 1px solid rgba(129, 236, 255, 0.3);
    display: inline-block;
}

.icon-box.cyan { color: var(--primary); border-color: rgba(129, 236, 255, 0.3); background: rgba(129, 236, 255, 0.05); }
.icon-box.pink { color: var(--secondary); border-color: rgba(255, 81, 250, 0.3); background: rgba(255, 81, 250, 0.05); }
.icon-box.purple { color: var(--tertiary); border-color: rgba(148, 146, 255, 0.3); background: rgba(148, 146, 255, 0.05); }

h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -1px;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.glass-frame {
    width: 100%;
    max-width: 650px;
    aspect-ratio: 16/10;
    background: var(--bg-container);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    height: fit-content;
}

.glass-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.floating-offset {
    margin-top: 60px;
}

/* --- Carousel Architecture --- */
.carousel-wrapper {
    flex: 1.4;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(129, 236, 255, 0.02);
    border: 1px solid rgba(129, 236, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(129, 236, 255, 0.05);
    backdrop-filter: blur(10px);
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.slide-caption {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-secondary);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    transform: scale(1.6);
}

/* --- End Carousel Architecture --- */

/* Switcher Styles */
.switcher-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.switcher-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.switcher-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.switcher-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(129, 236, 255, 0.3);
}

.type-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-height: 3em;
}

.showcase-container {
    transition: opacity 0.4s ease;
}

/* CTA */
.cta-section { 
    padding: 15vh 10%; 
    text-align: center; 
    scroll-snap-align: start;
}
.cta-container {
    background: var(--bg-container);
    padding: 6rem 3rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    max-width: 1000px;
    margin: 0 auto;
}

.hero-btns { display: flex; gap: 1.5rem; }
.justify-center { justify-content: center; }

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 30px rgba(129, 236, 255, 0.2);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

footer { padding: 4rem 10%; border-top: 1px solid var(--glass-border); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; }
.footer-grid p { color: var(--text-tertiary); font-size: 0.85rem; }

.nav-links { display: flex; align-items: center; }

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

/* Hamburger Open Animation */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay Content */
.nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-overlay.open { right: 0; }
.nav-overlay-content { display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
.nav-mobile-link { font-size: 2rem; font-family: var(--font-display); text-decoration: none; color: var(--text-primary); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    
    .scroll-hud { top: auto; bottom: 2rem; width: 80%; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 20vh; padding-left: 1.5rem; padding-right: 1.5rem; }
    h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    .feature-section { padding: 8vh 1.5rem; flex-direction: column; text-align: center; gap: 3rem; }
    .section-reverse { flex-direction: column; }
    
    h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
    
    .switcher-btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
    .switcher-btn { width: 100%; padding: 0.8rem; font-size: 0.8rem; }
    
    .dual-grid { grid-template-columns: 1fr; }
    .floating-offset { margin-top: 0; }
    
    .video-placeholder { margin-top: 2rem; }
    
    .cta-container { padding: 4rem 1.5rem; }
}

/* --- Precision Desktop Layout Overrides --- */
@media (min-width: 1024px) {
    .hero {
        padding: 0 8%;
        gap: 5rem;
    }

    .feature-section {
        padding: 6vh 8%;
        gap: 4rem;
        min-height: auto;
    }

    .section-content {
        flex: 1.4;
    }

    .carousel-wrapper {
        flex: 1.2;
        max-width: 750px;
    }

    h2 {
        margin-bottom: 1.2rem;
        line-height: 1.1;
    }

    p {
        margin-bottom: 1.5rem;
    }

    .feature-list {
        margin-top: 1rem;
    }

    .carousel-slide {
        padding: 1.5rem 1rem;
    }

    .carousel-slide img {
        max-height: 520px;
    }

    .cta-section {
        padding: 6vh 10%;
    }

    .cta-container {
        padding: 4rem 3rem;
    }
}
