/* ============================================
   monopole.tech — styles
   Colors: #1A1A1E, #7B2FFF, #0D0D0D, #00FF41, #F0F0F0, #8A8A8A, #0A0A0A, #FF2D2D
   Fonts: Bebas Neue, Space Mono, Inter
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    background: #0A0A0A;
    color: #F0F0F0;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

/* ---- Viewport Sections ---- */
.viewport-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewport-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-content {
    position: relative;
    z-index: 1;
    padding: 4rem;
    max-width: 1400px;
    width: 100%;
}

/* ---- Section Numbers ---- */
.section-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #8A8A8A;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0.6;
}

/* ---- Typography ---- */
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: 0.08em;
    line-height: 0.9;
    text-transform: uppercase;
    color: #F0F0F0;
}

.mono-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #8A8A8A;
}

.accent-text {
    color: #FF2D2D;
}

/* ---- Hero ---- */
.section-hero {
    background: #0A0A0A;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 20vw, 16rem);
    letter-spacing: 0.12em;
    line-height: 0.85;
    color: #F0F0F0;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: #7B2FFF;
    margin-top: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: pulseDown 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: #8A8A8A;
}

@keyframes pulseDown {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* ---- Manifesto ---- */
.section-manifesto {
    background: #1A1A1E;
}

.section-manifesto .section-title {
    color: #7B2FFF;
    margin-bottom: 2rem;
}

.manifesto-text {
    max-width: 600px;
    margin-bottom: 2rem;
}

.redacted-block {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: #FF2D2D;
    margin-top: 2rem;
    position: relative;
}

.redacted-block::after {
    content: '[REDACTED]';
    position: absolute;
    top: 12px;
    left: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #FF2D2D;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

/* ---- Thesis ---- */
.section-thesis {
    background: #0D0D0D;
}

.thesis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.thesis-body .mono-text {
    margin-bottom: 1.5rem;
}

.glitch-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7B2FFF, transparent 30%, #00FF41 60%, transparent);
    margin: 1.5rem 0;
}

/* ---- Terrain ---- */
.section-terrain {
    background: #0A0A0A;
}

.section-terrain .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.terrain-caption {
    margin-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

/* ---- Principles ---- */
.section-principles {
    background: #1A1A1E;
}

.section-principles .section-title {
    margin-bottom: 3rem;
    font-size: clamp(3rem, 10vw, 8rem);
}

.principles-list {
    max-width: 800px;
}

.principle-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(138, 138, 138, 0.15);
    gap: 1.5rem;
}

.principle-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #8A8A8A;
    min-width: 2rem;
}

.principle-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    flex: 1;
    color: #F0F0F0;
}

.principle-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.8rem;
    border: 1px solid;
}

.status-active {
    color: #00FF41;
    border-color: #00FF41;
}

.status-warning {
    color: #7B2FFF;
    border-color: #7B2FFF;
}

.status-critical {
    color: #FF2D2D;
    border-color: #FF2D2D;
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- Code Rain ---- */
.section-coderain {
    background: #0A0A0A;
}

.section-coderain .section-title {
    color: #00FF41;
    margin-bottom: 2rem;
}

.code-block {
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2rem;
    max-width: 600px;
    overflow-x: auto;
}

.code-block pre {
    white-space: pre;
    line-height: 1.8;
}

.code-comment { color: #8A8A8A; }
.code-keyword { color: #7B2FFF; }
.code-type { color: #00FF41; }
.code-fn { color: #F0F0F0; }
.code-num { color: #FF2D2D; }

/* ---- Signal ---- */
.section-signal {
    background: #0D0D0D;
}

.section-signal .section-title {
    margin-bottom: 2rem;
}

.signal-freq {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.freq-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #8A8A8A;
    letter-spacing: 0.2em;
}

.freq-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #7B2FFF;
    letter-spacing: 0.05em;
}

.signal-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00FF41;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 12px 4px rgba(0, 255, 65, 0.3); }
}

/* ---- Terminal ---- */
.section-terminal {
    background: #0A0A0A;
}

.section-terminal .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terminal-window {
    width: 100%;
    max-width: 700px;
    background: #0D0D0D;
    border: 1px solid #1A1A1E;
    border-radius: 6px;
    overflow: hidden;
}

.terminal-bar {
    background: #1A1A1E;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #FF2D2D; }
.dot-yellow { background: #8A8A8A; }
.dot-green { background: #00FF41; }

.terminal-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #8A8A8A;
    margin-left: 0.8rem;
}

.terminal-body {
    padding: 1.5rem;
}

.terminal-line {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #00FF41;
    line-height: 2;
}

.terminal-output {
    color: #F0F0F0;
    padding-left: 1rem;
}

.terminal-cursor {
    color: #00FF41;
}

.cursor-blink {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section-content {
        padding: 2rem;
    }

    .thesis-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .principle-item {
        flex-wrap: wrap;
    }

    .principle-status {
        margin-left: 3.5rem;
    }
}
