/* === VARIABLES === */
:root {
    --ice-white: #e8f4f8;
    --cyan-bioluminescent: #00d4aa;
    --orange-thermal: #ff6b35;
    --mist-blue: #c8dce8;
    --deep-navy: #0a2540;
    --mid-ocean: #1a3d5c;
    --gold-surface: #f0c040;
    --abyss-black: #061018;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--abyss-black);
    color: var(--ice-white);
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.headline {
    font-family: 'Anybody', sans-serif;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    font-stretch: 125%;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--cyan-bioluminescent);
    text-shadow: 4px 4px 0 var(--deep-navy);
}

.section-title {
    font-family: 'Anybody', sans-serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--cyan-bioluminescent);
    text-shadow: 3px 3px 0 var(--deep-navy);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.body-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--mist-blue);
}

.panel-label {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--gold-surface);
}

.caption {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange-thermal);
    margin-top: 1rem;
}

/* === HALFTONE OVERLAY === */
.halftone-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--mid-ocean) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.15;
    z-index: 1;
}

/* === DEPTH ZONES === */
.depth-zone {
    position: relative;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#surface {
    background: linear-gradient(180deg, var(--mid-ocean) 0%, var(--deep-navy) 100%);
}

#twilight {
    background: linear-gradient(180deg, var(--deep-navy) 0%, #0d1f30 100%);
}

#midnight {
    background: linear-gradient(180deg, #0d1f30 0%, var(--abyss-black) 100%);
}

#abyssal {
    background: var(--abyss-black);
}

/* === PANELS === */
.panel {
    background: rgba(10, 37, 64, 0.85);
    border: 3px solid var(--mid-ocean);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.panel-hero {
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.panel-hero:hover {
    transform: none;
    box-shadow: none;
}

/* === PANEL GRID === */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    z-index: 2;
}

.panel-wide {
    grid-column: span 2;
}

.panel-tall {
    grid-row: span 2;
}

.panel-full {
    grid-column: 1 / -1;
}

.panel-square {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

/* === SPEECH BUBBLE === */
.speech-bubble {
    position: relative;
    background: var(--ice-white);
    color: var(--deep-navy);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 3px solid var(--deep-navy);
    display: inline-block;
    margin-top: 2rem;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    max-width: 500px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: var(--ice-white);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    animation: bobbing 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cyan-bioluminescent);
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--cyan-bioluminescent);
    border-bottom: 3px solid var(--cyan-bioluminescent);
    transform: rotate(45deg);
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* === DATA VIZ === */
.data-viz {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 150px;
    padding-top: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--cyan-bioluminescent), var(--mid-ocean));
    border-radius: 3px 3px 0 0;
    min-width: 30px;
    transition: height 1s ease;
    height: 0;
}

.bar.animated {
    height: var(--bar-height);
}

/* === TICKER === */
.ticker-strip {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    padding: 1rem 0;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange-thermal);
    flex-shrink: 0;
}

.ticker-item.positive {
    color: var(--cyan-bioluminescent);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === POP QUOTE === */
.pop-quote {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--gold-surface);
    text-align: center;
    line-height: 1.3;
}

/* === BIOLUMINESCENT PANEL === */
.bioluminescent {
    border-color: var(--cyan-bioluminescent);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 170, 0.15);
}

/* === METRICS === */
.metric-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric-list li {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: 'Anybody', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyan-bioluminescent);
}

.metric-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--mist-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === ICONS === */
.icon-smokestack, .icon-coral {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.icon-smokestack {
    background: linear-gradient(135deg, var(--orange-thermal), var(--gold-surface));
}

.icon-coral {
    background: linear-gradient(135deg, var(--cyan-bioluminescent), var(--mid-ocean));
}

/* === CTA === */
.cta-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-text {
    font-family: 'Anybody', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--gold-surface);
    text-shadow: 3px 3px 0 var(--deep-navy);
}

.btn-primary, .btn-secondary {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: 3px solid;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--cyan-bioluminescent);
    border-color: var(--cyan-bioluminescent);
    color: var(--deep-navy);
}

.btn-primary:hover {
    background: var(--ice-white);
    border-color: var(--ice-white);
}

.btn-secondary {
    background: transparent;
    border-color: var(--orange-thermal);
    color: var(--orange-thermal);
}

.btn-secondary:hover {
    background: var(--orange-thermal);
    color: var(--deep-navy);
}

/* === FOOTER === */
footer {
    background: var(--abyss-black);
    border-top: 2px solid var(--mid-ocean);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-brand {
    font-family: 'Anybody', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cyan-bioluminescent);
    letter-spacing: 0.1em;
}

.footer-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--mist-blue);
    margin-top: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .panel-wide {
        grid-column: span 1;
    }
    
    .depth-zone {
        padding: 3rem 1rem;
    }
    
    .speech-bubble {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}
