/* =========================================================================
   BugReportAI — public site
   Visual language: a code review / terminal aesthetic, because that's
   literally what the product produces (diffs, PRs). Warm paper white +
   near-black ink + one amber accent — deliberately not purple/blue,
   deliberately not glassy or blobby. Flat surfaces, hairline borders,
   real product mockups instead of icon grids or stock illustration.
   ========================================================================= */
:root {
  --bg: #faf9f6;
  --ink: #14120f;
  --ink-soft: #1c1a17;
  --surface: #ffffff;
  --border: #e6e1d6;
  --border-dark: #2c2a26;
  --text: #1a1815;
  --muted: #6f6a5f;
  --muted-dark: #a39d8e;

  --accent: #b45309;
  --accent-dark: #92400e;
  --accent-tint: #fbeee0;

  --diff-add: #1a7f37;
  --diff-add-bg: #eaf6ee;
  --diff-del: #cf222e;
  --diff-del-bg: #fdeeee;

  --radius: 6px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }

/* ================= Nav — flat, hairline border, no blur ================= */
nav { background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; font-family: var(--mono); }
.logo-mark { width: 22px; height: 22px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ================= Buttons — flat, small radius, no glow ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
  border-radius: var(--radius);
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }

/* ================= Hero — asymmetric two-column, not centered ================= */
.hero {
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-dark);
  background: var(--accent-tint); padding: 5px 10px; border-radius: 4px;
  margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.18;
  margin-bottom: 20px;
  max-width: 20ch;
}
.hero p { font-size: 16.5px; color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; }
.hero-note { font-size: 13px; color: var(--muted-dark); }

/* ── Hero visual: a real diff mockup, not abstract art ── */
.diff-window {
  background: var(--ink); border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  border: 1px solid var(--border-dark);
}
.diff-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--ink-soft);
  border-bottom: 1px solid var(--border-dark);
}
.diff-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3733; }
.diff-filename { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted-dark); }
.diff-body { font-family: var(--mono); font-size: 12.5px; line-height: 1.85; padding: 4px 0; }
.diff-line { padding: 1px 16px; white-space: pre; color: #d8d4c9; }
.diff-line.add { background: rgba(63, 185, 80, .13); color: #7ee2a8; }
.diff-line.add::before { content: '+ '; color: #56d364; }
.diff-line.del { background: rgba(248, 81, 73, .13); color: #ffa19c; }
.diff-line.del::before { content: '- '; color: #f85149; }
.diff-line.ctx { color: #8b877d; }
.diff-line.ctx::before { content: '  '; }
.diff-meta { padding: 10px 16px 14px; border-top: 1px solid var(--border-dark); }
.diff-meta-title { font-size: 13px; color: #d8d4c9; font-weight: 600; margin-bottom: 3px; }
.diff-meta-sub { font-size: 11.5px; color: var(--muted-dark); font-family: var(--mono); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 40px; }
}

/* ================= Sections ================= */
.pub-section { padding: 60px 0; border-top: 1px solid var(--border); }
.section-label { font-family: var(--mono); font-size: 12.5px; color: var(--accent-dark); margin-bottom: 10px; }
.pub-section h2 { font-size: 26px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.015em; max-width: 30ch; }
.pub-section .lede { font-size: 15.5px; color: var(--muted); max-width: 56ch; margin-bottom: 8px; }

/* ================= Pipeline — a connected sequence, not a 4-up icon grid ================= */
.pipeline { margin-top: 48px; }
.pipeline-step {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  padding: 36px 0; border-top: 1px solid var(--border);
  align-items: start;
}
.pipeline-step:first-child { border-top: none; padding-top: 8px; }
.pipeline-index { font-family: var(--mono); font-size: 13px; color: var(--muted-dark); margin-bottom: 8px; }
.pipeline-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.pipeline-step p { font-size: 14.5px; color: var(--muted); max-width: 42ch; }
.pipeline-visual { min-width: 0; }

/* small UI mockup pieces reused inside the pipeline */
.mock-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mock-card-header { padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 12px; font-family: var(--mono); color: var(--muted); background: #f5f3ee; }
.mock-card-body { padding: 16px; }
.mock-field { margin-bottom: 12px; }
.mock-field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.mock-field .val { font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; background: #fcfbf8; color: var(--text); }
.mock-filelist { font-family: var(--mono); font-size: 12.5px; }
.mock-file { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--muted); }
.mock-file.picked { color: var(--text); font-weight: 600; }
.mock-file .chk { width: 13px; height: 13px; border: 1.5px solid var(--border); border-radius: 3px; flex-shrink: 0; }
.mock-file.picked .chk { background: var(--accent); border-color: var(--accent); }
.mock-btn-row { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--border); background: #f5f3ee; }

@media (max-width: 780px) {
  .pipeline-step { grid-template-columns: 1fr; gap: 18px; }
}

/* ================= Two-column plain-text section (breaks the icon-grid pattern) ================= */
.split-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.split-copy h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.split-copy p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 780px) { .split-copy { grid-template-columns: 1fr; gap: 32px; } }

/* ================= Closing CTA — left-aligned terminal prompt, not a centered gradient band ================= */
.cta-section { background: var(--ink); color: #efece4; padding: 72px 0; }
.cta-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cta-section h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; max-width: 22ch; }
.cta-section p { color: #a39d8e; font-size: 15px; margin-bottom: 26px; max-width: 40ch; }
.terminal {
  background: var(--ink-soft); border: 1px solid var(--border-dark); border-radius: 8px;
  font-family: var(--mono); font-size: 13px; padding: 18px 20px; color: #d8d4c9;
}
.terminal .prompt { color: var(--accent); }
.terminal .line { padding: 3px 0; }
.terminal .out { color: #8b877d; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ================= Pricing ================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.pricing-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.pricing-card.featured { border-color: var(--ink); }
.pricing-tag { font-family: var(--mono); font-size: 11.5px; color: var(--accent-dark); margin-bottom: 12px; }
.pricing-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.pricing-price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 6px; }
.pricing-price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.pricing-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.pricing-features { list-style: none; margin-bottom: 26px; }
.pricing-features li { font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--border); display: flex; gap: 9px; align-items: flex-start; }
.pricing-features li:first-child { border-top: none; }
.pricing-features li::before { content: '+'; color: var(--diff-add); font-weight: 700; font-family: var(--mono); flex-shrink: 0; }

/* ================= Footer ================= */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: 13.5px; color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; font-family: var(--mono); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
