/* cbdc.studio — styles */

:root {
    --color-bg-deep: #0a0c10;
    --color-bg: #12151c;
    --color-bg-elevated: #1e2330;
    --color-cyan: #00ffd5;
    --color-purple: #8b5cf6;
    --color-amber: #f59e0b;
    --color-text-primary: #e0e6ed;
    --color-text-secondary: #c4cedb;
    --color-text-muted: #9ba8b9;
    --font-display: 'Libre Baskerville', serif;
    --font-body: 'Karla', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Progress Track */
.progress-track {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 100;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    opacity: 0.3;
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.6s ease;
}

.progress-dot.active {
    opacity: 1;
    background: var(--color-cyan);
    transform: scale(1.5);
}

/* Stratum (Section) Base */
.stratum {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stratum-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    padding: 4rem 2rem;
}

.stratum-content--asymmetric {
    display: flex;
    align-items: center;
    gap: clamp(3rem, 8vw, 10rem);
    width: clamp(35vw, calc(20rem + 45vw), 90vw);
}

/* Typography */
.display-headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 5.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 4rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--color-text-primary);
    margin-bottom: 1.2rem;
}

.subtext {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 300;
    color: var(--color-text-secondary);
    max-width: 36rem;
    line-height: 1.6;
}

.body-text {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 28rem;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--color-cyan);
    text-transform: uppercase;
}

/* Blur Reveal Animation */
.blur-reveal {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
    transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s ease;
}

.blur-reveal.revealed {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-cue-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-cyan), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Stratum-specific backgrounds */
.stratum-genesis {
    background: radial-gradient(ellipse at 30% 40%, #12151c 0%, #0a0c10 70%);
}

.stratum-flow {
    background: radial-gradient(ellipse at 70% 50%, #1e2330 0%, #0a0c10 80%);
}

.stratum-ledger {
    background: radial-gradient(ellipse at 50% 60%, #12151c 0%, #0a0c10 70%);
}

.stratum-governance {
    background: radial-gradient(ellipse at 25% 45%, #1e2330 0%, #0a0c10 75%);
}

.stratum-horizon {
    background: radial-gradient(ellipse at 50% 30%, #12151c 0%, #0a0c10 70%);
}

/* Ledger Grid */
.ledger-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    width: clamp(40vw, 60vw, 80vw);
}

.ledger-cell {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 213, 0.1);
    border-top: 2px solid var(--color-amber);
    border-radius: 2px;
    background: rgba(30, 35, 48, 0.4);
}

.ledger-value {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    color: var(--color-text-primary);
    font-weight: 700;
}

/* Data Viz Ring */
.data-viz--ring {
    width: clamp(200px, 30vw, 400px);
    height: clamp(200px, 30vw, 400px);
    position: relative;
    flex-shrink: 0;
}

/* SVG Constellation */
.svg-constellation {
    width: clamp(200px, 28vw, 380px);
    height: clamp(200px, 28vw, 380px);
    flex-shrink: 0;
}

/* Text Block */
.text-block--left {
    text-align: left;
}

.text-block--right {
    text-align: left;
}

/* Contact Line */
.contact-line {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

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

    .ledger-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 90vw;
    }

    .progress-track {
        right: 1rem;
    }
}
