/* KazWatch landing page.
   Layout: one Obsidian column of wide, airy bands; each band is a picture with a few words, centred.
   Gold marks the route and the one main action; violet marks the agent. Colours are docs/brand/BRAND.md. */
:root {
  color-scheme: dark;
  --bg: #101218;
  --bg-2: #13161d;
  --surface: #171a21;
  --surface-2: #1e222b;
  --surface-3: #282d38;
  --line: #2c313d;
  --text: #f2efe6;
  --muted: #9d9a91;
  --faint: #67655f;
  --gold: #d7b46a;
  --gold-hover: #e3c789;
  --gold-soft: rgba(215, 180, 106, .14);
  --violet: #8b5cf6;
  --arcane: #a98bfa;
  --violet-soft: rgba(139, 92, 246, .18);
  --ok: #4fc48c;
  --on-gold: #101218;

  /* the board's type: a wide, heavy face beside the wordmark, a geometric sans for labels and text */
  --font-display: "Archivo Expanded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-text: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-control: 10px;
  --r-card: 20px;
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1180px;
  --row: 46px;
}

@font-face {
  font-family: "Archivo Expanded";
  src: url("fonts/archivo-expanded.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 700px at 50% 0, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(46% 520px at 50% 620px, rgba(215, 180, 106, .08), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 16px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  padding: 10px 14px; border-radius: var(--r-control);
  background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 4.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.015em; }
h3 { font-size: 1rem; line-height: 1.25; letter-spacing: .01em; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--muted); }
.lead--section { margin-top: 20px; }
.fine { font-size: .8rem; color: var(--muted); }
.fine a { color: var(--gold); }
.eyebrow { font: 600 .72rem/1.5 var(--font-text); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.eyebrow--violet { color: var(--arcane); }
.head { display: grid; gap: 18px; justify-items: center; text-align: center; }
.head h2 { max-width: 16em; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  padding: 1.3em 1.9em; border-radius: var(--r-control);
  font: 800 .8rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:focus-visible { outline-color: var(--text); border-radius: var(--r-control); }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 12px 40px -14px rgba(215, 180, 106, .6); }
.btn--gold:hover { background: var(--gold-hover); transform: translateY(-2px); }
.btn--gold:active { transform: translateY(1px); }
.btn--line { padding: .95em 1.3em; border: 1px solid var(--gold); color: var(--gold); font-size: .72rem; }
.btn--line:hover { background: var(--gold); color: var(--on-gold); }
.arr { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; }

.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.frame__in { position: relative; overflow: hidden; border-radius: inherit; }
.icon { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

/* a short line of labelled pills instead of a paragraph */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips li {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  font: 600 .74rem/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase;
}
.chips .icon { color: var(--gold); }
.chips--violet .icon { color: var(--arcane); }

/* ---------- top bar ---------- */
.top { padding-block: 22px; }
.top__in { display: flex; align-items: center; gap: 28px; }
.brand { color: var(--text); }
.brand__logo { height: 38px; width: auto; }
.logo__rune { fill: var(--gold); }
.nav { display: flex; gap: 30px; margin-left: auto; font: 600 .7rem/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; }
.nav a { padding: 8px 0; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(24px, 3vw, 40px); text-align: center; }
.hero__title {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(1.5rem, 7.3vw, 6rem); line-height: .98; letter-spacing: -.02em;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: clamp(20px, 2.6vw, 32px); }
.hero .cta { margin-top: clamp(28px, 3.4vw, 40px); }
.hero .fine { margin-top: 18px; }

/* the product at work: the route on a map, the steps beside it */
.stage {
  margin-top: clamp(48px, 7vw, 88px); overflow: hidden; text-align: left;
  box-shadow: 0 60px 140px -60px rgba(139, 92, 246, .5), 0 0 0 1px rgba(255, 255, 255, .02);
}
.stage__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.stage__who { display: flex; align-items: center; gap: 10px; font: 800 .8rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.stage__who svg { height: 20px; width: auto; fill: var(--gold); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 .64rem/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--ok); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(79, 196, 140, .5); } 70%, to { box-shadow: 0 0 0 7px rgba(79, 196, 140, 0); } }
.stage__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.stage__map { display: grid; align-items: center; padding: clamp(8px, 2vw, 24px); background: var(--bg-2); border-right: 1px solid var(--line); }
.stage__side { display: grid; gap: 18px; align-content: center; padding: clamp(20px, 2.6vw, 32px); }

.map { width: 100%; height: auto; }
#dots circle { fill: var(--surface-3); }
.map__land path { fill: rgba(255, 255, 255, .012); stroke: var(--line); stroke-width: 1.5; }
.map__ghost { fill: none; stroke: var(--surface-3); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.map__line { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linejoin: miter; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 8px rgba(215, 180, 106, .45)); }
.map__node use { fill: var(--bg-2); stroke: var(--faint); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.map__node text { font: 800 22px/1 var(--font-display); fill: var(--faint); text-anchor: middle; transition: fill .3s; }
.map__node.is-on use { fill: var(--gold); stroke: var(--gold); }
.map__node.is-on text { fill: var(--text); }
.map__marker use { fill: var(--text); }
.map__pulse { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: .35; } to { transform: scale(1.5); opacity: 0; } }

.xp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; font: 600 .66rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.xp b { display: inline-block; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; transition: color .3s; }
.xp__bar { height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.xp__bar i { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--gold); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.stage.is-levelup .xp b { color: var(--gold); animation: levelup .9s ease-out; }
@keyframes levelup { 30% { transform: scale(1.35); } }

.stage__count { padding-top: 16px; border-top: 1px solid var(--line); font: 600 .66rem/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stage__count b { color: var(--text); font-variant-numeric: tabular-nums; }

.steps-view { height: calc(5 * var(--row)); overflow: hidden; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.steps li {
  position: relative; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; gap: 10px;
  height: var(--row); padding-left: 30px; font-size: .92rem; color: var(--muted); transition: color .4s;
}
.steps li::after { content: ""; position: absolute; left: 9px; top: -50%; width: 1.5px; height: 100%; background: var(--line); transition: background-color .4s; }
.steps li::before {
  content: ""; position: absolute; left: 5px; top: 50%; z-index: 1; width: 9.5px; height: 9.5px; margin-top: -4.75px;
  transform: rotate(45deg); border: 1.5px solid var(--faint); background: var(--surface);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.steps__kind { font: 600 .62rem/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); transition: color .4s; }
.steps__what { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.steps li.is-done::before { border-color: var(--gold); background: var(--gold); }
.steps li.is-done::after, .steps li.is-active::after { background: var(--gold); }
.steps li.is-active { color: var(--text); }
.steps li.is-active .steps__kind { color: var(--gold); }
.steps li.is-active::before { border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }

.stage__agent { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: var(--r-control); background: var(--violet-soft); font-size: .86rem; }
.stage__agent b { font: 600 .62rem/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--arcane); }
.stage__agent i { flex: none; width: 8px; height: 8px; transform: rotate(45deg); background: var(--arcane); animation: glint 2.4s ease-in-out infinite; }
@keyframes glint { 50% { opacity: .3; } }

/* the numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 96px); }
.stats div { display: grid; gap: 12px; align-content: start; padding-inline: 12px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dd { font: 800 clamp(1.9rem, 4.6vw, 3.6rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats dt { font: 600 .68rem/1.5 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- bands ---------- */
.band { padding-block: clamp(80px, 12vw, 168px); }
.band--raised { background: var(--bg-2); border-block: 1px solid var(--line); }

/* what it replaces: the old way struck out, the new way in gold */
.swaps { display: grid; gap: clamp(20px, 3vw, 36px); font: 800 clamp(1rem, 2.5vw, 1.9rem)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; }
.swaps li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px); padding-bottom: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.swaps li:last-child { padding-bottom: 0; border-bottom: 0; }
.swaps s { text-align: right; color: var(--faint); text-decoration-color: var(--faint); text-decoration-thickness: 2px; }
.swaps b { font-weight: 800; color: var(--text); }
.swaps .arr { width: 1.3em; height: 1.3em; color: var(--gold); }

/* ---------- the route ---------- */
.mirror { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.mirror__card { padding: clamp(20px, 2.6vw, 32px); }
.mirror__card--run { border-color: rgba(215, 180, 106, .45); box-shadow: 0 0 100px -40px rgba(215, 180, 106, .5); }
.mirror__title { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font: 600 .68rem/1 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.mirror__card--run .mirror__title { color: var(--gold); }
.mirror__title svg { height: 16px; width: auto; fill: var(--gold); }
.rows li { position: relative; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; gap: 10px; padding: 14px 34px 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.rows li:last-child { padding-bottom: 0; border-bottom: 0; }
.rows span { font: 600 .62rem/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.rows--done li { color: var(--text); }
.rows--done span { color: var(--gold); }
.rows--done li::after { content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 7px; margin-top: -7px; transform: rotate(-45deg); border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.rows--done li:last-child::after { margin-top: 0; }
/* the script ticks the rows one after the other */
.mirror.is-live .rows--done li::after { animation: tick .4s both; }
.mirror.is-live .rows--done li:nth-child(2)::after { animation-delay: .25s; }
.mirror.is-live .rows--done li:nth-child(3)::after { animation-delay: .5s; }
.mirror.is-live .rows--done li:nth-child(4)::after { animation-delay: .75s; }
.mirror.is-live .rows--done li:nth-child(5)::after { animation-delay: 1s; }
@keyframes tick { from { opacity: 0; transform: rotate(-45deg) scale(.3); } }

.ring { position: relative; width: clamp(150px, 17vw, 210px); margin-inline: clamp(28px, 5vw, 72px); }
.ring::before, .ring::after { content: ""; position: absolute; top: 50%; width: clamp(28px, 5vw, 72px); border-top: 2px dashed var(--line); }
.ring::before { right: 100%; }
.ring::after { left: 100%; border-color: rgba(215, 180, 106, .5); }
.ring svg { width: 100%; height: auto; }
.ring__track { fill: none; stroke: var(--surface-3); stroke-width: 6; }
.ring__arc { fill: none; stroke: var(--gold); stroke-width: 6; stroke-dasharray: 99 100; }
.ring.is-live .ring__arc { animation: ring 1.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ring { from { stroke-dashoffset: 99; } }
.ring figcaption { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.ring b { font: 800 clamp(1.7rem, 3.4vw, 2.5rem)/1 var(--font-display); letter-spacing: -.02em; }
.ring span { font: 600 .58rem/1.4 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
#route .chips { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- the agents ---------- */
.agents { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 112px); }
.agents__copy h2 { margin-top: 18px; font-size: clamp(2rem, 6vw, 4.6rem); }
.agents .chips { justify-content: flex-start; margin-top: clamp(28px, 3.4vw, 40px); }

.chat { border-color: rgba(139, 92, 246, .38); box-shadow: 0 0 120px -34px rgba(139, 92, 246, .6); }
.chat .frame__in { display: grid; gap: 20px; padding: clamp(20px, 2.6vw, 30px); }
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 600 .66rem/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--arcane); }
.chat__head i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--arcane); }
.chat__log { display: flex; flex-direction: column; gap: 14px; }
.msg { position: relative; max-width: 88%; padding: 13px 17px; border-radius: 16px; font-size: .98rem; line-height: 1.45; }
.msg--you { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--surface-3); }
.msg--agent { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--violet-soft); }
.msg__ok { display: flex; align-items: center; gap: 9px; margin-top: 9px; font: 600 .62rem/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--arcane); }
.msg__ok::before { content: ""; width: 10px; height: 6px; margin-top: -3px; transform: rotate(-45deg); border-left: 2px solid; border-bottom: 2px solid; }
.chat__input { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface-2); color: var(--muted); font-size: .92rem; }
.chat__input i { width: 2px; height: 1.15em; background: var(--arcane); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* the script plays the talk once: each line comes in, the agent "types" before it answers */
.chat.is-playing .msg { opacity: 0; transform: translateY(8px); }
.chat.is-playing .msg.is-in { opacity: 1; transform: none; transition: opacity .35s, transform .35s, color .25s; }
.msg.is-typing { color: transparent; }
.msg.is-typing .msg__ok { visibility: hidden; }
.msg.is-typing::after {
  content: ""; position: absolute; left: 17px; top: 50%; width: 34px; height: 8px; margin-top: -4px;
  background: radial-gradient(circle at 4px 4px, var(--arcane) 3px, transparent 3.6px) 0 0 / 13px 8px repeat-x;
  animation: glint .9s ease-in-out infinite;
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(40px, 6vw, 80px); }
.features li {
  display: grid; gap: 8px; align-content: start; justify-items: center; padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px) clamp(26px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); text-align: center;
  transition: border-color .25s, transform .25s;
}
.features li:hover { border-color: rgba(215, 180, 106, .5); transform: translateY(-4px); }
.features p { color: var(--muted); font-size: .95rem; }
.art { width: 100%; max-width: 260px; height: auto; margin-bottom: 14px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art__track { stroke: var(--surface-3); }
.art__gold { stroke: var(--gold); }
.art__fill { fill: var(--gold); }
.art__hollow { fill: var(--surface); stroke: var(--faint); stroke-width: 2; }
.art__zone { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 3 6; }
.art__bar { stroke: var(--surface-3); stroke-width: 14; stroke-linecap: butt; }
.art__bar--gold { stroke: var(--gold); }
#builds path { fill: var(--gold); }
.art__ping { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.art__ping--late { animation-delay: 1.2s; }
.art__spin { transform-box: view-box; transform-origin: 100px 50px; animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.art__load { stroke-dasharray: 100; animation: load 3.6s ease-in-out infinite; }
@keyframes load { from { stroke-dashoffset: 100; } 60%, to { stroke-dashoffset: 0; } }

/* ---------- get started ---------- */
.start { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); text-align: center; }
.start li { counter-increment: step; position: relative; display: grid; gap: 16px; justify-items: center; align-content: start; }
.start li::before {
  content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: clamp(64px, 8vw, 92px); aspect-ratio: 1;
  border: 2px solid var(--gold); border-radius: 50%; background: var(--bg);
  font: 800 clamp(1.4rem, 3vw, 2.1rem)/1 var(--font-display); color: var(--gold);
}
.start li + li::after { content: ""; position: absolute; right: 50%; top: clamp(32px, 4vw, 46px); width: calc(100% + clamp(18px, 3vw, 40px)); border-top: 2px dashed var(--line); }

.final { margin-top: clamp(64px, 9vw, 128px); background: linear-gradient(135deg, var(--surface), var(--surface-2)); text-align: center; }
.final .frame__in { display: grid; justify-items: center; gap: 30px; padding: clamp(40px, 8vw, 104px) clamp(24px, 6vw, 72px); }
.final h2 { position: relative; font-size: clamp(1.6rem, 5.4vw, 4rem); }
.final .cta, .final .fine { position: relative; }
.final .fine { margin-top: -10px; }
.final__rune { position: absolute; left: 50%; top: 50%; height: 170%; width: auto; transform: translate(-50%, -50%); fill: var(--gold); opacity: .04; pointer-events: none; }

/* ---------- foot ---------- */
.foot { padding-block: 40px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; }
.foot__logo { height: 30px; width: auto; color: var(--text); }
.foot p { max-width: 64ch; }
.foot__year { white-space: nowrap; }

/* ---------- the "get started" page (start.html): numbered parts, each a row of short cards ---------- */
.guide { padding-block: clamp(32px, 6vw, 80px) clamp(40px, 6vw, 88px); }
.guide__in { display: grid; gap: clamp(48px, 7vw, 88px); }
.guide__title { font-size: clamp(1.8rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.guide__head .lead { margin: 0; }
.guide__part { display: grid; gap: 22px; }
.guide__h { display: flex; align-items: center; gap: 16px; margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.7rem); line-height: 1.1; }
.guide__no {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold); font-size: 1rem;
}
.guide__h--violet .guide__no { border-color: var(--arcane); color: var(--arcane); }
.guide__note { margin: 0; color: var(--muted); font-size: .9rem; }
.guide__note b, .gstep b { color: var(--text); font-weight: 600; }
.guide__cta { margin-top: -24px; }

.needs, .gsteps, .asks { list-style: none; margin: 0; padding: 0; }
.needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.needs--help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.needs__item { display: grid; gap: 6px; align-content: start; padding: 22px 20px; }
.needs__item .icon { color: var(--gold); margin-bottom: 8px; }
.needs__item span { color: var(--muted); font-size: .86rem; line-height: 1.45; }

.gsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.gstep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px 18px; }
.gstep h3 { margin: 4px 0 6px; font-size: .86rem; }
.gstep p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.gstep a { color: var(--gold); }
.gstep code { font-size: .8rem; color: var(--text); }
.gstep__n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold); font: 800 .78rem/1 var(--font-display);
}
.gstep--go { border-color: var(--gold); }
.gsteps--violet .gstep__n { background: var(--violet-soft); color: var(--arcane); }

.asks { display: flex; flex-wrap: wrap; gap: 10px; }
.asks li { padding: 10px 16px; border: 1px solid rgba(169, 139, 250, .4); border-radius: 99px; background: var(--violet-soft); font-size: .86rem; }

/* ---------- coming into view (only when the script runs; without it everything is simply there) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim [data-reveal].is-in { opacity: 1; transform: none; }
.anim .features li:nth-child(3n+2), .anim .swaps li:nth-child(2) { transition-delay: .1s; }
.anim .features li:nth-child(3n), .anim .swaps li:nth-child(3) { transition-delay: .2s; }

/* ---------- narrower screens ---------- */
@media (max-width: 900px) {
  .stage__body, .agents { grid-template-columns: minmax(0, 1fr); }
  .stage__map { border-right: 0; border-bottom: 1px solid var(--line); }
  .agents__copy { order: -1; text-align: center; }
  .agents .chips { justify-content: center; }
  .mirror { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mirror__card { width: 100%; max-width: 460px; }
  .ring { margin-block: 44px; margin-inline: 0; }
  .ring::before, .ring::after { left: 50%; right: auto; width: 0; height: 44px; border-top: 0; border-left: 2px dashed var(--line); }
  .ring::before { top: -44px; }
  .ring::after { top: 100%; border-color: rgba(215, 180, 106, .5); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anim .features li { transition-delay: 0s; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .brand__logo { height: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stats div:nth-child(odd) { border-left: 0; }
  .swaps li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; text-align: center; }
  .swaps s { text-align: center; }
  .swaps .arr { transform: rotate(90deg); }
}
@media (max-width: 520px) {
  .eyebrow { font-size: .64rem; letter-spacing: .18em; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .needs, .needs--help { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { width: 100%; }
  .chips li { padding: 10px 16px 10px 13px; font-size: .68rem; letter-spacing: .1em; }
  .start { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .start li { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; }
  .start li + li::after { right: auto; left: 31px; top: -28px; width: 0; height: 28px; border-top: 0; border-left: 2px dashed var(--line); }
}
@media (max-width: 360px) {
  .btn { padding-inline: 1.1em; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
