/* ===========================================
   reasoner.studio - Holographic Chrome Styles
   =========================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.7;
    color: #1A1A24;
    background: #D0D0D8;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

h2 {
    font-size: clamp(28px, 4vw, 56px);
}

h3 {
    font-size: clamp(20px, 2.5vw, 32px);
}

.hud-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #00E5FF;
}

/* ===========================================
   HUD Frame Elements
   =========================================== */
#hud-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.hud-element {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.4;
}

#hud-top-left {
    top: 16px;
    left: 16px;
}

#hud-top-right {
    top: 16px;
    right: 16px;
}

#hud-bottom-left {
    bottom: 16px;
    left: 16px;
}

#hud-bottom-right {
    bottom: 16px;
    right: 16px;
}

#hud-readout-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0.5;
}

#hud-readout-top .hud-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: #A8A8B0;
    letter-spacing: 0.1em;
}

#hud-readout-top .hud-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #00E5FF;
    letter-spacing: 0.05em;
}

#hud-readout-top .hud-separator {
    color: #A8A8B0;
    opacity: 0.3;
    font-size: 10px;
}

.hud-readout-vertical {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0.35;
}

.hud-readout-vertical .hud-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    color: #00E5FF;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.15em;
}

/* ===========================================
   Hologram Projection Hero
   =========================================== */
.hologram-projection {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #A8A8B0 0%, #D0D0D8 50%, #A8A8B0 100%);
    overflow: hidden;
}

/* Iridescent Streaks */
.iridescent-streak {
    position: absolute;
    width: 200%;
    height: 120px;
    opacity: 0;
    pointer-events: none;
}

.streak-1 {
    top: 20%;
    left: -50%;
    background: conic-gradient(from 0deg, transparent 0%, #FF69B4 10%, #FFD700 20%, #00E5FF 30%, transparent 40%);
    transform: rotate(-5deg);
    animation: streakSlide 8s ease-in-out infinite;
    animation-delay: 0.2s;
}

.streak-2 {
    top: 55%;
    left: -50%;
    background: conic-gradient(from 120deg, transparent 0%, #00E5FF 10%, #FF69B4 20%, #FFD700 30%, transparent 40%);
    transform: rotate(3deg);
    animation: streakSlide 10s ease-in-out infinite;
    animation-delay: 1s;
}

.streak-3 {
    top: 75%;
    left: -50%;
    background: conic-gradient(from 240deg, transparent 0%, #FFD700 10%, #00E5FF 20%, #FF69B4 30%, transparent 40%);
    transform: rotate(-2deg);
    animation: streakSlide 12s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes streakSlide {
    0% {
        transform: translateX(-30%) rotate(-5deg);
        opacity: 0;
    }
    15% {
        opacity: 0.12;
    }
    50% {
        transform: translateX(10%) rotate(-5deg);
        opacity: 0.15;
    }
    85% {
        opacity: 0.12;
    }
    100% {
        transform: translateX(-30%) rotate(-5deg);
        opacity: 0;
    }
}

/* Wordmark */
.wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 72px);
    color: #1A1A24;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

.letter.dot {
    color: #FF69B4;
    margin: 0 1px;
}

@keyframes elastic-in {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    60% {
        transform: translateY(-8px);
        opacity: 1;
    }
    80% {
        transform: translateY(4px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.letter.animate {
    animation: elastic-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hero-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 20px);
    color: #1A1A24;
    opacity: 0;
    margin-top: 16px;
    letter-spacing: 0.02em;
    transition: opacity 0.8s ease;
}

.hero-tagline.visible {
    opacity: 0.7;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-hud-data {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-hud-data.visible {
    opacity: 0.5;
}

/* ===========================================
   Studio Equipment Grid
   =========================================== */
.studio-equipment-grid {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid #A8A8B0;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #1A1A24;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-block {
    background: #F5F5F0;
    padding: 24px;
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, #A8A8B0, #D0D0D8, #A8A8B0) 1;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.block-large {
    grid-column: span 2;
}

.block-small {
    grid-column: span 1;
}

.block-hud-corner {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    opacity: 0.4;
}

.block-label {
    display: block;
    margin-bottom: 8px;
    font-size: 9px;
    opacity: 0.6;
}

.block-title {
    font-size: clamp(18px, 2vw, 28px);
    margin-bottom: 12px;
    color: #1A1A24;
}

.block-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    color: #1A1A24;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Collage Elements */
.block-collage-element {
    position: relative;
}

.collage-diagram svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Gate Indicators */
.gate-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 32px;
    border: 1px solid #A8A8B0;
    margin-right: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #1A1A24;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.gate-indicator:hover {
    border-color: #00E5FF;
    color: #00E5FF;
}

.gate-and { border-color: #00E5FF; }
.gate-or { border-color: #FFD700; }
.gate-not { border-color: #FF69B4; }

/* Waveform */
.waveform-svg {
    width: 100%;
    height: 50px;
}

.waveform-line {
    stroke-width: 1.5;
    fill: none;
    stroke: #FF69B4;
}

/* Tree Diagram */
.collage-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tree-node {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 6px 16px;
    border: 1px solid #A8A8B0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tree-root {
    border-color: #FFD700;
    color: #FFD700;
}

.tree-child {
    border-color: #00E5FF;
    color: #1A1A24;
}

.tree-branches {
    display: flex;
    gap: 16px;
}

.tree-branch {
    position: relative;
}

.tree-branch::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    width: 1px;
    height: 12px;
    background: #A8A8B0;
}

/* Bias Meter */
.bias-meter {
    width: 100%;
    height: 8px;
    background: #D0D0D8;
    position: relative;
    overflow: hidden;
}

.bias-fill {
    height: 100%;
    background: linear-gradient(90deg, #00E5FF, #FFD700, #FF69B4);
    width: 0%;
    transition: width 1.5s ease;
}

.bias-label {
    display: block;
    margin-top: 8px;
    font-size: 9px;
    opacity: 0.6;
}

/* ===========================================
   Mixing Board Section
   =========================================== */
.mixing-board-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #D0D0D8 0%, #F5F5F0 100%);
}

.mixer-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 40px 0;
}

.mixer-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 120px;
}

.channel-label {
    font-size: 9px;
    opacity: 0.7;
    white-space: nowrap;
}

.slider-track {
    width: 4px;
    height: 180px;
    background: #A8A8B0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.slider-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, #00E5FF, #FF69B4);
    transition: height 0.5s ease;
}

.slider-thumb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    background: #F5F5F0;
    border: 1px solid #00E5FF;
    border-radius: 1px;
    cursor: grab;
    transition: bottom 0.5s ease;
}

.channel-value {
    font-size: 14px;
    color: #1A1A24;
    font-weight: 400;
}

/* Mixer Output */
.mixer-output {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.output-visualizer {
    width: 100%;
    max-width: 600px;
    height: 80px;
    background: #1A1A24;
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, #A8A8B0, #D0D0D8, #A8A8B0) 1;
    overflow: hidden;
}

#mixer-canvas {
    width: 100%;
    height: 100%;
}

.output-status {
    opacity: 0.5;
}

/* ===========================================
   Output Monitor Footer
   =========================================== */
.output-monitor-footer {
    background: #1A1A24;
    padding: 60px 40px 40px;
    position: relative;
}

.footer-hud-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.footer-hud-svg {
    width: 100%;
    height: 2px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #F5F5F0;
}

.footer-meta {
    font-size: 9px;
    opacity: 0.4;
    color: #A8A8B0;
}

.footer-readouts {
    display: flex;
    gap: 32px;
}

.readout-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.readout-label {
    font-size: 9px;
    opacity: 0.4;
    color: #A8A8B0;
}

.readout-value {
    font-size: 14px;
    color: #00E5FF;
}

.footer-hud-elements {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.footer-arc {
    width: 120px;
    height: 60px;
    opacity: 0.6;
}

/* ===========================================
   Iridescent Rainbow Decorative
   =========================================== */
.iridescent-accent {
    background: conic-gradient(from 0deg, #FF69B4, #FFD700, #00E5FF, #FF69B4);
    opacity: 0.15;
}

/* ===========================================
   Scroll Reveal Animations
   =========================================== */
.grid-block {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.grid-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.mixer-channel {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mixer-channel.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }

    .block-large {
        grid-column: span 2;
    }

    .mixer-container {
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-readouts {
        justify-content: flex-start;
    }

    .readout-block {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .block-large {
        grid-column: span 1;
    }

    .studio-equipment-grid,
    .mixing-board-section {
        padding: 48px 20px;
    }

    .output-monitor-footer {
        padding: 40px 20px 30px;
    }

    #hud-readout-top {
        display: none;
    }

    .hud-readout-vertical {
        display: none;
    }

    .hud-element {
        width: 50px;
        height: 50px;
    }

    .mixer-container {
        gap: 16px;
    }

    .slider-track {
        height: 120px;
    }
}
