/* Stasis landing. Same tokens as the app: ink-green near-black, hairlines, colour only as data. */
:root {
  color-scheme: dark;
  --bg: #07100d; --bg-1: #0b1612; --bg-2: #101e19; --bg-3: #172720;
  --line: rgba(190, 255, 225, 0.08); --line-2: rgba(190, 255, 225, 0.14); --line-3: rgba(190, 255, 225, 0.26);
  --text: #eef3ef; --text-2: #c2cdc6; --muted: #85958d; --faint: #55655d;
  --covered: #3fb37f; --partial: #e2a53a; --gap: #e5534b; --na: #686b65;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 1.5px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font: 500 14px/1 var(--sans); white-space: nowrap; border: 1px solid transparent; transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--text); color: #07100d; font-weight: 600; }
.btn.primary:hover { background: #fff; }
.btn.ghost { color: var(--text-2); }
.btn.ghost:hover { color: var(--text); }
.btn.outline { border-color: var(--line-2); color: var(--text); }
.btn.outline:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.03); }
.btn.lg { padding: 13px 22px; font-size: 15px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px max(24px, calc((100vw - var(--max)) / 2)); background: rgba(7, 16, 13, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 12px; }
.wordmark { font: 800 15px var(--sans); letter-spacing: 0.24em; }
.brand-tag { font: 500 11px var(--mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; justify-content: flex-end; gap: 6px; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 140px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.hero h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 0.98; letter-spacing: -0.045em; max-width: 12ch; }
.lede { margin-top: 22px; max-width: 46ch; font-size: 17px; color: var(--text-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust-chips li { font: 500 11.5px var(--mono); color: var(--text-2); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.trust-chips li::before { content: "✓ "; color: var(--covered); }

/* Signature visual panel */
.scan { position: relative; aspect-ratio: 1.08; min-height: 420px; border: 1px solid var(--line-2); border-radius: 18px; background: radial-gradient(120% 90% at 50% 40%, rgba(120, 255, 200, 0.07), transparent 60%), var(--bg-1); overflow: hidden; perspective: 1100px; }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(190, 255, 225, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 255, 225, 0.045) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 50% 55%, #000 30%, transparent 78%); }
.scan-head, .scan-foot { position: absolute; left: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.scan-head { top: 18px; }
.scan-foot { bottom: 18px; justify-content: center; gap: 14px; }
.scan-foot span:nth-child(even) { color: var(--faint); }
.stack { position: absolute; left: 50%; top: 52%; width: 58%; aspect-ratio: 0.78; transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-34deg); transform-style: preserve-3d; }
.sheet { position: absolute; inset: 0; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #16261f, #0d1814); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sheet i { display: block; height: 7px; border-radius: 4px; background: rgba(190, 255, 225, 0.08); }
.sheet i:nth-child(2) { width: 80%; } .sheet i:nth-child(3) { width: 62%; } .sheet i:nth-child(4) { width: 70%; }
.s3 { transform: translateZ(-56px); opacity: 0.55; }
.s2 { transform: translateZ(-28px); opacity: 0.8; }
.s1 { transform: translateZ(0); background: linear-gradient(160deg, #e9efe9, #cdd7cf); border-color: rgba(255, 255, 255, 0.6); color: #0b1612; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.cert-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(11, 22, 18, 0.18); }
.cert-top b { font-size: 13px; letter-spacing: -0.01em; }
.cert-top span { font-size: 10px; color: #3e5249; }
.cert-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 10.5px; color: #24342d; }
.cert-rows span:nth-child(odd) { color: #5a6d64; text-transform: uppercase; letter-spacing: 0.06em; font-size: 9px; padding-top: 1px; }
.seal { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--covered); color: var(--covered); font: 700 20px var(--sans); background: rgba(63, 179, 127, 0.1); }
.scanline { position: absolute; left: 0; right: 0; height: 36px; top: -36px; background: linear-gradient(180deg, transparent, rgba(63, 179, 127, 0.28), transparent); border-bottom: 1px solid rgba(63, 179, 127, 0.7); animation: scan 3.6s var(--ease) infinite; }
@keyframes scan { 0% { top: -36px; } 70%, 100% { top: 100%; } }
.chip { position: absolute; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(16, 30, 25, 0.78); backdrop-filter: blur(10px); font-size: 12.5px; color: var(--text-2); max-width: 240px; animation: float 6s ease-in-out infinite; }
.chip b { color: var(--text); }
.chip-k { font-size: 11px; color: var(--text); letter-spacing: 0.02em; }
.chip-k.warn { color: var(--gap); }
.chip-a { left: 6%; top: 22%; }
.chip-b { right: 6%; bottom: 20%; border-color: rgba(229, 83, 75, 0.4); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Product preview in a browser frame */
.preview-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px 40px; }
.frame { display: block; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-1); overflow: hidden; transition: border-color 200ms var(--ease), transform 300ms var(--ease); }
.frame:hover { border-color: var(--line-3); transform: translateY(-3px); }
.frame-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); }
.url { font-size: 11.5px; color: var(--muted); padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; }
.open { justify-self: end; font-size: 11.5px; color: var(--text-2); }
.pv { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 380px; }
.pv-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); background: #050d0a; font-size: 12px; color: var(--muted); }
.pv-side b { font-size: 11px; letter-spacing: 0.22em; color: var(--text); margin-bottom: 10px; }
.pv-client { color: var(--text); font-weight: 600; font-size: 11.5px; line-height: 1.3; margin-bottom: 12px; }
.pv-client em { display: block; font-style: normal; font-weight: 400; color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.pv-nav { padding: 6px 8px; border-radius: 6px; }
.pv-nav.on { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 2px 0 0 var(--text); }
.pv-nav i { font-style: normal; font-size: 10px; background: var(--gap); color: #fff; border-radius: 8px; padding: 0 5px; margin-left: 4px; }
.pv-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pv-head span { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pv-head b { font-size: 20px; letter-spacing: -0.02em; }
.pv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.pv-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pv-stats span { display: flex; flex-direction: column; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: 500 9.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pv-stats b { font: 600 24px var(--sans); letter-spacing: -0.03em; }
.pv-stats .covered b { color: var(--covered); } .pv-stats .partial b { color: var(--partial); } .pv-stats .gap b { color: var(--gap); } .pv-stats .na b { color: var(--muted); }
.pv-alert { padding: 8px 10px; border: 1px solid rgba(229, 83, 75, 0.4); border-radius: 8px; font-size: 12px; color: var(--text-2); }
.pv-alert b { color: var(--gap); }
.pv-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pv-rows li { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 13px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.pv-rows li::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--na); }
.pv-rows li.covered::before { background: var(--covered); } .pv-rows li.partial::before { background: var(--partial); } .pv-rows li.gap::before { background: var(--gap); }
.pv-rows .mono { color: var(--muted); font-size: 10.5px; min-width: 38px; }
.pv-rows em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--faint); }
.pv-center { display: grid; place-items: center; }
.pv-ring { width: 100%; max-width: 300px; }
.pv-ring path { stroke: var(--bg-1); stroke-width: 1; }
.pv-ring .g { fill: rgba(255, 255, 255, 0.07); }
.pv-ring .covered { fill: var(--covered); } .pv-ring .partial { fill: var(--partial); } .pv-ring .gap { fill: var(--gap); }
.pv-ring .pct { font: 650 30px var(--sans); fill: var(--text); text-anchor: middle; letter-spacing: -0.04em; }
.pv-ring .sub { font: 500 6px var(--mono); fill: var(--muted); text-anchor: middle; letter-spacing: 0.2em; }
.caption { margin-top: 14px; text-align: center; font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 110px 24px 0; }
.section h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; max-width: 22ch; margin-bottom: 40px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.step { position: relative; padding: 28px 24px 30px; border-right: 1px solid var(--line); background: var(--bg-1); }
.step:last-child { border-right: 0; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 26px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font-size: 11px; color: var(--text-2); }
.step .num { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.step h3 { font-size: 22px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--text-2); }
.portals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); transition: border-color 160ms var(--ease), transform 260ms var(--ease); }
.portal:hover { border-color: var(--line-3); transform: translateY(-3px); }
.role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.portal h3 { font-size: 22px; }
.portal p { font-size: 14px; color: var(--text-2); flex: 1; }
.go { margin-top: 10px; font-size: 12px; color: var(--text); }
.portal:hover .go { text-decoration: underline; text-underline-offset: 4px; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.trust > div { padding: 26px 24px 0 0; }
.trust h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.trust p { font-size: 15px; color: var(--text-2); max-width: 34ch; }
.final { max-width: var(--max); margin: 120px auto 0; padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; }
.foot { max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); }
.foot .wordmark { color: var(--text); font-size: 12px; }

/* Motion: only when JS is on and motion is welcome; content is visible without it */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { animation: up 900ms var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  /* Content is always visible. landing.js only adds .play to elements that scroll into view from
     below the fold, which runs a one-shot fade-up; nothing is ever hidden while waiting for it. */
  .rise.play { animation: up 700ms var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
}
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .scanline, .chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .brand-tag, .hide-sm { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 110px; gap: 40px; }
  .scan { min-height: 360px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .step:nth-child(2)::after { display: none; }
  .portals, .trust { grid-template-columns: minmax(0, 1fr); }
  .trust > div { padding-right: 0; }
  .pv { grid-template-columns: minmax(0, 1fr); }
  .pv-side { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 42px; }
  .lede { font-size: 16px; }
  .scan { aspect-ratio: auto; min-height: 380px; }
  .stack { width: 64%; }
  .chip { max-width: 190px; font-size: 11.5px; }
  .chip-a { left: 4%; top: 15%; }
  .chip-b { right: 4%; bottom: 14%; }
  .pv-body { grid-template-columns: minmax(0, 1fr); }
  .pv-center { order: -1; }
  .pv-ring { max-width: 220px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step::after { display: none !important; }
  .section { padding-top: 80px; }
  .foot { flex-direction: column; }
}
