/* ================================================================
   A TODO NEURO — Styles
   Color palette: Dark blue + Teal/Light green
   ================================================================ */

/* ── Custom Properties ── */
:root {
    --bg-dark: #060e1a;
    --bg-section: #0b1826;
    --bg-section-alt: #0f1d35;
    --bg-card: #132240;
    --bg-card-hover: #1a2d50;
    --primary: #1a2d50;
    --primary-light: #2a4a7f;
    --accent: #4ecdc4;
    --accent-light: #7fdbda;
    --accent-dark: #3aada6;
    --accent-glow: rgba(78, 205, 196, 0.35);
    --accent-glow-strong: rgba(78, 205, 196, 0.6);
    --text: #e8f0f8;
    --text-secondary: #a0b4cc;
    --text-muted: #5f7a9a;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    padding: 100px 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; }

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.center { text-align: center; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg-dark);
    box-shadow: 0 0 50px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.15rem;
}

/* ── Navigation ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(6, 14, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(78, 205, 196, 0.08);
    transition: all var(--transition);
}
#navbar.scrolled {
    background: rgba(6, 14, 26, 0.95);
    border-bottom-color: rgba(78, 205, 196, 0.15);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.05;
}
.logo-text span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
}
.lang-toggle:hover {
    border-color: var(--accent);
}
.lang-option.active { color: var(--accent); }
.lang-divider { color: var(--text-muted); opacity: 0.5; }

.spotify-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1DB954;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
}
.spotify-cta:hover {
    background: #1ed760;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
    border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

#neuralCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(6,14,26,0.3) 0%, rgba(6,14,26,0.85) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(78, 205, 196, 0.12);
    border: 1px solid rgba(78, 205, 196, 0.25);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.badge-icon { font-size: 1.1rem; }

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--accent-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.hero-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.stars {
    font-size: 1.5rem;
    color: #ffd700;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.star-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    animation: gentleBounce 2.5s ease-in-out infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}
.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── About ── */
#about {
    background: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.neuron-svg {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}
.neuron-svg .dendrite {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.7;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease;
}
.neuron-svg .soma {
    fill: url(#somaGrad);
    stroke: var(--accent);
    stroke-width: 2;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}
.neuron-svg .nucleus {
    fill: rgba(78, 205, 196, 0.2);
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0;
    transition: opacity 1s ease 0.8s;
}
.neuron-svg .axon {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 2s ease 0.5s;
}
.neuron-svg .myelin {
    fill: none;
    stroke: var(--accent-light);
    stroke-width: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.neuron-svg .terminal {
    fill: var(--accent);
    opacity: 0;
    transition: opacity 0.8s ease 1.5s;
}
.neuron-svg .signal-pulse {
    opacity: 0;
    transition: opacity 0.5s ease 2s;
}

/* Animate neuron when visible */
.about-visual.visible .dendrite { stroke-dashoffset: 0; }
.about-visual.visible .soma,
.about-visual.visible .nucleus { opacity: 1; }
.about-visual.visible .axon { stroke-dashoffset: 0; }
.about-visual.visible .myelin { opacity: 0.6; }
.about-visual.visible .terminal { opacity: 1; }
.about-visual.visible .signal-pulse { opacity: 0.8; }

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}
.feature {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 16px;
    background: rgba(78, 205, 196, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(78, 205, 196, 0.1);
    transition: all var(--transition);
}
.feature:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.25);
    transform: translateX(8px);
}
.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}
.feature strong {
    display: block;
    color: var(--text);
    margin-bottom: 2px;
}
.feature span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── Stats Bar ── */
#stats {
    background: var(--bg-section-alt);
    padding: 60px 0;
    border-top: 1px solid rgba(78, 205, 196, 0.08);
    border-bottom: 1px solid rgba(78, 205, 196, 0.08);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-card {
    text-align: center;
    padding: 24px 32px;
    position: relative;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-text-val {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    position: relative;
    flex-shrink: 0;
}
.connector-pulse {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    box-shadow: 0 0 15px var(--accent-glow-strong);
    animation: pulseTravel 2s ease-in-out infinite;
}
@keyframes pulseTravel {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: calc(100% - 12px); opacity: 0; }
}

/* ── Award ── */
#award {
    background: var(--bg-section);
    overflow: hidden;
}

.award-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: start;
}

.award-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 120px;
}

.award-trophy {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trophy-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: trophyGlow 3s ease-in-out infinite;
}
@keyframes trophyGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
.award-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid var(--accent);
}

.award-org {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.award-org span { font-size: 0.85rem; color: var(--text-muted); }
.award-org strong { color: var(--text); font-size: 1rem; }
.award-year {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 2px 12px;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}

.award-subtitle {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.award-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.award-quote {
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}
.award-quote p {
    font-style: italic;
    color: var(--text) !important;
    margin-bottom: 8px !important;
}
.award-quote cite {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

.award-link {
    display: inline-flex;
    font-weight: 600;
}

/* ── Episodes ── */
#episodes {
    background: var(--bg-section-alt);
}

.pathway-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.pathway-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 4px;
    z-index: 0;
}
.pathway-bg {
    stroke: rgba(78, 205, 196, 0.1);
    stroke-width: 4;
}
.pathway-fill {
    stroke: var(--accent);
    stroke-width: 4;
    stroke-dasharray: var(--pathway-length, 3000);
    stroke-dashoffset: var(--pathway-offset, 3000);
    transition: stroke-dashoffset 0.1s linear;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.episode-node {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    width: 50%;
}
.episode-node.left {
    padding-right: 40px;
    justify-content: flex-end;
}
.episode-node.right {
    margin-left: 50%;
    padding-left: 40px;
}

.node-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--accent-glow-strong);
}
.node-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: ringPulse 2s ease infinite;
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0; }
}

.episode-node.left .node-dot { right: -9px; }
.episode-node.right .node-dot { left: -9px; }

.episode-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(78, 205, 196, 0.1);
    border-radius: var(--radius);
    padding: 16px 20px;
    width: 100%;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.episode-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(78,205,196,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}
.episode-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(78, 205, 196, 0.15);
    color: var(--text);
}
.episode-card:hover::before { opacity: 1; }

.episode-rank {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 36px;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
    min-width: 0;
}
.episode-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.episode-guest {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.episode-streams {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 60px;
}
.stream-bar {
    display: block;
    width: 50px;
    height: 4px;
    background: rgba(78, 205, 196, 0.15);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.stream-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--pct, 0%);
    background: var(--accent);
    border-radius: 2px;
    transition: width 1s ease;
}
.stream-count {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.episode-play-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: all var(--transition);
    opacity: 0.5;
}
.episode-card:hover .episode-play-icon {
    color: #1DB954;
    opacity: 1;
    transform: scale(1.15);
}

/* Spotify embed */
.spotify-embed-section {
    max-width: 700px;
    margin: 60px auto 0;
}

/* ── Impact ── */
#impact {
    background: var(--bg-section);
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 16px;
}

.impact-card {
    background: var(--bg-card);
    border: 1px solid rgba(78, 205, 196, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.impact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.impact-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Bar Charts */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 50px;
    align-items: center;
    gap: 12px;
}
.bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}
.bar-track {
    height: 8px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}
.impact-card.visible .bar-fill {
    width: var(--target);
}
.bar-value {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
}
.bar-row-more .bar-label {
    grid-column: 1 / -1;
    text-align: left;
    color: var(--text-muted);
    font-style: italic;
}

/* Gender */
.demo-section {
    margin-top: 24px;
}
.demo-section h5 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.gender-bar {
    display: flex;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    gap: 2px;
}
.gender-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}
.impact-card.visible .gender-seg {
    width: var(--w);
}
.gender-seg.female { background: var(--accent); }
.gender-seg.male { background: var(--primary-light); color: var(--text); }
.gender-seg.other-g { background: var(--accent-dark); }
.gender-seg span {
    white-space: nowrap;
    font-size: 0.72rem;
}

/* Age */
.age-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    margin-top: 8px;
}
.age-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.age-col {
    width: 100%;
    max-width: 48px;
    height: 0%;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 6px 6px 2px 2px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 0;
}
.impact-card.visible .age-col {
    height: var(--h);
}
.age-col span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text);
    padding-top: 4px;
    white-space: nowrap;
}
.age-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}
.age-bar-group.highlight .age-col {
    background: linear-gradient(180deg, var(--accent-light), var(--accent));
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ── Host ── */
#host {
    background: var(--bg-section-alt);
}

.host-layout {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.host-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.host-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}
.tag {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}
.tag:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ── CTA ── */
#cta {
    padding: 120px 0;
    background: var(--bg-section);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-canvas-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(42, 74, 127, 0.3) 0%, transparent 50%);
    opacity: 0.3;
    animation: ctaPulse 6s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.cta-content {
    position: relative;
    z-index: 1;
}
.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.cta-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 550px;
    margin-inline: auto;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Footer ── */
#footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(78, 205, 196, 0.08);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links h5 {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(78, 205, 196, 0.06);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Animations / Scroll ── */
.anim-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.anim-in[data-delay="1"] { transition-delay: 0.1s; }
.anim-in[data-delay="2"] { transition-delay: 0.2s; }
.anim-in[data-delay="3"] { transition-delay: 0.3s; }
.anim-in[data-delay="4"] { transition-delay: 0.4s; }
.anim-in[data-delay="5"] { transition-delay: 0.5s; }
.anim-in[data-delay="6"] { transition-delay: 0.1s; }
.anim-in[data-delay="7"] { transition-delay: 0.2s; }
.anim-in[data-delay="8"] { transition-delay: 0.1s; }
.anim-in[data-delay="9"] { transition-delay: 0.2s; }

.anim-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Episode-specific slide animations */
.episode-node.left.anim-in {
    transform: translateX(-40px);
    opacity: 0;
}
.episode-node.right.anim-in {
    transform: translateX(40px);
    opacity: 0;
}
.episode-node.left.anim-in.visible,
.episode-node.right.anim-in.visible {
    transform: translateX(0);
    opacity: 1;
}

/* ── Floating particles (neurotransmitters) ── */
.particle-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.15;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(720deg); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual { order: -1; }
    .neuron-svg { max-width: 350px; }

    .award-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .award-badge {
        position: static;
        flex-direction: row;
    }
    .award-trophy {
        width: 120px;
        height: 120px;
    }
    .award-logo {
        width: 90px;
        height: 90px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    section {
        padding: 70px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(6, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(78, 205, 196, 0.1);
    }
    .nav-links.open { display: flex; }

    .menu-toggle { display: flex; }

    .spotify-cta span { display: none; }

    .stats-grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    .stat-connector { display: none; }
    .stat-card { flex: 1 1 40%; min-width: 140px; }

    /* Episodes: stack on mobile */
    .pathway-line { left: 20px; transform: none; }

    .episode-node,
    .episode-node.left,
    .episode-node.right {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .episode-node .node-dot,
    .episode-node.left .node-dot,
    .episode-node.right .node-dot {
        left: 11px;
        right: auto;
    }

    .episode-node.left.anim-in,
    .episode-node.right.anim-in {
        transform: translateX(30px);
    }

    .episode-info h4 {
        white-space: normal;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .age-chart {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
        white-space: nowrap;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 16px 12px;
    }
    .stat-number {
        font-size: 2rem;
    }

    .bar-row {
        grid-template-columns: 70px 1fr 45px;
        gap: 8px;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim-in { transition: none; opacity: 1; transform: none; }
    .connector-pulse { animation: none; }
    .trophy-glow { animation: none; }
    .scroll-wheel { animation: none; }
    .scroll-indicator { animation: none; }
    .hero-title { animation: none; }
    .neuron-svg .dendrite,
    .neuron-svg .axon { transition: none; stroke-dashoffset: 0; }
    .neuron-svg .soma,
    .neuron-svg .nucleus,
    .neuron-svg .myelin,
    .neuron-svg .terminal,
    .neuron-svg .signal-pulse { transition: none; opacity: 1; }
    .bar-fill { transition: none; }
    .gender-seg { transition: none; }
    .age-col { transition: none; }
    #neuralCanvas { display: none; }
    .particle { animation: none; display: none; }
    @keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 0; } }
}
