/* ───────────────────────── Veyra site ─────────────────────────
   Instrument aesthetic. Tokens mirror the product app exactly. */

:root {
  --bg: #08080a;
  --bg-1: #0d0d0f;
  --bg-2: #141417;
  --bg-3: #1a1a1e;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededf0;
  --text-2: #9a9aa4;
  --text-3: #62626c;
  --accent: #ffb02e;
  --accent-fg: #0b0b0c;
  --accent-ghost: rgba(255, 176, 46, 0.12);
  --accent-line: rgba(255, 176, 46, 0.34);
  --accent-soft: rgba(255, 176, 46, 0.06);
  --warn: #ff9d3d;
  --ring-track: rgba(255, 255, 255, 0.13);
  --ok: #54c77b;
  --sans: 'Archivo', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
body * { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-line); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* faint film grain, same trick as product feel */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
.page { position: relative; z-index: 1; }

/* ───────── shared atoms ───────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow.muted { color: var(--text-3); }
.eyebrow .tick { width: 5px; height: 5px; background: var(--accent); border-radius: 1px; box-shadow: 0 0 8px var(--accent-line); }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 7px var(--accent);
  display: inline-block;
}

.h-sec {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 56ch;
  text-wrap: pretty;
}

/* buttons */
.btn {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn-primary:hover { background: #ffbe50; box-shadow: 0 0 30px var(--accent-line); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255,255,255,0.02); }
.btn-sm { padding: 9px 15px; font-size: 11.5px; }

/* hairline dividers between sections */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), var(--accent-line), var(--line-2), transparent);
  opacity: .55;
}

section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }

/* ───────── nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(8,8,10,0.88); }
.brand { display: flex; align-items: center; gap: 5px; }
.brand .mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent); color: var(--accent-fg);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.brand .word {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  letter-spacing: 0.34em; color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-2); transition: color .18s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ───────── hero ───────── */
.hero { padding-top: 132px; padding-bottom: 0; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 760px;
  background: radial-gradient(ellipse at center, var(--accent-ghost) 0%, transparent 62%);
  pointer-events: none; z-index: 0; opacity: .8;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 26px auto 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .amber { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 60ch;
  margin: 24px auto 0;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-tagline {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
  margin-top: 30px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-tagline .sep { color: var(--accent-line); }

/* ── product window (faithful app recreation) ── */
.window-stage {
  margin-top: 64px;
  position: relative;
  padding-bottom: clamp(72px, 9vw, 128px);
}
.window-stage::before {
  content: ''; position: absolute; left: 50%; top: 8%; transform: translateX(-50%);
  width: 90%; height: 80%;
  background: radial-gradient(ellipse at center, var(--accent-ghost), transparent 70%);
  filter: blur(40px); opacity: .5; pointer-events: none;
}
.appwin-fit { margin: 0 auto; max-width: 1304px; padding: 0 32px; }
.appwin {
  position: relative;
  width: 1240px;
  transform-origin: top left;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02);
}

/* titlebar */
.tb {
  height: 38px; display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-1); border-bottom: 1px solid var(--line); padding-left: 12px;
}
.tb-left { display: flex; align-items: center; gap: 12px; }
.tb-brand { display: flex; align-items: center; gap: 8px; }
.tb-mark { width: 18px; height: 18px; border-radius: 4px; background: var(--accent); color: var(--accent-fg);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px; }
.tb-word { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.34em; color: var(--text); }
.tb-sep { width: 1px; height: 16px; background: var(--line-2); }
.tb-status { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.tb-ctl { display: flex; }
.tb-ctl span { width: 30px; height: 38px; display: grid; place-items: center; color: var(--text-3); }

/* search row */
.srow { display: flex; align-items: center; gap: 12px; padding: 11px 16px 13px; background: var(--bg-1); border-bottom: 1px solid var(--line); }
.navbtn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text-2); display: grid; place-items: center; flex: 0 0 auto; }
.crumb { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; font-size: 13px; }
.crumb .c1 { color: var(--text-3); }
.crumb .c2 { font-weight: 600; color: var(--text); }
.crumb svg { color: var(--text-3); }
.searchwrap {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-2);
}
.searchwrap .neural { color: var(--accent); display: flex; flex: 0 0 auto; }
.typed {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; color: var(--text);
  white-space: nowrap; overflow: hidden;
}
.typed .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scopechip {
  display: flex; align-items: center; gap: 6px; padding: 4px 7px 4px 9px; border-radius: 7px;
  background: var(--accent-ghost); border: 1px solid var(--accent-line); flex: 0 0 auto;
  font-family: var(--mono); font-size: 11px; color: var(--text);
}
.kbd { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; flex: 0 0 auto; }

/* body grid: rail / wall / inspector */
.appbody { display: grid; grid-template-columns: 234px 1fr 340px; }
.rail { border-right: 1px solid var(--line); padding: 18px 16px; display: flex; flex-direction: column; gap: 22px; background: var(--bg); }
.mlabel { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.seg { display: flex; gap: 3px; padding: 3px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; }
.seg button { flex: 1; padding: 7px 10px; font-size: 12px; font-weight: 500; font-family: var(--sans); border: none; cursor: pointer; border-radius: 6px; color: var(--text-2); background: transparent; }
.seg button.on { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.preset { display: flex; flex-direction: column; gap: 7px; }
.preset .p { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; cursor: pointer; }
.preset .p.on { border-color: var(--accent-line); background: var(--accent-soft); }
.preset .p .pt { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
.preset .p.on .pt::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.preset .p .pd { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
.camlist { display: flex; flex-direction: column; gap: 2px; }
.camrow { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 6px; }
.camrow .ck { width: 15px; height: 15px; border-radius: 3px; border: 1px solid var(--accent-line); background: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.camrow .ck svg { stroke: var(--accent-fg); }
.camrow .cinfo { flex: 1; min-width: 0; }
.camrow .cid { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); }
.camrow .cname { font-size: 11px; color: var(--text-3); }
.camrow .cnum { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* wall */
.wall { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.wallhdr { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.wallhdr-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.matchcount { display: flex; align-items: baseline; gap: 9px; }
.matchcount b { font-size: 16px; font-weight: 700; }
.matchcount .m { font-size: 13px; color: var(--text-2); }
.matchcount .t { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.readas { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.readas .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.token { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px; font-family: var(--mono); font-size: 11.5px;
  background: var(--accent-ghost); border: 1px solid var(--accent-line); color: var(--text); white-space: nowrap; }
.token .sq { width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }
.token .k { color: var(--text-3); text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.06em; }
.token .w { font-weight: 600; }
.viewtog { margin-left: auto; display: flex; gap: 2px; padding: 3px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; }
.viewtog button { width: 28px; height: 24px; border-radius: 5px; border: none; cursor: pointer; display: grid; place-items: center; background: transparent; color: var(--text-2); }
.viewtog button.on { background: var(--accent); color: var(--accent-fg); }

.cards { padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.card { border: 1px solid var(--line); background: var(--bg-1); overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -12px rgba(0,0,0,0.7); }
.card.sel { border-color: var(--accent-line); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .meta { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px;
  background: rgba(8,8,10,0.7); padding: 3px 7px; border-radius: 4px; color: var(--text); }
.thumb .meta .lt { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.thumb .ring { position: absolute; top: 8px; right: 8px; }
.cring { position: relative; display: inline-block; width: 30px; height: 30px; }
.cring svg { display: block; transform: rotate(-90deg); }
.cring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.cring.big { width: 48px; height: 48px; flex: 0 0 auto; }
.cring.big b { font-size: 15px; }
.thumb .ts { position: absolute; left: 8px; bottom: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text); background: rgba(8,8,10,0.72); padding: 2px 6px; border-radius: 3px; }
.card .cap { padding: 9px 11px 11px; font-size: 12.5px; color: var(--text); line-height: 1.35; }

/* inspector */
.insp { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 11px; background: var(--bg); }
.insp-hdr { display: flex; align-items: center; justify-content: space-between; }
.insp-hdr .id { font-family: var(--mono); font-size: 12px; color: var(--text); letter-spacing: 0.04em; }
.insp-hdr .id .sub { color: var(--text-3); margin-left: 8px; }
.insp-hdr .x { color: var(--text-3); }
.player { position: relative; aspect-ratio: 16 / 9; max-height: 152px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .pmeta { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; background: rgba(8,8,10,0.7); padding: 3px 7px; border-radius: 4px; }
.player .pmeta .lt { color: var(--text-3); }
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 10px; display: flex; align-items: center; gap: 9px;
  background: linear-gradient(transparent, rgba(8,8,10,0.85)); font-family: var(--mono); font-size: 10.5px; color: var(--text); }
.player .bar .track { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.2); position: relative; }
.player .bar .track::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 78%; background: var(--accent); border-radius: 2px; }
.player .bar .track::before { content: ''; position: absolute; left: 78%; top: 50%; transform: translate(-50%,-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.matchline { display: flex; align-items: center; gap: 12px; }
.matchline .txt .t1 { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.matchline .txt .t2 { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 3px; }

.why { display: flex; flex-direction: column; gap: 7px; }
.whyrow { display: grid; grid-template-columns: 1fr 86px 26px; align-items: center; gap: 10px; }
.whyrow .lab { font-size: 12px; color: var(--text-2); }
.whyrow .bar { height: 4px; border-radius: 2px; background: var(--ring-track); position: relative; overflow: hidden; }
.whyrow .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }
.whyrow .val { font-family: var(--mono); font-size: 11px; color: var(--text-2); text-align: right; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 10px; }
.kv .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.kv .v { font-size: 12.5px; color: var(--text); }
.kv .v .mono { font-family: var(--mono); }

/* cross-camera track */
.track-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.track-hd .cams { font-family: var(--mono); font-size: 10.5px; color: var(--accent); }
.track-box { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); overflow: hidden; }
.track-box svg { display: block; width: 100%; height: auto; }

/* sighting timeline */
.sightings { position: relative; margin-top: 10px; }
.sightings::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.sight { display: grid; grid-template-columns: 14px 46px 1fr auto; gap: 11px; align-items: center; padding: 5px 0; }
.sight .sd { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text-3); z-index: 1; }
.sight.on .sd { border-color: var(--accent); background: var(--accent); }
.sight .sthumb { width: 46px; height: 30px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); }
.sight.on .sthumb { border-color: var(--accent-line); }
.sight .stext { min-width: 0; }
.sight .stext .s1 { font-family: var(--mono); font-size: 11px; color: var(--text); }
.sight.on .stext .s1 .cam { color: var(--accent); }
.sight .stext .s1 .cam { color: var(--text); font-weight: 600; }
.sight .stext .s1 .tm { color: var(--text-3); margin-left: 6px; }
.sight .stext .s2 { font-size: 11px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sight .spct { font-family: var(--mono); font-size: 10.5px; color: var(--text-2); }
.sight.on .spct { color: var(--accent); }

/* ───────── generic content sections ───────── */
.sec-head { max-width: 720px; }
.sec-head .h-sec { margin-top: 16px; }
.sec-head .lede { margin-top: 18px; }

/* wedge / pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line); }
.pillar { padding: 34px 30px; border-right: 1px solid var(--line); position: relative; }
.pillar:last-child { border-right: none; }
.pillar::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.pillar.in::before, .pillar:hover::before { transform: scaleX(1); }
.pillar .pn { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: 0.12em; }
.pillar h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 16px 0 10px; }
.pillar p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* two motions */
.motions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.motion { border: 1px solid var(--line); background: var(--bg-1); padding: 34px 32px; position: relative; overflow: hidden; }
.motion .mtag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.motion h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 12px; }
.motion p { font-size: 14.5px; color: var(--text-2); line-height: 1.62; max-width: 42ch; }
.motion .glow { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; background: radial-gradient(circle, var(--accent-ghost), transparent 70%); pointer-events: none; }

/* detect grid */
.detect { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 52px; border: 1px solid var(--line); }
.evt { padding: 28px 22px; border-right: 1px solid var(--line); }
.evt:last-child { border-right: none; }
.evt .ei { width: 34px; height: 34px; border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent); border-radius: 8px; margin-bottom: 16px; }
.evt h4 { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.evt p { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.detect-note { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--text-3); display: flex; gap: 10px; align-items: baseline; }
.detect-note .dot2 { color: var(--accent); }

/* what it is not */
.nots { display: flex; flex-direction: column; margin-top: 48px; border-top: 1px solid var(--line); }
.notrow { display: grid; grid-template-columns: 38px 280px 1fr; gap: 24px; align-items: start; padding: 28px 4px; border-bottom: 1px solid var(--line); }
.notrow .nx { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; color: var(--text-3); }
.notrow h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.notrow p { font-size: 14px; color: var(--text-2); line-height: 1.6; padding-top: 2px; }

/* why now */
.whynow { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.whynow-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.deadline { border: 1px solid var(--accent-line); background: var(--accent-soft); padding: 32px; }
.deadline .dl-date { font-family: var(--mono); font-size: clamp(30px, 4vw, 46px); font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.deadline .dl-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.deadline .dl-fine { font-size: 13.5px; color: var(--text-2); margin-top: 20px; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 18px; }
.whynow-grid p { font-size: clamp(16px, 1.6vw, 19px); color: var(--text); line-height: 1.6; }
.whynow-grid p + p { margin-top: 18px; color: var(--text-2); font-size: 16px; }

/* comparison */
.compare { margin-top: 52px; border: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: 260px 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: none; }
.crow.veyra { background: var(--accent-soft); }
.crow .cat { padding: 24px 26px; border-right: 1px solid var(--line); }
.crow .cat .cname { font-size: 15px; font-weight: 600; color: var(--text); }
.crow.veyra .cat .cname { color: var(--accent); display: flex; align-items: center; gap: 8px; }
.crow .cat .cex { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 5px; }
.crow .desc { padding: 24px 26px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; display: flex; align-items: center; }
.crow.veyra .desc { color: var(--text); }

.rail::-webkit-scrollbar, .cards::-webkit-scrollbar, .insp::-webkit-scrollbar { width: 8px; }
.rail::-webkit-scrollbar-thumb, .cards::-webkit-scrollbar-thumb, .insp::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
.rail::-webkit-scrollbar-thumb:hover, .cards::-webkit-scrollbar-thumb:hover, .insp::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2); background-clip: padding-box; }
.rail, .cards, .insp { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }

/* ── compatibility / camera wizard ── */
.compat-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 52px; align-items: center; margin-top: 8px; }
.compat-copy .h-sec { margin-top: 16px; }
.compat-copy .lede { margin-top: 16px; }
.vendor-line { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--text-2); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; }

.wiz-fit { min-width: 0; overflow: hidden; }
.wizard { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; width: 620px; transform-origin: top left;
  box-shadow: 0 36px 90px -34px rgba(0,0,0,0.85); }
.wiz-pad { padding: 22px 22px 0; }
.wiz-head { display: flex; align-items: flex-start; justify-content: space-between; }
.wiz-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.wiz-sub { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.wiz-x { color: var(--text-3); }
.wiz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 18px 0 4px; }
.wstep { height: 24px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--text-3); background: var(--bg-3); }
.wstep.done { background: rgba(255,176,46,0.28); color: var(--accent); }
.wstep.now { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.wiz-help { font-size: 12.5px; color: var(--text-2); margin: 16px 0 14px; }
.wiz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.vcard { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 14px 15px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; cursor: pointer; transition: border-color .18s, background .18s; }
.vcard:hover { border-color: var(--line-2); }
.vcard.on { border-color: var(--accent-line); background: var(--accent-soft); }
.vcard.wide { grid-column: 1 / -1; }
.vcard .vname { font-size: 14.5px; font-weight: 600; color: var(--text); }
.vcard .vmeta { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 5px; }
.vcard .vi { color: var(--text-3); flex: 0 0 auto; margin-top: 1px; }
.wiz-note { margin-top: 13px; border: 1px dashed var(--line-2); border-radius: 10px; padding: 13px 15px; }
.wiz-note .nt { font-size: 12.5px; font-weight: 600; color: var(--text); }
.wiz-note .nd { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.wiz-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 22px;
  margin-top: 18px; border-top: 1px solid var(--line); background: var(--bg); }
.wiz-foot .wbtn { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 16px; border-radius: 8px; }
.wiz-foot .wcancel { color: var(--text-2); }
.wiz-foot .wback { border: 1px solid var(--line-2); color: var(--text); }
.wiz-foot .wnext { background: var(--accent); color: var(--accent-fg); font-weight: 600; }

@media (max-width: 860px) {
  .compat-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  /* wizard stays a fixed desktop dialog, scaled as one piece */
}

/* deployment */
.deploy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.dcard { border: 1px solid var(--line); background: var(--bg-1); padding: 28px 26px; }
.dcard .dnum { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.12em; display: flex; align-items: center; gap: 9px; }
.dcard .dnum::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.dcard h4 { font-size: 17px; font-weight: 600; margin: 16px 0 9px; }
.dcard p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.deploy-foot { margin-top: 26px; font-size: 15px; color: var(--text-2); max-width: 64ch; line-height: 1.6; }
.deploy-foot b { color: var(--text); font-weight: 600; }

/* cta */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: min(760px, 90vw); aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-ghost) 0%, var(--accent-soft) 40%, transparent 72%);
  filter: blur(30px); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.cta p { font-size: 18px; color: var(--text-2); max-width: 52ch; margin: 20px auto 0; line-height: 1.6; }
.cta .hero-actions { margin-top: 36px; }
.cta .fineprint { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-top: 24px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot .fl { display: flex; align-items: center; gap: 12px; }
.foot .copy { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.foot .fr { display: flex; gap: 26px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.foot .fr a:hover { color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── guided demo cursor (amber pointer that tours the screens) ── */
.demo-cursor {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(255, 176, 46, 0.16);
  box-shadow: 0 0 18px rgba(255, 176, 46, 0.5), inset 0 0 10px rgba(255, 176, 46, 0.2);
  pointer-events: none; z-index: 60; opacity: 0;
  will-change: left, top, opacity;
  transition: opacity .4s ease;
}
.demo-cursor.on { opacity: 1; }
.demo-cursor::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.demo-cursor::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
}
.demo-cursor.click::after { animation: cursorPing .55s ease-out; }
.demo-cursor.press { background: rgba(255, 176, 46, 0.34); box-shadow: 0 0 22px rgba(255, 176, 46, 0.65), inset 0 0 12px rgba(255, 176, 46, 0.3); }
@keyframes cursorPing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.3); opacity: 0; }
}
/* the real pointer is replaced by the amber ring while over a screen */
.appwin, .appwin *, .wizard, .wizard * { cursor: none; }
@media (prefers-reduced-motion: reduce) { .demo-cursor.click::after { animation: none; } }

/* ───────── responsive ───────── */
/* NOTE: the product window (.appwin) is intentionally NOT responsive. It is a
   fixed 1240px desktop frame scaled as one piece by JS, so it always reads as a
   real desktop app. Only the surrounding page content reflows below. */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
  .motions { grid-template-columns: 1fr; }
  .detect { grid-template-columns: repeat(2, 1fr); }
  .evt { border-bottom: 1px solid var(--line); }
  .whynow-grid { grid-template-columns: 1fr; gap: 32px; }
  .compare .crow { grid-template-columns: 1fr; }
  .crow .cat { border-right: none; border-bottom: 1px solid var(--line); }
  .deploy { grid-template-columns: 1fr; }
  .notrow { grid-template-columns: 1fr; gap: 10px; }
  .notrow .nx { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 12px 20px; }
  .nav-actions .btn-ghost { display: none; }
  .appwin-fit { padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
