/* ==========================================================================
   Orva — landing. Demo project.
   Cream paper, ink, one violet accent. No build step, no dependencies.
   ========================================================================== */

/* Tokens */
:root {
  color-scheme: light;
  --page: #F1ECE3;
  --panel: #FBF8F2;
  --panel-soft: #F5F0E6;
  --ink: #0C0C0B;
  --ink-soft: #2B2925;
  --muted: #5F594E;
  --line: rgba(12, 12, 11, .14);
  --line-strong: rgba(12, 12, 11, .26);

  --accent: #5B21B6;
  --accent-hover: #4C1D95;
  --accent-soft: rgba(91, 33, 182, .08);
  --accent-line: rgba(91, 33, 182, .28);

  --danger: #B42318;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(12, 12, 11, .04);
  --shadow-md: 0 18px 44px -28px rgba(12, 12, 11, .3);
  --shadow-lg: 0 48px 110px -56px rgba(12, 12, 11, .55);

  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(80px, 10vw, 160px);
  --max: 1320px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--panel); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--panel);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip:focus-visible { transform: translateY(0); }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease);
}

.btn:hover svg { transform: translateX(2px); }

.btn--primary {
  background: var(--accent);
  color: #FBF8F2;
  box-shadow: 0 14px 28px -18px rgba(91, 33, 182, .8);
}

.btn--primary:hover { background: var(--accent-hover); }

.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(12, 12, 11, .05);
  border-color: var(--ink);
}

.btn--small { padding: 10px 18px; font-size: 13px; }

.btn--lg { padding: 16px 28px; font-size: 15px; }

/* Topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(241, 236, 227, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.topbar.is-hidden { transform: translateY(-100%); }

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.brand span { color: var(--accent); }

.topnav {
  display: flex;
  gap: clamp(14px, 2.6vw, 32px);
  margin-left: auto;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.topnav a {
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}

.topnav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.topnav a:hover { color: var(--accent); }

.topnav a:hover::after { transform: scaleX(1); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(118px, 15vw, 190px) var(--gutter) clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -28%;
  right: -14%;
  width: min(760px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 33, 182, .13), rgba(91, 33, 182, 0) 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 4.4vw, 72px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  max-width: 46ch;
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(40px, 5vw, 62px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__facts b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.hero__facts span {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Product shot */
.hero__shot { position: relative; }

.hero__shot::before {
  content: '';
  position: absolute;
  inset: 8% -6% -10% 6%;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(91, 33, 182, .16), rgba(91, 33, 182, 0) 70%);
  filter: blur(28px);
  pointer-events: none;
}

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.shot__dots {
  display: flex;
  gap: 5px;
}

.shot__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(12, 12, 11, .16);
}

.shot__url {
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--muted);
}

.shot__tag {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shot__body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.shot__rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--panel-soft);
}

.shot__brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.shot__brand span { color: var(--accent); }

.shot__nav {
  display: grid;
  gap: 3px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.shot__nav li {
  padding: 6px 9px;
  border-radius: 7px;
}

.shot__nav .is-on {
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.shot__src {
  margin-top: auto;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}

.shot__main {
  display: grid;
  gap: 12px;
  padding: 16px clamp(12px, 1.8vw, 20px) 18px;
}

.shot__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.shot__head .mono {
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.shot__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shot__kpi {
  padding: 9px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
}

.shot__kpi .mono {
  display: block;
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot__kpi b {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.5vw, 16.5px);
  font-weight: 500;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.shot__delta {
  display: inline-block;
  margin-top: 3px;
  font-size: 9px;
  font-style: normal;
  color: #0C6B4B;
}

.shot__delta--flat { color: var(--muted); }

.shot__delta--down { color: #B42318; }

.shot__chart {
  position: relative;
  overflow: hidden;
  padding: 10px 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.shot__chart::after {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 4px;
  left: -20%;
  width: 34%;
  background: linear-gradient(90deg, rgba(91, 33, 182, 0), rgba(91, 33, 182, .12), rgba(91, 33, 182, 0));
  transform: skewX(-12deg);
  animation: chart-scan 6s var(--ease) 1.8s infinite;
  pointer-events: none;
}

.hero__shot.is-live .shot__dot {
  animation: pop-in .5s var(--ease) 1.7s forwards, dot-pulse 2.6s ease-out 2.2s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.shot__chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 10.5px;
  color: var(--ink-soft);
}

.shot__chart-head .mono {
  font-size: 8.5px;
  color: var(--muted);
}

.shot__chart svg {
  width: 100%;
  height: 74px;
}

.shot__line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.shot__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
  padding: 0 2px;
}

.shot__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(91, 33, 182, .62), rgba(91, 33, 182, .18));
}

.shot__bars span:nth-child(6),
.shot__bars span:nth-child(7) { background: linear-gradient(180deg, var(--accent), rgba(91, 33, 182, .3)); }

/* Numbers */
.numbers {
  padding: 0 var(--gutter);
}

.numbers__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.numbers__item {
  padding: clamp(22px, 3vw, 34px) clamp(14px, 2.4vw, 30px);
}

.numbers__item + .numbers__item { border-left: 1px solid var(--line); }

.numbers__value {
  font-size: clamp(20px, 2.4vw, 31px);
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--accent);
}

.numbers__label {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* Section shell */
.section {
  padding: var(--section-y) var(--gutter);
}

.section__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  max-width: 780px;
}

.section__title {
  margin-top: 18px;
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.section__lead {
  max-width: 56ch;
  margin-top: 18px;
  font-size: clamp(14.5px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* Features */
.features { padding-top: clamp(64px, 8vw, 120px); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--line);
  border-block: 1px solid var(--line);
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 36px) clamp(20px, 2.4vw, 30px) clamp(30px, 3.4vw, 44px);
  background: var(--page);
  transition: background-color .25s var(--ease);
}

.feature:hover { background: var(--panel); }

.feature__index {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
}

.feature__title {
  margin-top: clamp(28px, 3.2vw, 48px);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -.025em;
}

.feature__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* How */
.how {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: step;
}

.how__step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.how__num {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--accent);
}

.how__title {
  margin-top: 24px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -.03em;
}

.how__text {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

/* Screens */
.screens__list {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.screen-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  padding: clamp(22px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}

.screen-row:hover { background: rgba(12, 12, 11, .025); }

.screen-row__index {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .25s var(--ease);
}

.screen-row:hover .screen-row__index { color: var(--accent); }

.screen-row__title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
}

.screen-row__text {
  max-width: 62ch;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.screen-row__meta {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.screen-row__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              transform .25s var(--ease);
}

.screen-row__link::before {
  content: '';
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}

.screen-row:hover .screen-row__link {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--panel);
  transform: translateX(3px);
}

/* Data */
.data {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.data__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}

.data__copy { min-width: 0; }

.data__list {
  display: grid;
  gap: 0;
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.data__list li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.data__list li::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.data__note {
  margin-top: 20px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.code-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--page);
  box-shadow: var(--shadow-md);
}

.code-card__head,
.code-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 18px;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
}

.code-card__head {
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.code-card__head .mono:first-child {
  color: var(--ink);
  letter-spacing: .02em;
}

.code-card__pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
  font-size: clamp(10px, 1.05vw, 12.5px);
  line-height: 1.85;
  color: var(--ink-soft);
  tab-size: 2;
}

.code-card__pre code { font-family: inherit; }

.code-card__foot {
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  line-height: 1.5;
}

/* CTA */
.cta {
  position: relative;
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
  background: var(--ink);
  color: var(--panel);
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: min(900px, 110vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .3), rgba(124, 58, 237, 0) 62%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.cta__eyebrow { color: rgba(251, 248, 242, .55); }

.cta__title {
  margin-top: 18px;
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.cta__lead {
  max-width: 52ch;
  margin: 20px auto 0;
  font-size: clamp(14.5px, 1.1vw, 17px);
  line-height: 1.6;
  color: rgba(251, 248, 242, .66);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 42px);
}

.btn--accent {
  background: #7C3AED;
  color: #FFFFFF;
  box-shadow: 0 20px 40px -22px rgba(124, 58, 237, .9);
}

.btn--accent:hover { background: #6D28D9; }

.btn--outline {
  border-color: rgba(251, 248, 242, .3);
  color: var(--panel);
}

.btn--outline:hover {
  border-color: rgba(251, 248, 242, .75);
  background: rgba(251, 248, 242, .06);
}

/* Footer */
.footer {
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.footer__brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.footer__brand span { color: var(--accent); }

.footer__note {
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.footer__nav a { transition: color .2s var(--ease); }

.footer__nav a:hover { color: var(--accent); }

/* Gate */
html.is-gated,
html.is-gated body { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--page);
  color: var(--ink);
}

.gate[hidden] { display: none; }

.gate::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 28%, rgba(255, 255, 255, .66), transparent 72%);
}

.gate.is-passed {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}

.gate__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(440px, 100%);
  text-align: center;
}

.gate__mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.gate__mark span { color: var(--accent); }

.gate__title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.gate__text {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.gate.is-rejected .gate__title { color: var(--danger); }

.gate__widget {
  display: flex;
  justify-content: center;
  min-height: 72px;
}

.gate__retry {
  margin-top: 4px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .2s;
}

.gate__retry:hover { background: rgba(12, 12, 11, .06); }

.gate__retry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Tablet */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(44px, 7vw, 72px);
  }

  .hero__lead { max-width: 58ch; }

  .hero__shot { max-width: 720px; }

  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .data__inner { grid-template-columns: 1fr; }

  .code-card { max-width: 760px; }
}

@media (max-width: 860px) {
  .topnav { display: none; }

  .topbar__inner { justify-content: space-between; }

  .numbers__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .numbers__item + .numbers__item { border-left: 0; }

  .numbers__item:nth-child(even) { border-left: 1px solid var(--line); }

  .numbers__item:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .how__steps { grid-template-columns: 1fr; gap: 28px; }

  .screen-row { grid-template-columns: 40px minmax(0, 1fr) 40px; }

  .screen-row__meta { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding-top: 104px; }

  .hero__actions .btn { flex: 1 1 auto; }

  .hero__facts { grid-template-columns: 1fr; gap: 14px; }

  .hero__facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .hero__facts li:last-child { padding-bottom: 0; border-bottom: 0; }

  .hero__facts span { max-width: 20ch; margin-top: 0; text-align: right; }

  .shot__body { grid-template-columns: 1fr; }

  .shot__rail { display: none; }

  .shot__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .features__grid { grid-template-columns: 1fr; }

  .screen-row { grid-template-columns: 28px minmax(0, 1fr); }

  .screen-row__link { display: none; }

  .screen-row__title { font-size: 21px; }

  .code-card__pre { font-size: 9.5px; }

  .footer__inner { justify-content: space-between; }

  .footer__nav { margin-left: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn svg,
  .screen-row__link,
  .screen-row__link::before,
  .topbar,
  .topnav a::after {
    transition: none;
  }
}

/* ==========================================================================
   Motion layer
   ========================================================================== */

/* Scroll progress */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(91, 33, 182, .55);
  transition: width .12s linear;
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 260;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
}

.cursor.is-visible { opacity: 1; }

.cursor__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}

.cursor.is-hover .cursor__dot {
  opacity: .2;
  transform: scale(4.2);
}

.cursor.is-down .cursor__dot { transform: scale(.6); }

.cursor.is-hover.is-down .cursor__dot { transform: scale(3.4); }

/* Marquee */
.marquee {
  display: grid;
  gap: 6px;
  overflow: hidden;
  padding: 14px 0 16px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.js .marquee__row {
  animation: marquee var(--marquee-duration, 46s) linear infinite;
}

.js .marquee__row--reverse { animation-direction: reverse; }

.marquee__row--outline .marquee__track {
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 12, 11, .34);
  font-weight: 600;
}

.marquee__row--outline .marquee__track i {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

.marquee:hover .marquee__row { animation-play-state: paused; }

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  padding-right: clamp(18px, 3vw, 38px);
  font-size: clamp(15px, 1.9vw, 24px);
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--ink-soft);
}

.marquee__track i {
  font-style: normal;
  font-size: .62em;
  color: var(--accent);
}

/* Hero: live dot */
.shot__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot__live i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0C6B4B;
}

.shot__live i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0C6B4B;
  animation: live-ping 2.2s var(--ease) infinite;
}

.shot .shot__tag { margin-left: 0; }

/* Hero: chart and bars enter */
.js .shot__line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.hero__shot.is-live .shot__line {
  animation: draw-line 1.7s var(--ease) .25s forwards;
}

.js .shot__area { opacity: 0; }

.hero__shot.is-live .shot__area {
  animation: fade-in .9s ease .7s forwards;
}

.shot__dot {
  fill: var(--accent);
  opacity: 0;
}

.hero__shot.is-live .shot__dot {
  animation: pop-in .5s var(--ease) 1.7s forwards;
}

.js .shot__bars span { transform: scaleY(0); }

.hero__shot.is-live .shot__bars span {
  animation: bar-grow .7s var(--ease) both;
}

.hero__shot.is-live .shot__bars span:nth-child(1) { animation-delay: .45s; }
.hero__shot.is-live .shot__bars span:nth-child(2) { animation-delay: .53s; }
.hero__shot.is-live .shot__bars span:nth-child(3) { animation-delay: .61s; }
.hero__shot.is-live .shot__bars span:nth-child(4) { animation-delay: .69s; }
.hero__shot.is-live .shot__bars span:nth-child(5) { animation-delay: .77s; }
.hero__shot.is-live .shot__bars span:nth-child(6) { animation-delay: .85s; }
.hero__shot.is-live .shot__bars span:nth-child(7) { animation-delay: .93s; }

.js .shot__kpi { opacity: 0; transform: translateY(8px); }

.hero__shot.is-live .shot__kpi {
  animation: rise-in .6s var(--ease) both;
}

.hero__shot.is-live .shot__kpi:nth-child(1) { animation-delay: .25s; }
.hero__shot.is-live .shot__kpi:nth-child(2) { animation-delay: .33s; }
.hero__shot.is-live .shot__kpi:nth-child(3) { animation-delay: .41s; }
.hero__shot.is-live .shot__kpi:nth-child(4) { animation-delay: .49s; }

/* Hero: tilt + parallax */
.hero { --mx: 0; --my: 0; }

.shot {
  transform: rotateX(calc(var(--my, 0) * -2.2deg)) rotateY(calc(var(--mx, 0) * 3.2deg));
  transition: transform .5s var(--ease);
  will-change: transform;
}

/* Hero: floating chips */
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  font-size: 10.5px;
  letter-spacing: .01em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 1;
  translate: calc(var(--mx, 0) * 8px) calc(var(--my, 0) * 8px);
  transition: translate .5s var(--ease);
}

.float-chip b {
  font-weight: 500;
  color: var(--accent);
}

.float-chip i {
  font-style: normal;
  color: #0C6B4B;
}

.js .float-chip { opacity: 0; }

.float-chip--rev { top: -18px; left: -26px; }

.float-chip--repeat { top: 34%; right: -34px; }

.float-chip--abc { bottom: -18px; left: 14%; }

.hero__shot.is-visible .float-chip {
  animation: chip-appear .6s var(--ease) .9s both, chip-float 6s ease-in-out 1.5s infinite alternate;
}

.hero__shot.is-visible .float-chip--repeat { animation-delay: 1.1s, 2.2s; }
.hero__shot.is-visible .float-chip--abc { animation-delay: 1.3s, 3.1s; }

/* Heading words */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .09em;
  margin-bottom: -.09em;
}

.word i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(115%);
  transition: transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 38ms);
  will-change: transform;
}

.is-visible .word i,
.js-ready .hero__copy.is-visible .word i {
  transform: none;
}

/* Feature visuals */
.viz {
  position: relative;
  height: 128px;
  margin-top: 22px;
}

.viz + .feature__title { margin-top: 10px; }

.viz svg.viz__line,
.viz svg { overflow: visible; }

.viz__line {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.js .viz__line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.feature.is-live .viz__line,
.feature:hover .viz__line {
  animation: draw-line 1.4s var(--ease) forwards;
}

.viz__area { opacity: 0; }

.feature.is-live .viz__area,
.feature:hover .viz__area {
  animation: fade-in .7s ease .5s forwards;
}

.viz__dot {
  fill: var(--accent);
  opacity: 0;
}

.feature.is-live .viz__dot {
  animation: pop-in .45s var(--ease) 1.25s forwards;
}

.viz__badge {
  position: absolute;
  top: 4px;
  right: 0;
  padding: 5px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: .05em;
  white-space: nowrap;
}

.viz--kpi svg { width: 100%; height: 104px; }

/* Cohort grid */
.viz__cohort {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-content: center;
  height: 104px;
}

.viz__cohort span {
  height: 19px;
  border-radius: 4px;
  background: rgba(91, 33, 182, var(--v, .1));
  opacity: 0;
  transform: scale(.55);
}

.feature.is-live .viz__cohort span {
  animation: cell-in .45s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 32ms + 200ms);
}

.feature:hover .viz__cohort span {
  animation: cell-in .45s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 32ms);
}

.viz__axis {
  position: absolute;
  bottom: -2px;
  right: 0;
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ABC */
.viz__bars3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 26px);
  height: 104px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.viz__bars3 span {
  position: relative;
  display: block;
  width: clamp(34px, 4vw, 52px);
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(91, 33, 182, .85), rgba(91, 33, 182, .34));
  transform: scaleY(0);
  transform-origin: bottom;
}

.viz__bars3 span.is-c { background: linear-gradient(180deg, rgba(91, 33, 182, .34), rgba(91, 33, 182, .14)); }

.viz__bars3 b {
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  opacity: .7;
}

.feature.is-live .viz__bars3 span,
.feature:hover .viz__bars3 span {
  animation: bar-grow .8s var(--ease) both;
}

.feature.is-live .viz__bars3 span:nth-child(2),
.feature:hover .viz__bars3 span:nth-child(2) { animation-delay: .1s; }

.feature.is-live .viz__bars3 span:nth-child(3),
.feature:hover .viz__bars3 span:nth-child(3) { animation-delay: .2s; }

/* Week bars */
.viz__week {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 82px;
}

.viz__week span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, rgba(91, 33, 182, .5), rgba(91, 33, 182, .16));
  transform: scaleY(0);
  transform-origin: bottom;
}

.viz__week span:nth-child(6) { background: linear-gradient(180deg, var(--accent), rgba(91, 33, 182, .4)); }

.feature.is-live .viz__week span,
.feature:hover .viz__week span {
  animation: bar-grow .7s var(--ease) both;
}

.feature.is-live .viz__week span:nth-child(2), .feature:hover .viz__week span:nth-child(2) { animation-delay: .05s; }
.feature.is-live .viz__week span:nth-child(3), .feature:hover .viz__week span:nth-child(3) { animation-delay: .1s; }
.feature.is-live .viz__week span:nth-child(4), .feature:hover .viz__week span:nth-child(4) { animation-delay: .15s; }
.feature.is-live .viz__week span:nth-child(5), .feature:hover .viz__week span:nth-child(5) { animation-delay: .2s; }
.feature.is-live .viz__week span:nth-child(6), .feature:hover .viz__week span:nth-child(6) { animation-delay: .25s; }
.feature.is-live .viz__week span:nth-child(7), .feature:hover .viz__week span:nth-child(7) { animation-delay: .3s; }

.viz__week-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  font-size: 8.5px;
  letter-spacing: .04em;
  text-align: center;
  color: var(--muted);
}

.viz__week-labels i { font-style: normal; }

.viz__week-labels .is-peak { color: var(--accent); }

/* Import */
.viz--import {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
}

.viz__file {
  flex: 0 1 118px;
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.viz__file-name { font-size: 9px; letter-spacing: .03em; color: var(--ink); }

.viz__file-line {
  display: flex;
  gap: 4px;
}

.viz__file-line i {
  height: 3px;
  border-radius: 2px;
  background: rgba(12, 12, 11, .18);
  opacity: .9;
}

.viz__file-line i:nth-child(1) { flex: 1.2; }
.viz__file-line i:nth-child(2) { flex: 1; }
.viz__file-line i:nth-child(3) { flex: .7; }

.feature.is-live .viz__file-line { animation: file-pulse 2.8s ease-in-out infinite; }

.feature.is-live .viz__file-line:nth-child(2) { animation-delay: .2s; }
.feature.is-live .viz__file-line:nth-child(3) { animation-delay: .4s; }
.feature.is-live .viz__file-line:nth-child(4) { animation-delay: .6s; }
.feature.is-live .viz__file-line:nth-child(5) { animation-delay: .8s; }

.viz__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.viz__arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature.is-live .viz__arrow { animation: arrow-nudge 2.8s var(--ease) infinite; }

.viz__mini {
  flex: 1 1 auto;
  display: grid;
  gap: 7px;
}

.viz__mini-kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.viz__mini-kpi i {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
}

.viz__mini-kpi em {
  font-style: normal;
  font-size: 9px;
  color: var(--muted);
}

/* Local */
.viz--local {
  display: grid;
  place-items: center;
}

.viz__shield-svg {
  width: 118px;
  height: 118px;
  overflow: visible;
}

.viz__orbit {
  fill: none;
  stroke: rgba(91, 33, 182, .3);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  transform-origin: 60px 60px;
  animation: spin 22s linear infinite;
}

.viz__ring {
  fill: var(--accent-soft);
  stroke: rgba(91, 33, 182, .22);
  stroke-width: 1;
}

.viz__check {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .viz__check { stroke-dasharray: 1; stroke-dashoffset: 1; }

.feature.is-live .viz__check {
  animation: draw-line .7s var(--ease) .7s forwards;
}

.viz__orbit-dot {
  fill: var(--accent);
  transform-origin: 60px 60px;
  animation: spin 22s linear infinite reverse;
}

/* Screen hover previews */
.screen-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 296px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  scale: .94;
  transition: opacity .22s var(--ease), scale .28s var(--ease);
}

.screen-preview.is-on { opacity: 1; scale: 1; }

.sp__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.sp__bar .mono {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sp__dots { display: flex; gap: 4px; }

.sp__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(12, 12, 11, .16);
}

.sp__body { padding: 12px; }

.sp__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sp__kpis span {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sp__kpis em {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sp__kpis b {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.sp__kpis i {
  font-style: normal;
  font-size: 8px;
  color: #0C6B4B;
}

.sp__chart {
  width: 100%;
  height: 62px;
  margin-top: 9px;
}

.sp__area { fill: rgba(91, 33, 182, .12); }

.sp__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.screen-preview.is-on .sp__line { animation: draw-line 1s var(--ease) 0s forwards; }

.js .screen-preview .sp__line { stroke-dasharray: 1; stroke-dashoffset: 1; }

.sp__table { display: grid; }

.sp__tr {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
  color: var(--ink-soft);
}

.sp__tr:last-child { border-bottom: 0; }

.sp__tr i { font-style: normal; }

.sp__tr i:last-child { text-align: right; }

.sp__tr--head {
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 7.5px;
}

.sp__cohort {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.sp__cohort span {
  height: 30px;
  border-radius: 4px;
  background: rgba(91, 33, 182, var(--v, .1));
}

.sp__caption {
  margin-top: 9px;
  font-size: 8.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

.sp__abc {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  height: 128px;
  padding-bottom: 8px;
}

.sp__abc span {
  position: relative;
  width: 44px;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(91, 33, 182, .8), rgba(91, 33, 182, .3));
}

.sp__abc span.is-c { background: linear-gradient(180deg, rgba(91, 33, 182, .32), rgba(91, 33, 182, .12)); }

.sp__abc b {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  text-align: center;
  font-size: 8.5px;
  font-weight: 500;
}

/* CSV scan */
.code-card__body {
  position: relative;
  overflow: hidden;
}

.code-card__scan {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 46px;
  background: linear-gradient(180deg, rgba(91, 33, 182, 0), rgba(91, 33, 182, .09), rgba(91, 33, 182, 0));
  pointer-events: none;
  opacity: 0;
}

.code-card.is-live .code-card__scan {
  opacity: 1;
  animation: scan 5.5s var(--ease) 1s infinite;
}

.js .code-line {
  display: block;
  opacity: 0;
  transform: translateX(-10px);
}

.code-card.is-live .code-line {
  animation: line-in .5s var(--ease) forwards;
}

.code-card.is-live .code-line:nth-child(1) { animation-delay: .05s; }
.code-card.is-live .code-line:nth-child(2) { animation-delay: .12s; }
.code-card.is-live .code-line:nth-child(3) { animation-delay: .19s; }
.code-card.is-live .code-line:nth-child(4) { animation-delay: .26s; }
.code-card.is-live .code-line:nth-child(5) { animation-delay: .33s; }
.code-card.is-live .code-line:nth-child(6) { animation-delay: .4s; }

.code-line--head { color: var(--muted); }

.code-line--last { color: var(--danger); }

/* CTA visuals */
.cta__viz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}

.cta__wave {
  fill: none;
  stroke: rgba(124, 58, 237, .5);
  stroke-width: 1.4;
  stroke-dasharray: 7 11;
  animation: wave-march 16s linear infinite;
}

.cta__wave--back {
  stroke: rgba(124, 58, 237, .25);
  animation-duration: 24s;
  animation-direction: reverse;
}

.cta__bars {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.4vw, 20px);
  height: 190px;
  padding: 0 clamp(20px, 4vw, 60px);
  pointer-events: none;
  opacity: .14;
}

.cta__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #7C3AED, rgba(124, 58, 237, 0));
  transform: scaleY(0);
  transform-origin: bottom;
}

.cta.is-live .cta__bars span {
  animation: bar-grow 1.3s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms + 200ms);
}

/* Keyframes */
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes pop-in {
  0% { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes line-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes cell-in {
  from { opacity: 0; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes live-ping {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}

@keyframes chip-appear {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes chip-float {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes file-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0% { transform: translateY(-56px); }
  70%, 100% { transform: translateY(240px); }
}

@keyframes wave-march {
  to { stroke-dashoffset: -180; }
}

@keyframes chart-scan {
  0% { transform: translateX(0) skewX(-12deg); opacity: 0; }
  12% { opacity: 1; }
  70% { transform: translateX(380%) skewX(-12deg); opacity: 0; }
  100% { transform: translateX(380%) skewX(-12deg); opacity: 0; }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(1.9); }
}

/* Motion: responsive */
@media (max-width: 1080px) {
  .float-chip--rev { left: -10px; }

  .float-chip--repeat { right: -12px; }

  .float-chip--abc { left: 8%; }
}

@media (max-width: 640px) {
  .float-chip,
  .shot__live { display: none; }

  .marquee { padding: 12px 0; }

  .viz { height: 118px; }

  .screen-preview { display: none; }
}

/* Motion: reduced */
@media (prefers-reduced-motion: reduce) {
  .js .marquee__row,
  .cta__wave,
  .shot__chart::after,
  .hero__shot.is-live .shot__dot,
  .viz__orbit,
  .viz__orbit-dot,
  .code-card__scan,
  .viz__file-line,
  .viz__arrow,
  .shot__live i::after {
    animation: none;
  }

  .float-chip {
    animation: none;
    opacity: 1;
    translate: none;
  }

  .shot { transform: none; }

  .js .shot__line,
  .js .viz__line,
  .js .viz__check,
  .js .screen-preview .sp__line {
    stroke-dashoffset: 0;
  }

  .js .shot__area,
  .js .viz__area,
  .js .shot__dot,
  .js .shot__kpi,
  .js .code-line {
    opacity: 1;
    transform: none;
  }

  .js .shot__bars span,
  .js .viz__bars3 span,
  .js .viz__week span,
  .js .viz__cohort span,
  .js .cta__bars span {
    opacity: 1;
    transform: none;
  }

  .code-card__scan { opacity: 0; }

  .word i {
    transform: none;
    transition: none;
  }
}




