:root {
  --bg: #080C14;
  --bg-secondary: #0d1420;
  --surface: #111827;
  --border: #1e2a3a;
  --fg: #e2e8f0;
  --fg-dim: #8899aa;
  --green: #00E887;
  --green-dim: rgba(0, 232, 135, 0.15);
  --yellow: #F59E0B;
  --yellow-dim: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Jost', 'DM Sans', sans-serif;
  --max-w: 1100px;
}

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

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

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

/* NAV */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  padding: 80px 48px 96px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0,232,135,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 20px;
  width: fit-content;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
h1 {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-lede {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
}
.metric-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  display: block;
}
.metric-label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  display: block;
}
.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* TERMINAL */
.terminal-window {
  background: #0d1420;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.tb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tb.red { background: #FF5F56; }
.tb.yellow { background: #FFBD2E; }
.tb.green { background: #27C93F; }
.tb-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
}
.t-line { white-space: pre; }
.t-green { color: #00E887; }
.t-yellow { color: #F59E0B; }
.t-gray { color: var(--fg-dim); }
.t-dim { color: #4a5568; }
.t-spacer { height: 12px; }

/* HOW IT WORKS */
.how-it-works {
  background: var(--bg-secondary);
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--fg-dim);
  font-size: 0.95rem;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
  gap: 0;
}
.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0,232,135,0.2);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.step h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step p {
  color: var(--fg-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}
.step-connector {
  padding: 0 20px;
  flex-shrink: 0;
}

/* DASHBOARD */
.dashboard {
  padding: 80px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.dashboard-mock {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.dash-sidebar {
  background: #090e18;
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--fg);
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dash-nav-item {
  font-size: 0.8rem;
  color: var(--fg-dim);
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.dash-nav-item.active {
  background: var(--green-dim);
  color: var(--green);
  font-weight: 600;
}
.dash-content { padding: 20px; }
.dash-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}
.dash-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0,232,135,0.2);
  border-radius: 10px;
  padding: 2px 8px;
}
.pr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.pr-row:hover { background: rgba(255,255,255,0.03); }
.status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.status-icon.merged { background: var(--green-dim); color: var(--green); }
.status-icon.flagged { background: var(--yellow-dim); color: var(--yellow); }
.pr-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg);
  font-weight: 500;
}
.pr-meta {
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-top: 2px;
}
.pr-verdict { margin-left: auto; }
.badge-merged {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0,232,135,0.2);
  border-radius: 4px;
  padding: 3px 8px;
}
.badge-flagged {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 4px;
  padding: 3px 8px;
}

/* PRINCIPLES */
.principles { padding: 80px 48px; background: var(--bg-secondary); }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.principle {
  background: var(--surface);
  padding: 36px 32px;
}
.principle-icon {
  width: 44px;
  height: 44px;
  background: var(--green-dim);
  border: 1px solid rgba(0,232,135,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.principle h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.principle p {
  color: var(--fg-dim);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* CLOSING */
.closing {
  padding: 100px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.closing h2 {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.closing p {
  color: var(--fg-dim);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--fg);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .steps { flex-direction: column; gap: 16px; }
  .step-connector { transform: rotate(90deg); padding: 0; }
  .principles-grid { grid-template-columns: 1fr; }
  .dashboard-mock { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
}
@media (max-width: 600px) {
  .navbar, .hero, .how-it-works, .dashboard, .principles, .closing { padding-left: 24px; padding-right: 24px; }
  footer { padding: 24px; }
  h1 { font-size: 1.8rem; }
  .hero-metrics { flex-direction: column; align-items: flex-start; gap: 12px; }
  .metric-divider { display: none; }
}