*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #07080f;
  --surface: #0f111a;
  --surface-2: #161925;
  --border: #252a3a;
  --text: #e8eaf4;
  --muted: #8b93ad;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Consolas", monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 15, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.mark-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: #fff;
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  text-decoration: none;
}

.dashboard-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
}

.preview-dot:nth-child(1) { background: #ef4444; }
.preview-dot:nth-child(2) { background: var(--amber); }
.preview-dot:nth-child(3) { background: var(--green); }

.preview-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.preview-body {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.stat-delta {
  font-family: var(--mono);
  font-size: 0.65rem;
  margin: 0.25rem 0 0;
}

.stat-delta.up { color: var(--green); }
.stat-delta.down { color: #f87171; }

.chart-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.chart-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 4.5rem;
}

.bar {
  flex: 1;
  border-radius: 0.2rem 0.2rem 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, 0.2));
  min-height: 0.5rem;
}

.bar:nth-child(odd) {
  background: linear-gradient(180deg, var(--purple), rgba(168, 85, 247, 0.2));
}

.bar:nth-child(1) { height: 45%; }
.bar:nth-child(2) { height: 72%; }
.bar:nth-child(3) { height: 58%; }
.bar:nth-child(4) { height: 91%; }
.bar:nth-child(5) { height: 63%; }
.bar:nth-child(6) { height: 48%; }
.bar:nth-child(7) { height: 80%; }
.bar:nth-child(8) { height: 55%; }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.metric {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1.25rem;
}

.card-icon {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trace-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  overflow: hidden;
  margin-bottom: 3rem;
}

.trace-row {
  display: grid;
  grid-template-columns: 5rem 1fr 4rem 4rem;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.trace-row:last-child {
  border-bottom: none;
}

.trace-row span:nth-child(1) { color: var(--muted); }
.trace-row span:nth-child(3) { color: var(--green); text-align: right; }
.trace-row span:nth-child(4) { color: var(--cyan); text-align: right; }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.narrow {
  max-width: 42rem;
}

.narrow h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.narrow h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.narrow p,
.narrow li {
  color: var(--muted);
}

.bench-list {
  padding-left: 0;
  list-style: none;
}

.bench-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.bench-list code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .trace-row {
    grid-template-columns: 4rem 1fr;
  }

  .trace-row span:nth-child(3),
  .trace-row span:nth-child(4) {
    display: none;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
