/* ============================================================
   Artiweave · GA launch landing page
   Design system: Loom (grounded & credible)
   ============================================================ */

:root {
  --ink:    #101114;
  --ink-2:  #16181D;
  --ink-3:  #1C1F26;
  --cobalt: #2E5BFF;
  --cobalt-300: #93AAFF;
  --cobalt-400: #5B7FFF;
  --cobalt-600: #2749D6;
  --steel:  #8A93A6;
  --paper:  #F5F6F8;
  --white:  #FFFFFF;
  --n100: #E9EBEF; --n200: #D6DAE1; --n300: #B4BAC6;
  --n500: #6A7280; --n600: #3D424C;
  --flagged: #C08A2E;
  --won: #1F8A5B;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px;
  --shadow-card: 0 24px 60px -30px rgba(16, 18, 29, 0.40);
  --shadow-pop:  0 40px 90px -40px rgba(16, 18, 29, 0.55);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  --container: 1160px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.65;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
strong { font-weight: 600; }
.mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

::selection { background: rgba(46, 91, 255, .25); }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 20px;
}
.section-ink .eyebrow, .hero .eyebrow { color: var(--cobalt-300); }

.section-lede {
  font-size: 18px; line-height: 1.65;
  color: var(--n500);
  max-width: 620px;
  margin-top: 20px;
}
.section-ink .section-lede { color: var(--steel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border-radius: var(--r-md);
  padding: 14px 26px;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cobalt); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(46, 91, 255, .55);
}
.btn-primary:hover { background: var(--cobalt-600); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn .btn-done {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--won); color: #fff;
  opacity: 0; transform: translateY(100%);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.capture.is-done .btn-done { opacity: 1; transform: translateY(0); }
.capture.is-done .btn { pointer-events: none; }

/* ---------- Email capture ---------- */
.capture {
  display: flex; gap: 10px;
  max-width: 480px;
  margin-top: 36px;
}
.capture input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 14px 18px;
  outline: none;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease);
  box-shadow: 0 1px 0 rgba(16,17,20,.04);
}
.capture input:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, .28);
}
.capture input::placeholder { color: var(--n300); }
.capture input.is-invalid { border-color: #C23A3A; box-shadow: 0 0 0 3px rgba(194,58,58,.22); }
.capture-note {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .02em;
  color: var(--steel);
  margin-top: 14px;
}
.capture-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), backdrop-filter .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(16, 17, 20, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(245, 246, 248, .08);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; gap: 40px;
}
.nav.is-scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-mark .mark-grid { stroke: var(--paper); }
.nav-wordmark {
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  color: var(--paper);
}
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--steel);
  transition: color .15s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-cta { flex-shrink: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 168px 28px 0;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-texture {
  position: absolute; inset: 0;
  background-image: url('../assets/hero-weave.jpg');
  background-size: cover; background-position: center;
  opacity: .5;
}
.hero-loom { position: absolute; inset: 0; width: 100%; height: 100%; }
.loom-grid line { stroke: rgba(245, 246, 248, .05); stroke-width: 1; }
.loom-thread {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(46, 91, 255, .8));
}
.loom-thread-2 { stroke-width: 1; opacity: .35; }
.hero.in-view .loom-thread { animation: threadDraw 2.6s var(--ease) .3s forwards; }
.hero.in-view .loom-thread-2 { animation: threadDraw 3.2s var(--ease) .8s forwards; }
@keyframes threadDraw { to { stroke-dashoffset: 0; } }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(16,17,20,0) 40%, rgba(16,17,20,.72) 100%),
    linear-gradient(180deg, rgba(16,17,20,.5) 0%, rgba(16,17,20,0) 30%, rgba(16,17,20,.85) 96%);
}

.hero-inner {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px;
  align-items: center;
}
.hero-h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero-h1-accent {
  background: linear-gradient(92deg, var(--cobalt-300), var(--cobalt-400) 60%, var(--cobalt));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 18px; line-height: 1.65;
  color: var(--steel);
  max-width: 520px;
  margin-top: 26px;
}
.hero-sub strong { color: var(--paper); }

.hero-proof {
  list-style: none;
  display: flex; align-items: center; gap: 22px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-proof li { display: flex; flex-direction: column; gap: 3px; }
.proof-sep { width: 1px; height: 34px; background: rgba(245,246,248,.14); }
.proof-num {
  font-family: var(--mono); font-weight: 500;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--paper);
}
.proof-label { font-size: 12.5px; color: var(--steel); }

/* ---------- Hero demo (the weave) ---------- */
.hero-demo {
  position: relative;
  background: rgba(22, 24, 29, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 246, 248, .09);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-pop);
}
.demo-stepper {
  display: flex; gap: 6px;
  margin-bottom: 18px;
}
.dstep {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--n500);
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245,246,248,.1);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.dstep i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(245,246,248,.18);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.dstep.is-active { color: var(--paper); border-color: var(--cobalt); }
.dstep.is-active i { background: var(--cobalt); box-shadow: 0 0 8px rgba(46,91,255,.9); }
.dstep.is-done { color: var(--steel); border-color: rgba(46,91,255,.4); }
.dstep.is-done i { background: var(--cobalt-600); }

.demo-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
}
.dcard {
  background: var(--ink-2);
  border: 1px solid rgba(245,246,248,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 268px;
  display: flex; flex-direction: column;
}
.dcard-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(245,246,248,.07);
  font-size: 12px;
}
.dcard-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--won); flex-shrink: 0; }
.dcard-title { color: var(--n300); font-size: 11.5px; letter-spacing: .02em; }
.dcard-head-brand .dcard-title { font-family: var(--sans); font-weight: 600; color: var(--paper); font-size: 12px; }
.dcard-meta { margin-left: auto; color: var(--n500); font-size: 10.5px; }
.dbadge {
  margin-left: auto;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cobalt-300);
  border: 1px solid rgba(46,91,255,.45);
  border-radius: 3px;
  padding: 2px 7px;
  transition: all .3s var(--ease);
}
.demo-p4 .dbadge { color: #8FD6B4; border-color: rgba(31,138,91,.6); }

.dcard-body { padding: 14px; flex: 1; }

/* transcript lines */
.tline {
  font-family: var(--mono);
  font-size: 11px; line-height: 1.5;
  color: var(--n300);
  margin-bottom: 12px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tspeaker {
  display: inline-block;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--n500);
  border: 1px solid rgba(245,246,248,.14);
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 8px;
  vertical-align: 1px;
}
.tspeaker-you { color: var(--cobalt-300); border-color: rgba(46,91,255,.45); }
.demo-p1 .tline, .demo-p2 .tline, .demo-p3 .tline, .demo-p4 .tline { opacity: 1; transform: none; }
.demo-p1 .tline:nth-child(1) { transition-delay: .1s; }
.demo-p1 .tline:nth-child(2) { transition-delay: .55s; }
.demo-p1 .tline:nth-child(3) { transition-delay: 1s; }
.demo-p1 .tline:nth-child(4) { transition-delay: 1.45s; }

/* weaving threads */
.demo-thread {
  position: absolute;
  left: calc((100% - 34px) * (1 / 2.15) + 2px);
  width: 30px;
  top: 0; height: 100%;
  overflow: visible;
  z-index: 2;
}
.dthread {
  fill: none; stroke: var(--cobalt); stroke-width: 1.6;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(46,91,255,.9));
  opacity: 0;
}
.demo-p2 .dthread { opacity: 1; animation: weaveThread 1.1s var(--ease) forwards; }
.demo-p2 .dthread-b { animation-delay: .35s; }
.demo-p2 .dthread-c { animation-delay: .7s; }
.demo-p3 .dthread, .demo-p4 .dthread { opacity: .35; stroke-dashoffset: 0; filter: none; }
@keyframes weaveThread { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* proposal sections */
.psec {
  display: grid;
  grid-template-columns: 16px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(245,246,248,.07);
  border-radius: var(--r-md);
  background: rgba(245,246,248,.02);
  margin-bottom: 8px;
  opacity: 0; transform: translateX(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.demo-p2 .psec[data-w="1"] { opacity: 1; transform: none; transition-delay: .5s; }
.demo-p2 .psec[data-w="2"] { opacity: 1; transform: none; transition-delay: .95s; }
.demo-p2 .psec[data-w="3"] { opacity: 1; transform: none; transition-delay: 1.4s; }
.demo-p2 .psec[data-w="4"] { opacity: 1; transform: none; transition-delay: 1.85s; }
.demo-p3 .psec, .demo-p4 .psec { opacity: 1; transform: none; }
.ptick {
  grid-row: 1 / 3; align-self: start;
  width: 15px; height: 15px; margin-top: 3px;
  border-radius: 50%;
  background: rgba(46,91,255,.16);
  position: relative;
}
.ptick::after {
  content: '';
  position: absolute; left: 4.5px; top: 3.5px;
  width: 4px; height: 7px;
  border-right: 1.6px solid var(--cobalt-300);
  border-bottom: 1.6px solid var(--cobalt-300);
  transform: rotate(42deg);
}
.psec-name { font-size: 12.5px; font-weight: 600; color: var(--paper); line-height: 1.35; }
.psec-note { font-family: var(--mono); font-size: 10px; color: var(--n500); line-height: 1.5; }
.psec-flagged { border-color: rgba(192,138,46,.36); background: rgba(192,138,46,.07); }
.psec-flagged .ptick { background: rgba(192,138,46,.18); }
.psec-flagged .ptick::after {
  border: 0; transform: none;
  left: 6px; top: 3px; width: 3px; height: 6px;
  background: var(--flagged);
  box-shadow: 0 8px 0 var(--flagged);
}
.psec-flagged .psec-note { color: #B99354; }

/* overview chip */
.overview-chip {
  display: flex; align-items: center; gap: 10px;
  margin: 0 14px 14px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(46,91,255,.4);
  background: linear-gradient(90deg, rgba(46,91,255,.16), rgba(46,91,255,.05));
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.demo-p3 .overview-chip, .demo-p4 .overview-chip { opacity: 1; transform: none; transition-delay: .4s; }
.ochip-play {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--cobalt); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(46,91,255,.55);
}
.ochip-label { font-size: 12px; font-weight: 600; color: var(--paper); white-space: nowrap; }
.ochip-time { margin-left: auto; font-size: 10.5px; color: var(--cobalt-300); }
.ochip-wave { display: flex; align-items: center; gap: 2.5px; height: 16px; overflow: hidden; }
.ochip-wave i {
  width: 2.5px; border-radius: 2px;
  background: var(--cobalt-300);
  height: 30%;
  animation: wave 1s ease-in-out infinite alternate;
  animation-play-state: paused;
  opacity: .8;
}
.demo-p3 .ochip-wave i, .demo-p4 .ochip-wave i { animation-play-state: running; }
.ochip-wave i:nth-child(2n)  { animation-delay: .12s; }
.ochip-wave i:nth-child(3n)  { animation-delay: .3s; }
.ochip-wave i:nth-child(4n)  { animation-delay: .45s; }
.ochip-wave i:nth-child(5n)  { animation-delay: .6s; }
@keyframes wave { from { height: 22%; } to { height: 95%; } }

.demo-status {
  margin-top: 16px;
  font-size: 11px; letter-spacing: .06em;
  color: var(--n500);
  display: flex; align-items: center; gap: 8px;
}
.demo-status::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cobalt);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* works-with strip */
.hero-stack {
  position: relative;
  max-width: var(--container);
  margin: 88px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(245,246,248,.09);
  display: flex; align-items: center; gap: 34px;
  flex-wrap: wrap;
}
.stack-label {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--n500);
}
.stack-item {
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--steel);
  opacity: .85;
  display: inline-flex; align-items: center; gap: 9px;
}
.stack-logo { width: 20px; height: 20px; flex: 0 0 auto; display: block; }

/* ============================================================
   SECTIONS · shared
   ============================================================ */
.section { position: relative; padding: 120px 28px; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--paper); }
.container { max-width: var(--container); margin: 0 auto; position: relative; }
.section-head { max-width: 720px; margin-bottom: 72px; }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .45s; }

/* ============================================================
   DECAY CHART
   ============================================================ */
.decay { margin: 0 0 64px; }
.decay-chart { width: 100%; height: auto; }
.decay-grid line { stroke: var(--n100); stroke-width: 1; }
.decay-ylabels text, .decay-xlabels text {
  font-family: var(--mono); font-size: 11.5px;
  fill: var(--n300);
}
.decay-line {
  fill: none;
  stroke: var(--cobalt); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.decay-area { opacity: 0; transition: opacity .8s var(--ease) 1s; }
.decay.in-view .decay-line { animation: threadDraw 1.8s var(--ease) .2s forwards; }
.decay.in-view .decay-area { opacity: 1; }
.decay-marker circle {
  fill: var(--white); stroke: var(--cobalt); stroke-width: 3;
}
.dm-2 circle { stroke: var(--n300); }
.decay-marker { opacity: 0; transition: opacity .5s var(--ease); }
.decay.in-view .dm-1 { opacity: 1; transition-delay: .9s; }
.decay.in-view .dm-2 { opacity: 1; transition-delay: 1.7s; }
.dm-tag rect { fill: var(--ink); rx: 5px; }
.dm-2 .dm-tag rect { fill: var(--white); stroke: var(--n200); }
.dm-big { font-weight: 700; font-size: 17px; fill: var(--paper); font-family: var(--sans); letter-spacing: -0.02em; }
.dm-2 .dm-big { fill: var(--ink); }
.dm-small { font-size: 9.5px; fill: var(--steel); letter-spacing: .04em; }
.decay figcaption {
  margin-top: 10px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--n300);
  text-align: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--n100);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
}
.stat-accent {
  background: var(--ink); border-color: var(--ink);
  box-shadow: var(--shadow-card);
}
.stat-num {
  display: flex; align-items: baseline; gap: 5px;
  font-family: var(--mono); font-weight: 500;
  font-size: 34px; letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-accent .stat-num { color: var(--cobalt-300); }
.stat-unit { font-size: 15px; color: var(--steel); }
.stat-label { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--n500); }
.stat-accent .stat-label { color: var(--steel); }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  list-style: none;
  display: grid; gap: 20px;
}
.step {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--n100);
  border-radius: var(--r-xl);
  padding: 34px 44px 34px 34px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease),
              opacity .7s var(--ease);
}
.step:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.step-num {
  font-size: 12px; letter-spacing: .22em;
  color: var(--cobalt);
  display: block; margin-bottom: 10px;
}
.step-copy h3 { font-size: 24px; margin-bottom: 10px; }
.step-copy p { color: var(--n500); font-size: 15.5px; max-width: 560px; }

.step-vis {
  background: var(--ink);
  border-radius: var(--r-lg);
  min-height: 176px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow: hidden;
}

/* step 1 · files */
.vis-drop { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.vis-file {
  font-size: 11px; color: var(--n500);
  border: 1px dashed rgba(245,246,248,.18);
  border-radius: var(--r-md);
  padding: 9px 13px;
}
.vis-file-active {
  color: var(--cobalt-300);
  border-style: solid; border-color: rgba(46,91,255,.55);
  background: rgba(46,91,255,.1);
  box-shadow: 0 0 18px rgba(46,91,255,.18);
}

/* step 2 · weave bars */
.vis-weave { width: 100%; display: flex; flex-direction: column; gap: 11px; position: relative; }
.vis-bar {
  display: block; height: 9px; border-radius: 3px;
  background: rgba(245,246,248,.13);
  width: var(--w);
  position: relative; overflow: hidden;
}
.vis-bar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(46,91,255,.65), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.2s var(--ease) infinite;
}
.vis-bar:nth-child(2)::after { animation-delay: .3s; }
.vis-bar:nth-child(3)::after { animation-delay: .6s; }
.vis-bar:nth-child(4)::after { animation-delay: .9s; }
.vis-bar-accent { background: rgba(46,91,255,.4); }
@keyframes shimmer { to { transform: translateX(100%); } }
.vis-tag { font-size: 10px; color: var(--n500); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* step 3 · player */
.vis-player { display: flex; align-items: center; gap: 16px; width: 100%; }
.vis-play {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--cobalt); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 26px rgba(46,91,255,.5);
}
.vis-wavebars { display: flex; align-items: center; gap: 3.5px; height: 44px; flex: 1; }
.vis-wavebars i {
  flex: 1; border-radius: 2px;
  background: rgba(147,170,255,.75);
  height: 26%;
  animation: wave .9s ease-in-out infinite alternate;
}
.vis-wavebars i:nth-child(2n)  { animation-delay: .14s; height: 40%; }
.vis-wavebars i:nth-child(3n)  { animation-delay: .32s; height: 62%; }
.vis-wavebars i:nth-child(4n)  { animation-delay: .48s; height: 34%; }
.vis-wavebars i:nth-child(5n)  { animation-delay: .61s; height: 78%; }

/* step 4 · tracking feed */
.vis-track { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.vis-event {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--n300);
  background: rgba(245,246,248,.05);
  border: 1px solid rgba(245,246,248,.09);
  border-radius: var(--r-md);
  padding: 9px 13px;
}
.vis-event em { font-style: normal; color: var(--n500); font-size: 10.5px; margin-left: 4px; }
.ev-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--n500); flex-shrink: 0; }
.ev-cobalt { background: var(--cobalt); box-shadow: 0 0 8px rgba(46,91,255,.8); }
.ev-green { background: var(--won); box-shadow: 0 0 8px rgba(31,138,91,.8); }
.vis-event-won { color: #8FD6B4; border-color: rgba(31,138,91,.4); background: rgba(31,138,91,.08); }

/* ============================================================
   MOAT · the overview
   ============================================================ */
.section-ink { overflow: hidden; }
.ink-texture {
  position: absolute; inset: 0;
  background-image: url('../assets/thread-wave.jpg');
  background-size: cover; background-position: center;
  opacity: .22;
  pointer-events: none;
}
.section-ink .container { position: relative; }
.moat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 84px;
  align-items: center;
}
.moat-copy .accent { color: var(--cobalt-300); }
.moat-points {
  list-style: none;
  margin-top: 40px;
  display: grid; gap: 18px;
}
.moat-points li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  font-size: 14.5px; line-height: 1.6;
  color: var(--n300);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(245,246,248,.08);
}
.point-key {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cobalt-300);
  padding-top: 3px;
}

/* player mock */
.player-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(245,246,248,.12);
  box-shadow: var(--shadow-pop), 0 0 80px -20px rgba(46,91,255,.25);
  background: var(--ink-2);
}
.player-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #14161B 0%, #101114 55%, #0D1220 100%);
  padding: 26px 30px;
  display: flex; flex-direction: column;
}
.scene-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,246,248,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,246,248,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
}
.scene-brand {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel);
}
.scene-title { position: relative; margin: auto 0 0; padding-bottom: 6px; }
.scene-kicker {
  display: block;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cobalt-300);
  margin-bottom: 12px;
}
.scene-h {
  display: block;
  font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.scene-sub { display: block; margin-top: 12px; font-size: 13.5px; color: var(--steel); }
.scene-thread {
  position: absolute; right: -30px; top: 0; bottom: 0; width: 46%;
  background:
    linear-gradient(115deg, transparent 46%, rgba(46,91,255,.85) 49.6%, rgba(46,91,255,.85) 50.4%, transparent 54%);
  filter: drop-shadow(0 0 12px rgba(46,91,255,.5));
  opacity: .8;
}
.player-playbtn {
  position: absolute; right: 30px; bottom: 26px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--cobalt); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(46,91,255,.5);
  animation: playPulse 2.4s var(--ease) infinite;
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.player-playbtn:hover { transform: scale(1.07); background: var(--cobalt-600); }
.player-playbtn svg { margin-left: 3px; }
@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(46,91,255,.5); }
  70% { box-shadow: 0 0 0 22px rgba(46,91,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,91,255,0); }
}
.player-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid rgba(245,246,248,.08);
}
.pbar-wave { display: flex; align-items: center; gap: 2.5px; height: 22px; flex: 1; }
.pbar-wave i {
  flex: 1; border-radius: 1.5px;
  background: rgba(138,147,166,.5);
  height: 25%;
}
.pbar-wave i:nth-child(2n) { height: 45%; } .pbar-wave i:nth-child(3n) { height: 70%; }
.pbar-wave i:nth-child(5n) { height: 90%; } .pbar-wave i:nth-child(7n) { height: 35%; }
.pbar-wave i:nth-child(-n+9) { background: var(--cobalt); }
.pbar-time { font-size: 10.5px; color: var(--n500); }
.player-caption {
  margin-top: 16px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--n500);
  text-align: center;
}

/* ============================================================
   TRUST
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 84px;
  align-items: center;
}
.trust-points {
  list-style: none;
  margin-top: 36px;
  display: grid; gap: 16px;
}
.trust-points li {
  font-size: 15px; line-height: 1.6;
  color: var(--n500);
  padding-left: 22px;
  position: relative;
}
.trust-points li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--cobalt);
}
.trust-points li:nth-child(2)::before { background: var(--flagged); }
.trust-points li:nth-child(3)::before { background: var(--ink); }
.trust-points strong { color: var(--ink); }

.tdemo-doc {
  background: var(--white);
  border: 1px solid var(--n100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 38px 28px;
}
.tdemo-head {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--n300);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--n100);
}
.tdemo-p { font-size: 16.5px; line-height: 2.05; color: var(--n600); }
.g, .f {
  position: relative;
  cursor: default;
  border-bottom: 2px solid rgba(46,91,255,.45);
  padding-bottom: 1px;
  transition: background .15s var(--ease);
}
.g:hover, .g:focus-visible { background: rgba(46,91,255,.08); outline: none; }
.f { border-bottom-color: rgba(192,138,46,.6); background: rgba(192,138,46,.09); }
.f:hover, .f:focus-visible { background: rgba(192,138,46,.16); outline: none; }
.g-trace, .f-trace {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--paper);
  font-size: 11px; line-height: 1.5; letter-spacing: .01em;
  padding: 8px 12px;
  border-radius: var(--r-md);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 5;
  box-shadow: var(--shadow-card);
}
.g-trace::after, .f-trace::after {
  content: '';
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink);
}
.f-trace { background: #4A3A1A; }
.f-trace::after { border-top-color: #4A3A1A; }
.g:hover .g-trace, .g:focus-visible .g-trace,
.f:hover .f-trace, .f:focus-visible .f-trace {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.tdemo-legend {
  display: flex; gap: 26px;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--n100);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--n300);
}
.tdemo-legend span { display: flex; align-items: center; gap: 8px; }
.lg-g, .lg-f { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.lg-g { background: var(--cobalt); }
.lg-f { background: var(--flagged); }

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--n100);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease),
              opacity .7s var(--ease);
}
.feature:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.feature-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--ink);
  margin-bottom: 20px;
}
.feature-ic svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--cobalt-300); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--n500); }

/* ============================================================
   SECURITY
   ============================================================ */
.section-security {
  background: var(--white);
  border-top: 1px solid var(--n100);
  padding-top: 88px; padding-bottom: 88px;
}
.security-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}
.security-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.security-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; line-height: 1.55;
  color: var(--n600);
  background: var(--paper);
  border: 1px solid var(--n100);
  border-radius: var(--r-md);
  padding: 15px 18px;
}
.sec-ic { color: var(--cobalt); font-size: 13px; line-height: 1.7; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.section-cta { padding-top: 150px; padding-bottom: 150px; text-align: center; }
.cta-loom { position: absolute; inset: 0; pointer-events: none; }
.cta-loom svg { width: 100%; height: 100%; }
.cta-loom::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(58% 68% at 50% 52%, rgba(16,17,20,.86) 0%, rgba(16,17,20,.55) 55%, rgba(16,17,20,0) 100%);
}
.loom-grid-cta line { stroke: rgba(245,246,248,.04); }
.cta-thread { opacity: .8; }
.section-cta.in-view .cta-thread { animation: threadDraw 2.4s var(--ease) .2s forwards; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-h {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.03em; line-height: 1.05;
}
.cta-sub {
  margin-top: 22px;
  font-size: 17px; color: var(--steel);
}
.section-cta .capture { margin-top: 40px; }
.section-cta .capture input { background: rgba(245,246,248,.06); color: var(--paper); border-color: rgba(245,246,248,.18); }
.section-cta .capture input::placeholder { color: var(--n500); }
.section-cta .capture input:focus { border-color: var(--cobalt); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid rgba(245,246,248,.08); }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 44px 28px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.footer .nav-wordmark { font-size: 16px; }
.footer .nav-mark .mark-grid, .footer .nav-mark g { stroke: var(--n600); }
.footer-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--n500); }
.footer-legal { margin-left: auto; font-size: 12.5px; color: var(--n500); }
.footer-legal a { color: var(--steel); }
.footer-legal a:hover { color: var(--paper); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-demo { max-width: 660px; }
  .moat-grid, .trust-grid { grid-template-columns: 1fr; gap: 56px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-inner { grid-template-columns: 1fr; gap: 36px; }
  .security-list { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .step-vis { order: 2; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 130px 20px 0; }
  .section { padding: 84px 20px; }
  .hero-proof { gap: 16px; }
  .proof-sep { display: none; }
  .capture { flex-direction: column; }
  .capture .btn { width: 100%; }
  .stat-row, .feature-grid { grid-template-columns: 1fr; }
  .demo-stage { grid-template-columns: 1fr; gap: 18px; }
  .demo-thread { display: none; }
  .dcard { min-height: 0; }
  .moat-points li { grid-template-columns: 1fr; gap: 6px; }
  .tdemo-doc { padding: 24px 22px 20px; }
  .tdemo-p { font-size: 15px; }
  .g-trace, .f-trace { white-space: normal; width: 220px; }
  .hero-stack { gap: 18px; margin-top: 64px; }
  .section-head { margin-bottom: 48px; }
  .decay-chart { min-width: 640px; }
  .decay { overflow-x: auto; }
  .dstep { font-size: 9px; letter-spacing: .08em; gap: 5px; }
  .tdemo-legend { flex-direction: column; gap: 8px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .loom-thread, .dthread, .decay-line { stroke-dashoffset: 0; }
  .decay-area, .decay-marker { opacity: 1; }
  .tline, .psec, .overview-chip { opacity: 1; transform: none; }
}
