/* Bug Refinery — deployable static site styles.
   Dark developer/terminal theme matching the Airo preview:
   near-black background with a faint dotted grid, white headings,
   grey body copy, green // eyebrow labels, orange primary actions,
   thin-bordered dark cards, centred ~1150px column. */

:root {
  --bg: #0a0d12;
  --panel: #111826;
  --panel-2: #141c2b;
  --border: #253043;
  --text: #f2f5f9;
  --muted: #9aa7b8;
  --dim: #6b7a8f;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #facc15;
  --blue: #7aa2ff;
  --purple: #c792ea;
  --radius: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 13, 18, 0.94);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.logo svg { flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.main-nav a:hover { color: var(--text); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  background: var(--orange); color: #fff; font-family: var(--mono); font-weight: 700;
  padding: 11px 20px; border-radius: 8px; box-shadow: 0 0 24px rgba(249, 115, 22, 0.35);
}
.btn:hover { background: var(--orange-dark); }
.btn-small { padding: 9px 16px; }
.text-link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--orange); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-family: var(--mono); color: var(--green); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--mono); line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
h1 .accent, .stat-num { color: var(--orange); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 26px; }

/* Hero + code window */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.code-window { background: #0d1420; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); } .dot-yellow { background: var(--yellow); } .dot-green { background: var(--green); }
.code-bar span { margin-left: 8px; }
.code-window pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.65; color: #dbe4ef; }
.tok-kw { color: var(--purple); } .tok-str { color: var(--orange); } .tok-com { color: var(--green); } .tok-fn { color: var(--blue); }

.trust { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 26px; color: var(--dim); font-family: var(--mono); font-size: 0.9rem; }
.trust-names { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* Cards and grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card-core { border-color: rgba(249, 115, 22, 0.55); }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--orange); border: 1px solid rgba(249, 115, 22, 0.5); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
.tag-neutral { color: var(--muted); border-color: var(--border); }
.term { font-family: var(--mono); color: var(--green); font-size: 0.9rem; margin: 0 0 12px; }
.step-num { font-family: var(--mono); font-size: 2.6rem; color: #334155; line-height: 1; margin: 0 0 12px; }
.list-x, .list-check, .list-dash, .list-arrow { list-style: none; padding: 0; margin: 16px 0 0; }
.list-x li::before { content: "✗ "; color: var(--orange); font-weight: 700; }
.list-check li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.list-dash li::before { content: "— "; color: var(--muted); }
.list-arrow li::before { content: "→ "; color: var(--green); font-weight: 700; }
.list-x li, .list-check li, .list-dash li, .list-arrow li { margin-bottom: 8px; color: var(--muted); }
blockquote { margin: 0 0 16px; color: var(--text); font-style: italic; }
.stat-num { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); margin: 8px 0 0; }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.cta-card { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-decoration: none; }
.cta-card:hover { border-color: var(--orange); }
.cta-card strong { font-family: var(--mono); font-size: 1.2rem; display: block; margin-bottom: 6px; }
.cta-card span { color: var(--muted); }

/* Labs detail */
.lab-detail { margin-bottom: 28px; }
.lab-detail h2 { font-size: 1.5rem; }

/* Forms */
.form-wrap { max-width: 720px; }
form { margin-top: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: #0d1420; color: var(--text); font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--dim); font-size: 0.9rem; }
.form-success { display: none; background: #12291a; border: 1px solid var(--green); border-radius: 8px; padding: 16px 18px; margin-top: 20px; }
.form-success.visible { display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { font-family: var(--mono); color: var(--green); font-size: 0.9rem; margin-top: 28px; }

/* Cookie banner */
.cookie-banner { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; color: #111827; padding: 18px 24px; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35); }
.cookie-banner.visible { display: block; }
.cookie-inner { max-width: 1150px; margin: 0 auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-inner p { margin: 0; max-width: 820px; font-size: 0.92rem; }
.cookie-inner strong { display: block; font-size: 1rem; }
.cookie-actions { display: flex; gap: 12px; }
.btn-decline { background: var(--green); color: #052e16; box-shadow: none; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .grid-2, .cta-cards { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { justify-content: flex-start; }
}
