/* ============================================
   footprint.market - Y2K Futurism Monument
   ============================================ */

:root {
    --deep-cosmic-navy: #0A0E1A;
    --spectral-teal: #7FDBCA;
    --nebula-violet: #9B72CF;
    --solar-amber: #E8A84C;
    --midnight-panel: #111827;
    --frost-white: #E8ECF1;
    --dim-silver: #8899AA;
    --glass-edge: rgba(127, 219, 202, 0.15);
}

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

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

body {
    background: var(--deep-cosmic-navy);
    color: var(--frost-white);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.65;
    overflow-x: hidden;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* --- Grain Overlay --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: soft-light;
}

.grain-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* --- Particle Field --- */
.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: var(--p-opacity, 0.3);
    }
    90% {
        opacity: var(--p-opacity, 0.3);
    }
    100% {
        transform: translate(var(--p-dx, 30px), var(--p-dy, -100vh));
        opacity: 0;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.hero-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 120% 100% at 75% 20%, rgba(155, 114, 207, 0.08), rgba(127, 219, 202, 0.04), var(--deep-cosmic-navy) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 0 8vw;
    max-width: 900px;
    transform: translateX(-8%);
}

.hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--frost-white);
    margin-bottom: 1.5rem;
}

.hero-dot {
    color: var(--spectral-teal);
}

.hero-subline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--dim-silver);
    max-width: 500px;
    line-height: 1.65;
}

.hero-datum {
    position: absolute;
    bottom: 33.3%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(127, 219, 202, 0.4);
    z-index: 2;
}

/* ============================================
   TICKER STRIP
   ============================================ */
.ticker-strip {
    position: relative;
    z-index: 5;
    height: 8vh;
    min-height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, var(--deep-cosmic-navy), var(--midnight-panel) 10%, var(--midnight-panel) 90%, var(--deep-cosmic-navy));
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-edge);
    border-bottom: 1px solid var(--glass-edge);
}

.ticker-track {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--solar-amber);
    opacity: 0.8;
}

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

/* ============================================
   EVIDENCE PANELS
   ============================================ */
.evidence {
    position: relative;
    z-index: 2;
    padding: 6vh 0;
}

.panel {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 6vh;
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--midnight-panel);
    border: 1px solid var(--glass-edge);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1), transform 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-rule {
    position: absolute;
    top: 0;
    left: clamp(2rem, 5vw, 4rem);
    right: clamp(2rem, 5vw, 4rem);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 219, 202, 0.12), transparent);
}

.panel-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--spectral-teal);
    margin-bottom: 2rem;
    min-height: 1.2em;
    position: relative;
}

.panel-heading .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--spectral-teal);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
}

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

.panel-body {
    opacity: 0;
    transition: opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.panel-body.visible {
    opacity: 1;
}

.panel-body p {
    color: var(--frost-white);
    margin-bottom: 1.2rem;
    max-width: 38em;
}

.panel-body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   TERMINAL FOOTER
   ============================================ */
.terminal {
    position: relative;
    z-index: 2;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.terminal-content {
    max-width: 600px;
}

.terminal-line {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--dim-silver);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.terminal-cursor {
    color: var(--spectral-teal);
    animation: cursorBlink 1s step-end infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-content {
        transform: translateX(0);
        text-align: center;
        padding: 0 5vw;
    }

    .hero-subline {
        max-width: 100%;
    }

    .panel {
        width: 96%;
    }

    .ticker-item {
        font-size: 0.65rem;
    }
}
