:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --border: #1a1a1a;
  --fg: #e8e8e8;
  --fg-muted: #888888;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.1);
  --accent-border: rgba(0, 255, 136, 0.25);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(16px);
  z-index: 100;
}
.nav-brand { font-family: var(--font-mono); font-size: 17px; font-weight: 700; letter-spacing: -0.5px; }
.nav-brand .accent { color: var(--accent); }
.nav-tag { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.5px; }

.section-label { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.5px; display: block; margin-bottom: 16px; }

/* HERO */
.hero { padding: 80px 48px; border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; max-width: 1200px; margin: 0 auto; }
.hero-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 1px; margin-bottom: 20px; }
.hero-headline { font-family: var(--font-mono); font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-sub { font-size: 17px; color: var(--fg-muted); line-height: 1.75; max-width: 420px; }

/* DASHBOARD MOCKUP */
.dash-mockup { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dash-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dash-dot:first-child { background: #ff5f56; }
.dash-dot:nth-child(2) { background: #ffbd2e; }
.dash-dot:nth-child(3) { background: #27c93f; }
.dash-title { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); margin-left: 8px; flex: 1; }
.dash-live { background: var(--accent); color: #000; font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: 0.5px; }
.dash-body { padding: 20px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dash-row:last-child { grid-template-columns: 2fr 1fr; margin-bottom: 0; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px; }
.dc-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.dc-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.dc-change { font-family: var(--font-mono); font-size: 11px; }
.dc-change.up { color: var(--accent); }
.dc-change.neutral { color: var(--fg-muted); }

/* CHART */
.dash-chart-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px; }
.bar-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 50px; }
.bar { flex: 1; background: var(--border); border-radius: 3px 3px 0 0; transition: background 0.2s; }
.bar.active { background: var(--accent); }
.bar-x { font-family: var(--font-mono); font-size: 9px; color: var(--fg-muted); margin-top: 6px; }

/* AGENTS */
.dash-agents { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 16px; }
.agents-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.agent-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; }
.agent-item:last-child { margin-bottom: 0; }
.agent-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-muted); }
.agent-dot.on { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.agent-item span:first-of-type { flex: 1; color: var(--fg); }
.agent-status { color: var(--fg-muted); font-size: 10px; }

/* CAPABILITIES */
.capabilities { padding: 96px 48px; border-bottom: 1px solid var(--border); }
.cap-header { max-width: 1200px; margin: 0 auto 56px; }
.cap-header h2 { font-family: var(--font-mono); font-size: clamp(24px, 3vw, 38px); font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.cap-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 28px; transition: border-color 0.2s; }
.cap-card:hover { border-color: var(--accent-border); }
.cap-icon { width: 38px; height: 38px; background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cap-card h3 { font-family: var(--font-mono); font-size: 14px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.cap-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 20px; }

/* CAP VIZ */
.cap-viz { border-top: 1px solid var(--border); padding-top: 16px; }

/* Automation viz */
.viz-step { display: flex; align-items: center; gap: 8px; }
.viz-arrow { width: 20px; height: 1px; background: var(--border); margin: 0 6px; position: relative; }
.viz-arrow::after { content: ''; position: absolute; right: -1px; top: -3px; border: 3px solid transparent; border-left: 5px solid var(--border); }
.viz-step { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); }
.vs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.vs-dot--active { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.vs-dot--done { background: var(--accent); opacity: 0.5; }
.cap-viz--automation { display: flex; align-items: center; gap: 0; }

/* Chart viz */
.chart-bars-sm { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.cbar { flex: 1; background: var(--border); border-radius: 2px 2px 0 0; }
.cbar--accent { background: var(--accent); }
.chart-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-top: 6px; }

/* Inbox viz */
.ibox-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ibox-item:last-child { margin-bottom: 0; }
.ibox-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); flex-shrink: 0; }
.ibox-lines { flex: 1; min-width: 0; }
.ibox-line { font-family: var(--font-mono); font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibox-line--bold { font-weight: 600; }
.ibox-line--dim { color: var(--fg-muted); }
.ibox-agent-badge { background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; flex-shrink: 0; }

/* PHILOSOPHY */
.philosophy { padding: 96px 48px; border-bottom: 1px solid var(--border); }
.philosophy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.philosophy-statement h2 { font-family: var(--font-mono); font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; line-height: 1.25; letter-spacing: -0.8px; margin-bottom: 20px; }
.philosophy-statement p { font-size: 15px; color: var(--fg-muted); line-height: 1.75; }

/* TERMINAL */
.terminal-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.terminal-header { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); margin-left: 8px; }
.terminal-body { padding: 20px 24px; font-family: var(--font-mono); font-size: 13px; line-height: 2; }
.t-line { display: flex; gap: 10px; }
.t-prompt { color: var(--accent); font-weight: 700; }
.t-result { color: var(--fg); font-weight: 500; }
.t-muted { color: var(--fg-muted); }
.t-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* STATS */
.grid-section { padding: 80px 48px; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; max-width: 1200px; margin: 32px auto 0; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.stat { background: var(--surface); padding: 40px 32px; text-align: center; }
.stat-number { font-family: var(--font-mono); font-size: clamp(36px, 4vw, 56px); font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-unit { font-size: 18px; color: var(--fg-muted); margin-left: 4px; }
.stat-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* CLOSING */
.closing { padding: 100px 48px; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing h2 { font-family: var(--font-mono); font-size: clamp(26px, 3.5vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -1px; margin-bottom: 24px; }
.closing p { font-size: 16px; color: var(--fg-muted); line-height: 1.75; }

/* FOOTER */
.footer { padding: 40px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.footer-brand { font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.footer-brand .accent { color: var(--accent); }
.footer-tag { font-size: 13px; color: var(--fg-muted); }
.footer-copy { margin-left: auto; font-size: 12px; color: var(--fg-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner, .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .cap-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 16px 24px; }
  .hero, .capabilities, .philosophy, .grid-section { padding: 64px 24px; }
  .closing { padding: 64px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-copy { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 28px; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::selection { background: var(--accent); color: #000; }