@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap");

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0a0e1a;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #d9dee7;
  --line-2: #e8edf3;
  --teal: #0f766e;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --blue: #2563eb;
  --dark: #101828;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 360px),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, textarea, select { font: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: grid; gap: 2px; min-width: 0; text-decoration: none; }
.brand b { font-size: 16px; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a, .btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 0 13px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}
.btn.primary, .nav-links .primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}
.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 14px;
  align-items: stretch;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}
.hero-copy, .tool-card { padding: 20px; }
.eyebrow {
  font: 800 11px/1.2 var(--mono);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
h2 {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h3 { margin: 0 0 7px; font-size: 16px; }
p { margin: 0; color: var(--muted); line-height: 1.62; }
.lead { font-size: 17px; max-width: 780px; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal);
  border-radius: 999px;
  padding: 3px 8px;
  font: 800 10px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.console {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.panel-head {
  min-height: 48px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
}
.workflow-row, .signal-row, .result-row {
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 11px 12px;
  display: grid;
  gap: 5px;
}
.workflow-row { grid-template-columns: 30px 1fr; align-items: start; }
.workflow-row i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
  font: 900 11px/1 var(--mono);
  font-style: normal;
}
.workflow-row b, .signal-row b, .result-row b { display: block; font-size: 14px; }
.workflow-row span, .signal-row span, .result-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.tool-card textarea {
  width: 100%;
  min-height: 142px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: #ffffff;
}
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.scenario-buttons { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.scenario-buttons button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.metric {
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px;
}
.metric strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.metric span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.score-critical strong { color: var(--red); }
.score-high strong { color: var(--amber); }
.score-medium strong { color: var(--blue); }
.score-low strong { color: var(--teal); }
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.content-card {
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 14px;
}
.content-card ul, .content-card ol {
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.content-card li + li { margin-top: 6px; }
.section { margin-top: 14px; padding: 18px; }
.answer {
  margin-top: 13px;
  border-left: 3px solid var(--teal);
  background: #f8fffd;
  border-radius: 0 8px 8px 0;
  padding: 12px 13px;
  line-height: 1.58;
}
.faq-list { display: grid; gap: 10px; margin-top: 14px; }
.faq-item {
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 13px;
}
.link-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.link-strip a {
  text-decoration: none;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 5px;
}
.link-strip b { font-size: 13px; }
.link-strip span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.footer-note { color: var(--soft); font-size: 12px; line-height: 1.55; margin-top: 16px; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; display: grid; }
  .nav-links { justify-content: flex-start; }
  .hero-grid, .content-grid, .results-grid, .link-strip { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 1180px); padding-top: 14px; }
  .hero-copy, .tool-card, .section { padding: 15px; }
  h1 { font-size: clamp(31px, 10vw, 42px); }
  .nav-links a, .btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
}
