:root {
  --bg: #080c10;
  --bg-card: #0e1419;
  --bg-card-hover: #121a22;
  --fg: #e2efe8;
  --fg-muted: #7a9082;
  --accent: #00e5a0;
  --accent-dim: #00b87f;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --red: #ff5f5f;
  --yellow: #ffd60a;
  --border: #1c2b24;
  --code-bg: #0d1a12;

  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
}

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

html { 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;
}

/* ── Navbar ───────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  font-size: 20px;
  color: var(--accent);
}
.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 80px 48px 100px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  color: var(--border);
  font-size: 20px;
}

/* ── Terminal ─────────────────────────────────────── */
.hero-terminal {
  width: 100%;
}
.terminal-window {
  background: #060a0e;
  border: 1px solid #1e3529;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 229, 160, 0.08), 0 20px 60px rgba(0,0,0,0.6);
}
.terminal-header {
  background: #0c1510;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #1e3529;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f5f; }
.dot-yellow { background: #ffd60a; }
.dot-green { background: #00e5a0; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}
.log-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}
.log-ts {
  color: #3a5c4a;
  flex-shrink: 0;
}
.log-label {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.08em;
}
.log-label-scan { background: #0f2018; color: var(--accent-dim); }
.log-label-issue { background: #1f0f0f; color: var(--red); }
.log-label-fix { background: #001f12; color: var(--accent); }
.log-label-info { background: #0f1820; color: #5a9ab0; }
.log-path { color: #8ab09a; }
.log-msg { color: #c0d8c4; }
.log-divider {
  border-top: 1px solid var(--border);
  margin: 4px 0;
}
.log-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Review Loop ───────────────────────────────────── */
.review-loop {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 52px;
  max-width: 600px;
}
.bottleneck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto 60px;
}
.bottleneck-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px;
  transition: background 0.2s;
}
.bottleneck-card:hover { background: var(--bg-card-hover); }
.bneck-icon {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1;
}
.bottleneck-card h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.bottleneck-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.loop-cta {
  text-align: center;
}
.loop-text {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}

/* ── How It Works ─────────────────────────────────── */
.how-it-works {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  align-items: start;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: #0f2018;
  line-height: 1;
  padding-top: 4px;
  user-select: none;
}
.step-body {
  padding-bottom: 52px;
}
.step-body h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-body p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
}
.step-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-dim) 0%, transparent 100%);
  margin-left: 39px;
  margin-bottom: 12px;
}

/* ── Open PRs ─────────────────────────────────────── */
.open-prs {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.open-prs-text {
  margin-top: 48px;
}
.open-prs-text h2 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}
.open-prs-text p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 12px;
}

/* ── PR Demo ──────────────────────────────────────── */
.pr-demo-wrapper {
  background: #060a0e;
  border: 1px solid #1e3529;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 48px;
  max-width: 760px;
  box-shadow: 0 0 40px rgba(0, 229, 160, 0.06);
}
.pr-diff-header {
  background: #0c1510;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e3529;
  font-family: var(--font-mono);
  font-size: 12px;
}
.pr-number {
  font-weight: 700;
  color: var(--accent);
}
.pr-meta {
  color: var(--fg-muted);
}
.pr-badge {
  margin-left: auto;
  background: #001f12;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}
.pr-diff-body {
  padding: 4px 0;
}
.diff-table {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.diff-row {
  display: flex;
  align-items: stretch;
  padding: 4px 0;
}
.diff-line-num {
  width: 40px;
  text-align: right;
  padding-right: 16px;
  color: #2a4035;
  flex-shrink: 0;
  line-height: 1.6;
  font-size: 11px;
}
.diff-sign {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}
.diff-sign-del { color: var(--red); }
.diff-sign-add { color: var(--accent); }
.diff-sign-cx { color: #2a4035; }
.diff-code {
  flex: 1;
  padding: 0 16px 0 8px;
  line-height: 1.6;
}
.diff-code-ctx { opacity: 0.5; }
.diff-row-removed {
  background: rgba(255, 95, 95, 0.04);
}
.diff-row-added {
  background: rgba(0, 229, 160, 0.04);
  border-top: 1px solid rgba(0, 229, 160, 0.1);
}
.code-kw { color: #5a9ab0; }
.code-var { color: #c0d8c4; }
.code-op { color: #7a9082; }
.code-str { color: #ff9b71; }
.code-danger { color: var(--red); text-decoration: underline; text-decoration-style: wavy; }
.code-comment { color: #4a6a58; }

/* ── PR Comment ───────────────────────────────────── */
.pr-comment {
  border-top: 1px solid #1e3529;
  padding: 20px;
}
.pr-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #001f12;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--accent-dim);
}
.comment-author {
  font-weight: 600;
  color: var(--fg);
}
.comment-time {
  color: var(--fg-muted);
  font-size: 11px;
}
.pr-comment-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.pr-comment-body strong {
  color: var(--red);
}
.pr-comment-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #0d1a12;
  color: #c0d8c4;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Manifesto ────────────────────────────────────── */
.manifesto {
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-text {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 2;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}
.manifesto-signature {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sig-brand {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.sig-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  padding: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-icon {
  font-size: 16px;
  color: var(--accent);
}
.footer-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}
.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  text-align: right;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .nav-tagline { display: none; }

  .hero { padding: 60px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-terminal { order: -1; }

  .review-loop, .how-it-works, .open-prs { padding: 80px 24px; }
  .bottleneck-grid { grid-template-columns: 1fr; }

  .manifesto { padding: 80px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-copy { text-align: center; }

  .hero-stats { flex-wrap: wrap; }
}
