/* ============================================================
   COLDSILVER — design system  ·  "Control Room"
   Instrument-grade dark. One signal accent (run-green).
   Honesty motif: the audit log. green = auto · amber = human.
   Author intuition build — 2026-06-07
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;450;500;600;700&display=swap');

:root {
  /* ---- surfaces (near-black, faint cool) ---- */
  --bg:        #07090c;
  --bg-1:      #0a0d11;
  --bg-2:      #0e1217;
  --panel:     #0f141a;
  --panel-2:   #131922;
  --raised:    #182029;

  /* ---- hairlines / edges ---- */
  --line:      rgba(155, 178, 200, 0.10);
  --line-2:    rgba(155, 178, 200, 0.17);
  --line-soft: rgba(155, 178, 200, 0.055);
  --edge-hi:   rgba(255, 255, 255, 0.055);

  /* ---- text ---- */
  --ink:       #eef2f6;
  --ink-2:     #9aa6b3;
  --ink-3:     #69737f;
  --ink-4:     #454e58;

  /* ---- silver (material, not rainbow) ---- */
  --silver-1:  #f4f7fa;
  --silver-2:  #cdd5dd;
  --silver-3:  #9aa3ad;

  /* ---- signal accents ---- */
  --run:       #5fe3a1;   /* live · auto-resolved · 200 OK · money moved once */
  --run-dim:   #2f8f63;
  --run-deep:  #07251a;
  --human:     #f0b366;   /* escalated to a human · exception · needs-owner */
  --human-dim: #9c7437;
  --ice:       #79d7e8;   /* secondary / data */
  --danger:    #f0796b;

  /* ---- type ---- */
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* ---- layout ---- */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 13px;
  --radius-sm: 9px;
  --radius-lg: 18px;

  --shadow: 0 1px 0 var(--edge-hi) inset, 0 24px 60px -28px rgba(0,0,0,0.8);
  --glow-run: 0 0 0 1px rgba(95,227,161,0.30), 0 0 30px -8px rgba(95,227,161,0.40);
}

/* ============================================================ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: rgba(95,227,161,0.26); color: #fff; }

/* ambient: faint dot-grid + cool vignette. restrained, not glowy. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 680px at 82% -10%, rgba(95,227,161,0.045), transparent 60%),
    radial-gradient(1100px 720px at 4% 2%, rgba(121,215,232,0.035), transparent 55%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-soft) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(1200px 820px at 50% -2%, #000 0%, transparent 76%);
          mask-image: radial-gradient(1200px 820px at 50% -2%, #000 0%, transparent 76%);
  opacity: 0.6;
}

/* ============================================================ layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(60px, 9vw, 124px); }
.section--tight { padding-block: clamp(46px, 6.5vw, 80px); }
.hr { height: 1px; background: var(--line); border: 0; }

/* ============================================================ type */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.display { font-size: clamp(2.55rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.99; }
.h2 { font-size: clamp(1.85rem, 3.5vw, 2.9rem); letter-spacing: -0.032em; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -0.022em; }

.lead { font-size: clamp(1.04rem, 1.45vw, 1.27rem); line-height: 1.58; color: var(--ink-2); font-weight: 450; }
.muted { color: var(--ink-3); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* run-green word highlight in a headline (replaces metallic sheen) */
.sig { color: var(--run); }
.sig-ice { color: var(--ice); }

/* mono system-voice eyebrow — reads like a spec section marker */
.eyebrow {
  font-family: var(--mono); font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--run); display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: "//"; color: var(--ink-4); }
.eyebrow--human { color: var(--human); }
.eyebrow--plain::before { content: none; }
.kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-3); }

/* numbered section head (§01 etc.) */
.section-head { max-width: 740px; }
.section-head .h2 { margin-top: 15px; }
.section-head .lead { margin-top: 16px; }

/* ============================================================ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 0.76em 1.2em; border-radius: 10px; border: 1px solid transparent;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--run); outline-offset: 3px; }

.btn--primary {
  color: #06140d;
  background: linear-gradient(180deg, #8ff0c2 0%, #5fe3a1 52%, #46cf8d 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 12px 30px -12px rgba(95,227,161,0.55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 18px 40px -12px rgba(95,227,161,0.75); }

.btn--ghost { color: var(--ink); background: rgba(255,255,255,0.022); border-color: var(--line-2); }
.btn--ghost:hover { border-color: rgba(95,227,161,0.5); background: rgba(95,227,161,0.06); transform: translateY(-1px); }

.btn--steel {
  color: #0a0e12;
  background: linear-gradient(180deg, #ffffff 0%, #d4dbe2 50%, #b7c0c9 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 12px 28px -14px rgba(150,170,190,0.5);
}
.btn--steel:hover { transform: translateY(-1px); }

.btn--lg { padding: 0.92em 1.45em; font-size: 1.0rem; }

/* text link with arrow + underline that lights up */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; color: var(--ink); font-size: 0.96rem;
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.tlink .arr { transition: transform .2s; }
.tlink:hover { color: var(--run); border-color: rgba(95,227,161,0.6); }
.tlink:hover .arr { transform: translateX(3px); }

/* ============================================================ pills / dots / tags */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.03em;
  padding: 0.42em 0.72em; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.022); color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--run); flex: none; }
.dot--live { animation: pulse 2.2s infinite; }
.dot--human { background: var(--human); }
.dot--ice { background: var(--ice); }
.dot--idle { background: var(--ink-4); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(95,227,161,0.5);} 70%{ box-shadow: 0 0 0 7px rgba(95,227,161,0);} 100%{ box-shadow:0 0 0 0 rgba(95,227,161,0);} }

.tag {
  font-family: var(--mono); font-size: 0.69rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); padding: 0.3em 0.58em; border: 1px solid var(--line); border-radius: 6px;
}

/* ============================================================ cards / panels */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--edge-hi) inset;
}
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(24,32,41,0.55), rgba(15,20,26,0.55));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.3vw, 27px);
  box-shadow: 0 1px 0 var(--edge-hi) inset;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), border-color .22s, box-shadow .22s;
  overflow: hidden;
}
.card::after {
  content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  background: radial-gradient(440px 220px at var(--mx,80%) -12%, rgba(95,227,161,0.09), transparent 62%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 1px 0 var(--edge-hi) inset, 0 28px 54px -30px rgba(0,0,0,0.85); }
.card:hover::after { opacity: 1; }

/* feature icon tile (geometric, stroked, no emoji) */
.tile {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(95,227,161,0.15), rgba(121,215,232,0.08));
  border: 1px solid var(--line-2);
}
.tile svg { width: 19px; height: 19px; stroke: var(--silver-2); stroke-width: 1.5; fill: none; }
.tile--human { background: linear-gradient(160deg, rgba(240,179,102,0.16), rgba(240,179,102,0.05)); }

/* ============================================================ engineered tick list */
.ticks { list-style: none; padding: 0; display: grid; gap: 0.8em; }
.ticks li { position: relative; padding-left: 1.7em; color: var(--ink-2); line-height: 1.52; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border: 1px solid var(--run); border-radius: 2px;
  background: linear-gradient(135deg, rgba(95,227,161,0.5), transparent);
}
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks--human li::before { border-color: var(--human); background: linear-gradient(135deg, rgba(240,179,102,0.5), transparent); }

/* ============================================================ stat */
.stat__n { font-family: var(--sans); font-weight: 600; font-size: clamp(2.1rem, 3.8vw, 3rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); letter-spacing: 0.03em; margin-top: 0.7em; line-height: 1.45; }

/* ============================================================ header / nav */
.site-head {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-head.is-stuck {
  background: rgba(7,9,12,0.74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6em; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.025em; }
.brand .mark { width: 25px; height: 25px; flex: none; }
.brand .stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--run); margin-left: 1px; animation: pulse 2.2s infinite; }
.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-links a {
  font-size: 0.93rem; font-weight: 500; color: var(--ink-2);
  padding: 0.5em 0.8em; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { content:""; display:block; height:1.5px; background: var(--run); margin-top: 3px; border-radius:2px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); align-items:center; justify-content:center; }
.nav-toggle span { display:block; width: 17px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:17px; height:1.5px; background: var(--ink); transition: transform .25s; }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: rgba(7,9,12,0.97); backdrop-filter: blur(12px); }
.mobile-menu a { display: block; padding: 15px var(--gut); border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 500; }
.mobile-menu .btn { margin: 16px var(--gut); }

/* ============================================================ footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(95,227,161,0.018)); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding-block: 54px 34px; }
.foot-col h4 { font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 15px; }
.foot-col a { display: block; color: var(--ink-2); padding: 5px 0; font-size: 0.95rem; transition: color .2s; width: fit-content; }
.foot-col a:hover { color: var(--run); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; padding-block: 22px 40px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.75rem; color: var(--ink-4); }
.foot-legal a:hover { color: var(--ink-2); }

/* ============================================================ scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .07s; }
[data-reveal][data-d="2"] { transition-delay: .14s; }
[data-reveal][data-d="3"] { transition-delay: .21s; }
[data-reveal][data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dot--live, .brand .stat-dot { animation: none !important; }
}

/* ============================================================ misc grids */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.eyebrow-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
[id] { scroll-margin-top: 90px; }

/* ============================================================ responsive */
@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open + .mobile-menu { display: block; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
