:root {
  --bg: #fafaf8;
  --bg-alt: #f2f0ec;
  --fg: #1a1a2e;
  --fg-muted: #64748b;
  --accent: #f5a623;
  --accent-dark: #d4900a;
  --up: #16a34a;
  --down: #dc2626;
  --spike: #f5a623;
  --card-bg: #ffffff;
  --border: #e2e0d8;
  --radius: 12px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--fg);
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); background: var(--bg-alt); }
.nav-link-cta {
  background: var(--fg);
  color: #fff !important;
  padding: 8px 16px;
}
.nav-link-cta:hover { background: #2d2d4a !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--fg); color: #fff; }
.btn-primary:hover { background: #2d2d4a; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--fg); }
.btn-large { font-size: 15px; padding: 14px 28px; border-radius: 12px; }

/* Hero */
.hero {
  padding: 140px 24px 80px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 24px; align-items: center; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.stat-label { font-size: 12px; color: var(--fg-muted); }
.stat-sep { width: 1px; height: 30px; background: var(--border); }

/* Treemap preview */
.treemap-preview {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 2fr 1fr 1fr;
  gap: 6px;
  height: 340px;
  background: #0f0f1a;
  border-radius: 16px;
  padding: 16px;
}
.t-cell {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
  cursor: default;
  transition: transform 0.15s;
}
.t-cell:hover { transform: scale(1.02); }
.t-large { grid-column: span 1; grid-row: span 2; }
.t-med { grid-column: span 1; grid-row: span 1; }
.t-small { grid-column: span 1; grid-row: span 1; }
.t-tall { grid-column: span 1; grid-row: span 2; }
.t-ticker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
.t-change { font-size: 13px; font-weight: 600; }

/* Demo section */
.demo-section {
  padding: 80px 24px;
  background: var(--bg-alt);
}
.demo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 16px;
}
.section-body { font-size: 16px; color: var(--fg-muted); line-height: 1.65; }

/* Full treemap */
.treemap-full {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #0f0f1a;
  border-radius: 16px;
  padding: 20px;
  height: 340px;
  align-content: flex-start;
}
.tf-cell {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-inner { display: flex; flex-direction: column; align-items: flex-start; padding: 12px; }
.tf-ticker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3px;
}
.tf-price { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 3px; }
.tf-change { font-size: 12px; font-weight: 700; }
.tf-change.up { color: #4ade80; }
.tf-change.down { color: #f87171; }
.tf-change.spike { color: #f5a623; }

.demo-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  justify-content: center;
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.up { background: #4ade80; }
.legend-dot.down { background: #f87171; }
.legend-dot.spike { background: #f5a623; }

/* Features */
.features { padding: 80px 24px; background: var(--bg); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.08);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* Platforms */
.platforms {
  padding: 60px 24px;
  background: var(--fg);
}
.platforms-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.platform-card { text-align: center; }
.platform-icon { color: var(--accent); margin-bottom: 12px; display: flex; justify-content: center; }
.platform-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.platform-desc { font-size: 13px; color: rgba(255,255,255,0.5); }
.platform-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.1); }

/* Closing */
.closing {
  padding: 100px 24px;
  background: var(--bg);
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}
.closing-sub { font-size: 18px; color: var(--fg-muted); margin-bottom: 36px; }
.closing-actions { display: flex; justify-content: center; }

/* Footer */
.footer {
  padding: 48px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--fg);
}
.footer-tagline { font-size: 13px; color: var(--fg-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.footer-link:hover { color: var(--fg); }
.footer-copy { font-size: 13px; color: var(--fg-muted); }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner, .demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .platforms-inner { flex-direction: column; }
  .platform-divider { width: 60px; height: 1px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .stat-sep { display: none; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}