/* ========================================
   DeltaSense V4 - DIGITAL NERVOUS SYSTEM
   Deep Graphite, Minimal, Cinematic
   ======================================== */

:root {
    --bg-void: #050505;
    --text-primary: #ededed;
    --text-muted: #666666;
    --accent-cyan: #00F0FF;
    --accent-red: #ff3333;
    --accent-subtle: rgba(0, 240, 255, 0.4);

    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Canvas Engine
   ======================================== */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

/* ========================================
   Narrative Structure
   ======================================== */
.narrative-container {
    padding-bottom: 20vh;
}

.step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0 10%;
    /* Create space for the visuals */
    pointer-events: none;
    /* Let clicks pass through empty space to canvas */
}

/* Re-enable pointer events for specific content */
.content-block,
.cluster-labels,
.footer-content {
    pointer-events: auto;
}

/* Transition Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Typography & Components
   ======================================== */
.headline {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.subline {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-left: 2px solid var(--accent-cyan);
    padding-left: 1rem;
}

.description {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-primary);
    max-width: 500px;
}

/* Buttons */
.minimal-cta {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--accent-cyan);
    padding-bottom: 5px;
    transition: all 0.3s;
}

.minimal-cta:hover {
    color: var(--accent-cyan);
    padding-bottom: 8px;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.minimal-cta.large {
    font-size: 1.2rem;
}

/* ========================================
   Specific Sections
   ======================================== */
.center-block {
    text-align: center;
    margin: 0 auto;
}

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

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

/* Hero */
.scroll-prompt {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-prompt .line {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    opacity: 0.5;
}

/* Clusters */
.cluster-labels {
    position: relative;
    height: 60vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
}

.cluster-label {
    opacity: 0;
    /* JS will trigger fade in */
    transition: opacity 1s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

.cluster-label h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cluster-label p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Layers */
.layer-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.layer-item {
    font-size: 2rem;
    color: #333;
    transition: color 0.5s;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.layer-item:hover {
    color: var(--accent-cyan);
    padding-left: 10px;
}

/* VIGNETTE & STACK LABLES */
.vignette-label {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: var(--text-muted);
    opacity: 0.5;
}

.stack-label-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 60vh;
    max-width: 300px;
}

.stack-item {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
    text-align: right;
}

/* Path */
.path-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.path-steps span:not(.separator) {
    color: #fff;
}

/* Footer */
.step-footer {
    min-height: 50vh;
    justify-content: flex-end;
    padding-bottom: 4rem;
    text-align: center;
}

.founder-note {
    font-style: italic;
    color: #888;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.brand-signature {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.legal {
    color: #444;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Active States */
.active .cluster-label {
    opacity: 1;
}

.active .layer-item {
    color: #555;
}