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

:root {
    --void: #0a0b1a;
    --ice-white: #e8f0fe;
    --frost-lavender: #a5b4c8;
    --indigo: #6366f1;
    --rose: #f472b6;
    --emerald: #34d399;
    --glass-bg: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.12);
    --glow-indigo: rgba(99,102,241,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void);
    color: var(--ice-white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw + 0.5rem, 1.25rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

#waveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
#navbar {
    position: fixed;
    top: -48px;
    left: 0;
    right: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(10,11,26,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: top 0.4s ease;
}

#navbar.visible {
    top: 0;
}

.nav-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ice-white);
}

.nav-links a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--frost-lavender);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

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

/* Hero */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

.wordmark {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(5rem, 14vw, 12rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232, 240, 254, 0.9);
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.wordmark.visible {
    opacity: 1;
}

.tagline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.08em;
    color: var(--frost-lavender);
    opacity: 0;
    transition: opacity 1.2s ease-out;
    margin-top: 1rem;
}

.tagline.visible {
    opacity: 1;
}

/* Ma Space */
.ma-space {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(99, 102, 241, 0.6);
}

/* Glass Panels */
.glass-panel {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: min(680px, 70vw);
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at 15% 15%, var(--glow-indigo), transparent 70%);
    opacity: 0.4;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-panel:hover {
    background: rgba(255,255,255,0.09);
    box-shadow: 0 8px 32px rgba(99,102,241,0.12);
}

.glass-panel:hover::before {
    opacity: 1;
}

.panel-left {
    margin-left: 15%;
    margin-right: auto;
}

.panel-right {
    margin-right: 15%;
    margin-left: auto;
    flex-direction: row-reverse;
}

.panel-content {
    flex: 1;
}

.panel-illustration {
    flex: 0 0 160px;
}

.panel-illustration svg {
    width: 100%;
    height: auto;
}

/* Section Headlines */
.section-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.accent-indigo { color: #6366f1; }
.accent-rose { color: #f472b6; }
.accent-emerald { color: #34d399; }

/* Body Text */
.body-text {
    color: rgba(232, 240, 254, 0.78);
    margin-bottom: 1.5rem;
}

/* Annotation */
.annotation {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(99, 102, 241, 0.6);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Convergence Section */
.convergence-section {
    display: flex;
    justify-content: center;
}

.convergence-content {
    max-width: 480px;
    text-align: center;
    padding: 2rem;
}

.convergence-label {
    margin-bottom: 2rem;
}

.convergence-text {
    color: rgba(232, 240, 254, 0.78);
    font-size: clamp(0.9rem, 1vw + 0.4rem, 1.1rem);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.convergence-statement {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--ice-white);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        flex-direction: column;
        max-width: 90vw;
    }

    .panel-left,
    .panel-right {
        margin-left: 5%;
        margin-right: 5%;
        flex-direction: column;
    }

    .panel-illustration {
        flex: 0 0 120px;
    }

    .nav-links a {
        margin-left: 1rem;
    }
}
