/* Palette: #0a0e1a #131a2e #1c2640 #3d8bfd #4a6fa5 #7eb8ff #b8c4d8 #c084fc */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0e1a;
    color: #b8c4d8;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2 {
    font-family: 'Questrial', sans-serif;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.02em;
    color: #b8c4d8;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    letter-spacing: 0.15em;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    color: #7eb8ff;
}

/* === Watermark === */
.watermark {
    position: fixed;
    bottom: 24px;
    left: 24px;
    font-family: 'Questrial', sans-serif;
    font-size: 0.85rem;
    color: #b8c4d8;
    opacity: 0.4;
    z-index: 100;
    pointer-events: none;
    animation: pulse-watermark 4s ease-in-out infinite;
}

@keyframes pulse-watermark {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* === Wave Background === */
.wave-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 0;
    pointer-events: none;
}

/* === Geometric Ghosts === */
.ghosts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.ghost {
    position: absolute;
}

.ghost-square {
    border: 1px solid rgba(126, 184, 255, 0.06);
    opacity: 0.04;
    transform: rotate(45deg);
}

.ghost-circle {
    border: 1px dashed rgba(126, 184, 255, 0.05);
    border-radius: 50%;
    opacity: 0.03;
}

.ghost-line {
    height: 1px;
    background: linear-gradient(to right, rgba(61, 139, 253, 0.08), transparent);
    opacity: 0.06;
}

/* === Glass Cards === */
.glass-card {
    background: rgba(28, 38, 64, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(126, 184, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(126, 184, 255, 0.08);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.glass-card:hover {
    transform: scale(1.02) translateY(-4px);
    border-color: rgba(126, 184, 255, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(126, 184, 255, 0.15);
}

/* === Labels === */
.label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a6fa5;
    display: block;
    margin-bottom: 0.75rem;
}

/* === Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* === Section: Threshold === */
.threshold {
    position: relative;
    z-index: 2;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
}

.threshold-card {
    text-align: center;
    max-width: 700px;
    width: 100%;
    animation: fadeInThreshold 2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInThreshold {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tagline {
    margin-top: 1.2rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #4a6fa5;
}

/* === Section: Divergence === */
.divergence {
    position: relative;
    z-index: 2;
    padding: 10vh 5vw 10vh 5vw;
}

.divergence-card {
    max-width: 520px;
}

.divergence-card p {
    margin-top: 0;
}

/* === Section: Crossing === */
.crossing {
    position: relative;
    z-index: 2;
    padding: 10vh 5vw;
}

.crossing-card {
    max-width: 480px;
    margin-bottom: 8vh;
}

.crossing-shifted {
    margin-left: auto;
    margin-right: 10%;
}

.crossing-card p {
    margin-top: 0;
}

/* === Section: Convergence === */
.convergence {
    position: relative;
    z-index: 2;
    padding: 15vh 5vw;
    display: flex;
    justify-content: flex-start;
}

.convergence-card {
    max-width: 680px;
    margin-left: 5%;
}

.convergence-card h2 {
    margin-bottom: 1.2rem;
}

/* === Void === */
.void {
    position: relative;
    z-index: 2;
    height: 30vh;
}

/* === Crossing violet wave boost === */
body.crossing-zone .wave-bg #wave3 {
    opacity: 0.06;
}
