/* =========================================================================
   Peek — product scenes: hero stage, desktop rail, tracker, app windows
   ========================================================================= */

/* ---------- Hero shell ---------- */

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 68% 22%, rgba(204, 255, 77, 0.11), transparent 68%),
    radial-gradient(46% 40% at 18% 6%, rgba(70, 223, 210, 0.08), transparent 70%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(90% 65% at 50% 18%, #000 20%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 4.5vw, 3.5rem);
  align-items: center;
}

.hero__brand {
  display: block;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 0.28em;
}

.hero__brand::after {
  content: "";
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  border-radius: 50%;
  background: var(--acid);
  margin-left: 0.1em;
  vertical-align: 0.06em;
  box-shadow: 0 0 22px 3px rgba(204, 255, 77, 0.5);
}

.hero__promise {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
  max-width: 20ch;
}

.hero h1 {
  margin-bottom: 1.4rem;
}

.hero__lede {
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

.hero__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.85rem;
  color: var(--line-strong);
}

.hero__eyebrow {
  margin-bottom: 1.6rem;
}

/* ---------- Stage ---------- */

.stage {
  position: relative;
  --yaw: 0;
  --tracker-w: min(12rem, 33%);
}

.stage__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 30%),
    var(--ink-850);
  padding: clamp(0.6rem, 1.4vw, 0.9rem);
  box-shadow: var(--shadow-window);
}

.stage__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--acid);
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.2s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(204, 255, 77, 0.45);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(204, 255, 77, 0);
  }
}

/* ---------- Monitor / desktop viewport ---------- */

/* The mock screen is a query container so every detail inside it scales with
   the screen itself rather than with the viewport. */
.monitor {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #05070a;
  overflow: hidden;
  container-type: size;
  container-name: screen;
}

.monitor__scan {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.35));
}

.rail {
  position: absolute;
  inset: 0;
  display: flex;
  width: 300%;
  will-change: transform;
}

.vdesk {
  position: relative;
  width: 33.3333%;
  height: 100%;
  font-size: max(10px, 2.7cqw);
  padding: 7cqh 4cqw 13cqh;
  display: grid;
  grid-template-rows: auto auto;
  align-content: space-between;
  gap: 4cqh;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(120% 100% at 30% 0%, rgba(70, 223, 210, 0.07), transparent 60%),
    linear-gradient(160deg, #0e1319, #0a0d12 60%, #080a0e);
}

.vdesk--2 {
  background:
    radial-gradient(120% 100% at 70% 0%, rgba(204, 255, 77, 0.08), transparent 60%),
    linear-gradient(160deg, #10141a, #0b0e13 60%, #080a0e);
}

.vdesk--3 {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 182, 72, 0.06), transparent 62%),
    linear-gradient(160deg, #0f1217, #0a0d11 60%, #08090d);
}

.vdesk__tag {
  position: absolute;
  top: 2.4cqh;
  right: 4cqw;
  font-family: var(--font-mono);
  font-size: max(6px, 1.55cqw);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

/* Mini windows */

.win {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: rgba(19, 23, 29, 0.92);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  backdrop-filter: blur(3px);
}

/* The trailing window sits bottom-right, clear of the floating tracker panel. */
.vdesk > .win:last-child {
  width: 66%;
  justify-self: end;
}

.win--focus {
  border-color: rgba(204, 255, 77, 0.24);
  box-shadow:
    0 0 0 1px rgba(204, 255, 77, 0.06),
    0 18px 34px -20px rgba(0, 0, 0, 0.95);
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.7em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 0.5em;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
}

.win__dot {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex: none;
}

.win__dot--acid {
  background: var(--acid);
}

.win__dot--teal {
  background: var(--teal);
}

.win__dot--amber {
  background: var(--amber);
}

.win__ctrls {
  margin-left: auto;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.28);
}

.win__body {
  flex: 1;
  min-height: 0;
  padding: 0.75em 0.75em 0.9em;
  display: grid;
  gap: 0.5em;
  align-content: start;
}

.lines {
  display: grid;
  gap: 0.5em;
  align-content: start;
}

.ln {
  height: 0.26em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.11);
}

.w95 { width: 95%; }
.w85 { width: 85%; }
.w75 { width: 75%; }
.w65 { width: 65%; }
.w55 { width: 55%; }
.w45 { width: 45%; }
.w35 { width: 35%; }
.w25 { width: 25%; }

.ln--acid {
  background: rgba(204, 255, 77, 0.5);
}

.ln--teal {
  background: rgba(70, 223, 210, 0.42);
}

.ln--amber {
  background: rgba(255, 182, 72, 0.45);
}

.ln--dim {
  background: rgba(255, 255, 255, 0.06);
}

.win__url {
  height: 0.85em;
  border-radius: 0.42em;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.win__split {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 0.55em;
}

.win__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4em;
}

.tilebox {
  height: 1.7em;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

/* Taskbar */

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  --tb: max(5px, 1.7cqw);
  height: 7.5cqh;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 2cqw;
  background: rgba(12, 15, 19, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

/* `--tb` is redefined per context: the mock screen scales with the screen,
   the tray strip uses fixed pixels. */
.taskbar__icons {
  display: flex;
  align-items: center;
  gap: calc(var(--tb, 10px) * 0.7);
}

.tb-icon {
  width: var(--tb, 10px);
  height: var(--tb, 10px);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.tb-icon--active {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 0 -3px var(--acid);
}

.taskbar__tray {
  position: absolute;
  right: 2cqw;
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  font-family: var(--font-mono);
  font-size: 1.35cqw;
  color: rgba(255, 255, 255, 0.45);
}

.tray-peek {
  width: 2cqw;
  height: 2cqw;
  min-width: 8px;
  min-height: 8px;
  color: var(--acid);
  filter: drop-shadow(0 0 6px rgba(204, 255, 77, 0.55));
}

/* Switch toast */

.desk-toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 13cqh;
  transform: translate(-50%, 8px);
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  padding: 1.2cqh 2.2cqw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(14, 18, 22, 0.9);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 1.7cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  pointer-events: none;
}

.desk-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.desk-toast__pips {
  display: flex;
  gap: 0.9cqw;
}

.desk-toast__pip {
  width: 1cqw;
  height: 1cqw;
  min-width: 3px;
  min-height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.25s var(--ease-out);
}

.desk-toast__pip.is-on {
  background: var(--acid);
}

/* ---------- Tracker panel ---------- */

.tracker {
  position: absolute;
  left: -1.25rem;
  bottom: -1.5rem;
  width: var(--tracker-w);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(16, 19, 23, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.tracker__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-mute);
}

.tracker__head .live-dot::before {
  width: 5px;
  height: 5px;
}

.tracker__fps {
  margin-left: auto;
  color: var(--text-faint);
}

.tracker__cam {
  position: relative;
  background: linear-gradient(180deg, #0b0e12, #070a0d);
  border-bottom: 1px solid var(--line-soft);
}

.tracker__cam svg {
  width: 100%;
  height: auto;
}

.face-group {
  transform: translateX(calc(var(--yaw) * 19px)) rotate(calc(var(--yaw) * -3.5deg));
  transform-origin: 110px 100px;
}

.face-inner {
  transform: translateX(calc(var(--yaw) * 4.5px));
}

.face-pupils {
  transform: translateX(calc(var(--yaw) * 3px));
}

.face-box {
  transform: translateX(calc(var(--yaw) * 19px));
  stroke: var(--acid);
  transition: stroke 0.2s var(--ease-out);
}

.is-armed .face-box {
  stroke: var(--acid-bright);
}

/* Yaw meter */

.yaw {
  padding: 0.6rem 0.6rem 0.7rem;
}

.yaw__track {
  position: relative;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--ink-900);
  overflow: hidden;
}

.yaw__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  background: rgba(255, 255, 255, 0.028);
  transition: background-color 0.18s var(--ease-out);
}

.yaw__zone--l {
  left: 0;
  border-right: 1px dashed var(--line-strong);
}

.yaw__zone--r {
  right: 0;
  border-left: 1px dashed var(--line-strong);
}

.yaw__zone.is-hot {
  background: rgba(204, 255, 77, 0.16);
}

.yaw__center {
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}

.yaw__needle {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--acid);
  left: calc(50% + (var(--yaw) * 44%));
  transform: translateX(-50%);
  box-shadow: 0 0 12px 1px rgba(204, 255, 77, 0.55);
}

.yaw__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.yaw__labels .is-hot {
  color: var(--acid);
}

/* Stage controls */

.stage__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.75rem;
}

.stage__hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-right: auto;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ink-850);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.16s var(--ease-out),
    border-color 0.16s var(--ease-out),
    background-color 0.16s var(--ease-out);
}

.pill-btn:hover {
  color: var(--acid);
  border-color: var(--acid-line);
  background: rgba(204, 255, 77, 0.07);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.85rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-880);
  position: relative;
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--acid);
}

.step__vis {
  height: 128px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #0b0e12, #090c0f);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.step__vis svg {
  width: 100%;
  height: 100%;
}

.step h3 {
  font-size: 1.08rem;
}

.step p {
  color: var(--text-mute);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Step 1: scanning bracket + sweep line */

.scan-box,
.signal-hit {
  transform-box: fill-box;
  transform-origin: center;
}

.scan-box {
  animation: scanpulse 3.4s var(--ease-in-out) infinite;
}

@keyframes scanpulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.scanline {
  animation: sweep 3.4s var(--ease-in-out) infinite;
}

@keyframes sweep {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    transform: translateX(74px);
    opacity: 0.9;
  }
  85% {
    opacity: 0;
  }
}

/* Step 2: scrolling yaw signal */

.signal-track {
  animation: signalscroll 7s linear infinite;
}

@keyframes signalscroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-220px);
  }
}

.signal-hit {
  opacity: 0;
  animation: hitflash 7s linear infinite;
}

.signal-hit--low {
  animation-delay: 2.93s;
}

@keyframes hitflash {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  4% {
    opacity: 1;
    transform: scale(1.5);
  }
  14% {
    opacity: 0.75;
    transform: scale(1);
  }
  26%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Mini desktop slide animation inside step 3 */

.minirail {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 12px;
  animation: minislide 5.2s var(--ease-in-out) infinite;
}

@keyframes minislide {
  0%,
  32% {
    transform: translateX(0);
  }
  46%,
  78% {
    transform: translateX(calc(-50% - 4px));
  }
  92%,
  100% {
    transform: translateX(0);
  }
}

.minidesk {
  flex: 0 0 calc(50% - 4px);
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: linear-gradient(160deg, #12171d, #0b0e13);
  display: grid;
  gap: 5px;
  padding: 9px;
  align-content: start;
  transition: border-color 0.3s var(--ease-out);
}

.minidesk__bar {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.minidesk--on {
  border-color: rgba(204, 255, 77, 0.35);
  box-shadow: 0 0 0 1px rgba(204, 255, 77, 0.1);
}

.minidesk--on .minidesk__bar:first-child {
  background: rgba(204, 255, 77, 0.6);
}

/* ---------- Focus comparison ---------- */

.compare {
  display: grid;
  gap: 0.75rem;
}

.compare__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-880);
}

.compare__row--peek {
  border-color: var(--acid-line);
  background: linear-gradient(90deg, rgba(204, 255, 77, 0.07), rgba(204, 255, 77, 0) 55%), var(--ink-880);
}

.compare__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.compare__row--peek .compare__label {
  color: var(--acid);
}

.compare__action {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.compare__action kbd,
.compare__action .glance-chip {
  margin-inline: 0.08rem;
}

kbd {
  display: inline-block;
  padding: 0.22em 0.5em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: var(--ink-800);
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--text-dim);
  line-height: 1.4;
}

.glance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22em 0.6em;
  border: 1px solid var(--acid-line);
  border-radius: var(--r-xs);
  background: var(--acid-glow);
  color: var(--acid-bright);
  font-family: var(--font-mono);
  font-size: 0.78em;
}

/* ---------- Privacy diagram ---------- */

.flow {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(70, 223, 210, 0.05), transparent 65%),
    var(--ink-880);
}

.flow__lane {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Keeps each arrow glued to the node it points at when the lane wraps. */
.flow__step {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.flow__node {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--ink-800);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.flow__node svg {
  color: var(--acid);
  flex: none;
}

.flow__node--device {
  border-color: var(--acid-line);
  background: rgba(204, 255, 77, 0.06);
  color: var(--text);
}

.flow__arrow {
  color: var(--text-faint);
  flex: none;
}

.flow__blocked {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--text-faint);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.flow__node--off {
  border-style: dashed;
  border-color: var(--line);
  background: transparent;
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 120, 120, 0.7);
  text-decoration-thickness: 1px;
}

.flow__node--off svg {
  color: var(--text-faint);
}

.flow__boundary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
}

/* ---------- App window (settings) ---------- */

.appwin {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--ink-850);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.appwin__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.appwin__bar svg {
  color: var(--acid);
  flex: none;
}

.appwin__ctrls {
  margin-left: auto;
  display: flex;
  gap: 0.9rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.appwin__body {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  min-height: 22rem;
}

.appwin__side {
  border-right: 1px solid var(--line);
  background: var(--ink-880);
  padding: 0.6rem;
  display: grid;
  gap: 0.15rem;
  align-content: start;
}

.sidebtn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--text-mute);
  text-align: left;
  width: 100%;
  transition:
    background-color 0.15s var(--ease-out),
    color 0.15s var(--ease-out);
}

.sidebtn[data-current="true"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sidebtn[data-current="true"] .sidebtn__bar {
  background: var(--acid);
}

.sidebtn svg {
  flex: none;
}

.sidebtn__bar {
  width: 3px;
  height: 1.05rem;
  border-radius: 2px;
  background: transparent;
  flex: none;
}

.appwin__pane {
  padding: clamp(1rem, 2.2vw, 1.5rem);
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.pane__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.pane__title h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Form rows */

.frow {
  display: grid;
  gap: 0.5rem;
}

.frow__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.frow label,
.frow__label {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

.frow__val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--acid);
  min-width: 3.4rem;
  text-align: right;
}

.frow__hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.fselect {
  appearance: none;
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--ink-800);
  color: var(--text);
  font-size: 0.88rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238c959f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  cursor: pointer;
}

.fselect:hover {
  border-color: var(--text-faint);
}

.hotkey {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--ink-800);
}

.hotkey__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* Range */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--acid) 0%,
    var(--acid) var(--fill, 50%),
    var(--ink-700) var(--fill, 50%),
    var(--ink-700) 100%
  );
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--ink-700);
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--acid);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--ink-850);
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.15s var(--ease-out);
}

input[type="range"]:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--acid);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--ink-850);
  box-shadow: 0 0 0 1px var(--line-strong);
}

/* Segmented control */

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--ink-900);
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--r-xs);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-mute);
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease-out),
    color 0.15s var(--ease-out);
}

.segmented label small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-faint);
}

.segmented label:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

.segmented input:checked + label {
  background: var(--acid);
  color: var(--acid-ink);
  font-weight: 600;
}

.segmented input:checked + label small {
  color: rgba(16, 20, 10, 0.7);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

/* Toggle */

.toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle__track {
  width: 34px;
  height: 19px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--ink-900);
  position: relative;
  transition:
    background-color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}

.toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-mute);
  transition:
    transform 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out);
}

.toggle input:checked + .toggle__track {
  background: var(--acid);
  border-color: var(--acid);
}

.toggle input:checked + .toggle__track::after {
  transform: translateX(15px);
  background: var(--acid-ink);
}

.toggle input:focus-visible + .toggle__track {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

/* Live threshold preview in settings */

.preview {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ink-900);
}

.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.preview__track {
  position: relative;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 50%, rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.preview__thresh {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed var(--acid-line);
  transition: top 0.12s var(--ease-out);
}

.preview__signal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview__signal path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.preview__legend {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-faint);
}

.preview__legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 0.4rem;
  vertical-align: 0.22em;
  background: var(--teal);
}

.preview__legend span:last-child::before {
  background: var(--acid);
}

/* ---------- Tray strip ---------- */

.traydemo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(80% 120% at 80% 100%, rgba(204, 255, 77, 0.07), transparent 60%),
    linear-gradient(180deg, #0d1116, #0a0d11);
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem) 0;
  overflow: hidden;
}

.traydemo__menu {
  width: min(17.5rem, 100%);
  margin-left: auto;
  margin-right: clamp(0rem, 6vw, 5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(23, 27, 33, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-window);
  padding: 0.35rem;
  transform: translateY(6px);
}

.traydemo__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-xs);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.traydemo__item + .traydemo__item {
  margin-top: 1px;
}

.traydemo__item--on {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.traydemo__label {
  white-space: nowrap;
}

.traydemo__key {
  margin-left: auto;
  padding-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.traydemo__sep {
  height: 1px;
  margin: 0.35rem 0.5rem;
  background: var(--line);
}

.traydemo__check {
  width: 14px;
  height: 14px;
  color: var(--acid);
  flex: none;
}

.traydemo__bar {
  --tb: 11px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
  margin-inline: calc(clamp(1rem, 3vw, 2rem) * -1);
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 19, 0.9);
}

.traydemo__icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-faint);
}

.traydemo__peek {
  position: relative;
  color: var(--acid);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-xs);
  background: rgba(204, 255, 77, 0.1);
  box-shadow: 0 0 0 1px var(--acid-line);
}

.traydemo__clock {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  text-align: right;
  line-height: 1.25;
}

/* ---------- Download panel ---------- */

.download {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 130% at 88% 8%, rgba(204, 255, 77, 0.12), transparent 62%),
    linear-gradient(180deg, #14181d, #0e1115);
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(115deg, #000, transparent 62%);
}

.download > * {
  position: relative;
}

.download h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.download__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.download__meta {
  margin: 1.25rem 0 0;
}

.download__note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--acid-line);
  border-radius: var(--r-sm);
  background: var(--acid-glow);
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 46ch;
}

.download__note svg {
  color: var(--acid);
  flex: none;
  margin-top: 0.15rem;
}

.download__note[hidden] {
  display: none;
}

.buildcard {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8, 10, 13, 0.6);
  backdrop-filter: blur(6px);
}

.buildcard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.buildcard__row dt {
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.buildcard__row dd {
  margin: 0;
  color: var(--text-dim);
  text-align: right;
  overflow-wrap: anywhere;
}

.buildcard__hr {
  height: 1px;
  background: var(--line-soft);
}

/* ---------- Section anchors / misc ---------- */

.split-visual {
  position: relative;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-880);
  overflow: hidden;
}

.stat {
  padding: 1.25rem 1.4rem;
  border-left: 1px solid var(--line-soft);
  display: grid;
  gap: 0.3rem;
}

.stat:first-child {
  border-left: 0;
}

.stat__k {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat__l {
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero__promise {
    max-width: 22ch;
  }

  .hero__lede {
    max-width: 60ch;
  }

  .download {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tracker {
    position: static;
    width: 100%;
    max-width: 19rem;
    margin: 0.75rem auto 0;
    backdrop-filter: none;
  }

  .stage__controls {
    padding-left: 0;
    margin-top: 1.25rem;
  }

  .stage__hint {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .appwin__body {
    grid-template-columns: 1fr;
  }

  .appwin__side {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .appwin__side::-webkit-scrollbar {
    display: none;
  }

  .sidebtn {
    white-space: nowrap;
    width: auto;
  }

  .reqs__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .traydemo__menu {
    margin-inline: auto;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .stat:first-child {
    border-top: 0;
  }
}

@media (max-width: 480px) {
  .hero__cta .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
