/* === TOKENS === */
:root {
  --bg: #080b10;
  --bg-card: #0f1520;
  --bg-card-hover: #141d2b;
  --fg: #e8edf5;
  --fg-muted: #6b7a8f;
  --teal: #00e5c3;
  --teal-dim: rgba(0, 229, 195, 0.12);
  --amber: #ffb224;
  --amber-dim: rgba(255, 178, 36, 0.12);
  --border: rgba(255,255,255,0.07);
  --border-card: rgba(0,229,195,0.15);
}

/* === RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,11,16,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { font-size: 1.25rem; color: var(--teal); }
.brand-name { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }
.nav-status { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,229,195,0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: rgba(0,229,195,0.2); border-color: rgba(0,229,195,0.4); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal); }
.status-text { font-size: 0.75rem; color: var(--fg-muted); font-family: 'DM Mono', monospace; }

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 2.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}
.hero-content {}
.hero-eyebrow { margin-bottom: 1.5rem; }
.eyebrow-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,229,195,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.headline-accent { color: var(--teal); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat {}
.stat-value { display: block; font-family: 'DM Mono', monospace; font-size: 1.5rem; font-weight: 500; color: var(--fg); }
.stat-label { font-size: 0.75rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* === DASHBOARD CARD === */
.hero-visual { display: flex; justify-content: center; }
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,195,0.05);
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.card-title { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; color: var(--fg-muted); }
.card-status { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; }
.card-status.live { color: var(--teal); }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.metric-block {}
.metric-label { display: block; font-size: 0.65rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; font-family: 'DM Mono', monospace; }
.metric-value { display: block; font-family: 'DM Mono', monospace; font-size: 1.25rem; font-weight: 500; }
.metric-value.teal { color: var(--teal); }
.metric-value.amber { color: var(--amber); }
.metric-sub { font-size: 0.65rem; color: var(--fg-muted); font-family: 'DM Mono', monospace; }
.metric-sub.teal { color: var(--teal); }
.mission-bar { background: rgba(0,229,195,0.06); border: 1px solid rgba(0,229,195,0.15); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.mission-label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.12em; color: var(--teal); display: block; margin-bottom: 0.5rem; }
.mission-progress { height: 3px; background: rgba(0,229,195,0.15); border-radius: 2px; margin-bottom: 0.35rem; }
.mission-fill { height: 100%; width: 35%; background: var(--teal); border-radius: 2px; }
.mission-status { font-size: 0.65rem; color: var(--fg-muted); font-family: 'DM Mono', monospace; }
.agent-stream { border-top: 1px solid var(--border); padding-top: 1rem; }
.stream-entry { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.6rem; font-family: 'DM Mono', monospace; font-size: 0.7rem; }
.stream-time { color: var(--fg-muted); flex-shrink: 0; }
.stream-agent { font-weight: 500; }
.stream-agent.teal { color: var(--teal); }
.stream-agent.amber { color: var(--amber); }
.stream-action { color: var(--fg-muted); }

/* === SIGNAL TICKER === */
.signal-ticker {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow: hidden;
  margin-bottom: 5rem;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--teal); padding: 0 1.5rem; }
.ticker-sep { color: var(--border); font-size: 0.75rem; }

/* === FEATURES === */
.features { max-width: 1280px; margin: 0 auto; padding: 5rem 2.5rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover { border-color: rgba(0,229,195,0.25); background: var(--bg-card-hover); }
.feature-icon { margin-bottom: 1.25rem; }
.feature-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.feature-desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.7; }

/* === COMMAND CENTER === */
.command-center { padding: 5rem 2.5rem; background: #060810; }
.cc-inner { max-width: 1280px; margin: 0 auto; }
.cc-label { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.cc-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1.25rem; }
.cc-desc { font-size: 1rem; color: var(--fg-muted); max-width: 480px; line-height: 1.7; margin-bottom: 3rem; }
.cc-mock {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0e16;
  max-width: 800px;
}
.mock-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: #0f1520; }
.mock-dots { display: flex; gap: 0.4rem; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-dots span:first-child { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:last-child { background: #28c840; }
.mock-url { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--fg-muted); }
.mock-body { display: grid; grid-template-columns: 140px 1fr; min-height: 300px; }
.mock-sidebar { background: #0c1019; border-right: 1px solid var(--border); padding: 1.25rem 0; }
.sidebar-item { padding: 0.6rem 1rem; font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--fg-muted); cursor: default; }
.sidebar-item.active { color: var(--teal); background: rgba(0,229,195,0.06); border-left: 2px solid var(--teal); }
.mock-main { padding: 1.25rem; }
.mock-metrics { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; }
.mock-metric {}
.mm-val { display: block; font-family: 'DM Mono', monospace; font-size: 1.1rem; font-weight: 500; }
.mm-val.teal { color: var(--teal); }
.mm-val.amber { color: var(--amber); }
.mm-label { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-chart { display: flex; align-items: flex-end; gap: 0.4rem; height: 80px; margin-bottom: 1rem; padding: 0 0.5rem; }
.chart-grid { display: flex; align-items: flex-end; gap: 4px; height: 100%; flex: 1; }
.chart-bar { flex: 1; background: linear-gradient(to top, rgba(0,229,195,0.4), rgba(0,229,195,0.15)); border-radius: 2px 2px 0 0; }
.chart-line { width: 100%; height: 1px; background: var(--teal); margin-bottom: 4px; position: relative; }
.chart-line::before { content: ''; position: absolute; left: 0; bottom: 0; width: 60%; height: 100%; background: linear-gradient(to right, var(--teal), transparent); }
.mock-stream { border-top: 1px solid var(--border); padding-top: 0.75rem; }
.ms-entry { font-family: 'DM Mono', monospace; font-size: 0.68rem; margin-bottom: 0.4rem; display: flex; gap: 0.6rem; align-items: baseline; }
.ms-time { color: var(--fg-muted); }
.ms-teal { color: var(--teal); font-weight: 500; }
.ms-amber { color: var(--amber); font-weight: 500; }

/* === CLOSING === */
.closing { padding: 7rem 2.5rem; text-align: center; }
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-hex { font-size: 3rem; color: var(--teal); margin-bottom: 2rem; opacity: 0.6; }
.closing-title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.5rem; }
.closing-sub { font-size: 1.05rem; color: var(--fg-muted); line-height: 1.7; }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 1.75rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 0.4rem; }
.footer-mark { font-size: 0.9rem; color: var(--teal); }
.footer-name { font-size: 0.85rem; font-weight: 600; }
.footer-note { font-size: 0.75rem; color: var(--fg-muted); font-family: 'DM Mono', monospace; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2rem; }
  .hero-visual { order: -1; }
  .dashboard-card { max-width: 100%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .mock-sidebar { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 2rem 1.25rem 1.5rem; }
  .features, .command-center { padding: 3rem 1.25rem; }
  .closing { padding: 4rem 1.25rem; }
}