/* Sentinel Gambit landing - cream frame around a charcoal stage, mono
   annotations, point-cloud hero. Fonts: Geist / Geist Mono (OFL). */

@font-face { font-family: "Geist"; src: url("/site/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/site/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cream: #EEEBE4;
  --cream-2: #E4E0D7;
  --cream-3: #D8D3C8;
  --ink: #2B2B2B;
  --ink-deep: #1C1C1B;
  --muted: #6B675F;
  --line: rgba(43, 43, 43, .14);
  --line-strong: rgba(43, 43, 43, .3);
  --on-ink: #EEEBE4;
  --on-ink-muted: rgba(238, 235, 228, .58);
  --on-ink-line: rgba(238, 235, 228, .14);
  --hit: #D9482B;
  --hit-light: #F0795F;
  --warn: #B7791F;
  --clean: #3F7D4E;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --frame: 10px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  padding: 0 var(--frame) var(--frame);
}
a { color: inherit; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; font-variant-ligatures: none; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); line-height: 1.3;
}
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.spacer { flex: 1; }

/* film grain over everything (static under reduced motion) */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .09;
  background: url("/site/grain.png") repeat; mix-blend-mode: overlay;
  animation: grain 1.2s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-47px, 23px); } 40% { transform: translate(67px, -59px); }
  60% { transform: translate(-29px, 61px); } 80% { transform: translate(53px, 13px); }
}

/* ---------------------------------------------------------------- chrome */
.chrome {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  height: 58px; padding: 0 clamp(10px, 2vw, 18px); background: var(--cream);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.wordmark i { font-style: normal; color: var(--muted); margin: 0 .35em; }
.links { display: flex; gap: 2px; }
.links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 6px 10px; position: relative;
}
.links a:hover, .links a.on { color: var(--ink); }
.links a.on::before { content: "+"; position: absolute; left: -1px; }
.link-quiet { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; }
.link-quiet.light { color: var(--on-ink-muted); }
.link-quiet.light:hover { color: var(--on-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.solid { background: var(--ink); color: var(--cream); }
.btn.solid:hover { background: var(--ink-deep); }
.btn.light { border-color: var(--on-ink); background: var(--on-ink); color: var(--ink); }
.btn.light:hover { background: transparent; color: var(--on-ink); }

/* ---------------------------------------------------------------- stage */
.stage { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.stage .label { color: var(--on-ink-muted); }
.stage .muted { color: var(--on-ink-muted); }

.display {
  font-weight: 600; letter-spacing: -.035em; line-height: .98; margin: 0;
  font-size: clamp(40px, 6.4vw, 100px);
}
.display.small { font-size: clamp(32px, 5vw, 72px); max-width: 18ch; }
.h2 { font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 0; font-size: clamp(28px, 4vw, 56px); max-width: 22ch; }
h3 { font-weight: 600; letter-spacing: -.02em; font-size: 22px; line-height: 1.15; margin: 10px 0 14px; }

/* rise-in: lines slide up out of a mask */
.rise { display: block; overflow: hidden; padding-bottom: .06em; }
.rise > span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.rise:nth-child(2) > span { animation-delay: .09s; }
.rise:nth-child(3) > span { animation-delay: .18s; }
@keyframes rise { to { transform: translateY(0); } }
/* Hidden only once site.js has run, so crawlers and no-JS visitors see everything. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */
.hero { min-height: calc(100svh - 58px - var(--frame)); display: flex; flex-direction: column; padding: var(--pad); padding-bottom: 76px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-meta { position: relative; display: flex; justify-content: space-between; gap: 16px; }
.hero-copy { position: relative; margin-top: auto; max-width: 980px; }
.hero-lead { color: var(--on-ink-muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 58ch; margin: 26px 0 0; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.cmd { font-size: 13px; color: var(--on-ink); padding: 9px 14px; border: 1px solid var(--on-ink-line); background: rgba(0,0,0,.25); }
.cmd .p { color: var(--on-ink-muted); margin-right: .5em; user-select: none; }

/* annotation marks that follow infected clusters */
.annots { position: absolute; inset: 0; pointer-events: none; }
.annot { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .35s ease; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--on-ink); }
.annot .box { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; }
.annot .box::before, .annot .box::after { content: ""; position: absolute; width: 10px; height: 10px; border: solid currentColor; }
.annot .box::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.annot .box::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.annot .plus { position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; }
.annot .plus::before, .annot .plus::after { content: ""; position: absolute; background: currentColor; }
.annot .plus::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.annot .plus::after { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.annot .txt { position: absolute; left: 34px; top: -26px; white-space: nowrap; line-height: 1.35; }
.annot .txt b { font-weight: 400; display: block; }
.annot .txt em { font-style: normal; opacity: .6; }
.annot.hit { color: var(--hit-light); }
.annot.clean .txt em::after { content: " · cleaned"; }

/* ruler */
.ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; overflow: hidden; color: var(--on-ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ruler-track { position: absolute; top: 0; left: 0; height: 100%; display: flex; will-change: transform; }
.tick { width: 14px; flex: 0 0 14px; position: relative; }
.tick::before { content: ""; position: absolute; left: 0; top: 10px; width: 1px; height: 7px; background: currentColor; opacity: .25; }
.tick.mid::before { height: 12px; opacity: .38; }
.tick.major::before { height: 18px; opacity: .55; }
.tick span { position: absolute; left: 0; top: 32px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; opacity: .45; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 132px) var(--pad); border-top: 1px solid var(--line); }
.section.stage { border-top: 0; margin-top: var(--frame); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.loop li { position: relative; padding: 18px 14px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.loop li::before { content: ""; position: absolute; left: 0; top: -1px; width: 1px; height: 14px; background: var(--ink); }
.loop .n { font-family: var(--mono); font-size: 11px; color: var(--ink); }
.loop b { color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--frame); }
.card { position: relative; background: var(--cream-2); padding: clamp(22px, 2.4vw, 34px); }
.card.dark { background: var(--ink); color: var(--on-ink); }
.card.dark .label { color: var(--on-ink-muted); }
.card.span-2 { grid-column: span 2; }
.card .plus, .plan-card .plus { position: absolute; right: 18px; top: 18px; width: 11px; height: 11px; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; opacity: .7; }
.plus::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.plus::after { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.card.dark .ticks li, .plan-card.dark .ticks li { border-top-color: var(--on-ink-line); }
.ticks li::before { content: "+"; position: absolute; left: 0; top: 8px; font-family: var(--mono); opacity: .55; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col p { margin: 0; }
.profiles { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 14px; }
.profiles div { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.profiles .muted { font-family: var(--mono); font-size: 11.5px; }
.dot { width: 7px; height: 7px; }
.dot.ok { background: var(--clean); }
.dot.hit { background: var(--hit); }

/* commands terminal */
.terminal { border: 1px solid var(--on-ink-line); background: var(--ink-deep); }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--on-ink-line); }
.term-bar span { width: 9px; height: 9px; border: 1px solid var(--on-ink-muted); }
.term-bar em { font-style: normal; margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--on-ink-muted); }
.term-row { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; padding: 16px 18px; border-bottom: 1px solid var(--on-ink-line); }
.term-row:last-child { border-bottom: 0; }
.term-row code { color: var(--on-ink); font-size: 13.5px; white-space: nowrap; overflow-x: auto; }
.term-row code::before { content: "$ sentinel-gambit "; color: var(--on-ink-muted); }
.term-row span { color: var(--on-ink-muted); font-size: 15px; }

/* clean-up */
.cleanup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.plan { background: var(--ink); color: var(--on-ink); padding: 22px; }
.plan-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.plan-h .label { color: var(--on-ink-muted); }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border: 1px solid rgba(240,121,95,.5); color: var(--hit-light); }
.plan ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.plan li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--on-ink-line); font-size: 14.5px; }
.plan li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--on-ink-muted); padding-top: 2px; }
.plan code { color: var(--on-ink-muted); }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.principles b { color: var(--ink); font-weight: 600; }

/* levels */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--frame); }
.level { background: var(--cream-2); padding: 26px; display: flex; flex-direction: column; }
.level.hot { background: var(--ink); color: var(--on-ink); }
.level.hot .label { color: var(--hit-light); }
.level p { margin: 12px 0 0; font-size: 15px; }
.level .verdict { margin-top: auto; padding-top: 18px; font-weight: 600; }
.meter { display: flex; gap: 4px; margin-bottom: 18px; }
.meter span { flex: 1; height: 8px; background: var(--cream-3); }
.level.hot .meter span { background: var(--hit); }
.meter.l1 span:first-child, .meter.l2 span:nth-child(-n+2) { background: var(--warn); }
.note { margin: 22px 0 0; color: var(--muted); max-width: 70ch; }

/* radar + solution */
.pair { border-top: 1px solid var(--ink); }
.pair-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pair-row.head span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--frame); }
.plan-card { position: relative; background: var(--cream-2); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 10px; }
.plan-card.dark { background: var(--ink); color: var(--on-ink); }
.plan-card.dark .label, .plan-card.dark .muted { color: var(--on-ink-muted); }
.plan-card .price { font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 8px 0 2px; }
.plan-card .ticks { margin: 8px 0 22px; }
.plan-card .btn { align-self: flex-start; margin-top: auto; }

/* cta + footer */
.cta { margin-top: var(--frame); padding: clamp(64px, 10vw, 150px) var(--pad); display: flex; flex-direction: column; gap: 20px; }
.foot { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 22px clamp(10px, 2vw, 18px) 12px; font-size: 13.5px; }
.wordmark.small span { font-size: 11px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .links, .chrome .link-quiet { display: none; }
  .bento, .levels, .plans, .cleanup, .two-col { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: auto; }
  .loop { grid-template-columns: 1fr 1fr; }
  .term-row, .pair-row { grid-template-columns: 1fr; gap: 6px; }
  .pair-row.head { display: none; }
  .hero-meta .label:last-child { display: none; }
  .annot .txt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .rise > span { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
