/* ===================================================
   MMIDDL.com - Botanical Scanning Interface
   Frutiger Aero + HUD Overlay Design
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
    --bg-deep: #0E1A24;
    --panel-frost-base: #C8D7E1;
    --panel-frost: rgba(200, 215, 225, 0.12);
    --panel-frost-border: rgba(135, 165, 190, 0.3);
    --panel-frost-glow: rgba(135, 165, 190, 0.2);
    --hud-frame: #8BA4B8;
    --text-primary: #E4EDF3;
    --text-secondary: #6B8A9E;
    --botanical-accent: #7CC9A0;
    --bloom-highlight: #F2B8C6;
    --scan-line: #A8D8EA;
    --alert-pulse: #E8C547;
    --shadow-panel: 0 8px 32px rgba(0, 20, 40, 0.15);
    --ease-organic: cubic-bezier(0.22, 0.61, 0.36, 1.0);
    --ease-zoom: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    line-height: 1.72;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
}

/* --- HUD Frame --- */
#hud-frame {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.8s var(--ease-organic);
}

.hud-border {
    position: absolute;
    background: var(--hud-frame);
    opacity: 0;
    transition: opacity 0.5s var(--ease-organic);
}

.hud-border-top {
    top: 8px;
    left: 8px;
    right: 8px;
    height: 1px;
}

.hud-border-bottom {
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 1px;
}

.hud-border-left {
    top: 8px;
    left: 8px;
    bottom: 8px;
    width: 1px;
}

.hud-border-right {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: 1px;
}

/* HUD Corner Tick Marks */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-organic);
}

.hud-corner::before,
.hud-corner::after {
    content: '';
    position: absolute;
    background: var(--hud-frame);
}

.hud-corner-tl {
    top: 4px;
    left: 4px;
}
.hud-corner-tl::before {
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
}
.hud-corner-tl::after {
    top: 0;
    left: 0;
    width: 2px;
    height: 20px;
}

.hud-corner-tr {
    top: 4px;
    right: 4px;
}
.hud-corner-tr::before {
    top: 0;
    right: 0;
    width: 20px;
    height: 2px;
}
.hud-corner-tr::after {
    top: 0;
    right: 0;
    width: 2px;
    height: 20px;
}

.hud-corner-bl {
    bottom: 4px;
    left: 4px;
}
.hud-corner-bl::before {
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
}
.hud-corner-bl::after {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 20px;
}

.hud-corner-br {
    bottom: 4px;
    right: 4px;
}
.hud-corner-br::before {
    bottom: 0;
    right: 0;
    width: 20px;
    height: 2px;
}
.hud-corner-br::after {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 20px;
}

/* HUD Coordinate Readouts */
.hud-readout {
    position: absolute;
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--hud-frame);
    opacity: 0;
    transition: opacity 0.6s var(--ease-organic);
}

.hud-readout-tl {
    top: 16px;
    left: 32px;
    display: flex;
    gap: 16px;
}

.hud-readout-tr {
    top: 16px;
    right: 32px;
}

.hud-readout-bl {
    bottom: 16px;
    left: 32px;
}

.hud-readout-br {
    bottom: 16px;
    right: 32px;
}

.hud-coord {
    opacity: 0.8;
}

/* HUD Tick Marks */
.hud-ticks {
    position: absolute;
}

.hud-ticks-top,
.hud-ticks-bottom {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    border-left: 1px solid var(--hud-frame);
    border-right: 1px solid var(--hud-frame);
    opacity: 0;
    transition: opacity 0.5s var(--ease-organic);
}

.hud-ticks-top {
    top: 5px;
}

.hud-ticks-bottom {
    bottom: 5px;
}

.hud-ticks-left,
.hud-ticks-right {
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    border-top: 1px solid var(--hud-frame);
    border-bottom: 1px solid var(--hud-frame);
    opacity: 0;
    transition: opacity 0.5s var(--ease-organic);
}

.hud-ticks-left {
    left: 5px;
}

.hud-ticks-right {
    right: 5px;
}

/* HUD Active State */
#hud-frame.active .hud-border,
#hud-frame.active .hud-corner,
#hud-frame.active .hud-readout,
#hud-frame.active .hud-ticks-top,
#hud-frame.active .hud-ticks-bottom,
#hud-frame.active .hud-ticks-left,
#hud-frame.active .hud-ticks-right {
    opacity: 1;
}

#hud-frame.dimmed {
    opacity: 0.4;
}

/* --- Navigation Pips --- */
#zone-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--hud-frame);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-organic);
}

.nav-pip:hover {
    border-color: var(--bloom-highlight);
    background: rgba(242, 184, 198, 0.3);
}

.nav-pip.active {
    background: var(--scan-line);
    border-color: var(--scan-line);
    box-shadow: 0 0 8px rgba(168, 216, 234, 0.5);
}

/* Frutiger Aero gloss on active pip */
.nav-pip.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
}

/* --- Petal Layer --- */
#petal-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 18px;
    background: var(--bloom-highlight);
    opacity: 0.2;
    clip-path: polygon(50% 0%, 100% 38%, 80% 100%, 20% 100%, 0% 38%);
    animation: petalDrift 200s linear infinite;
}

.petal-1 {
    left: 10%;
    top: -20px;
    animation-delay: 0s;
    animation-duration: 180s;
}

.petal-2 {
    left: 30%;
    top: -20px;
    animation-delay: -40s;
    animation-duration: 220s;
    width: 10px;
    height: 15px;
}

.petal-3 {
    left: 55%;
    top: -20px;
    animation-delay: -80s;
    animation-duration: 190s;
}

.petal-4 {
    left: 75%;
    top: -20px;
    animation-delay: -120s;
    animation-duration: 210s;
    width: 8px;
    height: 14px;
}

.petal-5 {
    left: 90%;
    top: -20px;
    animation-delay: -160s;
    animation-duration: 200s;
}

@keyframes petalDrift {
    0% {
        transform: translateY(-20px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(25vh) translateX(30px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(40px) rotate(270deg);
    }
    100% {
        transform: translateY(105vh) translateX(10px) rotate(360deg);
    }
}

/* --- Background Flora --- */
#bg-flora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-flora-svg {
    position: absolute;
    opacity: 0.06;
}

.flora-1 {
    width: 40vw;
    max-width: 500px;
    top: 5%;
    right: -5%;
    animation: floraFloat 120s ease-in-out infinite alternate;
}

.flora-2 {
    width: 30vw;
    max-width: 400px;
    bottom: 10%;
    left: -3%;
    animation: floraFloat 120s ease-in-out infinite alternate-reverse;
}

@keyframes floraFloat {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(20px) translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateX(-15px) translateY(10px) rotate(-1deg);
    }
}

/* --- Scan Line --- */
#scan-line {
    position: fixed;
    top: -2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--scan-line);
    box-shadow: 0 0 12px var(--scan-line), 0 0 24px rgba(168, 216, 234, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

#scan-line.sweeping {
    animation: scanSweep 0.8s linear forwards;
}

@keyframes scanSweep {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: calc(100vh - 8px);
        opacity: 0.3;
    }
}

/* --- Main Content Container --- */
#scan-container {
    position: relative;
    z-index: 10;
}

/* --- Scan Zones (shared) --- */
.scan-zone {
    min-height: 100vh;
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    position: relative;
    padding: 40px 48px;
    overflow: hidden;
}

.zone-status-line {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    color: var(--hud-frame);
    opacity: 0;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: opacity 0.6s var(--ease-organic);
}

.scan-zone.visible .zone-status-line {
    opacity: 0.8;
}

.zone-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

/* --- Primary Panel (Frosted Glass) --- */
.primary-panel {
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    background: var(--panel-frost);
    border: 1px solid var(--panel-frost-border);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--panel-frost-glow), var(--shadow-panel);
    padding: 24px 32px;
}

/* --- Data Overlays --- */
.data-overlay {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    color: var(--hud-frame);
    background: rgba(14, 26, 36, 0.8);
    border: 1px solid var(--text-secondary);
    padding: 8px 14px;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.data-label {
    color: var(--text-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.data-value {
    color: var(--text-primary);
    font-size: 0.75rem;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
}

h2 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h3 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

p {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    line-height: 1.72;
    color: var(--text-primary);
}

/* --- Zone 1: Boot Sequence --- */
.zone-1-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.hero-specimen-container {
    position: relative;
    flex-shrink: 0;
}

.hero-botanical {
    width: clamp(280px, 40vw, 500px);
    height: auto;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 1.2s var(--ease-organic) 1.5s, transform 1.5s var(--ease-organic) 1.5s;
}

.hero-botanical.revealed {
    opacity: 1;
    transform: scale(1);
}

.hero-data-1 {
    position: absolute;
    top: 15%;
    right: -30px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s var(--ease-organic) 2.2s, transform 0.6s var(--ease-organic) 2.2s;
}

.hero-data-2 {
    position: absolute;
    bottom: 25%;
    left: -20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s var(--ease-organic) 2.5s, transform 0.6s var(--ease-organic) 2.5s;
}

.hero-botanical.revealed ~ .hero-data-1,
.hero-botanical.revealed ~ .hero-data-2 {
    opacity: 0.8;
    transform: translateX(0);
}

.hero-title-panel {
    text-align: left;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-organic) 2s, transform 0.8s var(--ease-organic) 2s;
}

.hero-title-panel.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    color: var(--botanical-accent);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--botanical-accent);
}

.status-dot.pulse {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 4px var(--botanical-accent);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 12px var(--botanical-accent);
    }
}

/* --- Zone 2: Primary Specimen --- */
.zone-2-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.specimen-focus-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.specimen-zoom-wrapper {
    transition: transform 0.4s var(--ease-zoom);
}

.specimen-detail-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.specimen-data-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.specimen-panel {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s var(--ease-organic), transform 0.6s var(--ease-organic);
}

.specimen-panel.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.specimen-id {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 4px;
    margin-bottom: 16px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(135, 165, 190, 0.15);
}

.data-key {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
}

.data-val {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.health-good {
    color: var(--botanical-accent);
}

/* Annotation Callouts */
.annotation-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.6s var(--ease-organic);
}

.annotation-callout.visible {
    opacity: 1;
}

.callout-line {
    width: 40px;
    height: 1px;
    border-top: 1px dashed var(--hud-frame);
}

.callout-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.callout-label {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
}

.callout-value {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.callout-left {
    flex-direction: row-reverse;
}

/* --- Zone 3: Taxonomy Grid --- */
.zone-3-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    width: 100%;
}

.specimen-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-organic), transform 0.5s var(--ease-organic), backdrop-filter 0.4s var(--ease-zoom);
    cursor: default;
}

.specimen-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.specimen-card:hover {
    transform: scale(1.05);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.card-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--scan-line);
    box-shadow: 0 0 8px var(--scan-line);
    opacity: 0;
    transform: translateY(-2px);
}

.specimen-card.scanned .card-scan-line {
    animation: cardScan 0.6s linear forwards;
}

@keyframes cardScan {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

.card-illustration {
    width: 120px;
    height: 150px;
}

.card-annotation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.card-id {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.65rem;
    color: var(--alert-pulse);
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 0.4s var(--ease-organic) 0.3s;
}

.specimen-card.scanned .card-id {
    opacity: 0.8;
}

.card-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    font-style: italic;
}

.card-common {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* --- Zone 4: Cross-Section --- */
.zone-4-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.cross-section-container {
    position: relative;
}

.cross-section-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.growth-ring {
    transition: opacity 0.8s var(--ease-organic);
}

.growth-ring.visible {
    opacity: 0.3;
}

.xylem-zone {
    transition: opacity 1s var(--ease-organic);
}

.xylem-zone.highlight {
    opacity: 1;
}

.analysis-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.analysis-data {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s var(--ease-organic);
}

.analysis-data.visible {
    opacity: 0.9;
}

.analysis-data-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.analysis-data-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.analysis-data-3 {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.analysis-data-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.cross-section-info {
    max-width: 350px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s var(--ease-organic), transform 0.6s var(--ease-organic);
}

.cross-section-info.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* Growth Ring Heading Decorations */
.cross-section-info h2 {
    position: relative;
    padding-left: 0;
}

/* --- Zone 5: Archive / Root System --- */
#zone-5 {
    background: radial-gradient(ellipse at center bottom, rgba(124, 201, 160, 0.08) 0%, transparent 60%);
}

.zone-5-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.archive-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-organic), transform 0.6s var(--ease-organic);
}

.archive-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.archive-title {
    color: var(--botanical-accent);
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.archive-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.root-system-container {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.root-system-svg {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s var(--ease-organic);
}

.root-system-svg.visible {
    opacity: 0.6;
}

.root-links {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 80px;
}

.root-link {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.75rem;
    color: var(--botanical-accent);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(124, 201, 160, 0.3);
    background: rgba(124, 201, 160, 0.05);
    transition: all 0.3s var(--ease-organic);
    position: relative;
}

.root-link:hover {
    background: rgba(124, 201, 160, 0.15);
    border-color: var(--botanical-accent);
    box-shadow: 0 0 12px rgba(124, 201, 160, 0.2);
}

/* Frutiger Aero gloss on buttons */
.root-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
    pointer-events: none;
}

.archive-stats {
    display: flex;
    gap: 60px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s var(--ease-organic) 0.3s, transform 0.6s var(--ease-organic) 0.3s;
}

.archive-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.stat-label {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.archive-footer {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    display: flex;
    gap: 12px;
    letter-spacing: 0.04em;
}

.footer-divider {
    color: var(--hud-frame);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .zone-1-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title-panel {
        text-align: center;
    }

    .zone-2-content {
        grid-template-columns: 1fr;
    }

    .taxonomy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zone-4-content {
        grid-template-columns: 1fr;
    }

    .hero-data-1 {
        right: 0;
    }

    .hero-data-2 {
        left: 0;
    }

    .root-links {
        padding: 0 20px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .archive-stats {
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .scan-zone {
        padding: 40px 24px;
    }

    .taxonomy-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .hud-readout {
        font-size: 0.6rem;
    }

    .archive-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}
