/* ForceFlow — section-specific styles */

/* ─────────── Header bits ─────────── */

.logo-sub {
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fg-3);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.status-dot-text { line-height: 1; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fg-3);
  display: inline-block;
  flex-shrink: 0;
}
.dot-g { background: #4ade80; box-shadow: 0 0 0 2px color-mix(in oklab, #4ade80 30%, transparent); animation: blink 2.6s ease-in-out infinite; }
.dot-r { background: #f87171; }
.dot-y { background: #fbbf24; }
.dot-r, .dot-y { opacity: .8 }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  margin: 5px 0;
  transition: transform 200ms var(--ease);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  z-index: 60;
}
.mobile-menu-inner {
  position: absolute;
  inset: 70px 16px auto 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu-inner a:not(.btn) {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mobile-close {
  position: absolute;
  right: 14px; top: 14px;
  background: transparent; border: 0; color: var(--fg);
  font-size: 26px; line-height: 1; cursor: pointer;
}

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 720px) {
  .status-dot { display: none; }
  .nav-cluster .btn { display: none; }
  .nav-cluster .lang-switch { display: none; }
  .burger { display: block; }
}
@media (min-width: 721px) {
  .burger { display: none; }
}

/* ─────────── HERO ─────────── */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
  border-top: 0;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* Grid removed by design — kept as no-op so any legacy refs don't break. */
.hero-grid { display: none; }
/* Quiet accent wash from top-center, fading down — no orb, no mesh. */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 38% at 50% -8%,
      color-mix(in oklab, var(--accent) 22%, transparent) 0%,
      color-mix(in oklab, var(--accent) 8%, transparent) 35%,
      transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero-vignette {
  background:
    radial-gradient(ellipse 60% 38% at 50% -8%,
      color-mix(in oklab, var(--accent) 14%, transparent) 0%,
      color-mix(in oklab, var(--accent) 5%, transparent) 35%,
      transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner-flow {
  text-align: center;
}
.hero-inner-flow .hero-title,
.hero-inner-flow .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.hero-inner-flow .hero-cta {
  justify-content: center;
}
.hero-inner-flow .hero-metrics {
  margin-left: auto;
  margin-right: auto;
}
.hero-inner-flow .hero-eyebrow,
.hero-inner-flow .hero-brand {
  margin-left: auto;
  margin-right: auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  margin-bottom: 36px;
  opacity: .92;
}
.hero-brand-mark {
  color: #ffffff;
}
/* Hero W is fully white — override the accent on top-W path */
.hero-brand-mark path[fill="var(--accent)"] {
  fill: currentColor;
}
/* Also override the glass-gradient fills used in BrandIcon defs */
.hero-brand-mark path[fill="url(#brand-icon-glass-top)"],
.hero-brand-mark path[fill="url(#brand-icon-glass-bottom)"] {
  fill: currentColor;
}
.hero-brand .brand-icon {
  display: block;
  height: 22px;
  width: auto;
}
.hero-brand-split {
  margin-bottom: 18px;
}
.hero-brand-split .brand-icon {
  height: 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-1) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 28px;
  text-wrap: balance;
  max-width: 1040px;
  color: var(--fg);
}

.rotator {
  display: inline-block;
  position: relative;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.045em;
}
.rotator-item {
  display: inline-block;
  animation: rot-in 700ms var(--ease-out) both;
}
@keyframes rot-in {
  0%   { opacity: 0; transform: translateY(0.4em); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.5;
  color: var(--fg-3);
  max-width: 620px;
  margin: 0 0 40px;
  letter-spacing: -0.005em;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 96px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 980px;
}
.hero-metric {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.hero-inner-flow .hero-metric {
  text-align: center;
  padding: 22px 16px;
}
.hero-metric:last-child { border-right: 0; }
.hero-metric-v {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-metric-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero-metric-s {
  font-size: 12.5px;
  color: var(--fg-4);
  margin-top: 6px;
}

/* split variant */
.hero-inner-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title-split {
  font-size: clamp(40px, 5.4vw, 80px);
}

.hero-diagram {
  padding: 14px;
  background: color-mix(in oklab, var(--bg-1) 92%, transparent);
}
.hero-diagram-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 12px;
  border-bottom: 1px dashed var(--line);
}
.hero-diagram-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.hero-diagram-foot {
  display: flex;
  gap: 6px;
  padding: 12px 4px 0;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}

/* ─────────── Hero picker — service category segmented control ─────────── */
.hero-picker-wrap {
  display: flex;
  justify-content: center;
  margin: 28px auto 0;
  max-width: 100%;
}
.hero-picker {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(var(--picker-count, 4), minmax(0, 1fr));
  padding: 5px;
  background: color-mix(in oklab, var(--bg-2) 75%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 0;
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-picker-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / var(--picker-count, 4));
  background: var(--bg-1);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.25),
    inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, var(--line)),
    0 8px 20px -12px color-mix(in oklab, var(--accent) 40%, transparent);
  transform: translateX(calc(var(--picker-i, 0) * 100%));
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  z-index: 0;
  pointer-events: none;
}
.hero-picker-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg-3);
  text-align: left;
  transition: color .25s ease;
}
.hero-picker-btn:hover { color: var(--fg-2); }
.hero-picker-btn.on { color: var(--fg); }
.hero-picker-n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
  transition: color .25s ease;
}
.hero-picker-btn.on .hero-picker-n { color: var(--accent); }
.hero-picker-t {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-picker { grid-template-columns: repeat(2, 1fr); }
  .hero-picker-indicator { display: none; }
  .hero-picker-btn.on {
    background: var(--bg-1);
    box-shadow:
      0 1px 0 rgba(0,0,0,0.25),
      inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, var(--line));
  }
}
@media (max-width: 480px) {
  .hero-picker { grid-template-columns: 1fr; }
  .hero-picker-t { white-space: normal; }
}

/* ─────────── Live demo · Direction B — Editor mockup ─────────── */
/* A 3-pane editor: workspace rail (left) · flow canvas (centre) ·
   node inspector + events tail (right). Reads as an honest screenshot of
   the Wayrelay studio, not a marketing diagram.

   Multi-shade slab — each pane has its own surface tone (rail / canvas /
   inspector) sourced from a local 5-step color-mix palette defined on
   .hero-live below. Hairline pane dividers, top inset highlight, one
   accent per pane (selected flow row, selected node, ok status). */

.hero-live {
  width: 100%;
  max-width: 1100px;
  margin: 48px auto 56px;

  /* Deeper, navy-tinted palette — closer to true black with a 1–2% blue
     lift. Each pane has its own shade; the canvas reads as recessed under
     the rail/inspector. Framer/Linear "near-black" feel. */
  --live-slab-bg:        #08090c;
  --live-panel-bg:       #0a0c11;
  --live-panel-bg-2:     #0d0f15;
  --live-canvas-bg:      #070809;
  --live-hover:          color-mix(in oklab, #ffffff 6%, transparent);
  --live-row-active:     color-mix(in oklab, var(--accent) 13%, transparent);
  --live-input-bg:       color-mix(in oklab, #ffffff 5%, transparent);
  --live-input-border:   color-mix(in oklab, #ffffff 9%, transparent);
  --live-border-strong:  color-mix(in oklab, #ffffff 12%, transparent);
  --live-divider:        color-mix(in oklab, #ffffff 7%, transparent);
  --live-inset-hl:       color-mix(in oklab, #ffffff 6%, transparent);
  --live-fg-dim:         color-mix(in oklab, var(--fg-3) 70%, transparent);
  --live-tag-bg:         color-mix(in oklab, #ffffff 5%, transparent);
  --live-card-bg:        #0c0e13;
  --live-card-bg-2:      #0a0b10;
  --live-pill-fg-bg:     color-mix(in oklab, #ffffff 6%, transparent);
  --live-pill-accent-bg: color-mix(in oklab, var(--accent) 14%, transparent);

  /* Tighter radii — Framer/Linear geometry. The slab itself drops to 12px;
     inner cards 8–10px; tiles 6px; inputs 4–5px; pills 4px. */
  --live-r-slab:    12px;
  --live-r-card:    10px;
  --live-r-tile:    6px;
  --live-r-row:     6px;
  --live-r-input:   5px;
  --live-r-pill:    4px;
}
[data-theme="light"] .hero-live {
  --live-slab-bg:        color-mix(in oklab, var(--bg-1) 97%, #000 3%);
  --live-panel-bg:       color-mix(in oklab, var(--bg-1) 95%, #000 5%);
  --live-panel-bg-2:     color-mix(in oklab, var(--bg-1) 92%, #000 8%);
  --live-canvas-bg:      color-mix(in oklab, var(--bg-1) 98%, #000 2%);
  --live-hover:          color-mix(in oklab, #000 5%, transparent);
  --live-row-active:     color-mix(in oklab, var(--accent) 12%, transparent);
  --live-input-bg:       color-mix(in oklab, #000 5%, transparent);
  --live-input-border:   color-mix(in oklab, #000 10%, transparent);
  --live-border-strong:  color-mix(in oklab, #000 14%, transparent);
  --live-divider:        color-mix(in oklab, #000 8%, transparent);
  --live-inset-hl:       color-mix(in oklab, #fff 60%, transparent);
  --live-fg-dim:         color-mix(in oklab, var(--fg-3) 60%, transparent);
  --live-tag-bg:         color-mix(in oklab, #000 5%, transparent);
  --live-card-bg:        color-mix(in oklab, var(--bg-1) 92%, #000 8%);
  --live-card-bg-2:      color-mix(in oklab, var(--bg-1) 86%, #000 14%);
  --live-pill-fg-bg:     color-mix(in oklab, #000 6%, transparent);
  --live-pill-accent-bg: color-mix(in oklab, var(--accent) 12%, transparent);
}

.hero-live-frame {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Outer kicker row above the slab — sits on its own line, 14px above
      the slab. Stats are accent-tinted so EVENTS/ERR read as "live data". */
.hero-live-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--fg-4);
  line-height: 1;
  text-transform: uppercase;
}
.hero-live-kicker-id    { color: var(--fg-3); letter-spacing: 0.04em; text-transform: none; }
.hero-live-kicker-state { color: var(--accent); letter-spacing: 0.10em; }
.hero-live-kicker-dot   { color: var(--fg-4); opacity: 0.5; padding: 0 1px; }
.hero-live-kicker-stats {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-live-kicker-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.hero-live-kicker-stat em {
  font-style: normal;
  color: var(--fg-4);
  letter-spacing: 0.12em;
  font-size: 10px;
}

/* ── The slab ── three distinct surfaces (rail · canvas · inspector),
   internal hairlines, top inset highlight so it reads as a real chrome.
   Outer radius is tightened to 12px — Framer/Linear "blueprint" feel. */
.hero-live-slab {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 252px;
  align-items: stretch;
  background: var(--live-slab-bg);
  border: 1px solid var(--live-divider);
  border-radius: var(--live-r-slab);
  overflow: hidden;
  min-height: 464px;
  box-shadow:
    0 1px 0 var(--live-inset-hl) inset,
    0 24px 60px -28px rgba(0, 0, 0, 0.6);
}
/* Hairline highlight along the very top edge of the slab. */
.hero-live-slab::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--live-inset-hl) 20%,
    var(--live-inset-hl) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ════════════════════════════════════════════════
   LEFT RAIL · workspace tree
   ═══════════════════════════════════════════════ */
.hero-live-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--live-divider);
  padding: 0 0 16px;
  font-family: var(--font-sans);
  background: var(--live-panel-bg);
}

/* Tabs strip — Pages · Layers · Assets as filled pills. The active tab is
   an accent-tinted rectangle (7px corner) with accent text; the rest are
   transparent with --fg-3 text and a quiet hover fill. No sliding underline,
   no border. Matches the inspector tabs in spirit. */
.hero-live-rail-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
  border-bottom: 1px solid var(--live-divider);
  margin-bottom: 10px;
}
.hero-live-rail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-3);
  cursor: default;
  background: transparent;
  transition: background .15s var(--ease, ease), color .15s var(--ease, ease);
}
.hero-live-rail-tab:hover {
  background: var(--live-hover);
  color: var(--fg-2);
}
.hero-live-rail-tab.is-active {
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent);
}
.hero-live-rail-tab.is-active:hover {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  color: var(--accent);
}

.hero-live-rail-head {
  padding: 4px 14px 10px;
}
.hero-live-rail-crumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}
.hero-live-rail-crumb svg { color: var(--fg-4); }
.hero-live-rail-crumb-sep { color: var(--fg-4); opacity: .6; }
.hero-live-rail-crumb-cur { color: var(--fg); }

.hero-live-rail-search {
  margin: 0 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--live-r-input);
  background: var(--live-input-bg);
  box-shadow: inset 0 1px 0 var(--live-inset-hl);
}
.hero-live-rail-search-icon { color: var(--fg-4); flex-shrink: 0; }
.hero-live-rail-search-text {
  font-size: 12px;
  color: var(--fg-4);
  flex: 1;
  letter-spacing: -0.005em;
}
.hero-live-rail-search-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  padding: 1px 4px;
  background: var(--live-pill-fg-bg);
  border-radius: 3px;
  line-height: 1.2;
}

.hero-live-rail-section {
  display: flex;
  flex-direction: column;
}
.hero-live-rail-section-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  padding: 0 14px 6px;
  text-transform: uppercase;
}
.hero-live-rail-section-chev {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0;
  color: var(--fg-4);
  line-height: 1;
  width: 8px;
  display: inline-block;
  transform: translateY(-1px);
}
.hero-live-rail-section-count {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--live-fg-dim);
  letter-spacing: 0.06em;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--live-pill-fg-bg);
  line-height: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
}

.hero-live-rail-list {
  list-style: none;
  margin: 0;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
}

.hero-live-rail-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--live-r-row);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  cursor: default;
  transition: background .15s var(--ease, ease), color .15s var(--ease, ease);
}
.hero-live-rail-row:hover {
  background: var(--live-hover);
  color: var(--fg);
}
.hero-live-rail-row-tw {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--fg-4);
  line-height: 1;
  text-align: center;
  transition: color .15s var(--ease, ease);
}
.hero-live-rail-row:hover .hero-live-rail-row-tw,
.hero-live-rail-row.is-selected .hero-live-rail-row-tw {
  color: var(--fg-2);
}
.hero-live-rail-row.is-selected {
  background: var(--live-row-active);
  color: var(--fg);
}
.hero-live-rail-row-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
/* Filled rect-tag status — 4px corner, NOT a stadium. Accent tint for
   active, neutral grey for draft/paused. */
.hero-live-rail-row-state {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: var(--live-r-pill);
  line-height: 1.3;
  background: var(--live-pill-fg-bg);
  color: var(--fg-4);
}
.hero-live-rail-row.is-selected .hero-live-rail-row-state,
.hero-live-rail-row-state.is-active {
  background: var(--live-pill-accent-bg);
  color: var(--accent);
}
.hero-live-rail-row-state.is-draft {
  background: var(--live-pill-fg-bg);
  color: var(--fg-3);
}
.hero-live-rail-row-state.is-paused {
  background: var(--live-pill-fg-bg);
  color: var(--fg-4);
}

.hero-live-rail-divider {
  height: 1px;
  background: var(--live-divider);
  margin: 12px 12px;
}

.hero-live-rail-list-ints {
  padding: 0 6px;
}
.hero-live-rail-int {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--live-r-row);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-2);
  transition: background .15s var(--ease, ease), color .15s var(--ease, ease);
}
.hero-live-rail-int:hover {
  background: var(--live-hover);
  color: var(--fg);
}
.hero-live-rail-int-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  transition: color .15s var(--ease, ease);
}
.hero-live-rail-int:hover .hero-live-rail-int-icon {
  color: var(--fg);
}
.hero-live-rail-int-label {
  letter-spacing: -0.005em;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Drill-in affordance — tiny Solar chevron in --fg-4. Hints that each row
   opens deeper integration settings, without screaming "status". */
.hero-live-rail-int-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-4);
  transition: color .15s var(--ease, ease), transform .15s var(--ease, ease);
}
.hero-live-rail-int:hover .hero-live-rail-int-chev {
  color: var(--fg-2);
  transform: translateX(1px);
}

/* ════════════════════════════════════════════════
   CENTRE CANVAS · flow editor stage
   ═══════════════════════════════════════════════ */
.hero-live-canvas {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--live-divider);
  background: var(--live-canvas-bg);
}

.hero-live-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 16px;
  border-bottom: 1px solid var(--live-divider);
  font-family: var(--font-sans);
  background: var(--live-panel-bg-2);
}
.hero-live-canvas-head-l,
.hero-live-canvas-head-r {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-live-canvas-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
/* Leading file-icon — accent-tinted Solar widget glyph that sits where the
   old filled dot did. Reads as "you are looking at a flow file". */
.hero-live-canvas-live-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.hero-live-canvas-live-icon svg { display: block; }
.hero-live-canvas-sep {
  width: 1px;
  height: 12px;
  background: var(--live-divider);
}
.hero-live-canvas-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.02em;
}
.hero-live-canvas-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--live-r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  background: var(--live-pill-fg-bg);
}
.hero-live-canvas-btn:first-child {
  background: var(--live-pill-accent-bg);
  color: var(--accent);
}
.hero-live-canvas-btn svg { color: currentColor; }
.hero-live-canvas-btn-kbd {
  color: var(--fg-4);
  letter-spacing: 0.04em;
  padding-left: 6px;
  margin-left: 2px;
  border-left: 1px solid var(--live-divider);
}

/* ── Tools strip ── 6-icon palette + breadcrumb. Sits between the canvas
   header and the stage, like Framer's tool tray. */
.hero-live-canvas-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--live-divider);
  background: var(--live-panel-bg);
}
.hero-live-canvas-tools-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.hero-live-canvas-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--live-r-tile);
  color: var(--fg-3);
  transition: background .15s var(--ease, ease), color .15s var(--ease, ease);
  cursor: default;
}
.hero-live-canvas-tool:hover {
  background: var(--live-hover);
  color: var(--fg);
}
.hero-live-canvas-tool.is-active {
  background: var(--live-pill-accent-bg);
  color: var(--accent);
}
.hero-live-canvas-tools-sep {
  width: 1px;
  height: 14px;
  background: var(--live-divider);
}
.hero-live-canvas-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.02em;
}
.hero-live-canvas-breadcrumb-seg { color: var(--fg-3); }
.hero-live-canvas-breadcrumb-seg.is-active { color: var(--fg); }
.hero-live-canvas-breadcrumb-sep { color: var(--fg-4); opacity: .6; }

.hero-live-canvas-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Faint dot grid so the canvas reads as a "design surface". Quieter than
     before — the deeper canvas bg means the dots can be more subtle. */
  background-image:
    radial-gradient(
      circle at 1px 1px,
      color-mix(in oklab, #ffffff 8%, transparent) 1px,
      transparent 1.5px
    );
  background-size: 16px 16px;
  background-position: -1px -1px;
  background-color: var(--live-canvas-bg);
}
[data-theme="light"] .hero-live-canvas-stage {
  background-image:
    radial-gradient(
      circle at 1px 1px,
      color-mix(in oklab, #000 14%, transparent) 1px,
      transparent 1.5px
    );
}

/* SVG topology */
.hero-live-topo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 260;
  overflow: visible;
}

/* Inline I/O endpoint — 28px tinted disc (the port itself) + 8px tick stub
   bridging to the bezier rail + canvas-typeset label opposite the rail.
   Accent stays reserved for the classifier panel; nodes are intentionally
   quiet so the topology reads as wired terminals, not flow-tool cards. */
.hero-live-node-disc {
  fill: color-mix(in oklab, var(--accent) 8%, var(--live-canvas-bg, #070809));
  stroke: color-mix(in oklab, var(--accent) 22%, var(--line));
  stroke-width: 1;
  transition: fill 180ms var(--ease, ease), stroke 180ms var(--ease, ease);
}
.hero-live-node-tick {
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: stroke 180ms var(--ease, ease);
}
.hero-live-node-g .hero-live-icon-g {
  color: var(--fg-2);
  transition: color 180ms var(--ease, ease);
}
.hero-live-node-g:hover .hero-live-node-disc {
  fill: color-mix(in oklab, var(--accent) 14%, var(--live-canvas-bg, #070809));
  stroke: color-mix(in oklab, var(--accent) 50%, var(--line));
}
.hero-live-node-g:hover .hero-live-node-tick {
  stroke: color-mix(in oklab, var(--accent) 60%, transparent);
}
.hero-live-node-g:hover .hero-live-icon-g { color: var(--fg); }
.hero-live-node-g:hover .hero-live-node-name { color: var(--fg); }

[data-theme="light"] .hero-live-node-disc {
  fill: color-mix(in oklab, var(--accent) 6%, #fff);
  stroke: color-mix(in oklab, var(--accent) 28%, var(--line));
}

.hero-live-node-label {
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 4px;
  line-height: 1;
  pointer-events: none;
}
.hero-live-node-label.align-r { text-align: right; align-items: flex-end; }
.hero-live-node-label.align-l { text-align: left;  align-items: flex-start; }
.hero-live-node-name {
  font-size: 12.5px;
  font-weight: 540;
  letter-spacing: -0.015em;
  color: var(--fg-2);
  transition: color 180ms var(--ease, ease);
}
.hero-live-node-role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-4);
}
[data-theme="light"] .hero-live-node-name { color: var(--fg); }
[data-theme="light"] .hero-live-node-role { color: var(--fg-3); }

/* Stagger fade-in. Sources slide right→0, sinks slide left→0. Reduced-
   motion users get the final state instantly (no animation block runs). */
@media (prefers-reduced-motion: no-preference) {
  .hero-live-node-g {
    opacity: 0;
    transform: translateX(var(--in-x, 4px));
    animation: hero-live-node-in 280ms var(--ease-out, cubic-bezier(.2,.7,.2,1)) forwards;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
  .hero-live-node-g.is-sink { --in-x: -4px; }
}
@keyframes hero-live-node-in {
  to { opacity: 1; transform: translateX(0); }
}

/* Rails — quiet monochrome hairlines. Slightly stronger than --line so the
   topology reads against the darker canvas. */
.hero-live-rail-path {
  fill: none;
  stroke: var(--live-border-strong);
  stroke-width: 1;
  stroke-linecap: round;
}

/* Travelling accent segment. */
.hero-live-rail-seg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 4 100;
  pointer-events: none;
}
.hero-live-rail-seg-in {
  animation: hero-live-seg-in 1800ms linear infinite;
}
.hero-live-rail-seg-out {
  animation: hero-live-seg-out 1800ms linear infinite;
}

@keyframes hero-live-seg-in {
  0%    { stroke-dashoffset: 0;    opacity: 1; }
  33%   { stroke-dashoffset: -104; opacity: 1; }
  33.01%{ opacity: 0; }
  100%  { stroke-dashoffset: -104; opacity: 0; }
}
@keyframes hero-live-seg-out {
  0%    { stroke-dashoffset: 0;    opacity: 0; }
  0.01% { opacity: 1; }
  33%   { stroke-dashoffset: -104; opacity: 1; }
  33.01%{ opacity: 0; }
  100%  { stroke-dashoffset: -104; opacity: 0; }
}

/* ── Classifier panel — flat recessed card at the canvas centre, replacing
   the old junction tile. Reads as a live "router.classify" output stream:
   a tiny header strip (mono key + streaming label + pulse dot) and 4 rows
   of recent routing decisions. No accent ring, no drop-shadow, no halo —
   a quietly filled surface that the rails feed into and exit from. */
.hero-live-classifier-fo {
  overflow: visible;
}
.hero-live-classifier {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--live-card-bg);
  border: 1px solid var(--live-divider);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 0 var(--live-inset-hl) inset,
    0 6px 20px -10px rgba(0, 0, 0, 0.5);
  font-family: var(--font-sans);
}
/* Header strip — mono key on the left, faint pulse on the right. Lives on
   its own slightly darker surface so it reads as window chrome. */
.hero-live-classifier-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  padding: 0 9px;
  background: var(--live-card-bg-2);
  border-bottom: 1px solid var(--live-divider);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--fg-4);
}
.hero-live-classifier-h-l {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}
.hero-live-classifier-h-k {
  color: var(--fg-3);
  letter-spacing: 0;
  font-weight: 500;
}
.hero-live-classifier-h-sep { color: var(--fg-4); opacity: 0.5; }
.hero-live-classifier-h-s {
  color: var(--fg-4);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}
.hero-live-classifier-h-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent);
  animation: hero-live-classifier-pulse 1800ms ease-in-out infinite;
}
@keyframes hero-live-classifier-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* Decision list — 4 rows, tabular mono. Each row is its own grid so the
   columns stay aligned: ts | src | → | sink-tag | conf | ok. The most
   recent decision is the first <li>; older rows decay in opacity. */
.hero-live-classifier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.hero-live-classifier-row {
  display: grid;
  grid-template-columns: auto auto 8px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-bottom: 1px solid var(--live-divider);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  transition: opacity .42s var(--ease-out, ease);
}
.hero-live-classifier-row:last-child { border-bottom: 0; }
.hero-live-classifier-row:nth-child(1) { opacity: 1; }
.hero-live-classifier-row:nth-child(2) { opacity: 0.78; }
.hero-live-classifier-row:nth-child(3) { opacity: 0.52; }
.hero-live-classifier-row:nth-child(4) { opacity: 0.32; color: var(--fg-4); }

.hero-live-classifier-row.is-new {
  animation: hero-live-classifier-row-in 260ms var(--ease-out, cubic-bezier(.2,.7,.2,1)) both;
}
@keyframes hero-live-classifier-row-in {
  0%   { transform: translateY(-3px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.hero-live-classifier-ts {
  color: var(--fg-4);
  font-size: 9.5px;
}
.hero-live-classifier-src {
  color: var(--fg-2);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 10px;
}
.hero-live-classifier-arrow {
  color: var(--fg-4);
  font-size: 10px;
  justify-self: center;
}
/* Sink pill — filled accent tint, 4px radius. The only accent mass per row,
   carries the "decision" weight. */
.hero-live-classifier-sink {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  border-radius: var(--live-r-pill);
  background: var(--live-pill-accent-bg);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 9.5px;
}
.hero-live-classifier-conf {
  color: var(--fg-3);
  font-size: 10px;
  justify-self: end;
}
.hero-live-classifier-ok {
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* Collaborator cursor — parked in the empty band between the Junction
   and the CRM column, well below the zoom indicator and above the code
   card. Drifts gently but never overlaps a rail or another card. */
.hero-live-cursor {
  position: absolute;
  top: 42%;
  left: 70%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  animation: hero-live-cursor-drift 6800ms ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.hero-live-cursor-arrow { color: var(--accent); }
/* Collaborator pill — one of the few stadium shapes that stays. */
.hero-live-cursor-name {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 2px 7px;
  background: var(--accent);
  color: var(--accent-fg, #fff);
  border-radius: 999px;
  line-height: 1;
}
@keyframes hero-live-cursor-drift {
  0%, 100% { transform: translate(0, 0); }
  30%      { transform: translate(6px, -4px); }
  60%      { transform: translate(-3px, 3px); }
  85%      { transform: translate(4px, 1px); }
}

/* ── Inline preview cards ── small UI tiles floating in the canvas. Hint
   at "what we deliver" alongside the flow. Two cards: a metric tile with
   sparkline (top-left of stage) and a tiny code block (bottom-right). */
.hero-live-preview {
  position: absolute;
  background: var(--live-card-bg);
  border: 1px solid var(--live-divider);
  border-radius: var(--live-r-card);
  box-shadow:
    0 1px 0 var(--live-inset-hl) inset,
    0 10px 28px -10px rgba(0, 0, 0, 0.55);
  font-family: var(--font-sans);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-live-preview-metric {
  top: 16px;
  left: 16px;
  width: 152px;
  padding: 10px 12px 8px;
}
.hero-live-preview-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.hero-live-preview-k {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--fg-4);
}
.hero-live-preview-trend {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-live-preview-v {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 2px;
}
.hero-live-preview-spark {
  display: block;
  width: 100%;
  height: 22px;
  color: var(--accent);
}

/* Code block — mini editor card with syntax tokens (no second hue: just
   accent + 3 levels of fg). */
.hero-live-preview-code {
  bottom: 16px;
  right: 16px;
  width: 220px;
  padding: 0;
  overflow: hidden;
}
.hero-live-preview-code-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  background: var(--live-card-bg-2);
  border-bottom: 1px solid var(--live-divider);
}
.hero-live-preview-code-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-live-preview-code-body {
  margin: 0;
  padding: 12px 14px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--fg-2);
  white-space: pre;
  overflow: hidden;
}
.hero-live-code-ln {
  display: inline-block;
  width: 14px;
  color: var(--fg-4);
  font-size: 9.5px;
  user-select: none;
  text-align: right;
  margin-right: 6px;
}
.hero-live-code-kw { color: var(--accent); }
.hero-live-code-fn { color: var(--fg); font-weight: 500; }
.hero-live-code-var { color: var(--fg-2); }
.hero-live-code-pr { color: var(--fg-3); }
.hero-live-code-num {
  color: var(--fg);
  font-weight: 500;
}

/* ── Zoom indicator ── tiny segmented control, top-right of the canvas */
.hero-live-canvas-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 4px;
  background: var(--live-card-bg);
  border: 1px solid var(--live-divider);
  border-radius: 999px;
  box-shadow:
    0 1px 0 var(--live-inset-hl) inset,
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  pointer-events: none;
  z-index: 3;
}
.hero-live-canvas-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--fg-3);
  line-height: 1;
}
.hero-live-canvas-zoom-v {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
  letter-spacing: -0.005em;
}
.hero-live-canvas-zoom-sep {
  width: 1px;
  height: 12px;
  background: var(--live-divider);
  margin: 0 2px;
}
.hero-live-canvas-zoom-fit {
  color: var(--fg-3);
  padding: 0 6px 0 2px;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════
   RIGHT INSPECTOR · properties + events tail
   ═══════════════════════════════════════════════ */
.hero-live-inspector {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: var(--font-sans);
  padding: 0 0 16px;
  background: var(--live-panel-bg);
}

.hero-live-insp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px 10px;
  margin-bottom: 0;
}
.hero-live-insp-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.hero-live-insp-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}
/* Decorative window-control dots — three neutral grey circles. Brand-restrained
   echo of mac chrome; no red/yellow/green colour coding. */
.hero-live-insp-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-live-insp-dots > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-4);
  opacity: 0.5;
}

/* Inspector tabs — Properties / Events / Logs */
.hero-live-insp-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--live-divider);
}
.hero-live-insp-tab {
  position: relative;
  padding: 6px 8px 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-3);
  cursor: default;
  transition: color .2s var(--ease, ease);
}
.hero-live-insp-tab:hover { color: var(--fg-2); }
.hero-live-insp-tab.is-active {
  color: var(--fg);
}
.hero-live-insp-tab.is-active::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-live-insp-section {
  padding: 0 16px;
  margin-bottom: 14px;
}
.hero-live-insp-section-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-live-insp-section-chev {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0;
  color: var(--fg-4);
  line-height: 1;
  width: 8px;
  display: inline-block;
  transform: translateY(-1px);
}
.hero-live-insp-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  transition: background .15s var(--ease, ease);
  border-radius: var(--live-r-pill);
  padding-left: 4px;
  padding-right: 2px;
  margin-left: -4px;
  margin-right: -2px;
}
.hero-live-insp-row:hover {
  background: var(--live-hover);
}
.hero-live-insp-k {
  color: var(--fg-3);
  letter-spacing: -0.005em;
  font-size: 11.5px;
}
.hero-live-insp-v {
  color: var(--fg);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.hero-live-insp-v-ok {
  color: var(--accent);
}

/* Numeric / value inputs — filled surface (no border), with optional
   trailing unit pill. Subtle inset top highlight so the shape reads. */
.hero-live-insp-input {
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  height: 22px;
  min-width: 0;
  background: var(--live-input-bg);
  border-radius: var(--live-r-input);
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--live-inset-hl);
  transition: background .15s var(--ease, ease);
}
.hero-live-insp-row:hover .hero-live-insp-input {
  background: color-mix(in oklab, var(--fg) 9%, transparent);
}
.hero-live-insp-input.is-accent {
  background: var(--live-pill-accent-bg);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--accent) 18%, transparent);
}
.hero-live-insp-input-v {
  flex: 1;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.005em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-live-insp-input-v.is-sans {
  font-family: var(--font-sans);
  font-size: 11.5px;
}
.hero-live-insp-input.is-accent .hero-live-insp-input-v {
  color: var(--accent);
}
.hero-live-insp-input-u {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--fg-4);
  background: color-mix(in oklab, var(--fg) 4%, transparent);
}
.hero-live-insp-input.is-accent .hero-live-insp-input-u {
  background: transparent;
  color: var(--accent);
  opacity: 0.7;
}
.hero-live-insp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hero-live-insp-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-2);
  background: var(--live-tag-bg);
  border-radius: var(--live-r-pill);
  letter-spacing: 0.02em;
  transition: background .15s var(--ease, ease), color .15s var(--ease, ease);
}
.hero-live-insp-chip:hover {
  background: var(--live-pill-accent-bg);
  color: var(--accent);
}

.hero-live-insp-divider {
  height: 1px;
  background: var(--live-divider);
  margin: 4px 0 12px;
}

.hero-live-insp-tail {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.hero-live-insp-tail-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-live-insp-tail-count {
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}

/* Console list — used inside the inspector tail. */
.hero-live-console-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  --hl-rows: 5;
  min-height: calc(var(--hl-rows) * 1.45em);
}
.hero-live-row {
  display: grid;
  grid-template-columns: auto auto 8px auto minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--fg-2);
  opacity: 0.45;
  transition: opacity .42s var(--ease-out, ease);
}
.hero-live-row:nth-last-child(1) { opacity: 1; }
.hero-live-row:nth-last-child(2) { opacity: 0.72; }
.hero-live-row:nth-last-child(3) { opacity: 0.48; }
.hero-live-row:nth-last-child(4) { opacity: 0.28; }
.hero-live-row:nth-last-child(5) { opacity: 0.14; }

.hero-live-row.is-new {
  animation: hero-live-row-in 220ms var(--ease-out, cubic-bezier(.2,.7,.2,1)) both;
}
@keyframes hero-live-row-in {
  0%   { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}
.hero-live-row-ts {
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
}
.hero-live-row-src,
.hero-live-row-sink {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 10.5px;
}
.hero-live-row-arrow {
  color: var(--fg-4);
  font-size: 10.5px;
  justify-self: center;
}
.hero-live-row-text {
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-live-slab {
    grid-template-columns: 196px minmax(0, 1fr) 224px;
  }
  .hero-live-canvas-breadcrumb { display: none; }
  .hero-live-preview-metric { width: 124px; padding: 8px 10px 6px; }
  .hero-live-preview-code   { width: 168px; }
}
@media (max-width: 900px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-metric:nth-child(2) { border-right: 0; }
  .hero-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-inner-split { grid-template-columns: 1fr; }
  .hero-live { margin: 36px auto 40px; }
  .hero-live-slab {
    grid-template-columns: 196px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .hero-live-rail {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }
  .hero-live-canvas {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    border-right: 0;
  }
  .hero-live-inspector {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    border-top: 1px solid var(--live-divider);
    padding-top: 0;
  }
  .hero-live-canvas-tools { padding: 0 8px; }
  .hero-live-preview-metric { left: 10px; top: 10px; }
  .hero-live-preview-code { right: 10px; bottom: 10px; }
}
@media (max-width: 640px) {
  .hero-live { margin: 28px auto 32px; }
  .hero-live-slab {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .hero-live-rail { display: none; }
  .hero-live-canvas {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }
  .hero-live-inspector {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    border-top: 1px solid var(--live-divider);
  }
  .hero-live-kicker { font-size: 10px; gap: 4px; }
  .hero-live-preview-code { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-rail-seg,
  .hero-live-classifier-h-pulse,
  .hero-live-cursor {
    animation: none !important;
  }
  .hero-live-rail-seg {
    opacity: 0 !important;
  }
  .hero-live-classifier-h-pulse {
    opacity: 0.6 !important;
    transform: none !important;
  }
  .hero-live-row.is-new,
  .hero-live-classifier-row.is-new {
    animation: none !important;
  }
}

/* ─────────── SERVICES ─────────── */

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

.svc-card {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s var(--ease, ease), background .3s var(--ease, ease);
}
.svc-card:hover {
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line-strong));
}

/* Cursor-tracked spotlight inside each card */
.svc-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--accent) 16%, transparent),
    transparent 55%
  );
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.svc-card:hover .svc-spotlight { opacity: 1; }

/* Top row — icon tile + numeric label */
.svc-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.svc-icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background:
    radial-gradient(120% 100% at 30% 20%, color-mix(in oklab, var(--accent) 22%, transparent), color-mix(in oklab, var(--accent) 4%, transparent) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 16%, transparent);
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease);
  flex-shrink: 0;
}
.svc-icon-tile svg { width: 26px; height: 26px; display: block; }
.svc-card:hover .svc-icon-tile {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent),
    0 12px 26px -12px color-mix(in oklab, var(--accent) 55%, transparent);
}
.svc-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.svc-card-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--fg);
  text-wrap: balance;
}
.svc-card-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* Bullets — always visible */
.svc-bullets {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
.svc-bullets li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.svc-bullet-mark {
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Footer — chips row + CTA row below */
.svc-foot {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.svc-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}
.svc-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.svc-card:hover .svc-chip {
  color: var(--fg-2);
  border-color: color-mix(in oklab, var(--accent) 22%, var(--line));
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}

/* CTA — small circle at right at rest, full-width pill on hover */
.svc-cta {
  position: relative;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  color: var(--fg-2);
  overflow: hidden;
  transition:
    width .35s var(--ease-out, ease),
    background .25s ease,
    border-color .25s ease,
    color .25s ease;
}
.svc-cta-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .18s ease;
}
.svc-cta-icon svg { width: 18px; height: 18px; display: block; }
.svc-cta-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
}
.svc-card:hover .svc-cta {
  align-self: stretch;
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.svc-card:hover .svc-cta-icon { opacity: 0; }
.svc-card:hover .svc-cta-label { opacity: 1; transition-delay: .15s; }

/* Responsive — tablet & mobile */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .svc-card { min-height: auto; }
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { padding: 22px 20px; }
  .svc-icon-tile { width: 46px; height: 46px; border-radius: 11px; }
  .svc-icon-tile svg { width: 22px; height: 22px; }
  .svc-card-title { font-size: 19px; }

  /* Full-width CTA always on phones */
  .svc-cta {
    align-self: stretch;
    width: 100%;
    height: 44px;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-fg);
  }
  .svc-cta-icon { opacity: 0; }
  .svc-cta-label { opacity: 1; }
}

/* Touch (no real hover) — show full CTA, drop spotlight & tile lift */
@media (hover: none), (pointer: coarse) {
  .svc-spotlight { display: none; }
  .svc-cta {
    align-self: stretch;
    width: 100%;
    height: 40px;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-fg);
  }
  .svc-cta-icon { opacity: 0; }
  .svc-cta-label { opacity: 1; }
  .svc-card:hover .svc-icon-tile {
    transform: none;
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 16%, transparent);
  }
}

/* services list variant */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 50px 44px 1fr auto 28px;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 260ms var(--ease);
}
.service-row:hover { background: var(--bg-1); }
.service-row-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-4);
}
.service-row-icon { color: var(--accent); }
.service-row-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.service-row-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--fg-2);
}
.service-row-stack { display: flex; gap: 4px; flex-wrap: wrap; }
.service-row-more {
  color: var(--accent);
  font-size: 18px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.service-row:hover .service-row-more { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

@media (max-width: 800px) {
  .service-row {
    grid-template-columns: 40px 1fr 28px;
    gap: 14px;
  }
  .service-row-icon, .service-row-stack { display: none; }
}
