/* footprint.markets — Pop-Art Environmental Marketplace */
/* Colors: #f0f5f2, #1a6b5a, #7ecfc0, #e85d75, #f9a88e, #f4c97e, #8a9ba3, #2b3a42, #e8f0ec */
/* Fonts: Nunito (headings), Inter (body), Space Grotesk (data) */

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a6b5a;
    color: #f0f5f2;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   BEN-DAY DOT OVERLAY (Pop-Art signature)
   ========================================== */
.benday-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    background-image: radial-gradient(circle, #2b3a42 1px, transparent 1px);
    background-size: 8px 8px;
}

/* ==========================================
   TIMELINE SPINE
   ========================================== */
.timeline-spine {
    position: fixed;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100vh;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
    opacity: 0.3;
}

.spine-svg {
    width: 100%;
    height: 100%;
}

.spine-path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

/* ==========================================
   SECTIONS — General
   ========================================== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.section-inner {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ==========================================
   SECTION 0 — HERO
   ========================================== */
.section-hero {
    background: #1a6b5a;
    min-height: 100vh;
    flex-direction: column;
    display: flex;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(126,207,192,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(232,93,117,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.eyebrow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e85d75;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

.eyebrow-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #7ecfc0;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 10vw, 7rem);
    color: #f0f5f2;
    text-shadow: 3px 3px 0 #e85d75, -1px -1px 0 #7ecfc0;
}

.title-accent {
    color: #7ecfc0;
    text-shadow: 3px 3px 0 #2b3a42, -1px -1px 0 #e85d75;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: #e8f0ec;
    max-width: 500px;
    margin: 0 auto 3rem;
    opacity: 0.85;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-arrow {
    font-size: 2rem;
    color: #7ecfc0;
    animation: bounce-arrow 2s ease-in-out infinite;
    display: block;
}

.cta-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: #8a9ba3;
    text-transform: uppercase;
}

.hero-viz {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    pointer-events: none;
}

.coastal-chart {
    width: 100%;
    height: 100%;
}

.coast-wave-1 {
    animation: wave-drift 8s ease-in-out infinite;
}

.coast-wave-2 {
    animation: wave-drift 10s ease-in-out infinite reverse;
}

/* ==========================================
   EPOCH SECTIONS
   ========================================== */
.section-epoch {
    position: relative;
}

.section-epoch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.epoch-past {
    background: linear-gradient(180deg, #1a6b5a 0%, #2b3a42 100%);
}

.epoch-awakening {
    background: linear-gradient(180deg, #2b3a42 0%, #1a6b5a 40%, #2b3a42 100%);
}

.epoch-markets {
    background: #2b3a42;
}

.epoch-expansion {
    background: linear-gradient(180deg, #2b3a42 0%, #1a6b5a 100%);
}

.epoch-future {
    background: linear-gradient(180deg, #1a6b5a 0%, #2b3a42 50%, #1a6b5a 100%);
}

/* Epoch marker */
.epoch-marker {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.epoch-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    color: #e85d75;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(43,58,66,0.5);
}

.epoch-era {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #8a9ba3;
    text-transform: uppercase;
    border-left: 2px solid #7ecfc0;
    padding-left: 0.75rem;
}

/* Section titles */
.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.95;
    color: #f0f5f2;
    text-shadow: 2px 2px 0 #e85d75;
    margin-bottom: 1.5rem;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    color: #e8f0ec;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* ==========================================
   VISUALIZATIONS
   ========================================== */
.viz-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.viz-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.viz-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #8a9ba3;
    text-transform: uppercase;
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(126,207,192,0.2);
}

/* Bar chart buildings */
.bar-building {
    opacity: 0;
    transform-origin: bottom;
    animation: bar-rise 0.8s ease-out forwards;
}

.bar-building:nth-child(1) { animation-delay: 0.1s; }
.bar-building:nth-child(2) { animation-delay: 0.2s; }
.bar-building:nth-child(3) { animation-delay: 0.3s; }
.bar-building:nth-child(4) { animation-delay: 0.4s; }
.bar-building:nth-child(5) { animation-delay: 0.5s; }
.bar-building:nth-child(6) { animation-delay: 0.6s; }
.bar-building:nth-child(7) { animation-delay: 0.7s; }
.bar-building:nth-child(8) { animation-delay: 0.8s; }

/* Emission dots floating */
.emission-dot {
    animation: float-up 4s ease-in-out infinite;
}

.emission-dot:nth-of-type(odd) {
    animation-duration: 5s;
    animation-delay: 0.5s;
}

/* Pie chart porthole */
.porthole-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pie-chart-svg {
    max-width: 280px;
}

.porthole-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
}

.p-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Pie slices hover */
.pie-slice {
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: 150px 150px;
}

.pie-slice:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

/* Scatter dots pulse */
.scatter-dot {
    animation: scatter-pulse 3s ease-in-out infinite;
}

.scatter-dot:nth-child(even) {
    animation-delay: 1.5s;
}

/* Stack layers */
.stack-layer {
    opacity: 0;
    animation: stack-reveal 1s ease-out forwards;
}

.stack-layer:nth-child(1) { animation-delay: 0.2s; }
.stack-layer:nth-child(2) { animation-delay: 0.5s; }
.stack-layer:nth-child(3) { animation-delay: 0.8s; }

/* ==========================================
   SECTION 6 — CTA / FOOTER
   ========================================== */
.section-cta {
    background: linear-gradient(180deg, #1a6b5a 0%, #2b3a42 60%, #1a6b5a 100%);
    flex-direction: column;
    min-height: 80vh;
}

.cta-block {
    text-align: center;
    margin-bottom: 6rem;
}

.cta-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.95;
    color: #7ecfc0;
    text-shadow: 3px 3px 0 #e85d75;
    margin-bottom: 1.5rem;
}

.cta-body {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #e8f0ec;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    opacity: 0.85;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 3px solid;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.btn-primary {
    background: #e85d75;
    color: #f0f5f2;
    border-color: #e85d75;
    box-shadow: 4px 4px 0 #2b3a42;
}

.btn-primary:hover {
    background: #f0f5f2;
    color: #e85d75;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #2b3a42;
}

.btn-secondary {
    background: transparent;
    color: #7ecfc0;
    border-color: #7ecfc0;
    box-shadow: 4px 4px 0 #2b3a42;
}

.btn-secondary:hover {
    background: #7ecfc0;
    color: #2b3a42;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #2b3a42;
}

/* Footer */
.site-footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(126,207,192,0.2);
}

.footer-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #7ecfc0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #8a9ba3;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f0f5f2;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #8a9ba3;
    opacity: 0.6;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

@keyframes wave-drift {
    0% { transform: translateX(0); }
    50% { transform: translateX(-15px); }
    100% { transform: translateX(0); }
}

@keyframes bar-rise {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes float-up {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-15px); opacity: 0.15; }
}

@keyframes scatter-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes stack-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal */
.section-epoch .section-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-epoch.in-view .section-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1.25rem;
    }

    .epoch-marker {
        flex-direction: column;
        gap: 0.5rem;
    }

    .epoch-era {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid #7ecfc0;
        padding-bottom: 0.25rem;
    }

    .porthole-labels {
        gap: 0.3rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .timeline-spine {
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .epoch-number {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
}