/* Fan Haunt - Bauhaus Risograph Edition */
/* 3-Color Process: Cream, Navy, Hermes Orange */
/* CLEAN REWRITE - All bugs fixed */

:root {
    --white: #FFFFFF;
    --cream: #F5F1E8;
    --cream-dark: #E8E2D5;
    --navy: #15202b;
    --navy-light: #1E2D3D;
    --orange: #E85D00;
    --orange-light: #FF7A2E;
    --gray: #6B7280;
    --green: #2D8A5C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--navy);
    line-height: 1.5;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===== PAPER TEXTURE - SCROLLS WITH LAYOUT ===== */
/* Using real texture image like DS2:8082 */
.paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    pointer-events: none;
    z-index: 10000;
    opacity: 1;
    mix-blend-mode: overlay;
    background-image: url('/static/SolidInk.jpg');
    background-repeat: repeat;
    background-size: 100% auto;
    background-position: top center;
}

/* ===== SECTIONS ===== */
section {
    padding: 60px 30px;
    position: relative;
    overflow: hidden;
}

/* Section backgrounds - lightest to darkest hierarchy */
section:nth-child(odd) { background: var(--cream); }
section:nth-child(even) { background: var(--cream-dark); }

/* Hero = LIGHTEST (pure white) */
#hero {
    background: var(--white) !important;
}

#current-data {
    background: var(--cream-dark) !important;
}

/* Problem section = NAVY for attention */
#problem {
    background: var(--navy) !important;
    color: var(--cream);
}

#problem .section-header { color: var(--white); }
#problem .section-subheader { color: rgba(245,241,232,0.7); }
#problem .prose { color: rgba(245,241,232,0.85); }
#problem .prose strong { color: var(--orange); }
#problem .stat-card { background: var(--white); }
#problem .stat-card .number { color: var(--orange); }
#problem .stat-card .number.green { color: var(--green); }
#problem .stat-card .number.gray { color: var(--gray); }

/* Opportunity = DARK (navy background) */
#opportunity {
    background: var(--navy) !important;
    color: var(--cream);
}
#opportunity .section-header { color: var(--white); }
#opportunity .section-subheader { color: rgba(245,241,232,0.7); }
#opportunity .prose { color: rgba(245,241,232,0.85); }
#opportunity .prose strong { color: var(--orange); }
#opportunity .prose code { 
    background: rgba(232,93,0,0.2); 
    color: var(--orange); 
}
#opportunity .stat-card { 
    background: var(--white); 
    box-shadow: 4px 4px 0 var(--orange);
}
#opportunity .stat-card .number { color: var(--orange); }
#opportunity .stat-card .number.gray { color: var(--gray); }
#opportunity .viz-container {
    border: 3px solid var(--orange);
    border-radius: 8px;
    padding: 1rem;
    background: var(--white);
}

/* Domain Galaxy = DARK */
#domain-galaxy {
    background: var(--navy) !important;
    color: var(--cream);
}

#domain-galaxy .section-header,
#domain-galaxy .section-subheader { color: var(--cream); }
#domain-galaxy .prose { color: rgba(245,241,232,0.85); }
#domain-galaxy .prose strong { color: var(--orange-light); }
#domain-galaxy .prose code { 
    background: rgba(232,93,0,0.3); 
    color: var(--orange-light);
}

/* Orange shadows for stat-cards on dark backgrounds */
#domain-galaxy .stat-card {
    box-shadow: 6px 6px 0 var(--orange);
}
#domain-galaxy .stat-card:hover {
    box-shadow: none;
}

/* CTA = DARK */
#cta {
    background: var(--navy) !important;
    color: var(--cream);
}

/* Data Scrub = LIGHT */
#data-scrub {
    background: var(--cream);
}

/* World Map = LIGHT */
#world-map {
    background: var(--cream);
}

/* UK Deep Dive = LIGHT (subtle cream-dark for variety) */
#uk-dive {
    background: var(--cream-dark);
}

/* Engagement = LIGHT */
#engagement {
    background: var(--cream);
}

/* Timeline = DARK */
#timeline {
    background: var(--navy);
    color: var(--cream);
}

#timeline .section-header,
#timeline .section-subheader { color: var(--cream); }
#timeline .prose { color: rgba(245,241,232,0.85); }

/* Orange shadows for stat-cards and bottom-stats in CTA */
#cta .stat-card,
#cta .bottom-stat {
    box-shadow: 6px 6px 0 var(--orange);
}
#cta .stat-card:hover,
#cta .bottom-stat:hover {
    box-shadow: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== TYPOGRAPHY ===== */
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 14vw, 9rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.9;
    color: var(--navy);
    text-align: center;
    position: relative;
}

/* TWIN ATLANTIC on same line */
.hero-title .band-name {
    white-space: nowrap;
    display: block;
}

/* Remove ALL dots - clean title only */
.hero-title .dot { display: none !important; }
.hero-title .band-name::before,
.hero-title .band-name::after { display: none !important; }
.hero-title .x::before { display: none !important; }

.hero-title .x {
    color: var(--orange);
    display: block;
    font-size: 0.35em;
    letter-spacing: 0.5em;
    margin: 8px 0;
}

.section-header {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--navy);
}

.section-subheader {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 20px;
}

.prose {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--navy);
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.85;
}

.prose strong { color: var(--orange); font-weight: 600; }
.prose code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75em;
    background: rgba(232,93,0,0.12);
    padding: 2px 6px;
    color: var(--orange);
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Large floating spotlight circles - punchy orange */
.spotlight {
    position: absolute;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.5;
    pointer-events: none;
    will-change: transform;
}

.spotlight-1 {
    width: 50vw;
    height: 50vw;
    top: -15%;
    left: -15%;
    animation: drift1 20s ease-in-out infinite;
}

.spotlight-2 {
    width: 40vw;
    height: 40vw;
    bottom: -10%;
    right: -10%;
    animation: drift2 25s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5vw, 3vw); }
    50% { transform: translate(3vw, 8vw); }
    75% { transform: translate(-2vw, 4vw); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-4vw, -2vw); }
    50% { transform: translate(-6vw, 3vw); }
    75% { transform: translate(2vw, -3vw); }
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--navy);
    opacity: 0.5;
    margin-top: 12px;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-top: 30px;
    color: var(--navy);
}

/* Particles - circles with calm, graceful floating */
.particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0.25;
    animation: floatCalm1 60s linear infinite;
}

.particle:nth-child(odd) {
    opacity: 0.3;
    animation: floatCalm2 55s linear infinite;
}

.particle:nth-child(3n) {
    animation: floatCalm3 65s linear infinite;
}

.particle:nth-child(5n) {
    opacity: 0.2;
    animation: floatCalm1 70s linear infinite reverse;
}

.particle:nth-child(7n) {
    animation: floatCalm2 50s linear infinite reverse;
}

/* Calm floating - slow unidirectional movement */
@keyframes floatCalm1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(15px, -10px); }
}

@keyframes floatCalm2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-12px, 8px); }
}

@keyframes floatCalm3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(8px, 12px); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
}

.scroll-indicator .arrow {
    width: 16px; height: 16px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg);
}

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

/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--navy);
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    /* Default: show shadow */
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--navy);
}

.stat-card:hover {
    /* On hover: shadow disappears, card settles */
    transform: translate(0, 0);
    box-shadow: none;
}

.stat-card .number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--orange);
    line-height: 1;
}

.stat-card .number.green { color: var(--green); }
.stat-card .number.gray { color: var(--gray); }

.stat-card .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    margin-top: 6px;
}

/* ===== DATA FIELDS ===== */
.data-fields { max-width: 500px; margin: 0 auto; }

.data-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(21,32,43,0.1);
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
}

.data-field.visible {
    opacity: 1;
    transform: translateX(0);
}

.data-field .icon { font-size: 1rem; }
.data-field .icon.check { color: var(--green); }
.data-field .icon.x { color: #EF4444; }

.data-field .field-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    flex: 1;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-field .field-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--orange);
}

.data-field .field-value.gray { color: var(--gray); }

/* ===== VISUALIZATIONS ===== */
.viz-container {
    background: var(--white);
    border: 2px solid var(--navy);
    padding: 20px;
    margin-top: 20px;
    position: relative;
}

#domain-galaxy .viz-container {
    background: var(--navy-light);
    border-color: var(--orange);
}

.map-container {
    height: 50vh;
    min-height: 350px;
    border: 2px solid var(--navy);
    margin-top: 20px;
}

#fanMap { width: 100%; height: 100%; }

/* ===== REGION GRID ===== */
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.region-card {
    border: 2px solid var(--navy);
    padding: 12px 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--white);
}

.region-card[data-intensity="high"] { background: var(--orange); color: white; }
.region-card[data-intensity="high"] .name { color: rgba(255,255,255,0.85); }
.region-card[data-intensity="medium"] { background: rgba(232,93,0,0.3); }
.region-card[data-intensity="low"] { background: rgba(232,93,0,0.1); }

.region-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--navy);
}

.region-card .number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--orange);
    display: block;
}

.region-card[data-intensity="high"] .number { color: white; }

.region-card .name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 2px;
}

/* ===== PYRAMID - CLEAN BARS (no shadows) ===== */
.pyramid-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.pyramid-level {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 15px;
}

.pyramid-bar {
    height: 32px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 50px;
    /* NO shadow - clean Bauhaus style */
}

.pyramid-bar .count {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: white;
    white-space: nowrap;
}

.pyramid-bar.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
}

.pyramid-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.03em;
}

.pyramid-label:first-child {
    text-align: right;
}

.pyramid-label:last-child {
    text-align: left;
    color: var(--navy);
    font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 200px;
    padding: 15px 0;
    border-bottom: 2px solid var(--navy);
}

.timeline-bar {
    flex: 1;
    background: var(--navy);
    min-width: 12px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.timeline-bar.highlight { background: var(--orange); }
.timeline-bar:hover { background: var(--orange-light); }

.timeline-labels {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.timeline-labels span {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
}

/* ===== PIPELINE STAGES - WHITE BACKGROUNDS ===== */
.pipeline-stage {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 10px;
    background: var(--white) !important;
    border: 2px solid var(--navy);
    position: relative;
    transition: all 0.3s ease;
    /* NO pseudo-element shadows */
}

.pipeline-stage:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--navy);
}

.pipeline-stage.final {
    border-color: var(--orange);
    background: var(--white) !important;
}

.pipeline-stage .stage-number {
    width: 36px;
    height: 36px;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    flex-shrink: 0;
    border-radius: 50%;
}

.pipeline-stage.final .stage-number { background: var(--green); }

.pipeline-stage .stage-content { flex: 1; }

.pipeline-stage .stage-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
}

.pipeline-stage .stage-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray);
}

.pipeline-stage .stage-result { text-align: right; }

.pipeline-stage .coverage {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--orange);
}

.pipeline-stage .coverage.green { color: var(--green); }

.pipeline-stage .cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gray);
}

/* ===== FIND THE FANS - THE SELL (Dark Background) ===== */

#cta .section-subheader {
    color: rgba(245,241,232,0.7);
}

/* Pipeline Flow Diagram */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 50px;
    flex-wrap: wrap;
}

.pipeline-node {
    background: transparent;
    border: 2px solid var(--cream);
    padding: 20px 30px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--cream);
}

.pipeline-node:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--orange);
    border-color: var(--orange);
}

.pipeline-node.highlight {
    border-color: var(--orange);
    border-width: 3px;
    background: var(--orange);
    color: var(--cream);
}

.node-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--orange);
}

.pipeline-node.highlight .node-icon {
    color: var(--cream);
}

.node-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.pipeline-arrow {
    font-size: 2rem;
    color: var(--orange);
    font-weight: bold;
}

/* Two Column Grid for Budget + Clearbit */
.sell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    align-items: start;
}

/* Budget Table - Dark Theme */
.budget-table {
    background: rgba(245,241,232,0.05);
    border: 2px solid rgba(245,241,232,0.3);
    overflow: hidden;
}

.budget-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--cream);
    color: var(--navy);
    padding: 12px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.budget-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(245,241,232,0.15);
    transition: background 0.2s ease;
    color: var(--cream);
    background: rgba(21,32,43,0.4);
}

.budget-row:hover {
    background: rgba(21,32,43,0.6);
}

.budget-row.highlight-row {
    background: rgba(21,32,43,0.4);
    border-left: 4px solid var(--orange);
}

.budget-row.total-row {
    background: var(--cream);
    color: var(--navy);
    font-weight: 700;
    border-bottom: none;
}

.budget-row .method {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
}

.budget-row .cost-free {
    color: var(--cream);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.8rem;
}

.budget-row .cost-paid {
    color: var(--orange);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
}

.budget-row.total-row .cost-paid {
    color: var(--orange);
}

.budget-row.total-row .coverage-val.total {
    color: var(--navy);
}

.budget-row .coverage-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(245,241,232,0.6);
}

.budget-row .coverage-val.total {
    color: var(--cream);
    font-weight: 700;
}

/* Cost Per Fan Callout */
.cost-callout {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: var(--orange);
    position: relative;
}

.cost-callout::before,
.cost-callout::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--cream);
    border-radius: 50%;
    opacity: 0.3;
}

.cost-callout::before {
    top: -20px;
    left: 10%;
    animation: pulse 3s ease-in-out infinite;
}

.cost-callout::after {
    bottom: -30px;
    right: 15%;
    width: 80px;
    height: 80px;
    animation: pulse 3s ease-in-out infinite 0.5s;
}

.callout-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 15vw, 8rem);
    color: var(--cream);
    line-height: 1;
    letter-spacing: 0.02em;
}

.callout-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

/* Clearbit Example Card - Dark Theme */
.clearbit-example {
    margin: 0;
}

.example-card {
    background: rgba(245,241,232,0.05);
    border: 2px solid rgba(245,241,232,0.3);
    overflow: hidden;
}

.example-input {
    background: var(--cream);
    color: var(--navy);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.example-input .input-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--navy);
}

.example-input code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--orange);
}

.example-output {
    padding: 5px 0;
}

.output-row {
    display: flex;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(245,241,232,0.1);
}

.output-row:last-child {
    border-bottom: none;
}

.field-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(245,241,232,0.5);
    text-transform: uppercase;
    width: 70px;
    flex-shrink: 0;
}

.field-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--cream);
    font-size: 0.9rem;
}

.field-value.highlight-val {
    color: var(--cream);
    font-weight: 700;
}

.example-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(245,241,232,0.6);
    margin-top: 12px;
    font-style: italic;
}

/* Bottom Line Stats - Dark Theme */
.bottom-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(245,241,232,0.2);
}

.bottom-stat {
    text-align: center;
    padding: 25px 15px;
    background: var(--white);
    border: 2px solid var(--navy);
    transition: all 0.3s ease;
    /* Default: show shadow */
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--orange);
}

.bottom-stat:hover {
    /* On hover: shadow disappears, card settles */
    transform: translate(0, 0);
    box-shadow: none;
}

.stat-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-top: 8px;
}

/* Mobile responsive for Find the Fans section */
@media (max-width: 600px) {
    .pipeline-flow {
        flex-direction: column;
        gap: 10px;
    }
    .pipeline-arrow {
        transform: rotate(90deg);
    }
    .sell-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .budget-header,
    .budget-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    .bottom-line {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .output-row {
        flex-direction: column;
        gap: 3px;
    }
    .field-name {
        width: auto;
    }
}

/* Progress bar */
.pipeline-progress {
    height: 6px;
    background: rgba(21,32,43,0.1);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.pipeline-progress-fill {
    height: 100%;
    background: var(--orange);
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CTA ===== */
#cta {
    text-align: center;
    padding: 80px 30px;
    position: relative;
    overflow: hidden;
}

/* CTA decorative circle */
#cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60vw;
    height: 60vw;
    border: 2px solid var(--orange);
    border-radius: 50%;
    opacity: 0.15;
    animation: rotateSlow 80s linear infinite reverse;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#cta .section-header { color: var(--cream); }

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.cta-item .value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--orange);
}

.cta-item .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--orange-light);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--cream);
}

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

.btn-secondary:hover {
    background: var(--cream);
    color: var(--navy);
}

/* ===== FOOTER ===== */
footer {
    padding: 30px;
    text-align: center;
    background: var(--navy);
    color: var(--gray);
    border-top: 2px solid var(--orange);
}

footer .brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--cream);
}

footer .brand .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    margin: 0 8px;
    vertical-align: middle;
}

footer p { font-size: 0.75rem; margin-top: 4px; }

/* ===== WHY THIS MATTERS ===== */
.why-matters {
    margin-top: 60px;
    text-align: center;
}

.why-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.why-card {
    background: rgba(248,244,227,0.1);
    border: 2px solid var(--cream);
    padding: 24px;
    text-align: left;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.why-card:nth-child(even) {
    transform: translateX(30px);
}

.why-card:nth-child(even).visible {
    transform: translateX(0);
}

.why-icon {
    font-size: 1.5rem;
    color: var(--orange);
    margin-bottom: 12px;
}

.why-text {
    font-size: 0.9rem;
    color: var(--cream);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-card {
        transform: translateY(20px);
    }
    .why-card.visible {
        transform: translateY(0);
    }
}

/* ===== PIPELINE ARCHITECTURE ===== */
#pipeline {
    background: var(--cream);
}

.pipeline-diagram {
    margin: 60px 0;
}

.pipeline-flow-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.pipeline-stage-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-stage-node.visible {
    opacity: 1;
    transform: scale(1);
}

.stage-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 var(--navy);
}

.stage-circle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--navy);
}

.stage-circle.highlight {
    border-color: var(--orange);
    box-shadow: 4px 4px 0 var(--orange);
}

.stage-circle.final {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 4px 4px 0 var(--navy);
}

.stage-icon {
    font-size: 2rem;
    color: var(--navy);
}

.stage-circle.highlight .stage-icon {
    color: var(--orange);
}

.stage-circle.final .stage-icon {
    color: var(--cream);
}

.stage-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stage-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stage-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
}

.stage-count.final {
    color: var(--orange);
    font-size: 1.1rem;
}

.stage-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.stage-tag.free {
    background: var(--green);
    color: var(--white);
}

.stage-tag.paid {
    background: var(--orange);
    color: var(--cream);
}

.pipeline-connector {
    flex: 1;
    min-width: 30px;
    max-width: 60px;
    height: 4px;
    position: relative;
    margin: 0 5px;
}

.connector-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--navy);
    transform: translateY(-50%);
}

.connector-flow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 3px;
    background: var(--orange);
    transform: translateY(-50%);
    animation: flowRight 2s linear infinite;
}

@keyframes flowRight {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 20px); opacity: 0; }
}

.pipeline-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 40px auto 0;
}

.pipeline-stats .stat-card {
    background: var(--white);
    border: 2px solid var(--navy);
}

/* ===== STAGES ACCORDION ===== */
#stages {
    background: var(--navy);
}

#stages .section-header,
#stages .section-subheader {
    color: var(--cream);
}

.stages-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stage-card {
    background: var(--cream);
    border: 3px solid var(--navy);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0 var(--orange);
}

.stage-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--orange);
}

.stage-card.highlight {
    border-color: var(--orange);
}

.stage-header {
    display: grid;
    grid-template-columns: 50px 1fr auto 40px;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.stage-header:hover {
    background: rgba(21,32,43,0.05);
}

.stage-number {
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--cream);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stage-card.highlight .stage-number {
    background: var(--orange);
}

.stage-title h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px 0;
}

.stage-title p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.stage-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stage-meta .coverage {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--orange);
    font-size: 0.9rem;
}

.stage-meta .cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.stage-meta .cost.free {
    background: var(--green);
    color: var(--white);
}

.stage-meta .cost.paid {
    background: var(--orange);
    color: var(--cream);
}

.stage-meta .cost.final {
    background: var(--navy);
    color: var(--cream);
}

.stage-toggle {
    width: 30px;
    height: 30px;
    background: var(--cream);
    border: 2px solid var(--navy);
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.stage-card.open .stage-toggle {
    background: var(--navy);
    color: var(--cream);
    transform: rotate(45deg);
}

.stage-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-card.open .stage-content {
    max-height: 800px;
}

.stage-explanation {
    padding: 0 20px 20px 85px;
    border-top: 2px dashed var(--cream-dark);
}

.stage-explanation h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 10px 0;
}

.stage-explanation p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.stage-explanation code {
    background: var(--cream-dark);
    padding: 2px 6px;
    font-size: 0.8rem;
    color: var(--navy);
}

.stage-results {
    display: flex;
    gap: 20px;
    padding: 15px 20px 20px 85px;
    background: rgba(21,32,43,0.03);
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
}

.result-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Clearbit Demo inside accordion */
.clearbit-demo {
    margin-top: 20px;
    background: var(--cream-dark);
    border: 2px solid var(--navy);
    overflow: hidden;
}

.demo-header {
    background: var(--navy);
    color: var(--cream);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 15px;
}

.demo-content {
    padding: 15px;
}

.demo-input {
    margin-bottom: 15px;
}

.demo-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    margin-right: 10px;
}

.demo-input code {
    background: var(--white);
    padding: 4px 10px;
    color: var(--orange);
    font-weight: 600;
}

.demo-output {
    display: grid;
    gap: 8px;
}

.output-field {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
}

.field-label {
    color: var(--gray);
    min-width: 70px;
}

.output-field:not(.field-label) {
    color: var(--navy);
    font-weight: 600;
}

.highlight-location {
    color: var(--orange);
    font-weight: 700;
}

/* Responsive for pipeline and stages */
@media (max-width: 900px) {
    .pipeline-flow-visual {
        flex-direction: column;
        gap: 20px;
    }
    
    .pipeline-connector {
        width: 4px;
        height: 30px;
        min-width: 4px;
        max-width: 4px;
    }
    
    .connector-line {
        width: 3px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .connector-flow {
        width: 3px;
        height: 15px;
        left: 50%;
        transform: translateX(-50%);
        animation: flowDown 2s linear infinite;
    }
    
    @keyframes flowDown {
        0% { top: 0; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: calc(100% - 15px); opacity: 0; }
    }
    
    .pipeline-stats {
        grid-template-columns: 1fr;
    }
    
    .stage-header {
        grid-template-columns: 40px 1fr 40px;
    }
    
    .stage-meta {
        display: none;
    }
    
    .stage-explanation,
    .stage-results {
        padding-left: 20px;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating circle decorations - NO SQUARES */
.scroll-decoration {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    border-radius: 50%;
}

.scroll-decoration.circle {
    border: 3px solid var(--orange);
    opacity: 0.12;
}

.scroll-decoration.filled {
    background: var(--orange);
    opacity: 0.08;
}

/* ===== D3/LEAFLET ===== */
.d3-tooltip {
    position: fixed;
    background: var(--navy);
    color: var(--cream);
    border: 2px solid var(--orange);
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10000;
}

.d3-tooltip.visible { opacity: 1; }

#domainViz circle { transition: all 0.15s; }
#domainViz circle:hover {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(232,93,0,0.6));
}

.leaflet-container { background: var(--cream-dark); }
.leaflet-popup-content-wrapper { border-radius: 0; border: 2px solid var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section { padding: 40px 20px; }
    .cta-grid { grid-template-columns: 1fr; gap: 20px; }
    .cta-buttons { flex-direction: column; }
    .pipeline-stage { flex-direction: column; text-align: center; }
    .pyramid-level { grid-template-columns: 80px 1fr 35px; gap: 10px; }
    .pyramid-label { font-size: 0.5rem; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 6rem); }
    .spotlight-1, .spotlight-2 { width: 60vw; height: 60vw; }
}
