/* ═══════════════════════════════════════════════════════════════════
   FUND COLLECTIVE — DESIGN SYSTEM v7
   Midnight Navy dark mode · Warm cream light mode
   DM Serif Display + Inter · Apple Glass morphism · Floating pill nav
   Aligned with newwebsitedesign/ (March 2026)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables & Theme Engine ───────────────────────────────── */
:root {
    --bg-color: #0e1726;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --gold: #c9a962;
    --blue: #159ECE;
    --blue-glow: rgba(21, 158, 206, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: linear-gradient(135deg, rgba(18, 35, 64, 0.5) 0%, rgba(10, 17, 31, 0.8) 100%);
    --glass-bg: rgba(14, 23, 38, 0.7);
    --gradient-text: linear-gradient(135deg, #fff 0%, #c9a962 50%, #fff 100%);
    --shadow-elevation: 0 30px 60px rgba(0,0,0,0.5);
    --glass-reflection: inset 1px 1px 0px rgba(255, 255, 255, 0.1), inset -1px -1px 0px rgba(255, 255, 255, 0.02);
    --inverted-bg: #ffffff;
    --inverted-text: #122340;
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Legacy aliases (dashboard, admin pages still reference these) */
    --bg: var(--bg-color);
    --border: var(--border-color);
    --surface: var(--glass-bg);
}

[data-theme="light"] {
    --bg-color: #faf9f6;
    --text-main: #122340;
    --text-muted: #6b7a8d;
    --gold: #a58035;
    --blue: #0e7ba3;
    --blue-glow: rgba(14, 123, 163, 0.12);
    --border-color: rgba(18, 35, 64, 0.06);
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(250, 250, 253, 0.9) 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --gradient-text: linear-gradient(135deg, #122340 0%, #a58035 50%, #122340 100%);
    --shadow-elevation: 0 15px 40px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
    --glass-reflection: inset 0 1px 1px rgba(255, 255, 255, 1), inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    --inverted-bg: #122340;
    --inverted-text: #faf9f6;
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

a, button, [role="button"], input, select, label, textarea, .theme-toggle, .btn-dynamic, .btn-primary { cursor: pointer; }
input, textarea, select { cursor: text; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }

/* ─── Noise Texture Overlay ──────────────────────────────────────── */
.noise-overlay {
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 50; mix-blend-mode: overlay;
}

/* ─── Universal Premium Glass Class ──────────────────────────────── */
.epic-glass {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-elevation), var(--glass-reflection);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 32px;
}

[data-theme="light"] .epic-glass {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02), var(--glass-reflection);
}

/* ─── Hero Backgrounds ───────────────────────────────────────────── */
.hero-ambient-bg {
    position: absolute; inset: 0; z-index: -2;
    background: radial-gradient(circle at 60% 30%, rgba(201, 169, 98, 0.08) 0%, var(--bg-color) 60%);
}
[data-theme="light"] .hero-ambient-bg {
    background: radial-gradient(circle at 60% 30%, rgba(201, 169, 98, 0.15) 0%, var(--bg-color) 60%);
}

.hero-glow-warm {
    position: absolute; width: 100vw; height: 100vh; top: 0; left: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 80% 50%, rgba(201, 169, 98, 0.06) 0%, transparent 50%);
    animation: pulse-glow 8s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-glow-warm {
    background: radial-gradient(ellipse at 80% 50%, rgba(201, 169, 98, 0.1) 0%, transparent 50%);
}

@keyframes pulse-glow {
    0% { opacity: 0.6; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* ─── Scroll Reveal ──────────────────────────────────────────────── */
.reveal-up {
    opacity: 0; transform: translateY(40px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* ─── Gold Gradient Text ─────────────────────────────────────────── */
.text-gold-gradient {
    background: var(--gradient-text); background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shimmer 8s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ─── Hero Text Stagger Entrance ─────────────────────────────────── */
@keyframes text-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-line { opacity: 0; animation: text-reveal 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.25s; }
.hero-line:nth-child(3) { animation-delay: 0.4s; }

/* ─── Dynamic Buttons ────────────────────────────────────────────── */
.btn-dynamic, .btn-primary {
    background: var(--text-main); color: var(--bg-color); padding: 16px 36px; border-radius: 50px; font-weight: 600;
    letter-spacing: 0.05em; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-dynamic:hover, .btn-primary:hover { transform: scale(1.04); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }

[data-theme="light"] .btn-dynamic, [data-theme="light"] .btn-primary {
    background: #122340 !important; color: #faf9f6 !important;
    box-shadow: 0 4px 12px rgba(18,35,64,0.1) !important;
}
[data-theme="light"] .btn-dynamic:hover, [data-theme="light"] .btn-primary:hover {
    box-shadow: 0 12px 28px rgba(18,35,64,0.18) !important; transform: scale(1.03);
}

/* Accent link — gold on dark, navy blue on light */
.nav-accent { color: var(--gold) !important; }
[data-theme="light"] .nav-accent { color: var(--blue) !important; }

/* Hero CTA — gold on dark, navy on light */
.btn-hero {
    background: var(--gold); color: #ffffff; border-radius: 50px; font-weight: 600;
    letter-spacing: 0.05em; display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; border: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(201,169,98,0.3);
}
.btn-hero:hover { transform: scale(1.04); box-shadow: 0 15px 35px rgba(201,169,98,0.4); }
[data-theme="light"] .btn-hero {
    background: #122340; color: #ffffff;
    box-shadow: 0 10px 25px rgba(18,35,64,0.2);
}
[data-theme="light"] .btn-hero:hover { box-shadow: 0 15px 35px rgba(18,35,64,0.3); }

/* Gold button (investors, assess, CTAs) */
.btn-gold {
    background: var(--gold); color: #ffffff; padding: 16px 36px; border-radius: 50px; font-weight: 600;
    letter-spacing: 0.05em; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: none;
    box-shadow: 0 10px 25px rgba(201,169,98,0.3);
}
.btn-gold:hover { transform: scale(1.04); box-shadow: 0 15px 35px rgba(201,169,98,0.5); }
[data-theme="light"] .btn-gold {
    background: #122340; color: #faf9f6;
    box-shadow: 0 8px 25px rgba(18,35,64,0.2);
}
[data-theme="light"] .btn-gold:hover { box-shadow: 0 15px 35px rgba(18,35,64,0.3); }

/* Outline button */
.btn-outline {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
    padding: 14px 32px; border-radius: 50px; font-weight: 600; letter-spacing: 0.05em;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.02); }

/* Eyebrow badge */
.eyebrow {
    display: inline-block; padding: 6px 16px; border-radius: 50px; border: 1px solid var(--gold);
    font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; color: var(--gold);
}

/* ─── Dynamic Navigation Pill ────────────────────────────────────── */
.dynamic-nav-wrapper {
    position: fixed; top: 32px; left: 50%; transform: translateX(-50%); z-index: 100;
    width: 90%; max-width: 1000px; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dynamic-nav-wrapper.scrolled { top: 20px; max-width: 850px; }
.dynamic-nav {
    display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 32px;
    background: var(--glass-bg); backdrop-filter: blur(30px) saturate(150%); border-radius: 100px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-elevation), var(--glass-reflection);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-group { display: flex; align-items: center; text-decoration: none; }
.logo-light { display: none; }
.logo-dark { display: block; }
[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark { display: none; }
.dynamic-nav .nav-links { display: none; gap: 36px; align-items: center; }
@media (min-width: 768px) { .dynamic-nav .nav-links { display: flex; } }
.dynamic-nav .nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; transition: color 0.3s; }
.dynamic-nav .nav-links a:hover { color: var(--blue); }
.theme-toggle { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; transition: color 0.3s; }
.theme-toggle:hover { color: var(--gold); }

/* Mobile Menu */
.mobile-menu-btn { background: none; border: none; color: var(--text-muted); padding: 8px; display: flex; align-items: center; transition: color 0.3s; cursor: pointer; }
.mobile-menu-btn:hover { color: var(--text-main); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.nav-cta-desktop { display: none !important; }
.nav-acct-desktop { display: none !important; }
@media (min-width: 768px) { .nav-cta-desktop { display: inline-flex !important; } .nav-acct-desktop { display: inline-block !important; } }
.mobile-menu {
    display: none; flex-direction: column; gap: 4px; margin-top: 12px; padding: 16px 24px 20px;
    background: var(--glass-bg); backdrop-filter: blur(30px); border-radius: 24px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-elevation);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    padding: 12px 0; border-bottom: 1px solid var(--border-color); transition: color 0.3s;
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-menu a:hover { color: var(--blue); }
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: none; }
:not([data-theme="light"]):not([data-theme="dark"]) .theme-icon-light { display: none; }

/* ─── Hero 3D Dashboard ──────────────────────────────────────────── */
.tilt-wrapper { perspective: 1200px; transform-style: preserve-3d; z-index: 10; }

.dashboard-3d {
    transform: rotateX(8deg) rotateY(-12deg) translateZ(0); transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dash-back-glow {
    position: absolute; inset: -30px; z-index: -1;
    background: radial-gradient(circle at 70% 30%, rgba(201,169,98,0.35) 0%, rgba(74,158,255,0.15) 50%, transparent 70%);
    border-radius: 40px; transform: translateZ(-20px); pointer-events: none;
    animation: glow-breathe 6s ease-in-out infinite alternate;
}
@keyframes glow-breathe { 0% { opacity: 0.7; transform: translateZ(-20px) scale(0.98); } 100% { opacity: 1; transform: translateZ(-20px) scale(1.02); } }
[data-theme="light"] .dash-back-glow { opacity: 0.4; }

.dash-inner-mesh {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
    background-image:
        linear-gradient(var(--text-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}
[data-theme="light"] .dash-inner-mesh { opacity: 0.04; }

.dash-header {
    position: relative; z-index: 10; height: 48px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; border-bottom: 1px solid var(--border-color);
}
.mac-dots { display: flex; gap: 8px; }
.mac-dot { width: 10px; height: 10px; border-radius: 50%; transition: transform 0.3s ease; }
.mac-dot:hover { transform: scale(1.3); }
[data-theme="light"] .mac-dot { opacity: 0.7; }
.dash-status { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 800; letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase; }

/* Node Pills */
.node-pill {
    position: absolute; background: var(--inverted-bg); border-radius: 50px; padding: 6px 16px 6px 6px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    transform: translateZ(40px); z-index: 20;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}
.node-pill:hover { transform: translateZ(50px) scale(1.03); box-shadow: 0 6px 16px rgba(0,0,0,0.10); }
.node-pill-img {
    width: 34px; height: 34px; border-radius: 50%; background-size: cover; background-position: center;
    border: 2px solid var(--inverted-bg); flex-shrink: 0;
}
.node-text { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.node-name { font-size: 13px; font-weight: 700; color: var(--inverted-text); line-height: 1.2; letter-spacing: -0.01em; }
.node-sub { font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.node-sub-match { color: #5b9a6f; }

[data-theme="light"] .node-pill {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
}

/* Score Ring SVG */
.score-ring-track { fill: none; stroke: rgba(0,0,0,0.06); stroke-width: 3; }
.score-ring-progress {
    fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
    transform: rotate(-90deg); transform-origin: center;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.score-ring-glow {
    fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round;
    transform: rotate(-90deg); transform-origin: center;
    opacity: 0.08;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 1, 0.5, 1);
}
[data-theme="light"] .score-ring-track { stroke: rgba(0,0,0,0.04); }
[data-theme="light"] .score-ring-glow { opacity: 0.05; }

/* Central Score Circle */
.core-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateZ(30px);
    width: 150px; height: 150px; background: var(--inverted-bg); border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    z-index: 15; border: none;
}
.core-score { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 52px; color: #9a7831; line-height: 1; letter-spacing: -0.02em; }
.core-lbl { font-size: 8px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }
.core-pct { font-size: 8px; font-weight: 800; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1px; }

[data-theme="light"] .core-circle {
    box-shadow: 0 3px 12px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}

.node-badge {
    position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%;
    background: #5b9a6f; border: 2px solid var(--inverted-bg);
    box-shadow: 0 0 6px rgba(91,154,111,0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* Dashboard Floating */
@keyframes float-dash-content { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.dash-moving-container { animation: float-dash-content 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; width: 100%; height: 100%; position: absolute; inset: 0; transform-style: preserve-3d; }

/* Pill entrance animations */
@keyframes pill-enter-l { from { opacity: 0; transform: translate(-120%, -50%) translateZ(50px); } to { opacity: 1; transform: translate(-100%, -50%) translateZ(50px); } }
@keyframes pill-enter-r { from { opacity: 0; transform: translate(20%, -50%) translateZ(60px); } to { opacity: 1; transform: translate(0, -50%) translateZ(60px); } }
@keyframes pill-enter-br { from { opacity: 0; transform: translate(20%, -50%) translateZ(55px); } to { opacity: 1; transform: translate(0, -50%) translateZ(55px); } }
@keyframes core-enter { from { opacity: 0; transform: translate(-50%, -50%) translateZ(30px) scale(0.8); } to { opacity: 1; transform: translate(-50%, -50%) translateZ(40px) scale(1); } }
.pill-anim-l { animation: pill-enter-l 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.6s both; }
.pill-anim-r { animation: pill-enter-r 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.9s both; }
.pill-anim-br { animation: pill-enter-br 0.8s cubic-bezier(0.19, 1, 0.22, 1) 1.2s both; }
.core-anim { animation: core-enter 1s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both; }

[data-theme="light"] .dash-back-glow { animation: none; opacity: 0.25; }

/* ─── Activity Ticker ────────────────────────────────────────────── */
.ticker-wrapper {
    width: 100%; overflow: hidden; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    background: var(--glass-bg); backdrop-filter: blur(15px); padding: 16px 0; position: relative; z-index: 20;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-track { display: flex; white-space: nowrap; animation: scroll-ticker 35s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 40px; color: var(--text-muted); font-size: 0.85rem; position: relative; }
.ticker-item::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.4; }
.ticker-item strong { color: var(--text-main); font-weight: 600; }
@keyframes scroll-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

[data-theme="light"] .ticker-wrapper {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
}

/* ─── Stacked Architecture Cards ─────────────────────────────────── */
.stack-container { padding: 10vh 6vw 20vh 6vw; display: flex; flex-direction: column; gap: 2rem; position: relative; }
.stack-card {
    position: sticky; top: 15vh; display: flex; flex-direction: column;
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 32px; overflow: hidden;
    box-shadow: var(--shadow-elevation), var(--glass-reflection);
    backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
    min-height: 65vh; transform-origin: top center; transition: all 0.5s ease;
}
.stack-card:nth-child(1) { top: calc(12vh + 0px); z-index: 1; }
.stack-card:nth-child(2) { top: calc(12vh + 20px); z-index: 2; }
.stack-card:nth-child(3) { top: calc(12vh + 40px); z-index: 3; }
.stack-card:nth-child(4) { top: calc(12vh + 60px); z-index: 4; }

@media (min-width: 1024px) {
    .stack-card { flex-direction: row; align-items: stretch; }
}

.stack-content { flex: 1; padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; }
.stack-card:hover { border-color: var(--gold); }
.card-num {
    font-family: var(--font-display); font-size: 5rem; color: var(--blue); opacity: 0.3; line-height: 1; margin-bottom: 1.5rem; transition: opacity 0.5s ease, transform 0.5s ease;
}
.stack-card:hover .card-num { opacity: 0.8; transform: translateX(10px); }
.stack-content h3 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-main); line-height: 1.1; }
.stack-content p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; font-weight: 300; }
.stack-divider { width: 0; height: 2px; background: var(--gold); margin-bottom: 2rem; transition: width 1s cubic-bezier(0.19, 1, 0.22, 1); }
.stack-card.active .stack-divider { width: 60px; }

.stack-visual { flex: 1.2; position: relative; overflow: hidden; min-height: 250px; background: var(--bg-color); }
.stack-visual img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) brightness(0.9) contrast(1.2);
    transform: scale(1.1); transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), filter 1.5s ease;
}
.stack-card:hover .stack-visual img { transform: scale(1); filter: grayscale(0%) brightness(1.1) contrast(1.1); }

[data-theme="light"] .stack-visual { background: #f0f0f2; }
[data-theme="light"] .stack-visual img { filter: grayscale(10%) brightness(0.95) contrast(1.1); }
[data-theme="light"] .stack-card:hover .stack-visual img { filter: grayscale(0%) brightness(1.05) contrast(1.1); }
[data-theme="light"] .stack-card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03), var(--glass-reflection);
}

/* ─── Staircase Founder Progression ──────────────────────────────── */
.staircase-section { position: relative; overflow: hidden; }
.staircase-viewport {
    position: relative; width: 100%; height: 70vh; min-height: 500px; max-height: 700px; overflow: hidden;
}
@media (max-width: 767px) {
    .staircase-viewport { height: 65vh; min-height: 420px; }
}
.staircase-world {
    position: absolute; left: 50%; top: 50%;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.staircase-ambient {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
    border-radius: 50%; filter: blur(120px); pointer-events: none;
    transition: background-color 1.5s ease, opacity 1.5s ease;
    opacity: 0.12;
}
[data-theme="light"] .staircase-ambient { opacity: 0.02; }

/* Step Node */
.step-node { position: absolute; transform: translate(-50%, -50%); }
.step-dot {
    width: 24px; height: 24px; border-radius: 50%;
    border: 4px solid transparent;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; z-index: 20;
    display: flex; align-items: center; justify-content: center;
}
.step-dot.active { transform: scale(1.3); }
.step-dot.past { background: var(--step-color); }
[data-theme="light"] .step-dot { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.step-dot-ping {
    position: absolute; inset: 0; border-radius: 50%;
    animation: step-ping 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes step-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}
[data-theme="light"] .step-dot-ping { animation-name: step-ping-light; }
@keyframes step-ping-light {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Step Card */
.step-card {
    position: absolute; width: 340px;
    background: var(--glass-bg); border: 1px solid var(--border-color);
    border-radius: 2rem; padding: 1.75rem; z-index: 40;
    backdrop-filter: blur(40px) saturate(150%); -webkit-backdrop-filter: blur(40px) saturate(150%);
    box-shadow: var(--shadow-elevation), var(--glass-reflection);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom center;
}
[data-theme="light"] .step-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(30px);
    box-shadow: 0 16px 40px -10px rgba(0,0,0,0.12), inset 0 1px 1px rgba(255,255,255,0.8);
}
@media (max-width: 767px) {
    .step-card { width: 280px; padding: 1.25rem; }
}
.step-card-arrow {
    position: absolute; bottom: -10px; left: 75%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 12px solid transparent; border-right: 12px solid transparent;
    border-top: 12px solid var(--step-color);
    transition: border-top-color 0.6s ease;
}
[data-theme="light"] .step-card-arrow { filter: none; }
:not([data-theme="light"]) .step-card-arrow { filter: drop-shadow(0 4px 8px var(--step-color)); }

.step-card-icon {
    width: 48px; height: 48px; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color); transition: background-color 0.5s ease;
}
[data-theme="light"] .step-card-icon { background: rgba(0, 0, 0, 0.03); border-color: rgba(255, 255, 255, 1); }
.step-card-subtitle { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }
.step-card-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text-main); margin: 0.5rem 0; letter-spacing: -0.01em; }
.step-card-desc { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); font-weight: 400; margin-bottom: 1.25rem; }
.step-card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.step-card-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 50px; border: 1px solid var(--border-color);
    color: var(--text-muted); background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}
[data-theme="light"] .step-card-tag { background: rgba(255, 255, 255, 0.8); border-color: rgba(0,0,0,0.08); color: var(--text-main); }

.step-card-overlay {
    position: absolute; inset: 0; border-radius: 2rem; display: flex; align-items: center; justify-content: center;
    z-index: 50; backdrop-filter: blur(6px); font-weight: 600; font-size: 1rem; gap: 8px;
    transition: opacity 0.5s ease;
}
.step-card-overlay.locked { background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.4); }
.step-card-overlay.completed { background: rgba(0,0,0,0.35); color: rgba(255,255,255,0.8); }
[data-theme="light"] .step-card-overlay.locked { background: rgba(255,255,255,0.5); color: rgba(0,0,0,0.4); }
[data-theme="light"] .step-card-overlay.completed { background: rgba(255,255,255,0.45); color: rgba(0,0,0,0.7); }

/* Climber */
.card-climber { position: absolute; bottom: 16px; right: 20px; z-index: 55; pointer-events: none; }
@media (max-width: 767px) { .card-climber { bottom: 12px; right: 14px; } }
.climber-glow {
    position: absolute; width: 50px; height: 50px; border-radius: 50%; filter: blur(16px);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: climber-breathe 2.5s ease-in-out infinite;
}
[data-theme="light"] .climber-glow { animation-name: climber-breathe-light; }
@keyframes climber-breathe {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes climber-breathe-light {
    0%, 100% { opacity: 0.06; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.12; transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes arm-swing-l { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes arm-swing-r { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } }
@keyframes leg-walk-l { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes leg-walk-r { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(0); } }

/* Dock Navigation */
.staircase-dock {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60;
    display: flex; align-items: center; gap: 12px;
    padding: 10px; border-radius: 50px;
    background: var(--glass-bg); backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-elevation), var(--glass-reflection);
    width: fit-content;
}
[data-theme="light"] .staircase-dock {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
}
.dock-btn {
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: transparent; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease;
}
.dock-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
[data-theme="light"] .dock-btn:hover { background: rgba(0,0,0,0.05); }
.dock-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.dock-btn:disabled:hover { background: transparent; }
.dock-indicators { display: flex; gap: 8px; padding: 0 20px; align-items: center; }
.dock-dot {
    height: 10px; border-radius: 5px; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(255,255,255,0.2);
}
[data-theme="light"] .dock-dot { background: rgba(0,0,0,0.15); }
.dock-dot.active-dot { width: 28px !important; }

/* ─── CTA Window ─────────────────────────────────────────────────── */
.cta-window {
    position: relative; border-radius: 32px; overflow: hidden; margin: 6rem 6vw; min-height: 550px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-elevation), var(--glass-reflection);
    background-color: #0e1726;
}
.cta-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: grayscale(20%) contrast(1.2); transition: transform 15s linear;
}
[data-theme="light"] .cta-bg { opacity: 0.7; filter: grayscale(10%) contrast(1.1); mix-blend-mode: normal; }
.cta-window:hover .cta-bg { transform: scale(1.05); }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,23,38,0.3) 0%, rgba(14,23,38,0.9) 100%); backdrop-filter: blur(4px); }
[data-theme="light"] .cta-overlay { background: linear-gradient(180deg, rgba(14,23,38,0.3) 0%, rgba(14,23,38,0.85) 100%); }
.cta-content { position: relative; z-index: 10; max-width: 750px; padding: 4rem 2rem; display: flex; flex-direction: column; align-items: center; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.1; margin-bottom: 24px; color: #ffffff; }
.cta-content p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 40px; font-weight: 300; color: rgba(255, 255, 255, 0.85); }

/* ─── CTA Urgency Pulse ──────────────────────────────────────────── */
@keyframes urgency-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(201, 169, 98, 0); }
}
.urgency-ring { animation: urgency-pulse 2.5s ease-in-out infinite; }

/* ─── Readiness SVG Trajectory Animations ────────────────────────── */
.path-draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s; }
.draw-active .path-draw { stroke-dashoffset: 0; }
[data-theme="light"] .path-draw { filter: none !important; }
.area-draw { clip-path: inset(0 100% 0 0); transition: clip-path 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s; }
.draw-active .area-draw { clip-path: inset(0 0 0 0); }

@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px rgba(201,169,98,0.5)); } 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 0px transparent); } }
.node-animate { opacity: 0; transform: scale(0); }
.draw-active .node-animate { animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.draw-active .node-delay-1 { animation-delay: 0.8s; } .draw-active .node-delay-2 { animation-delay: 1.4s; } .draw-active .node-delay-3 { animation-delay: 2.0s; }
@keyframes analytical-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: analytical-spin 15s linear infinite; transform-origin: center; }

/* ─── Readiness Bullet Hover Micro-Interactions ──────────────────── */
.readiness-bullet { transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), padding-left 0.3s ease; }
.readiness-bullet:hover { transform: translateX(6px); }
.readiness-bullet .bullet-dot { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.readiness-bullet:hover .bullet-dot { transform: scale(1.8); box-shadow: 0 0 8px var(--gold); }

/* ─── Form Elements ──────────────────────────────────────────────── */
.form-input {
    width: 100%; background: transparent; border: 1px solid var(--border-color);
    padding: 16px 20px; border-radius: 16px; font-size: 0.95rem; color: var(--text-main);
    font-family: var(--font-body); transition: all 0.3s ease; outline: none;
}
.form-input:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow);
}
.form-input::placeholder { color: var(--text-muted); }
[data-theme="light"] .form-input {
    background: #ffffff; border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .form-input:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(165,128,53,0.1);
}
.form-label {
    display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
select.form-input {
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
textarea.form-input { resize: vertical; min-height: 140px; }

/* Upload zone (for assess page) */
.upload-zone {
    border: 2px dashed var(--border-color); border-radius: 20px; padding: 3rem 2rem;
    text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--gold); background: rgba(201, 169, 98, 0.04);
}
[data-theme="light"] .upload-zone:hover, [data-theme="light"] .upload-zone.drag-over {
    background: rgba(201, 169, 98, 0.08);
}

/* ─── Team & Value Cards ─────────────────────────────────────────── */
.team-card, .value-card {
    background: var(--glass-bg); border: 1px solid var(--border-color);
    box-shadow: var(--shadow-elevation), var(--glass-reflection);
    backdrop-filter: blur(40px) saturate(150%); -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 24px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover, .value-card:hover { border-color: var(--gold); transform: translateY(-4px); }

/* ─── Counter Animation ──────────────────────────────────────────── */
.counter-value { display: inline-block; }

/* ─── Dual-Accent: Footer links hover blue in dark mode ──────────── */
:root:not([data-theme="light"]) footer .flex.flex-col.gap-3 a:hover { color: var(--blue) !important; }
:root:not([data-theme="light"]) footer .flex.gap-8 a:hover { color: var(--blue) !important; }

[data-theme="light"] footer input {
    background: #ffffff; border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] footer input:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(165, 128, 53, 0.1);
}

[data-theme="light"] .outcome-stat:hover { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .outcome-stat { border-color: rgba(0, 0, 0, 0.06) !important; }

/* ─── Scroll Progress Indicator ──────────────────────────────────── */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; z-index: 9998;
    background: linear-gradient(90deg, var(--gold), var(--blue));
    transform-origin: left; transform: scaleX(0);
}

/* ─── Custom Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

/* ─── Modal system (about, waitlist, etc.) ───────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: 24px;
    padding: 2.5rem; max-width: 600px; width: 100%; position: relative;
    backdrop-filter: blur(40px) saturate(150%);
    box-shadow: var(--shadow-elevation);
}
.modal-content h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 1rem; }
.modal-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.75rem; }
.modal-close {
    position: absolute; top: 16px; right: 16px; background: transparent; border: none;
    color: var(--text-muted); cursor: pointer; padding: 4px; transition: color 0.3s;
}
.modal-close:hover { color: var(--text-main); }

/* ─── Legal Page Tabs ────────────────────────────────────────────── */
.legal-tab {
    padding: 12px 28px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.04em; border: 1px solid var(--border-color);
    background: transparent; color: var(--text-muted); cursor: pointer;
    transition: all 0.3s ease;
}
.legal-tab.active {
    background: var(--text-main); color: var(--bg-color);
    border-color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.legal-tab:hover:not(.active) { border-color: var(--gold); color: var(--gold); }
.legal-content { display: none; }
.legal-content.active { display: block; }

/* ─── Assess Page ────────────────────────────────────────────────── */
.fc-input {
    width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color);
    padding: 14px 18px; border-radius: 14px; font-size: 0.95rem; color: var(--text-main);
    font-family: var(--font-body); transition: all 0.3s ease; outline: none;
}
.fc-input:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}
.fc-input::placeholder { color: var(--text-muted); }
[data-theme="light"] .fc-input {
    background: #ffffff; border-color: rgba(0,0,0,0.1);
}
.fc-label {
    display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.fc-input.error { border-color: #ef4444; }
