/* ============================================================
   DeskStreamer — landing + legal pages
   Dark surveillance/security aesthetic. No build step; plain CSS.
   ============================================================ */

:root {
  --bg:        #0a0e14;
  --bg-2:      #0d1320;
  --surface:   #121925;
  --surface-2: #161f2e;
  --border:    #1e2836;
  --border-2:  #283448;
  --text:      #e6edf3;
  --muted:     #8b97a7;
  --muted-2:   #6b7686;
  --accent:    #2f81f7;
  --accent-2:  #36d6c3;
  --rec:       #ff5c5c;
  --danger:    #e5734b;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* HUD eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: "["; color: var(--border-2); margin-right: 7px; }
.eyebrow::after  { content: "]"; color: var(--border-2); margin-left: 7px; }

/* Top scanning beam */
.topscan {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: scanx 6s linear infinite;
  opacity: 0.8;
}
@keyframes scanx { 0% { background-position: -50% 0; } 100% { background-position: 150% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; padding: 11px 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #06121f; box-shadow: 0 6px 22px -8px rgba(47, 129, 247, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(47, 129, 247, 0.7); }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(47, 129, 247, 0.08); transform: translateY(-2px); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__name { font-size: 1.12rem; letter-spacing: -0.03em; }
.brand__mark { flex: none; display: block; }
.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 10px; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 38ch; margin: 0 0 30px; }
.lede strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__bullets { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__bullets li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.ic { width: 16px; height: 16px; fill: var(--accent-2); flex: none; }

/* surveillance grid + radar sweep behind hero */
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,129,247,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,129,247,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero__sweep {
  position: absolute; top: -30%; right: -10%; width: 720px; height: 720px; z-index: 0;
  pointer-events: none; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(54,214,195,0.10) 40deg, transparent 70deg);
  animation: sweep 8s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.hero__glow {
  position: absolute; top: -240px; right: -160px; width: 620px; height: 620px; z-index: 0;
  background: radial-gradient(circle, rgba(47, 129, 247, 0.2), rgba(54, 214, 195, 0.07) 45%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}

/* ---------- Viewfinder framing ---------- */
.viewfinder {
  position: relative;
  padding: 26px;
  background: linear-gradient(160deg, rgba(18,25,37,0.7), rgba(13,19,32,0.7));
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(4px);
}
.vf { position: absolute; width: 18px; height: 18px; border-color: var(--accent-2); border-style: solid; border-width: 0; opacity: 0.85; }
.vf--tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.vf--tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.vf--bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.vf--br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }

/* REC pill */
.rec {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--rec);
}
.rec--abs { position: absolute; top: 16px; right: 34px; z-index: 3; }
.rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 8px var(--rec); animation: blink 1.4s ease-in-out infinite; }

/* moving scanline within a viewfinder */
.scanline {
  position: absolute; left: 26px; right: 26px; top: 26px; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(54,214,195,0.55), transparent);
  animation: scany 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scany { 0%,100% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translateY(150px); opacity: 1; } 90% { opacity: 0; } }

.vf__readout {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted-2);
  letter-spacing: 0.06em; text-align: center; margin-top: 16px;
}
.vf__time { color: var(--accent-2); }

/* ---------- Hero diagram ---------- */
.hero__art { display: flex; justify-content: center; position: relative; z-index: 1; }
.hero__art .viewfinder { width: 100%; max-width: 470px; }
.diagram {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 16px 6px 6px;
}
.diagram__node { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.diagram__label { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.screen {
  width: 118px; height: 86px; background: #0b1018; border: 1px solid var(--border-2);
  border-radius: 8px; padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 8px 20px -10px rgba(0,0,0,0.6);
}
.screen__bar { display: flex; gap: 4px; margin-bottom: 8px; }
.screen__bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); }
.screen__bar span:first-child { background: var(--danger); }
.screen__rows { display: flex; flex-direction: column; gap: 6px; }
.screen__rows i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--border-2), transparent); }
.screen__rows i:nth-child(2) { width: 80%; }
.screen__rows i:nth-child(3) { width: 90%; }

.nvr {
  width: 118px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px;
  background: #0b1018; border: 1px solid var(--border-2); border-radius: 8px;
}
.nvr__cam { aspect-ratio: 16/10; border-radius: 4px; background: #11192a; border: 1px solid var(--border); }
.cam--live { border-color: var(--accent); background: radial-gradient(circle at 50% 45%, rgba(47,129,247,0.5), #0b1018 70%); position: relative; }
.cam--live::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); animation: blink 1.6s ease-in-out infinite;
}

.diagram__flow { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.35; animation: flow 1.4s ease-in-out infinite; }
.pulse:nth-child(2) { animation-delay: 0.18s; }
.pulse:nth-child(3) { animation-delay: 0.36s; }
.diagram__proto {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--accent-2); white-space: nowrap;
}

@keyframes flow { 0%,100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 16px 24px;
  color: var(--muted); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em;
}
.strip .dot { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Feature cards ---------- */
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
/* corner viewfinder tick that appears on hover */
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; opacity: 0;
  border-color: var(--accent-2); border-style: solid; border-width: 0; transition: opacity 0.2s ease;
}
.card::before { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.card::after  { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card:hover::before, .card:hover::after { opacity: 0.7; }
.card__icon {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(47, 129, 247, 0.1); border: 1px solid rgba(47, 129, 247, 0.22); margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px;
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: #06121f; background: var(--grad); margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Use cases ---------- */
.usecase { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 26px 24px; }
.usecase h3 { font-size: 1.15rem; margin-bottom: 8px; }
.usecase p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.note {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 22px 24px;
  background: rgba(229, 115, 75, 0.06); border: 1px solid rgba(229, 115, 75, 0.22); border-radius: var(--radius);
}
.note__ic { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--danger); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.note p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.note strong { color: var(--text); }

/* ---------- Pricing ---------- */
.pricing { max-width: 820px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); box-shadow: 0 20px 50px -28px rgba(47, 129, 247, 0.5); }
.plan__badge {
  position: absolute; top: -12px; left: 28px; font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #06121f; background: var(--grad); padding: 4px 12px; border-radius: 100px;
}
.plan__name { font-size: 1.15rem; margin-bottom: 8px; }
.plan__price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }
.plan__price span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.plan__list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.95rem; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(47, 129, 247, 0.14), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; max-width: 720px; margin: 0 auto; }
.viewfinder--cta { text-align: center; padding: 48px 40px; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.viewfinder--cta > p { color: var(--muted); font-size: 1.05rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 16px; }
.cta__fine { font-size: 0.84rem; color: var(--muted-2); margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1.6fr; gap: 40px; padding-bottom: 40px; }
.footer__brand .brand { margin-bottom: 12px; }
.footer__brand .brand__name { font-size: 1.2rem; font-weight: 800; }
.footer__brand p { color: var(--muted); font-size: 0.94rem; margin: 4px 0 0; max-width: 34ch; }
.footer__by { color: var(--muted-2) !important; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h4 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.94rem; margin-bottom: 10px; transition: color 0.15s; }
.footer__cols a:hover { color: var(--text); }
.footer__bar {
  display: flex; justify-content: space-between; align-items: center; padding: 22px 24px;
  border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.86rem;
}
.footer__legal { display: inline-flex; align-items: center; gap: 18px; }
.footer__legal a { color: var(--muted-2); transition: color 0.15s; }
.footer__legal a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 80px; }
.legal__wrap { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.legal__meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-2); margin: 0 0 36px; }
.legal__toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 40px;
}
.legal__toc h4 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 12px; }
.legal__toc ol { margin: 0; padding-left: 20px; color: var(--muted); columns: 2; column-gap: 28px; }
.legal__toc a { color: var(--muted); }
.legal__toc a:hover { color: var(--accent-2); }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; scroll-margin-top: 90px; padding-top: 8px; }
.legal h2 .num { font-family: var(--mono); color: var(--accent); font-size: 1rem; margin-right: 8px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 0.98rem; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a[href^="mailto"], .legal a[href^="http"] { color: var(--accent-2); }
.legal strong { color: var(--text); }
.legal__note {
  margin-top: 40px; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(47,129,247,0.06); border: 1px solid rgba(47,129,247,0.22);
  color: var(--muted); font-size: 0.9rem;
}
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 28px; }
.backlink:hover { color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .lede { max-width: none; }
  .grid--3, .steps { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .grid--3, .grid--2, .steps, .footer__cols { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .footer__bar { flex-direction: column; gap: 10px; }
  .legal__toc ol { columns: 1; }
  .cta { padding: 72px 0; }
  .viewfinder--cta { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
