:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --neon-blue: #00f0ff;
    --neon-purple: #8a2be2;
    --glass-bg: rgba(10, 10, 12, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--neon-purple);
    border-right-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fixed Canvas Background */
.canvas-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Vignette to dim the frame and blend edges into black */
.canvas-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dimmed gradient to make overlay content more readable */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

/* Scrollable Content Overlay */
.content-overlay {
    position: relative;
    z-index: 1;
}

/* Screen Sections */
.screen {
    position: relative;
    width: 100vw;
    min-height: 150vh;
    /* Plenty of scroll distance per section */
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.screen.hero,
.screen.final-cta {
    min-height: 100vh;
    justify-content: center;
    text-align: center;
}

.screen.align-left {
    justify-content: flex-start;
}

.screen.align-right {
    justify-content: flex-end;
}

/* Typography & Content */
.pre-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-weight: 300;
}

.main-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Glassmorphism Panels */
.glass-panel {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    max-width: 550px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.panel-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.panel-desc {
    font-size: 1.2rem;
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Lists and Grids inside panels */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.feature-list li span {
    color: var(--text-secondary);
}

.chip-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.engineering-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.e-item {
    font-size: 2rem;
    font-weight: 600;
}

.e-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 4rem;
}

.btn-primary {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary span {
    font-weight: 300;
    opacity: 0.7;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    padding-left: 1rem;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .screen {
        padding: 0 5%;
    }

    .glass-panel {
        max-width: 100%;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .panel-title {
        font-size: 2.2rem;
    }

    .action-buttons {
        flex-direction: column;
    }
}