/* visualizations.html page-specific styles - extracted from inline */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg: #000000;
  --bg-s: #0a0a0a;
  --bg-t: #111111;
  --bg-card: #0d0d0d;
  --text: #f0f0fa;
  --text-s: rgba(240,240,250,0.60);
  --text-m: rgba(240,240,250,0.40);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --accent: #FF6B2C;
  --accent-dim: rgba(255,107,44,0.12);
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body { font-family:'Inter',-apple-system,sans-serif; background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased; }

/* Nav */
.nav { position:fixed; top:0; left:0; right:0; z-index:1000; display:flex; align-items:center; justify-content:space-between; padding:0 32px; height:56px; background:rgba(0,0,0,0.85); backdrop-filter:blur(16px); border-bottom:1px solid var(--border); }
.nav-brand { display:flex; align-items:center; gap:10px; }
.nav-logo { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:14px; color:#000; background:var(--accent); padding:3px 8px; border-radius:4px; letter-spacing:1px; }
.nav-title { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px; letter-spacing:2px; color:var(--text); }
.nav-links { display:flex; gap:24px; align-items:center; }
.nav-links a { font-size:14px; font-weight:500; color:var(--text-s); text-decoration:none; transition:color .15s; }
.nav-links a:hover { color:var(--text); }
.nav-cta { background:var(--accent)!important; color:#000!important; padding:6px 16px; border-radius:6px; font-weight:600!important; font-size:13px!important; }
.nav-cta:hover { opacity:0.9; }

/* Hero */
.hero { padding:100px 24px 48px; text-align:center; border-bottom:1px solid var(--border); position:relative; }
.hero::before { content:''; position:absolute; top:50%; left:50%; width:600px; height:600px; transform:translate(-50%,-50%); background:radial-gradient(ellipse,rgba(255,107,44,0.04) 0%,transparent 70%); pointer-events:none; }
.hero h1 { font-family:'Space Grotesk',sans-serif; font-size:clamp(32px,4vw,48px); font-weight:800; margin-bottom:8px; letter-spacing:-0.03em; }
.hero p { font-size:17px; color:var(--text-s); max-width:600px; margin:0 auto; }

/* Container */
.container { max-width:1200px; margin:0 auto; padding:0 24px; }

/* Section */
.viz-section { padding:64px 0; border-bottom:1px solid var(--border); }
.viz-section:last-of-type { border-bottom:none; }
.viz-header { margin-bottom:32px; }
.viz-header h2 { font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:700; margin-bottom:4px; letter-spacing:-0.02em; }
.viz-header p { font-size:14px; color:var(--text-m); }
.section-eyebrow { font-size:11px; font-weight:600; letter-spacing:3px; text-transform:uppercase; color:var(--accent); margin-bottom:8px; }

/* Stat Cards Row */
.stat-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:48px; }
.stat-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:24px; text-align:center; transition:border-color .2s; }
.stat-card:hover { border-color:var(--border-hover); }
.stat-card .num { font-family:'Space Grotesk',sans-serif; font-size:36px; font-weight:800; line-height:1; }
.stat-card .label { font-size:12px; color:var(--text-m); text-transform:uppercase; letter-spacing:1.5px; margin-top:6px; font-weight:500; }

/* Heatmap */
#heatmap { width:100%; height:550px; border-radius:var(--radius); border:1px solid var(--border); overflow:hidden; }

/* Bar Charts */
.bar-chart { display:flex; flex-direction:column; gap:8px; }
.bar-row { display:flex; align-items:center; gap:12px; }
.bar-label { width:180px; font-size:13px; font-weight:500; text-align:right; flex-shrink:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text-s); }
.bar-track { flex:1; height:32px; background:var(--bg-t); border-radius:6px; overflow:hidden; position:relative; }
.bar-fill { height:100%; border-radius:6px; transition:width 1s cubic-bezier(.4,0,.2,1); display:flex; align-items:center; padding-left:10px; }
.bar-fill span { font-size:12px; font-weight:700; color:#fff; white-space:nowrap; }
.bar-count { width:36px; font-size:13px; font-weight:600; color:var(--text-s); text-align:left; flex-shrink:0; }

/* Treemap */
.treemap { display:grid; gap:4px; min-height:400px; }
.treemap-cell { border-radius:8px; padding:16px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; transition:opacity .15s, transform .15s; position:relative; overflow:hidden; }
.treemap-cell:hover { opacity:0.9; transform:scale(1.01); }
.treemap-cell .cell-icon { font-size:24px; }
.treemap-cell .cell-name { font-size:14px; font-weight:700; color:#fff; }
.treemap-cell .cell-count { font-size:12px; color:rgba(255,255,255,0.8); }
.treemap-cell .cell-pct { position:absolute; top:12px; right:14px; font-size:20px; font-weight:800; color:rgba(255,255,255,0.25); }

/* Bubble Grid (Valuations) */
.bubble-grid { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; justify-content:center; padding:20px 0; }
.bubble { border-radius:50%; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; transition:transform .2s; cursor:default; border:2px solid rgba(255,255,255,0.15); }
.bubble:hover { transform:scale(1.08); border-color:var(--accent); }
.bubble .b-name { font-size:10px; font-weight:700; color:#fff; line-height:1.2; padding:0 4px; }
.bubble .b-val { font-size:9px; color:rgba(255,255,255,0.8); }

/* Funding Pipeline */
.pipeline { display:flex; gap:2px; align-items:stretch; min-height:300px; }
.pipeline-col { flex:1; display:flex; flex-direction:column; align-items:center; }
.pipeline-bar { width:100%; border-radius:8px 8px 0 0; display:flex; align-items:flex-end; justify-content:center; padding-bottom:12px; transition:height 1s cubic-bezier(.4,0,.2,1); }
.pipeline-bar span { font-size:20px; font-weight:800; color:#fff; }
.pipeline-label { padding:12px 4px; text-align:center; }
.pipeline-label .p-stage { font-size:11px; font-weight:600; color:var(--text); }
.pipeline-label .p-count { font-size:10px; color:var(--text-m); margin-top:2px; }

/* City Grid */
.city-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.city-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px 20px; display:flex; align-items:center; gap:14px; transition:border-color .15s, box-shadow .15s; }
.city-card:hover { border-color:var(--border-hover); box-shadow:var(--shadow-md); }
.city-rank { font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:800; color:var(--text-m); width:32px; text-align:center; }
.city-card:nth-child(1) .city-rank { color:var(--accent); }
.city-card:nth-child(2) .city-rank { color:#60a5fa; }
.city-card:nth-child(3) .city-rank { color:#8b5cf6; }
.city-info .city-name { font-size:14px; font-weight:600; color:var(--text); }
.city-info .city-count { font-size:12px; color:var(--text-m); }

/* Footer */
.footer { background:var(--bg-s); border-top:1px solid var(--border); color:#fff; padding:32px 0; text-align:center; }
.footer p { font-size:13px; color:var(--text-m); }
.footer a { color:var(--text-s); text-decoration:none; }
.footer a:hover { color:var(--accent); }

/* Two column layout */
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:32px; }

/* Dark Leaflet overrides */
.leaflet-container { background:#0a0a0a !important; }
.leaflet-control-zoom a { background:rgba(20,20,20,0.9)!important; color:var(--text)!important; border-color:var(--border)!important; }
.leaflet-control-zoom a:hover { background:rgba(30,30,30,0.95)!important; }
.leaflet-control-attribution { background:rgba(0,0,0,0.7)!important; color:var(--text-m)!important; }
.leaflet-control-attribution a { color:var(--text-s)!important; }
.leaflet-popup-content-wrapper { background:var(--bg-t)!important; color:var(--text)!important; border-radius:8px!important; box-shadow:var(--shadow-md)!important; }
.leaflet-popup-tip { background:var(--bg-t)!important; }

/* Responsive */
/* Mobile menu & auth nav */
.mobile-menu-btn { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
.mobile-menu-btn span { display:block; width:20px; height:2px; background:var(--text); transition:transform .3s, opacity .3s; }
.mobile-menu-btn.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity:0; }
.mobile-menu-btn.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }
.nav-auth { display:flex; align-items:center; gap:8px; }
.nav-sign-in-btn { background:none; border:1px solid rgba(255,255,255,0.2); color:var(--text); padding:6px 14px; border-radius:6px; font-size:13px; font-weight:500; cursor:pointer; transition:border-color .2s; }
.nav-sign-in-btn:hover { border-color:var(--accent); }
.nav-signout-btn { background:none; border:1px solid rgba(255,255,255,0.15); color:var(--text-s); padding:4px 12px; border-radius:4px; font-size:12px; cursor:pointer; }
.nav-user { display:flex; align-items:center; gap:8px; }
.nav-user-email { color:var(--text-s); font-size:12px; }
.nav-links.open { display:flex!important; flex-direction:column; position:absolute; top:56px; left:0; right:0; background:rgba(0,0,0,0.95); padding:16px; gap:12px; border-bottom:1px solid var(--border); }

@media(max-width:768px) {
  .nav { padding:0 16px; }
  .nav-links { display:none; }
  .mobile-menu-btn { display:flex; }
  .hero { padding:80px 16px 40px; }
  .stat-row { grid-template-columns:repeat(2,1fr); }
  .two-col { grid-template-columns:1fr; }
  .bar-label { width:120px; font-size:11px; }
  .pipeline { flex-wrap:wrap; }
  .pipeline-col { min-width:60px; }
}

/* Scrollbar */
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.15); border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:rgba(255,255,255,0.25); }

/* Animate in */
.animate-in { opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.animate-in.visible { opacity:1; transform:translateY(0); }
