/* ============================================
   footprint.market - Frutiger Aero Aesthetic
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #2E4A32;
    background-color: #0D2818;
    overflow-x: hidden;
}

/* --- Palette Tokens --- */
:root {
    --morning-frost: #F1F8E9;
    --sunbeam: #FFB300;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(139, 196, 160, 0.25);
}

.nav-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #1B5E20;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #2E4A32;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 250ms ease;
}

.nav-link:hover {
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.08);
}

.nav-link-icon {
    width: 20px;
    height: 20px;
}

/* --- Atmosphere Layer (Hero) --- */
#atmosphere {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atmosphere-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0D2818 0%, #1B5E20 40%, #E3F2FD 100%);
    background-size: 100% 200%;
    background-position: 0 100%;
    animation: dawnBreak 3s ease-out forwards;
}

@keyframes dawnBreak {
    from { background-position: 0 100%; }
    to { background-position: 0 50%; }
}

/* Topographic Lines */
.topo-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contour-line {
    opacity: 0.4;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    will-change: stroke-dashoffset;
}

.contour-1 { animation: drawContour 2.5s ease-out 1.5s forwards; }
.contour-2 { animation: drawContour 2.5s ease-out 1.8s forwards; }
.contour-3 { animation: drawContour 2.5s ease-out 2.1s forwards; }
.contour-4 { animation: drawContour 2.5s ease-out 2.4s forwards; }
.contour-5 { animation: drawContour 2.5s ease-out 2.7s forwards; }
.contour-6 { animation: drawContour 2.5s ease-out 3.0s forwards; }
.contour-7 { animation: drawContour 2.5s ease-out 3.3s forwards; }

@keyframes drawContour {
    to { stroke-dashoffset: 0; }
}

/* Photosynthesis Particles */
.particles-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    opacity: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.p1  { animation: floatUp 12s 3s infinite; }
.p2  { animation: floatUp 15s 3.3s infinite; }
.p3  { animation: floatUp 10s 3.6s infinite; }
.p4  { animation: floatUp 18s 3.9s infinite; }
.p5  { animation: floatUp 11s 4.2s infinite; }
.p6  { animation: floatUp 14s 4.5s infinite; }
.p7  { animation: floatUp 9s 4.8s infinite; }
.p8  { animation: floatUp 16s 5.1s infinite; }
.p9  { animation: floatUp 13s 5.4s infinite; }
.p10 { animation: floatUp 10s 5.7s infinite; }
.p11 { animation: floatUp 17s 6.0s infinite; }
.p12 { animation: floatUp 12s 6.3s infinite; }
.p13 { animation: floatUp 20s 6.6s infinite; }
.p14 { animation: floatUp 8s 6.9s infinite; }
.p15 { animation: floatUp 14s 7.2s infinite; }
.p16 { animation: floatUp 11s 7.5s infinite; }
.p17 { animation: floatUp 15s 7.8s infinite; }
.p18 { animation: floatUp 9s 8.1s infinite; }

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 0.35;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-900px);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    transform: translateX(-8%);
    opacity: 0;
    animation: heroFadeIn 1.2s ease-out 0.8s forwards;
}

@keyframes heroFadeIn {
    to { opacity: 1; }
}

.hero-pill {
    display: inline-block;
    padding: 20px 48px;
    border-radius: 40px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 8vw, 96px);
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: heroFadeIn 1s ease-out 2s forwards;
}

/* Scroll Chevron */
.scroll-chevron {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: chevronAppear 0.6s ease-out 4s forwards, chevronPulse 1.5s ease-in-out 4.6s infinite;
}

@keyframes chevronAppear {
    to { opacity: 1; }
}

@keyframes chevronPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.15); }
}

/* --- Content Sections --- */
.content-section {
    position: relative;
    padding: 60px 0;
    background: #0D2818;
}

/* --- Pods (Organic Content Containers) --- */
.pod {
    position: relative;
    width: clamp(320px, 72%, 900px);
    padding: 48px 44px;
    border-radius: 24px;
    background: rgba(241, 248, 233, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 196, 160, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pod-left {
    margin-left: 8%;
    margin-right: auto;
}

.pod-right {
    margin-right: 8%;
    margin-left: auto;
}

/* Aero Glass Reflection */
.pod-glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px 24px 0 0;
}

/* Pod Icon */
.pod-icon {
    margin-bottom: 20px;
}

/* Pod Typography */
.pod-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    color: #1B5E20;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.pod-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #2E4A32;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

/* --- Scroll Reveal Animation --- */
.scroll-reveal {
    opacity: 0.3;
    filter: blur(8px);
    transform: translateY(40px);
    transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* --- Contour Dividers --- */
.contour-divider {
    display: block;
    width: 100%;
    height: 80px;
    background: #0D2818;
}

.divider-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    will-change: stroke-dashoffset;
    transition: stroke-dashoffset 1.2s ease-out;
}

.divider-path.drawn {
    stroke-dashoffset: 0;
}

/* --- Charts --- */
.pod-chart {
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    border: 1px solid rgba(139, 196, 160, 0.2);
}

.area-chart {
    width: 100%;
    height: auto;
    display: block;
}

.chart-label {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #388E3C;
    font-variant-numeric: tabular-nums;
}

.metric-unit {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #2E4A32;
}

/* --- Metrics Grid (Droplets) --- */
.metrics-grid {
    display: flex;
    gap: 20px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.metric-droplet {
    flex: 1;
    min-width: 120px;
}

.droplet-shape {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    padding: 24px 16px 20px;
    text-align: center;
    border: 1px solid rgba(139, 196, 160, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.droplet-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.metric-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.metric-number.positive { color: #388E3C; }
.metric-number.negative { color: #D84315; }

.metric-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #2E4A32;
    margin-top: 4px;
}

/* --- Radial Progress --- */
.radial-progress-row {
    display: flex;
    gap: 32px;
    margin: 28px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.radial-item {
    text-align: center;
}

.radial-svg {
    width: 80px;
    height: 80px;
}

.radial-label {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radial-label .metric-value {
    font-size: 16px;
}

.radial-label .metric-unit {
    font-size: 11px;
}

/* --- Topographic Minimap --- */
.topo-minimap {
    margin: 24px 0;
    background: rgba(13, 40, 24, 0.06);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(139, 196, 160, 0.2);
}

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

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    background: #4CAF50;
    padding: 12px 28px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
    transition: all 250ms ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    transform: skewX(-15deg);
    transition: left 400ms ease;
    pointer-events: none;
}

.cta-button:hover {
    background: #66BB6A;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45);
    transform: translateY(-2px);
}

.cta-button:hover::before {
    left: 120%;
}

/* --- Sidebar Ticker --- */
#sidebar-ticker {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 420px;
    overflow: hidden;
    z-index: 900;
    border-radius: 20px;
    pointer-events: none;
}

.ticker-track {
    display: flex;
    flex-direction: column;
    animation: tickerScroll 25s linear infinite;
}

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

.ticker-pill {
    width: 120px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 1px solid rgba(139, 196, 160, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.ticker-dot.positive { background: #4CAF50; }
.ticker-dot.negative { background: #D84315; }

.ticker-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #2E4A32;
}

.ticker-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.ticker-num.positive { color: #388E3C; }
.ticker-num.negative { color: #D84315; }

/* --- Footer --- */
#site-footer {
    position: relative;
    background: #0D2818;
    padding: 60px 32px 40px;
    text-align: center;
    overflow: hidden;
}

.footer-topo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-topo-svg {
    width: 100%;
    height: 120px;
    position: absolute;
    top: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-leaf {
    width: 20px;
    height: 20px;
}

.footer-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
}

.footer-copy {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #8BC4A0;
    margin-bottom: 6px;
}

.footer-copy-small {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(139, 196, 160, 0.6);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .pod {
        width: 92%;
        margin-left: auto;
        margin-right: auto;
        padding: 32px 24px;
    }

    .pod-left,
    .pod-right {
        margin-left: auto;
        margin-right: auto;
    }

    #sidebar-ticker {
        position: fixed;
        right: auto;
        left: 0;
        top: 64px;
        transform: none;
        width: 100%;
        height: 44px;
        border-radius: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.45);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .ticker-track {
        flex-direction: row;
        animation: tickerScrollH 25s linear infinite;
        gap: 8px;
        align-items: center;
        padding: 4px 0;
    }

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

    .ticker-pill {
        flex-direction: row;
        width: auto;
        min-width: 100px;
        padding: 6px 12px;
        margin-bottom: 0;
        gap: 6px;
        flex-shrink: 0;
    }

    .hero-content {
        transform: translateX(0);
    }

    .hero-pill {
        padding: 16px 28px;
    }

    .metrics-grid {
        flex-direction: column;
        align-items: center;
    }

    .metric-droplet {
        min-width: 160px;
        max-width: 200px;
    }

    .radial-progress-row {
        gap: 20px;
    }

    .contour-divider {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-pill {
        padding: 14px 20px;
    }

    .pod {
        padding: 24px 18px;
    }
}
