/* Reqscan — design system */
:root {
  /* Ink Teal — committed direction */
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --bg-tint: #e2eaea;
  --line: #e3e7e6;
  --line-strong: #cfd5d4;
  --ink: #0a1a1f;
  --ink-2: #1a2a2f;
  --ink-3: #4a5a5f;
  --ink-4: #6a7a7f;
  --ink-5: #8a9a9f;
  --green: #0f4c5c;
  --green-ink: #093642;
  --green-soft: #dceaee;
  --green-tint: #ecf3f5;
  --accent: #2d8265;
  --accent-soft: #d8ebe2;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --rose: #b91c1c;
  --rose-soft: #fee2e2;
  --blue: #1e40af;
  --blue-soft: #dbeafe;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 0 rgba(12, 20, 16, 0.04), 0 1px 2px rgba(12, 20, 16, 0.04);
  --shadow: 0 1px 0 rgba(12, 20, 16, 0.04), 0 8px 24px rgba(12, 20, 16, 0.06);
  --shadow-lg: 0 1px 0 rgba(12, 20, 16, 0.04), 0 24px 48px rgba(12, 20, 16, 0.08);

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-tight { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* Type */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px; background: var(--green);
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-3); max-width: 56ch; }
.kicker { font-size: 13px; color: var(--ink-4); font-weight: 500; }
.mono { font-family: var(--mono); font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-radius: var(--r);
  font-weight: 550;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-5); }
.btn-link {
  color: var(--ink-2); padding: 0; background: transparent; border: 0;
}
.btn-link:hover { color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

.arrow::after { content: "→"; transition: transform .15s ease; }
.btn:hover .arrow::after { transform: translateX(2px); }

/* Surfaces */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card-soft {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
/* Theme variants */
[data-theme="teal"] {
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --bg-tint: #e2eaea;
  --line: #e3e7e6;
  --line-strong: #cfd5d4;
  --ink: #0a1a1f;
  --ink-2: #1a2a2f;
  --ink-3: #4a5a5f;
  --ink-4: #6a7a7f;
  --ink-5: #8a9a9f;
  --green: #0f4c5c;
  --green-ink: #093642;
  --green-soft: #dceaee;
  --green-tint: #ecf3f5;
  --accent: #2d8265;
  --accent-soft: #d8ebe2;
}
[data-theme="slate"] {
  --bg: #ffffff;
  --bg-soft: #f6f7f4;
  --bg-tint: #ebede5;
  --line: #e4e6dd;
  --line-strong: #d2d5c9;
  --ink: #1a1d18;
  --ink-2: #2c2f29;
  --ink-3: #525549;
  --ink-4: #71746a;
  --ink-5: #94978c;
  --green: #4d7c0f;
  --green-ink: #365510;
  --green-soft: #e7f0d4;
  --green-tint: #f1f5e6;
  --accent: #92400e;
  --accent-soft: #fde8c2;
}
[data-theme="indigo"] {
  --bg: #ffffff;
  --bg-soft: #f5f5f8;
  --bg-tint: #e6e6ef;
  --line: #e3e3ea;
  --line-strong: #cdcdd6;
  --ink: #15161e;
  --ink-2: #25262e;
  --ink-3: #4d4e58;
  --ink-4: #6c6d77;
  --ink-5: #8e8f99;
  --green: #3730a3;
  --green-ink: #281f7a;
  --green-soft: #e1e0f3;
  --green-tint: #eeedf7;
  --accent: #be185d;
  --accent-soft: #f9d6e3;
}

/* Section frame */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.section-tight { padding: 72px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }

/* Tag / pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}
.pill-green {
  background: var(--green-soft); color: var(--green-ink); border-color: #cce8d5;
}
.pill-amber { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }
.pill-rose { background: var(--rose-soft); color: var(--rose); border-color: #fecaca; }
.pill-blue { background: var(--blue-soft); color: var(--blue); border-color: #bfdbfe; }

/* Dot indicators */
.dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.dot-green { background: var(--green); }
.dot-amber { background: #d97706; }
.dot-rose { background: #dc2626; }
.dot-ink { background: var(--ink-4); }

/* Field row mock */
.field-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.field-row:last-child { border-bottom: 0; }
.field-key { color: var(--ink-4); font-family: var(--mono); font-size: 12px; }
.field-val { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 13px; }

/* Caret blink */
@keyframes caret { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--green); margin-left: 2px; transform: translateY(2px); animation: caret 1s steps(2, jump-none) infinite; }

/* Scan beam */
@keyframes scanbeam {
  0% { transform: translateY(-8%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(108%); opacity: 0; }
}
.scan-beam {
  position: absolute; left: 0; right: 0; height: 28px;
  background: linear-gradient(180deg, transparent, rgba(22,163,74,0.18), transparent);
  border-top: 1px solid rgba(22,163,74,0.5);
  border-bottom: 1px solid rgba(22,163,74,0.5);
  pointer-events: none;
}

/* Subtle paper texture for doc thumbnails */
.paper {
  background:
    repeating-linear-gradient(0deg, rgba(12,20,16,0.025) 0 1px, transparent 1px 14px),
    #fbfbf8;
}

/* Sticky nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600; font-size: 18px; letter-spacing: -0.035em;
  color: var(--ink);
}
.brand-mark {
  width: 26px; height: 26px;
  display: block;
  flex-shrink: 0;
}

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.text-3 { color: var(--ink-3); }
.text-4 { color: var(--ink-4); }
.text-5 { color: var(--ink-5); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  h1 { font-size: 40px; }
}
