/* =========================================================
   Owl AI — marketing site
   Night-surveillance aesthetic: deep navy, mint HUD, amber eyes.
   ========================================================= */
:root {
  --bg: #05080d;
  --bg-2: #080d15;
  --panel: #0c131d;
  --panel-2: #101a27;
  --line: rgba(150, 190, 215, .12);
  --line-2: rgba(150, 190, 215, .22);
  --text: #e9eff6;
  --muted: #8d9db2;
  --dim: #5d6c80;
  --mint: #5ee0b8;
  --mint-2: #2fb894;
  --mint-glow: rgba(94, 224, 184, .35);
  --amber: #ffb547;
  --red: #ff4d5e;
  --red-glow: rgba(255, 77, 94, .4);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --f-display: "Syne", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--mint); color: #04130e; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* subtle film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: #020407;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-eyes { display: flex; gap: 18px; }
.loader-eye {
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, #fff3c4 0, #ffc54d 30%, #e5820f 75%, #6e3604 100%);
  position: relative; overflow: hidden; box-shadow: 0 0 40px rgba(255, 181, 71, .35);
  animation: loaderOpen 1.1s var(--ease) both;
}
.loader-eye i { position: absolute; inset: 30%; border-radius: 50%; background: #05070a; animation: loaderPupil 1.4s var(--ease) .5s both; }
@keyframes loaderOpen { 0% { clip-path: inset(50% 0 50% 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes loaderPupil { 0% { transform: scale(1.4); } 100% { transform: scale(.8); } }
.loader-word { font: 800 14px/1 var(--f-display); letter-spacing: .6em; padding-left: .6em; color: var(--muted); animation: fadeIn .8s .4s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .3s; }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
.cursor { width: 44px; height: 44px; margin: -22px 0 0 -22px; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s; }
.cursor span[class^="c-"] { position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--mint); transition: border-color .25s; }
.c-tl { left: 0; top: 0; border-right: 0 !important; border-bottom: 0 !important; }
.c-tr { right: 0; top: 0; border-left: 0 !important; border-bottom: 0 !important; }
.c-bl { left: 0; bottom: 0; border-right: 0 !important; border-top: 0 !important; }
.c-br { right: 0; bottom: 0; border-left: 0 !important; border-top: 0 !important; }
.cursor-label {
  position: absolute; left: calc(100% + 8px); top: -2px; white-space: nowrap;
  font: 500 10px/1 var(--f-mono); letter-spacing: .12em; color: var(--mint);
  background: rgba(5, 8, 13, .7); padding: 4px 6px; border: 1px solid rgba(94, 224, 184, .3); border-radius: 3px;
  opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s;
}
.cursor.is-hero .cursor-label, .cursor.is-hover .cursor-label { opacity: 1; transform: none; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-alarm span[class^="c-"] { border-color: var(--red); }
.cursor.is-alarm .cursor-label { color: var(--red); border-color: rgba(255, 77, 94, .4); }
.cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor summary, body.has-cursor label,
body.has-cursor select, body.has-cursor input[type="range"], body.has-cursor .owl-gl, body.has-cursor [role="tab"] { cursor: none; }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--mint), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1px solid var(--b); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, color .3s;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-mint { background: var(--mint); color: #03130d; --b: var(--mint); box-shadow: 0 0 0 0 var(--mint-glow); }
.btn-mint:hover { box-shadow: 0 10px 40px -6px var(--mint-glow); transform: translateY(-2px); }
.btn-mint::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-mint:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .02); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { --b: var(--mint); color: var(--mint); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(8, 13, 21, .55); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform .5s var(--ease), background .3s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px/1 var(--f-display); letter-spacing: .14em; }
.brand-mark { width: 38px; height: 24px; }
.bm-ring { fill: none; stroke: var(--mint); stroke-width: 3; }
.bm-pupil { fill: var(--amber); transition: transform .2s; }
.bm-beak { fill: var(--amber); }
.brand:hover .bm-pupil { animation: bmBlink .5s; transform-origin: center; transform-box: fill-box; }
@keyframes bmBlink { 50% { transform: scaleY(.1); } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.is-active { color: var(--mint); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; margin-left: auto; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.nav-burger span:first-child { top: 17px; } .nav-burger span:last-child { top: 24px; }
.nav.is-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 96px var(--gutter) clamp(56px, 8vh, 96px); overflow: hidden; isolation: isolate;
  background: #030405;
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }

.hud { position: absolute; z-index: 3; inset: 88px var(--gutter) 28px; pointer-events: none; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--dim); }
.hud > div { position: absolute; display: flex; align-items: center; gap: 8px; }
.hud b { color: var(--mint); font-weight: 500; }
.hud-tl { left: 0; top: 0; } .hud-tr { right: 0; top: 0; color: var(--muted); }
.hud-bl { left: 0; bottom: 0; } .hud-br { right: 0; bottom: 0; }
.hud::before, .hud::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--line-2); }
.hud::before { left: -10px; top: -12px; border-right: 0; border-bottom: 0; }
.hud::after { right: -10px; bottom: -12px; border-left: 0; border-top: 0; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hud.is-alarm b { color: var(--red); }

/* the photoreal owl: emerges from the dark */
.owl-stage {
  position: absolute; top: 0; left: 50%; z-index: 0;
  height: 100%; aspect-ratio: 1600 / 2100;
  transform: translateX(-46.9%) scale(1.06);
  -webkit-mask-image: radial-gradient(ellipse 50% 66% at 47% 36%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 66% at 47% 36%, #000 58%, transparent 100%);
  opacity: 0; filter: brightness(.15);
  transition: opacity 2s var(--ease), filter 2.6s var(--ease), transform 3s var(--ease);
}
body.is-ready .owl-stage { opacity: 1; filter: none; transform: translateX(-46.9%); }
.owl-photo, .owl-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.owl-photo { object-fit: cover; }
.owl-gl { opacity: 0; transition: opacity .5s; }
.owl-gl.is-ready { opacity: 1; }
.owl-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; mix-blend-mode: screen;
  background: radial-gradient(ellipse 40% 22% at 47% 27%, rgba(255, 40, 60, .22), transparent 70%);
}
.owl-stage.is-alarm::after { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 4, 5, .6) 0, transparent 16%, transparent 40%, rgba(3, 4, 5, .7) 62%, rgba(5, 8, 13, .95) 86%, var(--bg) 100%);
}
.owl-scan {
  position: absolute; left: 10%; right: 10%; height: 2px; top: 12%; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--mint), transparent); box-shadow: 0 0 18px var(--mint);
}
.owl-scan.go { animation: scan 2.2s var(--ease) .6s; }
@keyframes scan { 0% { top: 12%; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { top: 60%; opacity: 0; } }

.hero-copy { text-align: center; max-width: 1120px; position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
  background: rgba(94, 224, 184, .06); border: 1px solid rgba(94, 224, 184, .2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blink 2s steps(2) infinite; }
.hero-title { margin: 0; font: 800 clamp(40px, 5.8vw, 88px)/.95 var(--f-display); letter-spacing: -.035em; text-shadow: 0 6px 40px rgba(0, 0, 0, .7); }
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--mint) 10%, #b9f5e2 45%, var(--amber) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(8px); }
.hero-title.go .ch { animation: chIn .9s var(--ease) forwards; }
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero-sub { margin: 18px auto 0; max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); color: #b3bfcd; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); margin: 0; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; white-space: nowrap; z-index: 2; animation: fadeIn 1s 2.6s both; }
.hero > * { animation-fill-mode: both; }
body.is-ready .hero-sub, body.is-ready .hero-cta, body.is-ready .eyebrow { animation: rise 1s var(--ease) both; }
body.is-ready .eyebrow { animation-delay: .1s; } body.is-ready .hero-sub { animation-delay: .7s; } body.is-ready .hero-cta { animation-delay: .85s; }
body.is-loading .hero-sub, body.is-loading .hero-cta, body.is-loading .eyebrow { opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* detection boxes spawned by clicks */
.detections { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.det-box {
  position: absolute; border: 1.5px solid var(--mint); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(94, 224, 184, .15), inset 0 0 30px rgba(94, 224, 184, .12);
  animation: detIn .45s var(--ease) both, detOut .6s ease 2.2s forwards;
}
.det-box.red { border-color: var(--red); box-shadow: 0 0 0 1px rgba(255, 77, 94, .2), inset 0 0 30px rgba(255, 77, 94, .15); }
.det-box b {
  position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px; white-space: nowrap;
  font: 500 10px/1 var(--f-mono); letter-spacing: .1em; padding: 4px 6px; border-radius: 2px;
  background: var(--mint); color: #03130d;
}
.det-box.red b { background: var(--red); color: #fff; }
.det-box::before, .det-box::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; }
.det-box::before { width: 10px; height: 1px; margin-left: -5px; color: var(--mint); }
.det-box::after { width: 1px; height: 10px; margin-top: -5px; color: var(--mint); }
@keyframes detIn { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes detOut { to { opacity: 0; transform: scale(.92); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 38s linear infinite; }
.marquee span { font: 700 clamp(18px, 2.4vw, 28px)/1 var(--f-display); letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.marquee span:nth-of-type(3n+1) { color: var(--text); }
.marquee i { font-style: normal; color: var(--mint); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) var(--gutter); gap: 0;
}
.fact { padding: 8px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 800 clamp(42px, 5.5vw, 72px)/1 var(--f-display); letter-spacing: -.04em; color: var(--text); }
.fact b::after { content: attr(data-suffix); color: var(--mint); }
.fact span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 220px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { margin: 0 0 16px; font: 500 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mint); }
h2 { margin: 0; font: 800 clamp(34px, 5vw, 64px)/1.02 var(--f-display); letter-spacing: -.03em; }
h3 { margin: 0 0 12px; font: 700 clamp(22px, 2.4vw, 28px)/1.15 var(--f-display); letter-spacing: -.015em; }
h4 { margin: 0 0 8px; font: 700 19px/1.2 var(--f-display); }
.lede { margin: 20px 0 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); max-width: 640px; }
.lede.center { margin-inline: auto; text-align: center; }
.note { margin-top: 22px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg) translateY(-3px);
}

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Local or Cloud ---------- */
.hero-local { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: #cfeee4; background: rgba(94, 224, 184, .08); border: 1px solid rgba(94, 224, 184, .28); transition: background .3s, border-color .3s; }
.hero-local svg { width: 15px; height: 15px; fill: none; stroke: var(--mint); stroke-width: 2.2; }
.hero-local span { color: var(--mint); transition: transform .3s var(--ease); }
.hero-local:hover { background: rgba(94, 224, 184, .14); border-color: var(--mint); }
.hero-local:hover span { transform: translateX(3px); }
body.is-ready .hero-local { animation: rise 1s var(--ease) 1s both; }
body.is-loading .hero-local { opacity: 0; }

.dep-switch { position: relative; display: flex; gap: 6px; width: min(560px, 100%); margin: 0 auto 30px; padding: 6px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.dep-opt { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; text-align: left; color: var(--muted); transition: color .35s; }
.dep-opt svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dep-opt span { display: grid; gap: 2px; }
.dep-opt b { font: 700 17px/1.1 var(--f-display); }
.dep-opt small { font-size: 12.5px; opacity: .8; }
.dep-opt em { position: absolute; top: -10px; right: 10px; padding: 3px 8px; border-radius: 6px; font: 600 10px/1.2 var(--f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #03130d; background: var(--mint); }
.dep-opt.is-on { color: #03130d; }
.dep-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 15px; background: var(--mint); box-shadow: 0 10px 40px -10px var(--mint-glow); transition: transform .5s var(--ease), width .5s var(--ease), background .5s; }
.dep-switch.cloud .dep-pill { background: #9fc4ff; box-shadow: 0 10px 40px -10px rgba(159, 196, 255, .5); }
.dep-switch.cloud .dep-opt.is-on { color: #071427; }

.dep-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 32px); border-radius: 24px; background: radial-gradient(ellipse at 30% 40%, rgba(94, 224, 184, .07), transparent 60%), var(--panel); border: 1px solid var(--line); transition: background .6s; }
.dep-grid.is-cloud { background: radial-gradient(ellipse at 70% 35%, rgba(159, 196, 255, .08), transparent 60%), var(--panel); }
.dep-svg { width: 100%; height: auto; display: block; overflow: visible; }
.dep-svg text { font-family: var(--f-mono); letter-spacing: .08em; text-anchor: middle; }
.d-site { fill: rgba(94, 224, 184, .03); stroke: rgba(94, 224, 184, .55); stroke-width: 1.6; stroke-dasharray: 7 6; transition: stroke .5s, fill .5s; }
.is-cloud .d-site { stroke: rgba(150, 190, 215, .3); fill: rgba(255, 255, 255, .015); }
.d-site-label { text-anchor: start !important; fill: var(--mint); font-size: 11px; font-weight: 700; transition: fill .5s; }
.is-cloud .d-site-label { fill: var(--muted); }
.d-lock rect:first-child { fill: #0c2622; stroke: var(--mint); stroke-width: 1.4; }
.d-lock text { fill: var(--mint); font-size: 9.5px; font-weight: 700; text-anchor: start !important; }
.d-lock-arc { fill: none; stroke: var(--mint); stroke-width: 2; }
.d-lock-body { fill: var(--mint); }
.d-lock { transition: opacity .5s; }
.is-cloud .d-lock { opacity: 0; }
.d-felt { fill: #0d3b33; }
.d-rail { fill: none; stroke: #2a8f7d; stroke-width: 2.4; }
.d-cam rect, .d-cam path { fill: #16222f; stroke: rgba(150, 190, 215, .55); stroke-width: 1; }
.d-tables text { fill: var(--muted); font-size: 10px; font-weight: 700; }
.d-box { fill: #0f1c27; stroke: rgba(94, 224, 184, .6); stroke-width: 1.4; transition: opacity .5s, stroke .5s; }
.d-ring { fill: none; stroke: rgba(94, 224, 184, .35); stroke-width: 1; }
.d-chip rect { fill: #0c1621; stroke: var(--mint); stroke-width: 1.2; }
.d-core { fill: rgba(94, 224, 184, .6) !important; stroke: none !important; animation: blink 2s steps(2) infinite; }
.d-t1 { fill: var(--text); font-size: 12px; font-weight: 700; }
.d-t2 { fill: var(--dim); font-size: 9px; font-weight: 600; }
.d-screen { fill: #0a2a24; }
.d-bars { stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
.d-stand { fill: #1c2a38; }
.d-ai, .d-store { transition: opacity .5s; }
.is-cloud .d-ai, .is-cloud .d-store { opacity: .22; }
.d-gate circle { fill: #101a26; stroke: rgba(150, 190, 215, .5); stroke-width: 1.2; }
.d-x { stroke: var(--red); stroke-width: 2; stroke-linecap: round; transition: opacity .4s; }
.is-cloud .d-x { opacity: 0; }
.is-cloud .d-gate circle { stroke: #9fc4ff; }
.d-cloud { transition: opacity .5s; opacity: .25; }
.is-cloud .d-cloud { opacity: 1; }
.d-cloud-shape { fill: #0f1a2a; stroke: #9fc4ff; stroke-width: 1.6; }
.is-cloud .d-cloud-shape { filter: drop-shadow(0 0 16px rgba(159, 196, 255, .45)); }
.d-cloud .d-t1 { fill: #cfe0ff; font-size: 11px; }
.d-cloud .d-t2 { fill: #8aa6d6; font-size: 8px; }
.d-links-local use, .d-links-cloud use { fill: none; stroke-width: 1.4; stroke-dasharray: 3 7; transition: opacity .5s; }
.d-links-local use { stroke: rgba(94, 224, 184, .5); }
.d-links-cloud use { stroke: rgba(159, 196, 255, .55); opacity: 0; }
.is-cloud .d-links-local use { opacity: .08; }
.is-cloud .d-links-cloud use { opacity: 1; }
.d-pk-local circle { fill: var(--mint); filter: url(#dGlow); transition: opacity .4s; }
.d-pk-cloud circle { fill: #9fc4ff; filter: url(#dGlow); opacity: 0; transition: opacity .4s; }
.is-cloud .d-pk-local circle { opacity: 0; }
.is-cloud .d-pk-cloud circle { opacity: 1; }
.dep-legend { display: flex; justify-content: center; margin: 10px 0 0; font: 500 12px/1.4 var(--f-mono); letter-spacing: .04em; }
.dep-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 0; }
.dl-local { color: var(--mint); } .dl-local::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.dl-cloud { display: none; color: #9fc4ff; } .dl-cloud::before { background: #9fc4ff; box-shadow: 0 0 8px #9fc4ff; }
.is-cloud .dl-local { display: none; } .is-cloud .dl-cloud { display: inline; }

.dep-panel h3 { margin-bottom: 10px; }
.dep-strong { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text); }
.dep-panel[data-panel="local"] .ticks li::before { border-color: var(--mint); }
.dep-panel[data-panel="cloud"] .ticks li::before { border-color: #9fc4ff; }
.dep-panel:not([hidden]) { animation: rise .5s var(--ease); }

.dep-compare { margin-top: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; overflow-x: auto; }
.dep-compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.dep-compare th, .dep-compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.dep-compare tbody tr:last-child th, .dep-compare tbody tr:last-child td { border-bottom: 0; }
.dep-compare thead th { font: 600 13px/1.2 var(--f-body); color: var(--muted); background: #0c141d; }
.dep-compare thead th span { display: block; margin-bottom: 2px; font: 800 18px/1.1 var(--f-display); color: var(--text); }
.dep-compare tbody th { width: 26%; font-weight: 500; color: var(--muted); }
.dep-compare td { color: var(--text); transition: background .4s, color .4s; }
.dep-compare .yes { color: var(--mint); }
.dep-compare.local .c-local { background: rgba(94, 224, 184, .06); }
.dep-compare.local thead .c-local span { color: var(--mint); }
.dep-compare.cloud .c-cloud { background: rgba(159, 196, 255, .07); }
.dep-compare.cloud thead .c-cloud span { color: #9fc4ff; }

.dep-promise { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 20px 24px; border-radius: 18px; background: linear-gradient(100deg, rgba(94, 224, 184, .14), rgba(94, 224, 184, .03) 60%); border: 1px solid rgba(94, 224, 184, .4); }
.dep-promise svg { flex: none; width: 44px; height: 44px; fill: rgba(94, 224, 184, .12); stroke: var(--mint); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.dep-promise b { display: block; font: 700 19px/1.3 var(--f-display); color: var(--text); margin-bottom: 4px; }
.dep-promise span { color: var(--muted); font-size: 15px; }

@media (max-width: 1020px) {
  .dep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dep-opt { padding: 10px; gap: 8px; }
  .dep-opt svg { width: 20px; height: 20px; }
  .dep-opt b { font-size: 15px; }
  .dep-opt small { font-size: 11px; }
  .dep-promise { flex-direction: column; align-items: flex-start; }
}

/* ---------- Detectors ---------- */
.det-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.monitor-col { position: sticky; top: 100px; }
.monitor {
  position: relative; border-radius: 14px; overflow: hidden; background: #020909;
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .02);
}
.monitor canvas { width: 100%; aspect-ratio: 16 / 9; }
.monitor-src { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: 0; top: 0; }
.monitor-note { margin: 12px 4px 0; font: 500 11px/1.5 var(--f-mono); letter-spacing: .04em; color: var(--dim); }
.monitor-frame { position: absolute; inset: 0; pointer-events: none; border-radius: 14px; box-shadow: inset 0 0 80px rgba(0, 0, 0, .7); }
.monitor.is-alarm { border-color: rgba(255, 77, 94, .55); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 60px -10px var(--red-glow); }
.monitor-tabs { position: relative; display: flex; margin-top: 14px; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.mtab { position: relative; z-index: 1; flex: 1; padding: 10px 8px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .3s; }
.mtab.is-active { color: #03130d; }
.mtab-bar { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--mint); transition: transform .5s var(--ease), width .5s var(--ease); }
.steps { display: grid; gap: 22vh; padding: 6vh 0 22vh; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); opacity: .38; transform: scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s; }
.step.is-active { opacity: 1; transform: none; border-color: rgba(94, 224, 184, .35); }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px;
  font: 700 14px/1 var(--f-mono); color: var(--mint); background: rgba(94, 224, 184, .08); border: 1px solid rgba(94, 224, 184, .25);
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Signals (replica of the app's Signals console) ---------- */
.signals { overflow-x: hidden; overflow-x: clip; }
.signals .section-head { max-width: 820px; }
.app-win {
  --a-bg: #0b1219; --a-panel: #101922; --a-panel2: #142130; --a-line: rgba(140, 180, 200, .13); --a-text: #e6eef4; --a-muted: #8fa3b3; --a-dim: #5f7383;
  position: relative; border-radius: 16px; overflow: hidden; background: var(--a-bg); border: 1px solid rgba(150, 190, 215, .2);
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 90px -30px rgba(94, 224, 184, .25);
  transform-origin: 50% 0;
}
.app-win[data-reveal] { transform: perspective(1400px) rotateX(10deg) translateY(50px) scale(.97); }
.app-win[data-reveal].is-in { transform: none; transition-duration: 1.4s; }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #070c11; border-bottom: 1px solid var(--a-line); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3846; }
.app-dots i:first-child { background: #ff5f57; } .app-dots i:nth-child(2) { background: #febc2e; } .app-dots i:nth-child(3) { background: #28c840; }
.app-url { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 5px 14px; border-radius: 8px; background: #0f1821; font: 500 12px/1 var(--f-mono); color: var(--a-muted); }
.app-url svg { width: 11px; height: 11px; fill: none; stroke: var(--mint); stroke-width: 2.4; }
.app-company { font: 500 11px/1 var(--f-mono); color: var(--a-dim); letter-spacing: .04em; }
.app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 640px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; background: #0a1016; border-right: 1px solid var(--a-line); }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 16px; font: 800 15px/1 var(--f-display); letter-spacing: .14em; }
.app-brand svg { width: 30px; height: 20px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--a-muted); }
.side-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-link.is-on { color: var(--a-text); background: rgba(94, 224, 184, .1); box-shadow: inset 2px 0 0 var(--mint); }
.side-count { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 999px; font: 700 11px/1.3 var(--f-mono); text-align: center; color: #fff; background: var(--red); }
.side-count.warn { background: #ff8a3d; }
.side-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--a-line); font: 500 11px/1.6 var(--f-mono); color: var(--a-dim); }
.ok-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

.app-main { padding: 22px 24px 18px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.app-eyebrow { font: 600 11px/1 var(--f-mono); letter-spacing: .16em; color: var(--mint); margin-bottom: 8px; }
.app-head h3 { margin: 0 0 4px; font: 800 26px/1.1 var(--f-display); }
.app-head p { margin: 0; color: var(--a-muted); font-size: 14px; }
.app-badge, .app-win .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 600 11.5px/1.2 var(--f-body); white-space: nowrap; }
.app-badge::before, .app-win .badge.alarm::before, .app-win .badge.ready::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.app-badge.ready, .app-win .badge.ready { color: var(--mint); background: rgba(94, 224, 184, .1); border: 1px solid rgba(94, 224, 184, .3); }
.app-badge.paused { color: var(--amber); background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .35); }
.app-win .badge.alarm { color: #ff8a95; background: rgba(255, 77, 94, .12); border: 1px solid rgba(255, 77, 94, .4); }
.app-win .badge.alarm::before { animation: blink 1s steps(2) infinite; box-shadow: 0 0 6px var(--red); }
.app-win .badge.closed { color: var(--a-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--a-line); }
.app-win .badge.resolved { color: var(--mint); background: rgba(94, 224, 184, .08); border: 1px solid rgba(94, 224, 184, .25); }

.src-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.src-card { position: relative; padding: 14px; border-radius: 12px; background: var(--a-panel); border: 1px solid var(--a-line); transition: border-color .4s, box-shadow .4s, background .4s; overflow: hidden; }
.src-card.is-alarm { border-color: rgba(255, 77, 94, .55); background: linear-gradient(180deg, rgba(255, 77, 94, .1), var(--a-panel) 70%); box-shadow: 0 0 30px -10px rgba(255, 77, 94, .5); }
.src-card.is-alarm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 77, 94, .16) 50%, transparent 70%); animation: sweep 1.6s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.src-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 10px; }
.src-top h5 { display: flex; align-items: center; gap: 7px; margin: 0; font: 600 13px/1.2 var(--f-body); color: var(--a-text); }
.src-top h5 svg, .t-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.src-card strong { display: block; min-height: 2.6em; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--a-text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.src-card.is-alarm strong { color: #ffb3ba; }
.src-card p { margin: 6px 0 8px; font-size: 11.5px; color: var(--a-dim); line-height: 1.4; }
.src-card a { font-size: 12px; color: var(--mint); }

.feed-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.feed-heading h4 { margin: 0 0 2px; font: 700 17px/1.2 var(--f-display); }
.feed-heading p { margin: 0; font-size: 12.5px; color: var(--a-dim); }
.feed-total { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--a-muted); }
.app-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr) auto; gap: 10px; align-items: end; margin-bottom: 12px; }
.app-filters label { display: grid; gap: 5px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--a-dim); }
.app-filters select, .app-filters input { width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--a-line); background: var(--a-panel); color: var(--a-text); font: 400 13px/1.2 var(--f-body); text-transform: none; letter-spacing: 0; }
.app-filters select:focus, .app-filters input:focus { outline: none; border-color: var(--mint); }
.app-filters button { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--a-line); background: var(--a-panel2); font-size: 13px; font-weight: 600; color: var(--a-text); white-space: nowrap; transition: border-color .2s, color .2s; }
.app-filters button:hover { border-color: var(--mint); color: var(--mint); }
.app-filters button[aria-pressed="true"] { color: #1d1300; background: var(--amber); border-color: var(--amber); }

.sig-table-wrap { position: relative; border-radius: 12px; border: 1px solid var(--a-line); overflow: hidden; background: var(--a-panel); min-height: 330px; }
.sig-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sig-table th { padding: 10px 12px; text-align: left; font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a-dim); background: #0d151d; border-bottom: 1px solid var(--a-line); }
.sig-table td { padding: 11px 12px; border-bottom: 1px solid var(--a-line); vertical-align: middle; color: var(--a-text); }
.sig-row { position: relative; transition: opacity .35s, transform .35s; }
.sig-row:hover td { background: rgba(255, 255, 255, .015); }
.sig-row td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.sig-row.src-health td:first-child { box-shadow: inset 3px 0 0 #ff8a3d; }
.sig-row.is-closed td:first-child { box-shadow: inset 3px 0 0 var(--a-dim); }
.sig-row.is-closed td { color: var(--a-muted); }
.sig-row.is-new td { animation: rowIn .9s var(--ease) both; }
.sig-row.is-new td:first-child { animation: rowIn .9s var(--ease) both, flashRed 1.6s ease-out; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes flashRed { 0% { background: rgba(255, 77, 94, .22); } 100% { background: transparent; } }
.sig-row.is-new { background: linear-gradient(90deg, rgba(255, 77, 94, .14), transparent 60%); }
.sig-row.is-leaving { opacity: 0; transform: translateX(30px); }
.t-time { font: 500 12px/1.3 var(--f-mono); color: var(--a-muted) !important; white-space: nowrap; }
.t-det { min-width: 190px; }
.t-det-in { display: flex; align-items: center; gap: 10px; }
.t-det-in > span:last-child { display: grid; gap: 2px; }
.t-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #ff8a95; background: rgba(255, 77, 94, .1); }
.src-health .t-ico { color: #ffb37a; background: rgba(255, 138, 61, .1); }
.is-closed .t-ico { color: var(--a-dim); background: rgba(255, 255, 255, .04); }
.t-det strong { font-weight: 600; font-size: 13px; }
.t-table { font: 500 11.5px/1.2 var(--f-mono); color: var(--a-dim); }
.t-sig p { margin: 5px 0 0; font-weight: 500; }
.t-detail { font-size: 12.5px; color: var(--a-muted) !important; max-width: 220px; }
.t-actions { white-space: nowrap; text-align: right; }
.t-actions button, .t-link { display: inline-block; margin-left: 6px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--a-line); background: var(--a-panel2); font-size: 12px; font-weight: 600; color: var(--a-text); transition: border-color .2s, color .2s; }
.t-actions button:hover, .t-link:hover { border-color: var(--mint); color: var(--mint); }
.t-actions .t-close { border-color: rgba(255, 77, 94, .35); }
.t-actions small { margin-left: 8px; font: 500 11px/1 var(--f-mono); color: var(--a-dim); }
.sig-empty { position: absolute; inset: 40px 0 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--a-dim); font-size: 13px; }
.sig-empty[hidden], .app-win [hidden] { display: none !important; }
.sig-empty svg { width: 30px; height: 30px; fill: none; stroke: var(--mint); stroke-width: 2; }
.sig-empty strong { color: var(--a-text); }
.app-retention { margin: 10px 2px 0; font-size: 12px; color: var(--a-dim); }
.app-win .feed-queue { margin: 0 0 12px; }

.app-toasts { position: absolute; top: 56px; right: 16px; z-index: 5; display: grid; gap: 8px; width: min(340px, calc(100% - 32px)); pointer-events: none; }
.app-toast { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(20, 28, 38, .96); border: 1px solid rgba(255, 77, 94, .5); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); backdrop-filter: blur(8px); animation: toastIn .5s var(--ease) both; transition: opacity .4s, transform .4s; }
.app-toast.warn { border-color: rgba(255, 138, 61, .5); }
.app-toast.out { opacity: 0; transform: translateX(20px); }
.app-toast div { display: grid; gap: 2px; min-width: 0; }
.app-toast strong { font-size: 13px; }
.app-toast span:not(.t-ico) { font-size: 12.5px; color: #c4d1db; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-toast em { font: 500 10.5px/1.3 var(--f-mono); font-style: normal; color: var(--mint); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }

.sig-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sig-points li { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sig-points b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }

.footage-dlg { width: min(760px, calc(100% - 32px)); padding: 0; border-radius: 16px; border: 1px solid rgba(150, 190, 215, .25); background: #0e1720; color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .8); }
.footage-dlg::backdrop { background: rgba(2, 5, 8, .75); backdrop-filter: blur(4px); }
.footage-dlg[open] { animation: rise .45s var(--ease); }
.fd-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 0; }
.fd-head h4 { margin: 0 0 4px; font: 700 18px/1.2 var(--f-display); }
.fd-head p, .fd-time { margin: 0; font-size: 13px; color: var(--muted); }
.fd-time { padding: 6px 18px 12px; font: 500 12px/1.4 var(--f-mono); color: var(--dim); }
.fd-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 20px; line-height: 1; color: var(--muted); }
.fd-x:hover { color: var(--text); border-color: var(--text); }
.fd-frame { position: relative; margin: 0 18px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.fd-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.fd-frame::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); pointer-events: none; }
.fd-box { position: absolute; border: 2px solid var(--red); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25), 0 0 20px rgba(255, 77, 94, .5); border-radius: 3px; }
.fd-box b { position: absolute; left: -2px; bottom: 100%; margin-bottom: 4px; padding: 3px 6px; white-space: nowrap; font: 700 10.5px/1.2 var(--f-mono); color: #fff; background: var(--red); border-radius: 2px; }
.fd-tag { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 7px; border-radius: 4px; font: 700 10.5px/1 var(--f-mono); letter-spacing: .08em; color: #03130d; background: var(--mint); }
.fd-meta { position: absolute; right: 10px; bottom: 10px; z-index: 1; font: 500 11px/1 var(--f-mono); color: var(--mint); letter-spacing: .06em; text-shadow: 0 1px 4px #000; }
.fd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 18px; font-size: 12.5px; color: var(--dim); }
.fd-foot button { padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #03130d; background: var(--mint); }

@media (max-width: 1100px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .src-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-filters .f-search { grid-column: span 2; }
  .sig-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-company { display: none; }
  .app-main { padding: 16px 14px; }
  .app-filters { grid-template-columns: 1fr 1fr; }
  .app-filters .f-search { grid-column: 1 / -1; }
  .sig-table thead { display: none; }
  .sig-table, .sig-table tbody { display: block; }
  .sig-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px; border-bottom: 1px solid var(--a-line); }
  .sig-table td { padding: 0; border: 0; }
  .sig-row td:first-child { box-shadow: none; }
  .sig-row { box-shadow: inset 3px 0 0 var(--red); }
  .sig-row.is-closed { box-shadow: inset 3px 0 0 var(--a-dim); }
  .t-time { grid-column: 2; grid-row: 1; text-align: right; font-size: 11px; }
  .t-det { grid-column: 1; grid-row: 1; min-width: 0; }
  .t-sig, .t-detail, .t-actions { grid-column: 1 / -1; max-width: none; }
  .t-actions { text-align: left; }
  .t-actions button:first-child, .t-link { margin-left: 0; }
  .sig-points { grid-template-columns: 1fr; }
  .app-body { min-height: 0; }
}
@media (max-width: 480px) {
  .src-cards { grid-template-columns: 1fr; }
  .src-card strong { min-height: 0; }
}

.feed-queue { margin: 0 4px 10px; padding: 8px 12px; border-radius: 10px; font: 500 12px/1.3 var(--f-mono); color: var(--amber); background: rgba(255, 181, 71, .07); border: 1px dashed rgba(255, 181, 71, .35); }

/* ---------- How ---------- */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.how-steps li { padding: 26px 24px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.how-steps li:hover { border-color: rgba(94, 224, 184, .35); transform: translateY(-4px); }
.how-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.how-n { display: block; margin-bottom: 30px; font: 800 44px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .5s, -webkit-text-stroke-color .5s; }
.how-steps li.lit .how-n { color: var(--mint); -webkit-text-stroke-color: var(--mint); text-shadow: 0 0 30px var(--mint-glow); }
.how-line { position: relative; height: 2px; margin-top: 28px; background: var(--line); border-radius: 2px; overflow: hidden; }
.how-line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--mint), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Architecture ---------- */
.atab, .rtab { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-2); transition: all .3s; }
.atab:hover, .rtab:hover { color: var(--text); }
.atab.is-active, .rtab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.arch-box { position: relative; border-radius: 24px; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(94, 224, 184, .07), transparent 65%), linear-gradient(180deg, #0b131c, #080d14); border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); overflow: hidden; }
.arch-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 4px); }
.arch-tabs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 6px; }
.arch-stage { position: relative; }
.arch-svg { display: block; width: 100%; height: auto; overflow: visible; }
.arch-svg text { font-family: var(--f-mono); text-anchor: middle; letter-spacing: .06em; }
.a-ring { fill: none; stroke: rgba(94, 224, 184, .08); stroke-width: 1; stroke-dasharray: 2 6; }
.a-link { stroke: rgba(150, 190, 215, .16); stroke-width: 1.2; fill: none; transition: stroke .3s; }
.a-link.hub-link { stroke: rgba(94, 224, 184, .28); stroke-width: 1.6; }
.a-flow { stroke: rgba(94, 224, 184, .55); stroke-width: 1.4; stroke-dasharray: 3 14; fill: none; animation: aFlow 1.2s linear infinite; }
.a-flow.up { stroke-width: 2; stroke-dasharray: 4 12; animation-duration: .9s; }
@keyframes aFlow { to { stroke-dashoffset: -17; } }
.a-link.hl { stroke: var(--amber); stroke-width: 2; }
.a-flow.hl { stroke: var(--amber); }

.a-hub .a-hbox { fill: #0c2622; stroke: var(--mint); stroke-width: 1.6; filter: drop-shadow(0 0 14px rgba(94, 224, 184, .35)); }
.a-hub .a-hbox2 { fill: none; stroke: rgba(94, 224, 184, .25); stroke-width: 1; }
.a-hname { fill: var(--mint); font-size: 14px; font-weight: 700; letter-spacing: .14em !important; }
.a-hsub { fill: rgba(94, 224, 184, .65); font-size: 10px; }
.a-hcount { fill: rgba(238, 246, 243, .45); font-size: 8.5px; letter-spacing: .16em !important; }
.a-pulse { fill: none; stroke: rgba(94, 224, 184, .35); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: aPulse 3s ease-out infinite; }
.a-pulse.p2 { animation-delay: 1.5s; }
@keyframes aPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.a-ripple { fill: none; stroke: var(--red); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.a-ripple.go { animation: aRipple 1s ease-out; }
@keyframes aRipple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

.a-worker .a-wbox { fill: #101a26; stroke: rgba(150, 190, 215, .38); stroke-width: 1.2; }
.a-worker:hover .a-wbox { stroke: var(--mint); }
.a-gpu rect { fill: #0c1621; stroke: var(--mint); stroke-width: 1.1; }
.a-gpu .a-core { fill: rgba(94, 224, 184, .55); stroke: none; animation: blink 2.4s steps(2) infinite; }
.a-gpu line { stroke: rgba(94, 224, 184, .7); stroke-width: 1.1; }
.a-wname { fill: var(--text); font-size: 10.5px; font-weight: 700; text-anchor: start !important; }
.a-wsub { fill: var(--dim); font-size: 8.5px; text-anchor: start !important; }
.a-loadbg { fill: rgba(150, 190, 215, .12); }
.a-load { fill: var(--mint); filter: drop-shadow(0 0 3px var(--mint)); }

.a-table { cursor: default; }
.a-halo { fill: rgba(94, 224, 184, .05); stroke: none; transition: fill .3s; }
.a-felt { fill: #0d3b33; }
.a-rail { fill: none; stroke: #2a8f7d; stroke-width: 2.4; }
.a-line { fill: none; stroke: rgba(255, 220, 150, .25); stroke-width: .8; }
.a-card { fill: #d6efe8; opacity: .85; }
.a-cam rect, .a-cam path { fill: #16222f; stroke: rgba(150, 190, 215, .5); stroke-width: 1; }
.a-cam .a-lens { fill: var(--mint); animation: blink 3s steps(2) infinite; }
.a-led { fill: var(--mint); filter: drop-shadow(0 0 3px var(--mint)); }
.a-tlabel { fill: var(--muted); font-size: 10px; font-weight: 700; }
.a-tag { opacity: 0; transition: opacity .2s; }
.a-tag rect { fill: var(--red); }
.a-tag text { fill: #fff; font-size: 9px; font-weight: 700; letter-spacing: .12em !important; }
.a-table.is-hover .a-halo { fill: rgba(255, 181, 71, .12); }
.a-table.is-hover .a-rail { stroke: var(--amber); }
.a-table.is-alarm .a-halo { fill: rgba(255, 77, 94, .2); animation: aAlarm .5s steps(2) infinite; }
.a-table.is-alarm .a-rail { stroke: var(--red); }
.a-table.is-alarm .a-led { fill: var(--red); filter: drop-shadow(0 0 5px var(--red)); }
.a-table.is-alarm .a-tag { opacity: 1; }
.a-table.is-alarm .a-tlabel { fill: #ff8a95; }
@keyframes aAlarm { 50% { fill: rgba(255, 77, 94, .06); } }

.pk .pk-head { fill: var(--mint); filter: url(#aGlow); }
.pk .pk-t1 { fill: rgba(94, 224, 184, .45); }
.pk .pk-t2 { fill: rgba(94, 224, 184, .2); }
.pk.red .pk-head { fill: var(--red); }
.pk.red .pk-t1 { fill: rgba(255, 77, 94, .5); }
.pk.red .pk-t2 { fill: rgba(255, 77, 94, .25); }

.arch-ticker { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 760px; min-height: 44px; margin: 6px auto 0; pointer-events: none; }
.tk { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: rgba(9, 15, 22, .86); border: 1px solid var(--line); backdrop-filter: blur(6px); font: 500 11px/1.35 var(--f-mono); color: var(--muted); animation: tkIn .45s var(--ease); }
.tk i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.tk > div { display: grid; min-width: 0; flex: 1; }
.tk b { color: var(--text); font-weight: 600; }
.tk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk time { flex: none; align-self: flex-start; color: var(--dim); }
.tk.red { border-color: rgba(255, 77, 94, .45); }
.tk.red i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.tk.red span { color: #ff9aa3; }
.tk:nth-child(2) { opacity: .6; }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.arch-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px auto 0; max-width: 760px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.arch-stats div { padding: 10px 14px; background: #0c141d; text-align: center; }
.arch-stats span { display: block; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.arch-stats b { font: 700 15px/1.1 var(--f-display); color: var(--text); }
.arch-stats.flash b { animation: statIn .6s var(--ease); }
@keyframes statIn { from { opacity: 0; transform: translateY(6px); color: var(--mint); } to { opacity: 1; transform: none; } }
.arch-caption { position: relative; z-index: 1; text-align: center; color: var(--muted); max-width: 640px; margin: 14px auto 0; min-height: 3.2em; font-size: 15px; }
.arch-caption b { color: var(--text); }
@media (max-width: 760px) {
  .arch-ticker { grid-template-columns: 1fr; }
  .tk:nth-child(2) { display: none; }
  .arch-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Security ---------- */
.roles { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-bottom: 28px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.roles-copy p { color: var(--muted); margin: 0 0 22px; }
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.role-note { margin-top: 18px !important; font-size: 14px; min-height: 4.5em; }
.role-panel { border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.role-panel-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.role-panel-head span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.role-panel-head b { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--dim); letter-spacing: .06em; }
.perm-list { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.perm { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--dim); transition: background .4s, color .4s; }
.perm i { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .04); transition: background .4s, color .4s, transform .5s var(--ease); }
.perm.ok { color: var(--text); background: rgba(94, 224, 184, .05); }
.perm.ok i { background: var(--mint); color: #03130d; }
.perm.grant { color: var(--muted); }
.perm.grant i { background: rgba(255, 181, 71, .14); color: var(--amber); }
.perm.flip i { transform: rotateY(180deg); }
.perm-legend { display: flex; gap: 16px; padding: 10px 16px 14px; font: 500 11px/1 var(--f-mono); color: var(--dim); }
.perm-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.perm-legend .ok::before { background: var(--mint); } .perm-legend .grant::before { background: var(--amber); } .perm-legend .lock::before { background: var(--line-2); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(94, 224, 184, .1), transparent 45%); }
.tile:hover::before { opacity: 1; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile-small { font-size: 13px !important; margin-top: 12px !important; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 28px; align-content: center; }
.tile-wide .tile-art { grid-row: span 2; }
.radar { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(94, 224, 184, .25); overflow: hidden; background: radial-gradient(circle, rgba(94, 224, 184, .08), transparent 70%); }
.radar span { position: absolute; inset: 25%; border-radius: 50%; border: 1px solid rgba(94, 224, 184, .2); }
.radar span:nth-child(2) { inset: 10%; } .radar span:nth-child(3) { inset: 40%; background: var(--mint); box-shadow: 0 0 20px var(--mint); }
.radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(94, 224, 184, .5), rgba(94, 224, 184, 0) 22%, transparent); animation: radar 3.2s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.health-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.hp { font: 500 11px/1 var(--f-mono); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); transition: all .4s; }
.hp.on.ok { color: #03130d; background: var(--mint); border-color: var(--mint); }
.hp.on.start { color: #1d1300; background: var(--amber); border-color: var(--amber); }
.hp.on.stop { color: var(--text); background: #33415a; border-color: #33415a; }
.hp.on.deg { color: #1d1300; background: #ff8a3d; border-color: #ff8a3d; }
.hp.on.down { color: #fff; background: var(--red); border-color: var(--red); }
.spark { width: 100%; height: 60px; }
.integrations { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.integrations span { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; background: var(--panel-2); border: 1px solid var(--line-2); }

/* ---------- Pricing ---------- */
.price-ctrl { max-width: 640px; margin: 0 auto 40px; display: grid; gap: 18px; justify-items: center; }
.price-label { font-size: 17px; color: var(--muted); }
.price-label b { color: var(--text); font: 800 28px/1 var(--f-display); margin-left: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--mint) var(--p, 9%), var(--panel-2) var(--p, 9%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--text); border: 6px solid var(--mint); box-shadow: 0 0 0 6px rgba(94, 224, 184, .15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 6px solid var(--mint); box-shadow: 0 0 0 6px rgba(94, 224, 184, .15); }
.billing-toggle { position: relative; display: flex; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.bt { position: relative; z-index: 1; padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.bt.is-on { color: #03130d; }
.bt-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--mint); transition: transform .45s var(--ease), width .45s var(--ease); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.plan { position: relative; padding: 34px 30px 30px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan .ticks { margin-bottom: 30px; flex: 1; }
.plan-hot { background: linear-gradient(165deg, rgba(94, 224, 184, .1), var(--panel) 45%); border-color: rgba(94, 224, 184, .4); }
.plan-tag { position: absolute; top: -12px; left: 28px; padding: 5px 10px; border-radius: 6px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #03130d; background: var(--mint); }
.plan-tag.ghost { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.plan-for { margin: 0; color: var(--muted); }
.plan-for b { color: var(--text); }
.plan-price { margin: 18px 0 0; font: 800 30px/1.1 var(--f-display); letter-spacing: -.02em; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(94, 224, 184, .35); background: var(--panel-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-weight: 600; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 400; color: var(--mint); border: 1px solid var(--line-2); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 24px; color: var(--muted); max-width: 720px; }

/* ---------- Demo ---------- */
.demo { text-align: center; padding-bottom: clamp(100px, 12vw, 160px); overflow: hidden; max-width: none; }
.demo::before { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 120vw); aspect-ratio: 1; transform: translateX(-50%); z-index: -1; background: radial-gradient(circle, rgba(255, 181, 71, .08), transparent 60%); pointer-events: none; }
.demo-eyes { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; }
.mini-eye { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 44%, #fff3c4 0, #ffc54d 30%, #e5820f 75%, #6e3604 100%); box-shadow: 0 0 0 5px #0c131d, 0 0 0 6px rgba(255, 197, 77, .25), 0 0 40px rgba(255, 181, 71, .25); }
.mini-eye i { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #030508; transition: width .3s, height .3s, margin .3s; }
.mini-eye i::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.mini-eye::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0; background: #172333; transition: height .12s; }
.demo-eyes.blink .mini-eye::after { height: 100%; }
.demo-eyes.wink .mini-eye:last-child::after { height: 100%; }
.demo-eyes.wide .mini-eye i { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.demo-title { font-size: clamp(46px, 8vw, 116px); line-height: .92; }
.demo-form { max-width: 720px; margin: 44px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: 400 15px/1.4 var(--f-body); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(94, 224, 184, .12); }
.field input.bad { border-color: var(--red); }
.form-ok { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; color: var(--mint); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { display: block; font: 800 16px/1 var(--f-display); letter-spacing: .14em; }
.foot-brand span { font-size: 13px; color: var(--dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.foot-links a { font-size: 14px; color: var(--muted); } .foot-links a:hover { color: var(--mint); }
.foot-copy { width: 100%; margin: 0; font-size: 13px; color: var(--dim); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 160; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); font-size: 14px; background: var(--panel-2); border: 1px solid rgba(94, 224, 184, .4); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), visibility .5s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .det-grid { grid-template-columns: 1fr; }
  .monitor-col { top: 76px; z-index: 5; padding: 8px 0 6px; background: var(--bg); box-shadow: 0 18px 18px -6px var(--bg); }
  .steps { gap: 40vh; padding: 20px 0 30vh; }
  .sig-grid, .roles { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; }
  .bento .tile:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.is-open { border-radius: 24px; flex-wrap: wrap; background: rgba(8, 13, 21, .95); }
  .nav.is-open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; padding: 8px 0 6px; }
  .nav.is-open .nav-links a { padding: 12px 10px; font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hud-bl, .hud-br { display: none; }
  .hud { font-size: 10px; }
  .hero { padding-top: 100px; }
  .hero-hint { display: none; }
  .how-steps, .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-template-columns: 1fr; row-gap: 18px; }
  .tile-wide .tile-art { grid-row: auto; width: 110px; height: 110px; }
  .perm-list { grid-template-columns: 1fr; }
  .sig { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico top" "ico meta" "act act" "evi evi"; }
  .sig-actions { margin-top: 8px; }
  .demo-form { grid-template-columns: 1fr; }
  .feed-tabs { margin-left: 0; }
  .step { padding: 24px; }
  .feed { min-height: 460px; padding: 14px; }
}

@media (max-height: 820px) { .hero-hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .ch { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   UI interaction layer (fx.js)
   ========================================================= */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ambient background glow that reacts to alarms */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --sp: 0; }
.ambient i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .55; animation: ambDrift 22s ease-in-out infinite alternate; transition: opacity .6s; }
.ambient .a1 { left: -25vmax; top: calc(-30vmax + var(--sp) * 90vh); background: radial-gradient(circle, rgba(94, 224, 184, .1), transparent 62%); }
.ambient .a2 { right: -30vmax; top: calc(30vh - var(--sp) * 60vh); background: radial-gradient(circle, rgba(110, 150, 255, .08), transparent 62%); animation-duration: 28s; animation-direction: alternate-reverse; }
.ambient .a3 { left: 20vw; bottom: -45vmax; background: radial-gradient(circle, rgba(255, 181, 71, .05), transparent 62%); animation-duration: 34s; }
.ambient::after { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255, 50, 70, .16), transparent 70%); transition: opacity 1.2s ease-out; }
.ambient.is-alarm::after { opacity: 1; transition: opacity .15s; }
.ambient.is-alarm .a1, .ambient.is-alarm .a2 { opacity: .25; }
@keyframes ambDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.08); } 100% { transform: translate(-4vw, -3vh) scale(.95); } }

/* magnetic buttons */
.magnetic { transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .4s var(--ease), border-color .3s, color .3s, background .3s; will-change: transform; }

/* scrambling headings */
.is-scrambling { text-shadow: 0 0 18px rgba(94, 224, 184, .35); }

/* border light trace */
.trace { position: relative; }
.trace::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ang), transparent 0deg 250deg, rgba(94, 224, 184, .15) 290deg, var(--mint) 340deg, #e6fff6 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s; animation: traceSpin 2.6s linear infinite;
}
.trace:hover::after, .trace:focus-within::after, .faq details.trace[open]::after { opacity: 1; }
@keyframes traceSpin { to { --ang: 360deg; } }

/* 3D tilt + glare */
.tilt { transform-style: preserve-3d; }
.tilt .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s; mix-blend-mode: screen; background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .09), rgba(94, 224, 184, .05) 30%, transparent 60%); }
.tilt:hover .glare { opacity: 1; }
.tilt:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 40px -18px rgba(94, 224, 184, .35); }

/* CCTV scan as each section appears */
.facts { position: relative; }
.scanfx { position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; opacity: 0; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(94, 224, 184, .9) 20%, #e6fff6 50%, rgba(94, 224, 184, .9) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(94, 224, 184, .45), 0 -60px 80px -40px rgba(94, 224, 184, .25); }
.is-scanned > .scanfx { animation: scanDown 1.5s cubic-bezier(.45, .05, .25, 1) forwards; }
@keyframes scanDown { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 85% { opacity: .9; } 100% { top: 100%; opacity: 0; } }

/* live form feedback */
.field { position: relative; }
.field.is-focus label { color: var(--mint); }
.field input, .field textarea { transition: border-color .25s, box-shadow .25s, background .25s; }
.field.is-focus input, .field.is-focus textarea, .field.is-focus select { background: #0b131c; }
.field-ok { position: absolute; right: 12px; bottom: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.field-ok svg { width: 14px; height: 14px; fill: none; stroke: #03130d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.field.is-valid .field-ok { transform: scale(1); }
.field.is-valid input { border-color: rgba(94, 224, 184, .6); padding-right: 44px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.btn.is-sending { color: #03130d; background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .1) 0 10px, transparent 10px 20px); background-size: 28px 28px; animation: stripes .6s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }
.btn.is-sent { background: #49e3a9; animation: pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 50% { transform: scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  .ambient i { animation: none; }
  .trace::after { animation: none; }
}

/* logo: the real eagle owl, cut from the hero photograph */
.brand-owl { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: url("../img/logo-owl.png") center / cover no-repeat; background-image: image-set(url("../img/logo-owl.webp") type("image/webp"), url("../img/logo-owl.png") type("image/png")); box-shadow: 0 0 0 1.5px rgba(255, 170, 70, .45), 0 0 14px rgba(255, 140, 40, .3); transition: transform .4s var(--ease), box-shadow .4s; }
.brand-owl.sm { width: 28px; height: 28px; }
.brand:hover .brand-owl, .foot-brand:hover .brand-owl { transform: scale(1.1) rotate(-6deg); box-shadow: 0 0 0 1.5px rgba(255, 190, 90, .8), 0 0 22px rgba(255, 140, 40, .55); }
.nav .brand { gap: 12px; }

/* real owl eyes (demo section + loader): iris, moving pupil and feathered lid cut from the photo */
.real-eye { position: relative; overflow: hidden; border-radius: 50%; background: #07090c !important; }
.real-eye > b, .real-eye > i { position: absolute; inset: 0; border-radius: 50%; background-size: 100% 100%; background-repeat: no-repeat; }
.real-eye .re-pupil { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; background-color: transparent !important; border-radius: 0 !important;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--ps, 1)); transform-origin: 50.5% 50%; transition: transform .3s ease-out, --ps .3s; animation: none; }
.real-eye .re-pupil::after { content: none !important; }
.real-eye .re-glint { background: radial-gradient(circle at 44% 45%, rgba(255, 255, 255, .32) 0 1.8%, rgba(255, 255, 255, .08) 3.5%, transparent 5.5%); mix-blend-mode: screen; }
.real-eye[data-eye="l"] .re-base { background-image: url("../img/eye-l-base.png"); background-image: image-set(url("../img/eye-l-base.webp") type("image/webp"), url("../img/eye-l-base.png") type("image/png")); }
.real-eye[data-eye="l"] .re-pupil { background-image: url("../img/eye-l-pupil.png"); background-image: image-set(url("../img/eye-l-pupil.webp") type("image/webp"), url("../img/eye-l-pupil.png") type("image/png")); }
.real-eye[data-eye="l"] .re-lid { background-image: url("../img/eye-l-lid.png"); background-image: image-set(url("../img/eye-l-lid.webp") type("image/webp"), url("../img/eye-l-lid.png") type("image/png")); }
.real-eye[data-eye="r"] .re-base { background-image: url("../img/eye-r-base.png"); background-image: image-set(url("../img/eye-r-base.webp") type("image/webp"), url("../img/eye-r-base.png") type("image/png")); }
.real-eye[data-eye="r"] .re-pupil { background-image: url("../img/eye-r-pupil.png"); background-image: image-set(url("../img/eye-r-pupil.webp") type("image/webp"), url("../img/eye-r-pupil.png") type("image/png")); }
.real-eye[data-eye="r"] .re-lid { background-image: url("../img/eye-r-lid.png"); background-image: image-set(url("../img/eye-r-lid.webp") type("image/webp"), url("../img/eye-r-lid.png") type("image/png")); }
.mini-eye.real-eye { width: 76px; height: 76px; box-shadow: 0 0 0 4px #0b1118, 0 0 0 5px rgba(255, 170, 70, .3), 0 0 46px rgba(255, 130, 30, .3); }
.mini-eye.real-eye::after { z-index: 3; background: linear-gradient(#3b2d1f, #1f160e); box-shadow: 0 2px 0 rgba(0, 0, 0, .55); }
.demo-eyes.wide .real-eye .re-pupil { --ps: 1.28; }
.loader-eye.real-eye { width: 64px; height: 64px; box-shadow: 0 0 40px rgba(255, 140, 40, .35); }
.loader-eye.real-eye .re-pupil { animation: loaderDilate 1.6s var(--ease) .4s both; }
@keyframes loaderDilate { from { transform: scale(1.35); } to { transform: scale(1); } }

/* wordmark: "Owl AI" */
.wordmark { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.wordmark b { margin-left: .04em; font-weight: 600; color: var(--mint); letter-spacing: .02em; }
.brand .wordmark { font-size: 19px; letter-spacing: -.01em; }
.foot-brand b.wordmark { display: block; font-size: 17px; letter-spacing: -.01em; }
.foot-brand b.wordmark b { display: inline; }
.app-brand .wordmark { font-size: 15px; letter-spacing: 0; }
@media (max-width: 600px) {
  .mtab { padding: 9px 4px; font-size: 12.5px; white-space: nowrap; }
}
