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

:root {
    --deep-black: #050508;
    --cash-green: #00ff88;
    --eye-amber: #ffaa00;
    --data-blue: #3388ff;
    --warning-red: #ff3344;
    --ghost-gray: #888899;
    --panel-dark: #0d0d12;
    --iris-mid: #886600;
    --iris-dark: #332200;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--deep-black);
    color: var(--ghost-gray);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* === SCANLINE OVERLAY === */
#scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 3px
    );
}

/* === REVENUE COUNTER === */
#revenue-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 12px 16px;
    background: rgba(13, 13, 18, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
}

#revenue-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--ghost-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

#revenue-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--cash-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* === SECTIONS === */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 20px;
}

.section-content,
.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* === TYPOGRAPHY === */
.accent-text {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 40px;
}

#hero .accent-text {
    color: var(--eye-amber);
    text-shadow: 0 0 40px rgba(255, 170, 0, 0.3);
}

#data-flow .accent-text {
    color: var(--data-blue);
    text-shadow: 0 0 40px rgba(51, 136, 255, 0.3);
}

#dollar-iris .accent-text {
    color: var(--cash-green);
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--ghost-gray);
    margin-bottom: 50px;
}

.ghost-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--ghost-gray);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}

.section-subtitle {
    margin-bottom: 50px;
}

/* === HERO EYE === */
#eye-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
}

#eye {
    width: 280px;
    height: 160px;
    border-radius: 50%;
    background: var(--panel-dark);
    border: 2px solid var(--eye-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 60px rgba(255, 170, 0, 0.15), inset 0 0 30px rgba(255, 170, 0, 0.05);
    overflow: hidden;
}

#iris {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--eye-amber), var(--iris-mid), var(--iris-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

#pupil {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--deep-black);
    transform: translate(var(--pupil-x, 0px), var(--pupil-y, 0px));
    transition: transform 0.08s ease-out;
    position: relative;
}

#pupil::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

/* === FLOW DIAGRAM === */
#flow-diagram {
    margin: 30px auto;
    max-width: 800px;
}

#flow-svg {
    width: 100%;
    height: auto;
}

.flow-line {
    stroke: var(--cash-green);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: flowDash 1s linear infinite;
}

.flow-line-small {
    stroke: var(--cash-green);
    stroke-width: 1.5;
    stroke-dasharray: 6 3;
    animation: flowDash 1s linear infinite;
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -24;
    }
}

.flow-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    fill: var(--ghost-gray);
    letter-spacing: 0.1em;
}

.flow-label-inner {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    fill: var(--data-blue);
    letter-spacing: 0.05em;
}

.flow-dollar-sign {
    font-family: 'Archivo Black', sans-serif;
    font-size: 28px;
    fill: var(--cash-green);
}

.flow-node {
    opacity: 0.9;
}

/* === DOLLAR IRIS SECTION === */
#dollar-eye-container {
    display: flex;
    justify-content: center;
    margin: 40px auto;
}

#dollar-eye {
    width: 220px;
    height: 130px;
    border-radius: 50%;
    background: var(--panel-dark);
    border: 2px solid var(--cash-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.15), inset 0 0 30px rgba(0, 255, 136, 0.05);
    overflow: hidden;
}

#dollar-iris-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cash-green), #005533, #002211);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

#dollar-sign {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.5rem;
    color: var(--deep-black);
    line-height: 1;
}

/* === STATS FLOW === */
#stats-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px;
    background: var(--panel-dark);
    border: 1px solid rgba(136, 136, 153, 0.15);
    border-radius: 4px;
    min-width: 160px;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--eye-amber);
    line-height: 1;
}

.stat-number.money {
    color: var(--cash-green);
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--ghost-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-connector {
    width: 60px;
    height: 20px;
    flex-shrink: 0;
}

.exposure-note {
    margin-top: 20px;
}

/* === FINAL SECTION === */
.final-word {
    color: var(--warning-red);
    text-shadow: 0 0 40px rgba(255, 51, 68, 0.3);
    font-size: clamp(3.5rem, 10vw, 8rem);
    margin-bottom: 30px;
}

#final-eye-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.mini-eye {
    width: 50px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--warning-red);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.mini-eye::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--warning-red), #660015);
}

.mini-eye::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--deep-black);
}

/* === ANIMATIONS === */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.mini-eye {
    animation: pulse-glow 2s ease-in-out infinite;
}

.mini-eye:nth-child(2) { animation-delay: 0.3s; }
.mini-eye:nth-child(3) { animation-delay: 0.6s; }
.mini-eye:nth-child(4) { animation-delay: 0.9s; }
.mini-eye:nth-child(5) { animation-delay: 1.2s; }

/* === SECTION REVEAL === */
.section-content,
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible .section-content,
.section.visible .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #revenue-counter {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    #revenue-value {
        font-size: 0.85rem;
    }

    #eye {
        width: 200px;
        height: 120px;
    }

    #iris {
        width: 70px;
        height: 70px;
    }

    #pupil {
        width: 26px;
        height: 26px;
    }

    #stats-flow {
        flex-direction: column;
    }

    .stat-connector {
        transform: rotate(90deg);
    }

    .stat-item {
        min-width: 140px;
    }

    #flow-svg {
        min-height: 200px;
    }

    #final-eye-row {
        gap: 15px;
    }

    .mini-eye {
        width: 35px;
        height: 22px;
    }
}
