/* Van Born Labs: public marketing site.
   Palette extracted from arkadiuszvanborn.com (SITE_LIVE src/styles.css):
   --color-bg #000, --color-fg #d5dee6, --color-muted #8b969f, --color-line #2a3038,
   --color-accent #c5d0d8 (steel, used for quiet chrome and the monochrome logo).
   Labs / ARIELA accent from assistant.css and LiveTest.css: lime #B8FF2C, ink #0a0f04,
   lime-dim #7aad14, surfaces #050505 / #0c0c0c. Fonts: Syne + Sora. */
:root {
  --bg: #000000;
  --bg-2: #050505;
  --bg-3: #0c0c0c;
  --fg: #d5dee6;
  --muted: #8b969f;
  --danger: #ff6b4a;
  --ok: #b8ff2c;
  --warn: #ffd166;
  --line: #2a3038;
  --line-strong: #3a424c;
  --accent: #b8ff2c;
  --accent-ink: #0a0f04;
  --accent-dim: #7aad14;
  --steel: #c5d0d8;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1.2rem, 4vw, 3rem);
  --max: 1120px;
  --radius: 1.125rem;
  --pointer-x: 70%;
  --pointer-y: 12%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--fg); color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--bg);
  min-height: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:focus-visible, .nav-cta:focus-visible { outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem;
}
.skip:focus { left: var(--gutter); top: .5rem; z-index: 80; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav-cta {
  background: var(--accent) !important; color: var(--accent-ink) !important;
  font-weight: 600; padding: .45rem .85rem; border-radius: 999px; text-decoration: none;
}
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 800px) {
  .nav-toggle-label {
    display: flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span:before, .nav-toggle-label span:after {
    content: ""; display: block; width: 1.1rem; height: 2px; background: var(--fg); position: relative;
  }
  .nav-toggle-label span:before { position: absolute; top: -6px; }
  .nav-toggle-label span:after { position: absolute; top: 6px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 4.25rem;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
  }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: .6rem; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 3.5rem; }
.hero-kicker {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.1rem);
  max-width: 16ch;
  color: #eef3f7;
  margin-bottom: 1.15rem;
}
.hero-lead { max-width: 40rem; color: var(--muted); font-size: 1.12rem; margin-bottom: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 999px; padding: .75rem 1.15rem;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: .55rem .9rem; font-size: .88rem; }

/* Featured */
.featured {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.75rem; align-items: start;
  padding: 1.6rem; border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + .25rem);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  margin: 0 0 3.5rem;
}
.featured img.icon { width: 160px; height: 160px; border-radius: 1.25rem; }
.featured .eyebrow { color: var(--accent); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.featured h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .6rem; }
.featured p { color: var(--muted); max-width: 46rem; }
.price { font-family: var(--font-mono); font-size: .92rem; color: var(--fg); margin: .85rem 0 1.1rem; }
@media (max-width: 700px) {
  .featured { grid-template-columns: 1fr; }
  .featured img.icon { width: 96px; height: 96px; }
}

/* Sections */
.section { padding: 1rem 0 3.2rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: 1.2rem; margin-bottom: 1.4rem;
}
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.section-idx { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; }
.section.is-secondary .card { opacity: .96; }
.section.is-secondary .section-head h2 { font-size: 1.25rem; color: var(--muted); font-weight: 650; }

.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: grid; gap: .55rem; align-content: start;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #0000009a; padding: 1.1rem 1.1rem 1.2rem; text-decoration: none;
}
.card:hover { border-color: #3a4a32; }
.card img { width: 72px; height: 72px; border-radius: 16px; }
.card h3 { font-size: 1.2rem; max-width: 18ch; }
.card p { color: var(--muted); font-size: .98rem; }
.card .cta { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: .25rem; }
.card .meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

/* Product page */
.crumb { color: var(--muted); font-size: .88rem; margin-bottom: 1.2rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.product-hero { padding: 2.6rem 0 2rem; display: grid; gap: .8rem; max-width: 46rem; }
.product-hero .icon { width: 120px; height: 120px; border-radius: 24px; }
.product-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.product-hero .summary { color: var(--muted); font-size: 1.12rem; }
.block { padding: .3rem 0 1.8rem; max-width: 44rem; }
.block h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.points { list-style: none; display: grid; gap: .45rem; }
.points li { padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--fg); }
.fields { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.fields code {
  font-family: var(--font-mono); font-size: .82rem;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .25rem .6rem;
  color: var(--accent);
}
pre {
  overflow: auto; background: #050505; border: 1px solid var(--line);
  border-radius: .8rem; padding: 1rem 1.1rem; font-size: .85rem; line-height: 1.5;
}
.faq details {
  border-top: 1px solid var(--line); padding: .9rem 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: .45rem; }
.disclaimer { color: var(--muted); font-size: .92rem; }

/* Legal / utility */
.prose { max-width: 42rem; padding: 3.2rem 0 4rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; margin-top: 2rem;
  color: var(--muted); font-size: .92rem;
}
.footer-inner { display: grid; gap: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--fg); }
.mail { color: var(--accent); text-decoration: none; }

.band {
  margin: 1rem 0 2.5rem; padding: 1.6rem 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--bg-2);
  display: grid; gap: .8rem;
}
.band h2 { font-size: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- Stunning home: stage, hero split, demo, sections ---------- */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(2.4rem, 6vw, 5.2rem) 0 2.4rem;
}
.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}
.hero-stage::before {
  width: min(52rem, 90vw);
  height: min(36rem, 70vw);
  top: -8rem;
  right: -8rem;
  background:
    radial-gradient(circle at 40% 40%, rgba(182,255,59,.16), transparent 62%),
    radial-gradient(circle at 70% 60%, rgba(70,140,80,.18), transparent 55%);
  animation: orb-drift 22s ease-in-out infinite alternate;
}
.hero-stage::after {
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  left: -8rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(40,90,50,.22), transparent 70%);
  animation: orb-drift 28s ease-in-out infinite alternate-reverse;
}
.hero-stage .grid-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(182,255,59,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182,255,59,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 72%);
  opacity: .55;
}
@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.hero-copy .hero-kicker { margin-bottom: .85rem; }
.hero-split h1 {
  font-size: clamp(2.15rem, 5.6vw, 4.25rem);
  max-width: 14ch;
  color: #eef3f7;
  margin-bottom: 1.05rem;
  text-wrap: balance;
}
.hero-lead { max-width: 38rem; color: var(--muted); font-size: 1.08rem; margin-bottom: 1.15rem; }
.hero-note {
  color: var(--muted);
  font-size: .9rem;
  margin: .9rem 0 0;
  max-width: 38rem;
}
.hero-note a, .rule-hook a, .faq a, .cite-link { color: var(--accent); }
.rule-pill {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  flex-wrap: wrap;
  margin: 0 0 1.15rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-2));
  color: var(--fg);
  font-size: .82rem;
  text-decoration: none;
  max-width: 100%;
}
.rule-pill strong { color: var(--accent); font-weight: 600; }

/* Demo panel */
.demo {
  --demo-pad: 1.1rem;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + .35rem);
  background:
    linear-gradient(180deg, rgba(18,24,16,.95), rgba(8,10,8,.98));
  box-shadow:
    0 0 0 1px rgba(182,255,59,.06),
    0 24px 60px rgba(0,0,0,.45);
  padding: var(--demo-pad);
  min-height: 28.5rem;
  overflow: hidden;
}
.demo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
}
.demo-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .9rem;
}
.demo-chrome-left { display: flex; align-items: center; gap: .55rem; }
.demo-dots { display: flex; gap: .3rem; }
.demo-dots i {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--line-strong); display: block;
}
.demo-dots i:nth-child(1) { background: #3a2a2a; }
.demo-dots i:nth-child(2) { background: #3a3a2a; }
.demo-dots i:nth-child(3) { background: #2a3a2a; }
.demo-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.demo-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  padding: .2rem .5rem;
  font-weight: 700;
  white-space: nowrap;
}
.demo-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.demo-ring {
  --pct: 61;
  width: 4.6rem;
  height: 4.6rem;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle closest-side, var(--bg) 72%, transparent 73%),
    conic-gradient(var(--accent) calc(var(--pct) * 1%), #1a1e16 0);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  transition: background 0.6s ease;
}
.demo-score-meta p { margin: 0; }
.demo-score-meta .label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.demo-score-meta .state {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--fg);
  min-height: 2.4em;
}
.demo-bar {
  height: 4px;
  background: #161a16;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .9rem;
}
.demo-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6a9a22, var(--accent));
  border-radius: inherit;
  transition: width .45s ease;
}
.demo-rows {
  list-style: none;
  display: grid;
  gap: .45rem;
  margin: 0 0 .9rem;
}
.demo-rows li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: .65rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .55rem .7rem;
  background: #050505;
  opacity: .38;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease;
}
.demo-rows li.is-on { opacity: 1; transform: none; }
.demo-rows li.is-issue { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.demo-rows li.is-fixed { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.demo-rows li.is-flag { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: .4rem;
  background: var(--muted);
}
.is-issue .dot { background: var(--danger); box-shadow: 0 0 8px color-mix(in srgb, var(--danger) 50%, transparent); }
.is-fixed .dot { background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent); }
.is-flag .dot { background: var(--warn); }
.row-copy strong {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.row-copy span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: .1rem;
}
.row-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  padding-top: .15rem;
  white-space: nowrap;
}
.is-fixed .row-tag { color: var(--accent); }
.is-flag .row-tag { color: var(--warn); }
.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
}
.demo-caption {
  color: var(--muted);
  font-size: .75rem;
  margin: 0;
  max-width: 28rem;
}
.demo-replay {
  appearance: none;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: .4rem .8rem;
  cursor: pointer;
}
.demo-replay:hover { filter: brightness(1.05); }
.demo.is-complete .demo-ring { --pct: 94; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split h1 { max-width: 16ch; }
  .demo { min-height: 0; }
}

/* Trust strip: typographic wordmarks only */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 1.25rem;
  margin: 0 0 2.2rem;
}
.trust-label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .7rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.4rem;
  align-items: baseline;
  list-style: none;
}
.trust-row a, .trust-row span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .92rem;
  color: var(--steel);
  text-decoration: none;
}
.trust-row a:hover { color: var(--accent); }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #00000080;
  padding: 1.2rem 1.15rem 1.3rem;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent);
  letter-spacing: -0.05em;
  margin-bottom: .45rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* Audiences */
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.audience {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  background: linear-gradient(180deg, #0c0c0c, #050505);
}
.audience h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.audience p { color: var(--muted); }
.audience a { color: var(--accent); text-decoration: none; font-weight: 600; }
.audience a:hover { text-decoration: underline; }

/* ROI */
.roi-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: stretch;
}
.roi-points { list-style: none; display: grid; gap: .7rem; }
.roi-points li {
  border-left: 2px solid var(--accent);
  padding: .15rem 0 .15rem 1rem;
}
.roi-points strong { display: block; }
.roi-points span { color: var(--muted); font-size: .95rem; }
.price-table {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050505;
}
.price-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child {
  font-family: var(--font-mono);
  text-align: right;
}
.price-table caption {
  caption-side: bottom;
  text-align: left;
  color: var(--muted);
  font-size: .8rem;
  padding: .75rem .9rem 1rem;
}

.rule-hook {
  margin: 0 0 1.6rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-2));
}
.rule-hook h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.rule-hook p { color: var(--fg); }

.band-strong {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg-2)), var(--bg-2));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.band p { color: var(--muted); }

@media (max-width: 800px) {
  .steps, .audiences, .roi-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage::before, .hero-stage::after { animation: none; }
  .demo-rows li { transition: none; opacity: 1; transform: none; }
}


/* Cursor / scroll effects (desktop, motion allowed). No custom cursor hijack. */
.fx-spot {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(500px 340px at var(--pointer-x) var(--pointer-y), rgba(184,255,44,.07), transparent 58%);
  mix-blend-mode: screen;
}
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 50;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
.reveal { opacity: 1; transform: none; }
.reveal.is-in { /* hook for fx.js; content stays visible either way */ }

.hero-stage {
  --scroll-y: 0;
}
.hero-stage::before {
  transform: translate3d(0, calc(var(--scroll-y) * 24px), 0) scale(1);
}
.hero-stage .grid-fade {
  mask-image: radial-gradient(ellipse 28rem 22rem at var(--pointer-x) var(--pointer-y), #000 18%, transparent 72%);
}

/* Category catalog */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .7rem;
  list-style: none;
  margin: 0 0 1.6rem;
}
.cat-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .8rem;
  font-size: .86rem;
  color: var(--steel);
}
.cat-nav a:hover, .cat-nav a:focus-visible { border-color: var(--accent); color: var(--accent); }
.category { content-visibility: auto; contain-intrinsic-size: 1px 720px; }
.category-intro { color: var(--muted); max-width: 42rem; margin: -.4rem 0 1.2rem; }
.placeholder-card {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  color: var(--muted);
  background: #050505;
}
.placeholder-card strong { display: block; color: var(--fg); margin-bottom: .35rem; }

@media (pointer: coarse), (hover: none) {
  .fx-spot { display: none; }
}
@media (max-width: 700px) {
  .hero-stage::before, .hero-stage::after { filter: none; animation: none; }
  .fx-spot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fx-spot, .scroll-progress { display: none; }
}

/* ---------- Short home, catalog pages, dashboard ---------- */
.page-hero { padding: 2.5rem 0 1.1rem; max-width: 44rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .7rem; }
.page-hero .lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.cat-nav a[aria-current="page"] {
  border-color: var(--accent); color: var(--accent-ink);
  background: var(--accent); font-weight: 600;
}
.contact-email { font-size: 1.25rem; margin: 1.2rem 0 1.8rem; }
.contact-markets { list-style: none; display: grid; gap: .55rem; margin: 0 0 1.4rem; }
.contact-markets a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-markets a:hover { text-decoration: underline; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; padding: 1.6rem 0 0.4rem;
}
.stat { border-top: 1px solid var(--line); padding: 1rem 0 0; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.05em;
  color: var(--accent); line-height: 1; margin: 0 0 .35rem;
}
.stat-label { color: var(--muted); font-size: .92rem; margin: 0; }
.featured-grid .card:first-child { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }

.cat-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
}
.cat-tile {
  display: grid; gap: .45rem; align-content: start;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0c0c0c, #050505);
  padding: 1.3rem 1.2rem 1.25rem; min-height: 10.5rem;
}
.cat-tile:hover { border-color: #3a4a32; }
.cat-tile-kicker {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.cat-tile h3 { font-size: 1.45rem; }
.cat-tile p { color: var(--muted); font-size: .98rem; }
.cat-tile .cta { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: .2rem; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

.hero-fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

.hero-dash {
  --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + .35rem);
  background: linear-gradient(180deg, rgba(18,24,16,.95), rgba(8,10,8,.98));
  box-shadow: 0 0 0 1px rgba(182,255,59,.06), 0 24px 60px rgba(0,0,0,.45);
  padding: 1.1rem;
  overflow: hidden;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .18s ease-out;
}
.hero-dash::before {
  content: ""; position: absolute; inset: 0 auto auto 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7;
}
.dash-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px 160px at var(--sx, 70%) var(--sy, 18%), rgba(184,255,44,.1), transparent 70%);
  mix-blend-mode: screen;
}
.dash-chrome, .dash-head, .dash-rows, .dash-foot { position: relative; }
.dash-chrome {
  display: flex; align-items: center; justify-content: space-between;
  gap: .7rem; margin-bottom: .9rem;
}
.dash-chrome-left { display: flex; align-items: center; gap: .55rem; }
.dash-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dash-rows { list-style: none; display: grid; gap: .45rem; margin: 0 0 .9rem; }
.dash-row {
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: .6rem; align-items: center;
  border: 1px solid var(--line); border-radius: .8rem;
  padding: .55rem .7rem; background: #050806;
  transition: border-color .25s ease, background .25s ease;
}
.dash-sku { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.dash-copy { display: grid; gap: .1rem; min-width: 0; }
.dash-copy strong { font-size: .92rem; font-weight: 600; color: var(--fg); }
.dash-copy em { font-style: normal; font-size: .78rem; color: var(--muted); }
.dash-tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 700;
  border-radius: 999px; padding: .2rem .5rem; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--line);
}
.dash-row.is-pending { opacity: .72; }
.dash-row.is-issue { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); background: color-mix(in srgb, var(--danger) 10%, #050806); }
.dash-row.is-issue .dash-tag { color: #1a0806; background: var(--danger); border-color: var(--danger); }
.dash-row.is-fixed { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.dash-row.is-fixed .dash-tag { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.dash-row.is-flag .dash-tag { color: #1a1400; background: var(--warn); border-color: var(--warn); }
.dash-row.is-scan { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.dash-foot {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap;
}
.demo-caption { color: var(--muted); font-size: .8rem; margin: 0; max-width: 38rem; }
.demo-replay {
  font: inherit; font-size: .82rem; font-weight: 600;
  color: var(--accent); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .4rem .75rem; cursor: pointer;
}
.demo-replay:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .stats, .cat-tiles { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr auto; }
  .dash-sku { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .stats, .cat-tiles { grid-template-columns: 1fr; }
  .hero-dash { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-dash { transform: none !important; transition: none; }
  .hero-fx { display: none; }
  .dash-row { transition: none; }
}


/* Keep the fixed ARIELA launcher from covering the demo badge or page content on small screens. */
@media (max-width: 700px) {
  body { padding-bottom: 6.5rem; }
  .hero-dash {
    margin-bottom: 1.5rem;
    padding-right: 5.75rem; /* 80px launcher + inset */
  }
  .dash-chrome { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .demo-badge { align-self: flex-start; }
  .dash-row { grid-template-columns: minmax(0, 1fr); }
  .dash-tag { justify-self: start; }
}
@media (max-width: 520px) {
  .hero-dash { padding-right: 5rem; } /* 64px launcher */
}
