/* Night shift: near-black with a green tint, signal green for "live", amber for healing, red for trouble.
   Dark only on purpose: it is a monitor wall. Everything is same-origin; nothing inline (see nginx CSP). */
:root {
  color-scheme: dark;
  --bg: #050807; --panel: #0a110f;
  --surface: rgba(220,255,240,.035); --surface-2: rgba(220,255,240,.065); --surface-3: rgba(220,255,240,.11);
  --line: rgba(220,255,240,.085); --line-2: rgba(220,255,240,.17);
  --text: #eaf3ef; --muted: #9aaca5; --faint: #6c7d76;
  --sig: #3ef0a1; --sig-2: #8bffcb; --teal: #2fd2c9; --amber: #ffb347; --red: #ff4f5e;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1160px; --shadow: 0 40px 100px -30px rgba(0,0,0,.9);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1100px 700px at -5% -10%, rgba(62,240,161,.13), transparent 60%),
    radial-gradient(900px 640px at 105% 18%, rgba(47,210,201,.09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body::before { /* the monitor-wall grid, fading out downwards */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(220,255,240,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(220,255,240,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%);
}
::selection { background: rgba(62,240,161,.35); }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 6px; }
a { color: var(--sig-2); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.logo { width: 30px; height: 30px; flex: none; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glass { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s, filter .15s; }
.btn:hover { background: var(--surface-3); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.primary { color: #03140c; border-color: transparent; background: linear-gradient(135deg, #5dfbb4, #22c7b8); box-shadow: 0 12px 32px -12px rgba(62,240,161,.75), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.lg { padding: 14px 24px; font-size: 17px; border-radius: 13px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14.5px; }
.nav nav a:not(.btn) { color: var(--muted); font-weight: 550; } .nav nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 7px 14px; font-size: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 76px 0 56px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 0 rgba(62,240,161,.6); animation: ping 2s infinite; }
h1 { margin: 22px 0 18px; font-size: clamp(42px, 6.2vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 820; }
h1 em { font-style: normal; display: inline-block; background: linear-gradient(100deg, var(--sig-2), var(--sig) 45%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead { margin: 0 0 30px; max-width: 33em; font-size: 19px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin: 18px 0 0; font-size: 13.5px; color: var(--faint); }

/* the monitor and its four feeds (an illustration, driven by app.js) */
.stage { position: relative; min-width: 0; }
.stage::before { content: ""; position: absolute; inset: -6% -4% 20%; background: radial-gradient(closest-side, rgba(62,240,161,.22), transparent); filter: blur(30px); z-index: -1; }
.monitor { position: relative; padding: 7px; border-radius: 18px; background: linear-gradient(180deg, #121a18, #0b100f); border: 1px solid var(--line-2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border-radius: 12px; overflow: hidden; }
.feed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0f0e; border-radius: 6px; font-family: var(--mono); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; filter: saturate(.8) contrast(1.08); animation: drift 22s ease-in-out infinite alternate; }
.feed:nth-child(2) .scene { animation-duration: 26s; animation-delay: -6s; } .feed:nth-child(3) .scene { animation-duration: 19s; animation-delay: -11s; } .feed:nth-child(4) .scene { animation-duration: 24s; animation-delay: -3s; }
.scene.on { opacity: 1; }
.feed::before { /* lens vignette */ content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.6)); pointer-events: none; }
.feed::after { /* scanlines and a slow rolling band */ content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(170,255,220,.06) 50%, transparent 60%), repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  background-size: 100% 300%, 100% 100%; animation: roll 7s linear infinite; }
.blink { animation: blink 1.6s steps(2, jump-none) infinite; }
.hud { position: absolute; z-index: 2; top: 7px; font-size: 10px; letter-spacing: .08em; color: rgba(234,243,239,.82); text-shadow: 0 1px 2px #000; }
.hud.cam { left: 9px; } .hud.live { right: 9px; display: flex; align-items: center; gap: 5px; }
.hud.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 8px var(--sig); }
.feed .label { position: absolute; z-index: 2; left: 7px; bottom: 7px; padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,.68); color: #eee; font: 600 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; white-space: nowrap; max-width: calc(100% - 14px); overflow: hidden; text-overflow: ellipsis; transition: background .3s; }
.feed .label b { font-weight: inherit; }
.feed .status { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 1em; text-align: center; color: #ddd; background: rgba(0,0,0,.5); font: 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.feed .status:empty { display: none; }
.feed .chip { position: absolute; z-index: 4; top: 26px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: #fff; white-space: nowrap; background: rgba(8,12,11,.85); border: 1px solid var(--line-2); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.feed .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feed .chip.on { opacity: 1; transform: none; }
.chip.warn { color: var(--amber); border-color: rgba(255,179,71,.45); } .chip.ok { color: var(--sig); border-color: rgba(62,240,161,.45); } .chip.bad { color: var(--red); border-color: rgba(255,79,94,.5); }
.feed.frozen .scene, .feed.frozen::after { animation-play-state: paused; }
.feed.frozen .scene { filter: saturate(.25) brightness(.75); }
.feed.frozen .hud.live i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.feed.dark .scene { opacity: 0; }
.feed.dark .hud.live i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.feed.self.alone .label { background: #a00; }
.banner { position: absolute; z-index: 5; left: 7px; right: 7px; top: 7px; padding: 7px; border-radius: 12px 12px 4px 4px; text-align: center; font-weight: 650; font-size: 13px; background: #b00; color: #fff; box-shadow: 0 8px 24px -8px rgba(255,0,0,.6); animation: drop .3s ease; }
.banner[hidden] { display: none; }

.demo { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips[hidden] { display: none; }
.chips button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.chips button .ico { width: 15px; height: 15px; }
.chips button:hover { color: var(--text); background: var(--surface-2); }
.chips button[aria-pressed=true] { color: #03140c; background: var(--sig); border-color: var(--sig); }
.caption { margin: 14px 0 10px; min-height: 3.2em; font-size: 15px; color: var(--text); }
.progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sig), var(--teal)); transform-origin: left; transform: scaleX(0); }
.fine { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); }

/* the three promises */
.triad { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.triad li { display: flex; gap: 16px; padding: 26px 26px 24px; }
.triad li + li { border-left: 1px solid var(--line); }
.triad b { display: block; font-size: 17px; letter-spacing: -.01em; margin: 2px 0 4px; }
.triad p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tile { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid; }
.t-live { color: var(--sig); background: rgba(62,240,161,.1); border-color: rgba(62,240,161,.28); }
.t-res { color: var(--teal); background: rgba(47,210,201,.1); border-color: rgba(47,210,201,.28); }
.t-heal, .t-warn { color: var(--amber); background: rgba(255,179,71,.1); border-color: rgba(255,179,71,.28); }
.t-bad { color: var(--red); background: rgba(255,79,94,.1); border-color: rgba(255,79,94,.3); }

/* sections */
section { padding: 104px 0 0; }
.eyebrow { margin: 0 0 12px; font: 600 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sig); }
h2 { margin: 0 0 16px; max-width: 20em; font-size: clamp(30px, 3.9vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.sub { margin: 0 0 14px; max-width: 42em; font-size: 18px; color: var(--muted); }
h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 44px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; gap: 20px; padding: 18px 4px 18px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .n { font: 600 13px var(--mono); color: var(--faint); padding-top: 3px; }
.steps h3 { display: flex; align-items: center; gap: 10px; } .steps h3 .ico { color: var(--sig); }
.steps p { margin: 0; color: var(--muted); }
.hours { padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hour b { display: block; margin-bottom: 8px; font: 600 12.5px var(--mono); color: var(--muted); letter-spacing: .06em; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #0b100f; border: 1px solid var(--line-2); }
.mini i { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 4px; font: 700 13px var(--mono); font-style: normal; color: #fff; }
.mini .me { background: linear-gradient(135deg, #1f6b4f, #14483a); color: var(--sig-2); font-size: 11px; }
.g1 { background: #4b3a6e; } .g2 { background: #245c74; } .g3 { background: #6e4a28; } .g4 { background: #2c5f3b; } .g5 { background: #6a2f45; } .g6 { background: #3d4a6e; }
.hours p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 15px; }
q { color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.stat { padding: 22px 4px 0 0; border-top: 1px solid var(--line-2); }
.stat b { display: block; font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 820; letter-spacing: -.05em; background: linear-gradient(180deg, #fff, #a9c9bd); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.stat b span { font-weight: 500; opacity: .6; } .stat b small { font-size: .42em; letter-spacing: 0; margin-left: 4px; font-weight: 650; }
.stat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.fails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.fail, .kc { padding: 24px; }
.fail .tile, .kc .tile { margin-bottom: 16px; }
.fail p, .kc p { margin: 0; color: var(--muted); font-size: 15px; }

.kiosk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }

.proof { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .ico { color: var(--sig); }
.shot { margin: 0; padding: 7px; border-radius: 18px; background: linear-gradient(180deg, #121a18, #0b100f); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.shot figcaption { padding: 10px 8px 4px; font: 12px var(--mono); color: var(--faint); }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.note { padding: 28px; }
.note h3 { font-size: 19px; margin-bottom: 14px; }
.note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.note li { display: flex; gap: 12px; color: var(--muted); }
.note li .ico { margin-top: 2px; }
.note.yes .ico { color: var(--sig); } .note.no .ico { color: var(--faint); }

.final { padding-bottom: 96px; }
.band { position: relative; overflow: hidden; text-align: center; padding: 64px 24px; }
.band::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(62,240,161,.2), transparent); pointer-events: none; }
.band h2 { margin: 18px auto 10px; }
.band p { margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.band > * { position: relative; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
footer p { margin: 0; } footer .r { margin-left: auto; }

/* reveal on scroll: only when app.js runs, so the page is complete without it */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(62,240,161,0); } 100% { box-shadow: 0 0 0 0 rgba(62,240,161,0); } }
@keyframes drift { from { transform: scale(1.06) translate(-1.2%, .6%); } to { transform: scale(1.06) translate(1.2%, -.6%); } }
@keyframes roll { from { background-position: 0 100%, 0 0; } to { background-position: 0 -200%, 0 0; } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .how, .proof { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .fails { grid-template-columns: repeat(2, 1fr); }
  .kiosk { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .triad { grid-template-columns: 1fr; }
  .triad li + li { border-left: 0; border-top: 1px solid var(--line); }
  .fails, .kiosk, .notes { grid-template-columns: 1fr; }
  .hours { padding: 18px; gap: 10px; }
  section { padding-top: 80px; }
  .lead { font-size: 17.5px; }
  .feed .label { font-size: 9.5px; padding: 1px 5px; left: 5px; bottom: 5px; }
  .hud { font-size: 8.5px; top: 5px; } .hud.cam { left: 6px; } .hud.live { right: 6px; }
  .feed .chip { font-size: 9px; top: 20px; padding: 2px 7px; white-space: nowrap; }
  .hud .clock { display: none; }
  .cta .btn { flex: 1 1 auto; }
  .feed .status { font-size: 11px; }
  .banner { font-size: 11px; padding: 5px; }
  footer .r { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
