/* OpsTech, shared design tokens & components for secondary pages.
   The homepage (index.html) is fully standalone and does NOT load this file. */

:root {
  --bg:        oklch(97% 0.018 70);
  --surface:   oklch(99% 0.008 70);
  --paper:     oklch(100% 0 0);
  --fg:        oklch(18% 0.02 50);
  --fg-soft:   oklch(28% 0.02 50);
  --muted:     oklch(48% 0.018 55);
  --muted-2:   oklch(62% 0.014 60);
  --border:    oklch(89% 0.014 70);
  --border-2:  oklch(82% 0.016 70);

  --accent:    oklch(35% 0.14 255);
  --accent-2:  oklch(45% 0.16 255);
  --accent-soft: oklch(94% 0.028 255);
  --accent-ink: oklch(22% 0.10 255);

  --signal:    oklch(86% 0.18 95);
  --signal-2:  oklch(78% 0.18 90);
  --signal-soft: oklch(96% 0.06 95);
  --signal-ink: oklch(38% 0.14 90);

  --ok:   oklch(52% 0.13 155);
  --warn: oklch(58% 0.16 50);

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --r-sm: 4px;
  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* Type primitives */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow.muted { color: var(--muted); }
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--fg);
  text-wrap: balance;
}
h1.display { font-size: clamp(36px, 5.4vw, 64px); }
h2.display { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; }
h3.display { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.15; font-weight: 600; }
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 60ch;
  text-wrap: pretty;
}
.num-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tight { padding: clamp(32px, 5vw, 56px) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-link { padding: 0; color: var(--accent); border: 0; background: transparent; font-weight: 500; }
.btn-link:hover { color: var(--accent-ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Top nav */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--fg); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
}
.brand-name { font-size: 17px; }
.brand-name b { font-weight: 600; }
.brand-mono { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--fg-soft); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.current { color: var(--fg); font-weight: 500; }
.nav-links a.current::before { content: "·"; color: var(--accent); margin-right: 4px; }
.top-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* Page header (sub-page hero) */
.subhero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
}
.subhero .crumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px;
}
.subhero .crumb a:hover { color: var(--accent); }
.subhero h1 { margin: 0 0 18px; max-width: 22ch; }
.subhero .lede { max-width: 64ch; }
.subhero-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: end;
}
@media (max-width: 880px) { .subhero-grid { grid-template-columns: 1fr; } }

/* Section header */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } }
.section-head .right { color: var(--muted); font-size: 15px; max-width: 50ch; }

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  margin-top: clamp(48px, 6vw, 80px);
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 24px; max-width: 36ch; line-height: 1.5; }
.foot-trust { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.foot-trust span { display: inline-flex; align-items: center; gap: 8px; }
.foot-trust span::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 999px; }
.foot-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--fg-soft); }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px;
  color: var(--muted); font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.06em;
}
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--fg); }

/* Card primitive */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card.flush { padding: 0; }
.surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark { background: var(--fg); color: oklch(96% 0.005 60); }
.dark .eyebrow { color: var(--signal); }
.dark .display { color: #fff; }
.dark .lede { color: oklch(82% 0.02 60); }

/* Mini sale / tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px;
  border: 1px solid var(--border-2);
  padding: 4px 9px; border-radius: 999px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.tag.signal { border-color: var(--signal-2); background: var(--signal-soft); color: var(--signal-ink); }
.tag.accent { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-ink); }

/* List with mono prefix */
.mono-list { list-style: none; padding: 0; margin: 0; }
.mono-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  color: var(--fg-soft);
}
.mono-list li:last-child { border-bottom: 0; }
.mono-list li span.t { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
