/* --- VARIABLES --- */
:root {
    --bg-dark: #050505;
    --bg-secondary: #0a0a0f;
    --neon-green: #00ff88;
    --neon-cyan: #00f0ff;
    --neon-purple: #bc13fe;
    --text-main: #ffffff;
    --text-muted: #8888aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }

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

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-btn {
    font-size: 0.9rem;
    border: 1px solid var(--neon-green);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--neon-green);
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -2px;
    position: relative;
    color: white;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--neon-cyan);
    margin-bottom: 40px;
    min-height: 1.6em; /* Prevent layout shift */
}

/* CTA Button Styles */
.cta-button {
    position: relative;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    display: inline-block;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    margin-top: 10px;
}

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

/* --- STORY SECTION --- */
.story-section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.narrative-block {
    margin: 150px 0;
    text-align: center;
    opacity: 0; /* Hidden initially */
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.narrative-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- DUALITY (Split) SECTION --- */
.duality-section {
    padding: 100px 0;
    overflow: hidden;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .split-container { grid-template-columns: 1fr; }
}

.split-side {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 1s ease;
}

.split-side.chaos[data-scroll="slide-right"] { transform: translateX(-50px); }
.split-side.order[data-scroll="slide-left"] { transform: translateX(50px); }

/* Animation active states */
.split-side.visible { opacity: 1; transform: translateX(0) !important; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
}

.glow-border {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
}

.icon-abstract {
    height: 50px;
    width: 50px;
    margin-top: 20px;
    border-radius: 50%;
}

.chaos-icon { background: red; filter: blur(20px); animation: pulse-red 2s infinite; }
.order-icon { background: var(--neon-green); box-shadow: 0 0 20px var(--neon-green); }

/* --- FEATURES --- */
.features-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--glass-border);
    margin-bottom: 20px;
}

/* --- WAITLIST --- */
.waitlist-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, transparent 70%);
}

.waitlist-content {
    max-width: 600px;
    padding: 0 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.8s ease;
}

.waitlist-content h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.mega-btn {
    padding: 20px 60px;
    font-size: 1.2rem;
    margin-top: 40px;
}

.limited-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- FOOTER --- */
footer {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.socials a {
    margin-left: 20px;
    transition: color 0.3s;
}

.socials a:hover { color: var(--neon-green); }

/* --- ANIMATION CLASSES (JS TRIGGERS) --- */
.visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
