/* TracelyCRM marketing site. Ink sections for the product, paper sections for
   reading; JetBrains Mono for everything machine-like, Inter for the rest. */

:root {
  --ink: #07090e;
  --ink-2: #0d1119;
  --ink-3: #141a26;
  --ink-line: rgba(226, 232, 240, .09);
  --ink-line-2: rgba(226, 232, 240, .16);
  --fg: #e8ecf4;
  --fg-mute: #8d97a9;
  --fg-dim: #5d6779;

  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --paper-line: #d6d0c1;
  --paper-ink: #0e1117;
  --paper-mute: #5c5a54;

  --blue: #6f97ff;
  --violet: #a38bff;
  --live: #5ef2a8;
  --amber: #ffc46b;
  --grad: linear-gradient(120deg, #2563eb, #7c3aed);
  --grad-text: linear-gradient(100deg, #8fb0ff 0%, #b79cff 55%, #8fb0ff 100%);

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.05; }
p { margin: 0; }
pre { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--fg-mute); }
.paper .muted { color: var(--paper-mute); }
::selection { background: rgba(111, 151, 255, .35); }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--fg); color: var(--ink); border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.ink { background: var(--ink); color: var(--fg); }
.paper { background: var(--paper); color: var(--paper-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -10px rgba(99, 102, 241, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:hover { box-shadow: 0 12px 34px -10px rgba(124, 58, 237, .85), inset 0 1px 0 rgba(255,255,255,.22); transform: translateY(-1px); }
.btn--ghost { color: var(--fg-mute); }
.btn--ghost:hover { color: var(--fg); }
.btn--line { border-color: var(--ink-line-2); color: var(--fg); background: rgba(255,255,255,.02); }
.btn--line:hover { border-color: rgba(226,232,240,.4); background: rgba(255,255,255,.05); }
.paper .btn--line { border-color: var(--paper-ink); color: var(--paper-ink); background: transparent; }
.paper .btn--line:hover { background: var(--paper-ink); color: var(--paper); }
.btn--lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- small things ---------- */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-dim); vertical-align: middle; }
.dot--live { background: var(--live); box-shadow: 0 0 0 0 rgba(94, 242, 168, .55); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(94, 242, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 242, 168, 0); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--ink-line-2); border-radius: 999px; font: 500 12.5px/1 var(--mono); color: var(--fg-mute); background: rgba(13, 17, 25, .6); backdrop-filter: blur(6px); }
.label { font-size: 12.5px; letter-spacing: .02em; color: var(--blue); margin-bottom: 18px; }
.paper .label { color: #3b4fd1; }
.chip { margin-left: auto; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ink-line-2); font: 500 11px/1.2 var(--mono); color: var(--fg-mute); }
.chip--live { color: var(--live); border-color: rgba(94, 242, 168, .35); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7, 9, 14, .72); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--ink-line); }
.nav.is-light { background: rgba(243, 240, 232, .82); color: var(--paper-ink); border-bottom-color: var(--paper-line); }
.nav.is-light .btn--ghost { color: var(--paper-mute); }
.nav.is-light .nav__links a { color: var(--paper-mute); }
.nav.is-light .nav__links a:hover { color: var(--paper-ink); }
.nav__inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 16px/1 var(--mono); letter-spacing: -.02em; }
.brand i { color: var(--blue); font-style: normal; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav__links { display: flex; gap: 22px; margin-left: 12px; }
.nav__links a { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font: 500 13.5px/1 var(--mono); color: var(--fg-mute); transition: color .2s; }
.nav__links a span { font-size: 10.5px; color: var(--blue); opacity: .8; }
.nav__links a:hover { color: var(--fg); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--ink-line-2); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .25s var(--ease); }
.nav.is-light .nav__toggle { border-color: var(--paper-line); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu { padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; background: rgba(7, 9, 14, .97); border-bottom: 1px solid var(--ink-line); }
.mobile-menu a { padding: 13px 2px; border-bottom: 1px solid var(--ink-line); text-decoration: none; font: 500 15px/1 var(--mono); color: var(--fg); }
.mobile-menu .btn { margin-top: 16px; border: 0; padding: 14px; }
.nav.is-light .mobile-menu { background: var(--paper); }
.nav.is-light .mobile-menu a:not(.btn) { color: var(--paper-ink); border-color: var(--paper-line); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 148px 0 0; isolation: isolate; text-align: center;
  background: radial-gradient(60% 45% at 50% 100%, rgba(79, 70, 229, .22), transparent 70%), var(--ink); }
.hero__field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 40%, #000 25%, transparent 78%);
          mask-image: radial-gradient(85% 75% at 50% 40%, #000 25%, transparent 78%);
}
/* A soft pool of ink behind the words so the field never fights the text. */
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__copy::before { content: ''; position: absolute; z-index: -1; inset: -40px -12% -30px; background: radial-gradient(closest-side, rgba(7, 9, 14, .92), rgba(7, 9, 14, .6) 55%, transparent); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; z-index: -1; background: linear-gradient(transparent, var(--ink)); }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title { margin: 28px 0 26px; font-size: clamp(48px, 8.4vw, 116px); font-weight: 800; letter-spacing: -.05em; line-height: .94; }
.hero__title > span { display: block; }
.hero__accent { font-style: normal; background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
.caret { display: inline-block; width: .08em; height: .76em; margin-left: .06em; vertical-align: -.03em; background: var(--violet); animation: blink 1s steps(1) infinite; }
.hero__lede { max-width: 640px; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; color: var(--fg-mute); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 26px; }
.hero__meta { font-size: 12.5px; color: var(--fg-dim); }
.hero__meta i { font-style: normal; color: var(--blue); margin: 0 6px; }
.hero__proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border: 1px solid var(--ink-line); border-radius: 999px; background: rgba(13, 17, 25, .55); backdrop-filter: blur(6px); }
.hero__proof li { padding: 9px 18px; font-size: 12.5px; color: var(--fg-mute); white-space: nowrap; }
.hero__proof li + li { border-left: 1px solid var(--ink-line); }
.hero__proof b { color: var(--fg); font-weight: 700; margin-right: 6px; }

/* The live router: a wide screen that rises flat as it scrolls into place. */
.hero__stage { position: relative; width: 100%; max-width: 1120px; margin: 72px auto 0; perspective: 1700px; }
.hero__stage::before { content: ''; position: absolute; inset: 18% 6% -12%; z-index: -1; background: radial-gradient(closest-side, rgba(99, 102, 241, .45), transparent); filter: blur(30px); }
.hero__term {
  --tilt: 14deg; --lift: 40px;
  text-align: left; transform-origin: 50% 100%; transform: translateY(var(--lift)) rotateX(var(--tilt));
  will-change: transform; border-color: rgba(163, 139, 255, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 60px 120px -50px rgba(37, 99, 235, .55), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.scene.scene--hero { height: 300px; }

/* terminal windows */
.term { margin: 0; border: 1px solid var(--ink-line-2); border-radius: var(--radius); background: linear-gradient(180deg, rgba(20, 26, 38, .92), rgba(10, 13, 20, .96)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.02) inset; backdrop-filter: blur(8px); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--ink-line); font: 500 12px/1 var(--mono); color: var(--fg-mute); }
.term__dots { display: inline-flex; gap: 6px; }
.term__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-line-2); }
.term__live { margin-left: auto; color: var(--live); font-size: 11px; letter-spacing: .06em; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); font-size: 12px; }
.feed li { display: flex; gap: 10px; padding: 12px 16px; color: var(--fg-mute); white-space: nowrap; overflow: hidden; animation: feed-in .5s var(--ease); }
.feed li + li { border-left: 1px solid var(--ink-line); }
.feed li:nth-child(3) { opacity: .5; }
.feed time { color: var(--fg-dim); }
.feed b { color: var(--fg); font-weight: 500; }
.feed em { margin-left: auto; font-style: normal; color: var(--live); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } }

/* source ticker */
.ticker { border-block: 1px solid var(--ink-line); overflow: hidden; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 60s linear infinite; font-size: 13.5px; color: var(--fg-mute); }
.ticker__track span { padding: 0 18px; white-space: nowrap; }
.ticker__track span::before { content: '◆'; color: var(--blue); opacity: .55; margin-right: 18px; font-size: 9px; vertical-align: 2px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { padding: 72px 0 24px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink-line); border-radius: var(--radius); }
.stat { padding: 26px 26px 24px; }
.stat + .stat { border-left: 1px solid var(--ink-line); }
.stat__num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat__bar { margin: 14px 0 12px; font-size: 12px; color: var(--blue); letter-spacing: -.5px; white-space: nowrap; overflow: hidden; }
.stat__bar i { font-style: normal; color: var(--ink-line-2); }
.stat__label { color: var(--fg-mute); font-size: 14px; }

/* ---------- section heads ---------- */
section { position: relative; }
.how, .product, .signals, .agency, .features, .pricing, .faq { padding: 120px 0; }
.head { margin-bottom: 56px; }
.head h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.head--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.head__aside { color: var(--fg-mute); font-size: 17px; max-width: 440px; }
.paper .head__aside { color: var(--paper-mute); }
.head--center .head__aside { margin-top: 18px; }
.head__aside a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }

/* ---------- how ---------- */
.wire { font-size: clamp(9px, 1.15vw, 14px); line-height: 1; color: var(--ink-line-2); white-space: pre; overflow: hidden; margin: 0 0 28px; text-align: center; }
.wire .on { color: var(--live); text-shadow: 0 0 10px rgba(94, 242, 168, .8); }
.wire .n { color: var(--blue); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 26px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); transition: border-color .3s, transform .3s var(--ease); }
.step.is-lit { border-color: rgba(94, 242, 168, .45); transform: translateY(-3px); }
.step__no { font-size: 12.5px; color: var(--blue); margin-bottom: 16px; }
.step.is-lit .step__no { color: var(--live); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p:last-child { color: var(--fg-mute); font-size: 15px; }

/* ---------- product tour ---------- */
.tour__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ink-line); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.tour__tab { position: relative; display: inline-flex; gap: 8px; align-items: baseline; padding: 14px 18px; border: 0; background: none; color: var(--fg-mute); font: 500 14px/1 var(--mono); cursor: pointer; white-space: nowrap; }
.tour__tab span { font-size: 10.5px; color: var(--fg-dim); }
.tour__tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tour__tab:hover { color: var(--fg); }
.tour__tab.is-active { color: var(--fg); }
.tour__tab.is-active span { color: var(--blue); }
.tour__tab.is-active::after { transform: scaleX(1); }
.tour__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.tour__panel[hidden] { display: none; }
.tour__copy h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.tour__copy > p { color: var(--fg-mute); font-size: 16.5px; margin-bottom: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg); font-size: 15px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; font: 700 13px/1.6 var(--mono); color: var(--live); }
.demo__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; }
.step-in { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.step-in.is-in { opacity: 1; transform: none; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.msg b { display: block; font: 500 11px/1.4 var(--mono); color: var(--fg-dim); margin-bottom: 3px; }
.msg--out { align-self: flex-end; background: rgba(111, 151, 255, .13); border: 1px solid rgba(111, 151, 255, .22); }
.msg--in { background: var(--ink-3); border: 1px solid var(--ink-line); }
.think { font-size: 12px; color: var(--violet); }
.dots-anim::after { content: '...'; display: inline-block; width: 2.2ch; overflow: hidden; vertical-align: bottom; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { from { width: 0; } to { width: 3.2ch; } }
.actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.actions li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--ink-line); border-radius: 9px; background: rgba(255,255,255,.02); color: var(--fg-mute); }
.actions span { color: var(--blue); }
.actions em { margin-left: auto; font-style: normal; color: var(--live); }
.threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.threads li { display: flex; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 10px; font-size: 13.5px; color: var(--fg-mute); }
.threads li span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threads li b { color: var(--fg); margin-right: 8px; font-weight: 600; }
.threads li em { margin-left: auto; font: 500 11px/1 var(--mono); font-style: normal; color: var(--fg-dim); white-space: nowrap; }
.threads li.is-new { background: rgba(111, 151, 255, .08); }
.threads li.is-new em { color: var(--live); }
.av { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--ink-line-2); font: 600 11px/1 var(--mono); color: var(--fg); }
.draft { margin-top: 6px; padding: 14px; border: 1px dashed rgba(163, 139, 255, .4); border-radius: 12px; background: rgba(163, 139, 255, .05); display: grid; gap: 8px; }
.draft .mono { font-size: 11.5px; color: var(--violet); }
.draft .typed { font-size: 14px; min-height: 2.6em; }
.draft .typed::after { content: '▌'; color: var(--violet); animation: blink 1s steps(1) infinite; }
.draft .btn { justify-self: end; }
.prompt { font-size: 14px; color: var(--fg); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { padding: 14px; border: 1px solid var(--ink-line); border-radius: 11px; background: rgba(255,255,255,.02); display: grid; gap: 4px; }
.kpis span { font-size: 11px; color: var(--fg-dim); }
.kpis b { font-size: 24px; letter-spacing: -.03em; }
.kpis em { font: 500 11.5px/1 var(--mono); font-style: normal; color: var(--live); }
.spark { font-size: 15px; color: var(--blue); letter-spacing: 2px; }
.answer { font-size: 14px; color: var(--fg-mute); padding: 12px 14px; border-left: 2px solid var(--violet); background: rgba(163, 139, 255, .05); border-radius: 0 10px 10px 0; }

/* ---------- meta signals ---------- */
.signals { background: radial-gradient(60% 50% at 25% 50%, rgba(37, 99, 235, .1), transparent 70%), var(--ink); }
.signals__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ring { font-size: clamp(9px, 1.2vw, 14px); line-height: 1.12; color: var(--ink-line-2); white-space: pre; text-align: center; overflow: hidden; }
.ring .t { color: var(--blue); opacity: .55; }
.ring .p { color: var(--live); text-shadow: 0 0 12px rgba(94, 242, 168, .85); font-weight: 700; }
.ring .nd { color: var(--fg-mute); font-weight: 700; }
.ring .na { color: var(--ink); background: var(--live); font-weight: 700; }
.ring .c { color: var(--fg); font-weight: 700; }
.ring .c2 { color: var(--fg-dim); }
.signals__side { display: grid; gap: 18px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stages li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 11px 14px; border-radius: 11px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.stages span { grid-row: span 2; font-size: 12px; color: var(--fg-dim); padding-top: 2px; }
.stages b { font-size: 15.5px; font-weight: 600; }
.stages em { font-style: normal; color: var(--fg-dim); font-size: 13.5px; }
.stages li.is-on { background: rgba(94, 242, 168, .06); border-color: rgba(94, 242, 168, .28); }
.stages li.is-on span { color: var(--live); }
.stages li.is-on em { color: var(--fg-mute); }
.payload { padding: 16px 18px; border: 1px solid var(--ink-line); border-radius: 12px; background: var(--ink-2); font-size: 12px; line-height: 1.6; color: var(--fg-mute); white-space: pre; overflow-x: auto; }
.payload .k { color: var(--blue); }
.payload .v { color: var(--amber); }
.payload .x { color: var(--live); }
.signals__notes { list-style: none; margin: 48px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--ink-line-2); display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 13px; color: var(--fg-mute); }

/* ---------- features (paper spec sheet) ---------- */
.features { background-image: linear-gradient(var(--paper-line) 1px, transparent 1px); background-size: 100% 32px; background-position: 0 -1px; background-color: var(--paper); }
.features .wrap { background: var(--paper); }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--paper-ink); border-left: 1.5px solid var(--paper-ink); }
.cell { position: relative; padding: 26px 24px 24px; border-right: 1.5px solid var(--paper-ink); border-bottom: 1.5px solid var(--paper-ink); background: var(--paper); display: flex; flex-direction: column; gap: 10px; transition: background .25s; }
.cell:hover { background: #faf8f2; }
.cell--wide { grid-column: span 2; }
.cell__no { font-size: 11.5px; color: var(--paper-mute); }
.cell h3 { font-size: 20px; }
.cell p:not(.cell__no) { color: var(--paper-mute); font-size: 14.5px; }
.cell > p:last-of-type { margin-bottom: 16px; }
/* A small dark display set into the paper card; the scene is drawn on the canvas. */
.screen {
  position: relative; margin-top: auto; border-radius: 10px; overflow: hidden;
  background: radial-gradient(130% 160% at 0% 0%, #172034 0%, #0a0d14 55%, #07090e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 30px -20px rgba(14, 17, 23, .8);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px), radial-gradient(120% 110% at 50% 10%, transparent 55%, rgba(0, 0, 0, .45));
}
.scene { display: block; width: 100%; height: 182px; }
.cell--wide .scene { height: 182px; }
.cell:hover .screen { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(111, 151, 255, .4), 0 22px 40px -18px rgba(37, 99, 235, .55); }

/* ---------- agency ---------- */
.agency__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.agency__copy h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 20px; }
.agency__copy > p:not(.label) { color: var(--fg-mute); font-size: 17px; margin-bottom: 24px; }
.switcher__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 330px; }
.switcher__list { list-style: none; margin: 0; padding: 10px; border-right: 1px solid var(--ink-line); display: grid; align-content: start; gap: 2px; }
.switcher__list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--fg-mute); font: 500 12.5px/1.2 var(--mono); text-align: left; cursor: pointer; }
.switcher__list button:hover { background: rgba(255,255,255,.04); color: var(--fg); }
.switcher__list button.is-on { background: rgba(111, 151, 255, .12); color: var(--fg); }
.ws-mark { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--ink-3); border: 1px solid var(--ink-line-2); font: 700 11px/1 var(--sans); color: var(--fg); }
.is-on .ws-mark { background: var(--grad); border-color: transparent; color: #fff; }
.ws-wait { margin-left: auto; min-width: 18px; padding: 2px 6px; border-radius: 999px; background: rgba(255, 196, 107, .14); color: var(--amber); font-size: 10.5px; text-align: center; }
.switcher__pane { padding: 22px; display: grid; align-content: start; gap: 18px; animation: pane-in .45s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateX(8px); } }
.pane__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pane__head h3 { font-size: 22px; }
.pane__head span { font: 500 11.5px/1 var(--mono); color: var(--fg-dim); }
.pane__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pane__stats div { padding: 12px 14px; border: 1px solid var(--ink-line); border-radius: 11px; display: grid; gap: 2px; }
.pane__stats b { font-size: 24px; letter-spacing: -.03em; }
.pane__stats span { font: 500 11px/1.3 var(--mono); color: var(--fg-dim); }
.pane__stats .warn b { color: var(--amber); }
.pane__stats .good b { color: var(--live); }
.pane__spark { font: 400 13px/1.4 var(--mono); color: var(--blue); white-space: pre; overflow: hidden; }
.pane__spark i { font-style: normal; color: var(--fg-dim); }
.pane__meta { font: 500 12px/1 var(--mono); color: var(--fg-mute); display: flex; align-items: center; gap: 8px; }
.pane__meta .dot { background: var(--live); }
.pane__meta.is-bad .dot { background: #ff6b81; }
.pane__meta.is-off .dot { background: var(--fg-dim); }

/* ---------- pricing ---------- */
.period { display: inline-flex; margin-top: 28px; padding: 4px; border: 1.5px solid var(--paper-ink); border-radius: 999px; }
.period button { padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--paper-ink); font: 500 13px/1 var(--mono); cursor: pointer; }
.period button em { font-style: normal; color: #1d7a52; margin-left: 4px; }
.period button.is-active { background: var(--paper-ink); color: var(--paper); }
.period button.is-active em { color: var(--live); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; padding: 30px 26px 28px; background: #fbfaf6; border: 1.5px solid var(--paper-ink); border-radius: 4px;
  display: flex; flex-direction: column; gap: 10px;
  /* receipt edge */
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 5.5px, #000 6px) top / 18px 51% repeat-x, radial-gradient(circle 6px at 50% 100%, transparent 5.5px, #000 6px) bottom / 18px 51% repeat-x;
          mask: radial-gradient(circle 6px at 50% 0, transparent 5.5px, #000 6px) top / 18px 51% repeat-x, radial-gradient(circle 6px at 50% 100%, transparent 5.5px, #000 6px) bottom / 18px 51% repeat-x;
}
.plan--hot { background: var(--paper-ink); color: var(--paper); }
.plan__flag { position: absolute; top: 22px; right: 22px; padding: 4px 10px; border-radius: 999px; background: var(--live); color: var(--paper-ink); font-size: 11px; font-weight: 700; }
.plan__name { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.plan__for { color: var(--paper-mute); font-size: 14.5px; }
.plan--hot .plan__for, .plan--hot .plan__note { color: #a8a497; }
.plan__price { display: flex; align-items: baseline; gap: 2px; margin-top: 12px; }
.plan__price .cur { font-size: 22px; font-weight: 600; }
.plan__price .amt { font-size: 52px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price .per { font-size: 15px; color: var(--paper-mute); margin-left: 4px; }
.plan--hot .plan__price .per { color: #a8a497; }
.plan__note { font-size: 12px; color: var(--paper-mute); margin-bottom: 12px; }
.plan--hot .btn--primary { box-shadow: none; }
.plan__list { list-style: none; margin: 14px 0 0; padding: 18px 0 0; border-top: 1.5px dashed currentColor; display: grid; gap: 9px; font-size: 12.5px; }
.plan__list li { display: flex; align-items: baseline; gap: 8px; }
.plan__list li span { flex: none; max-width: 82%; }
.plan__list li::after { content: ''; order: 1; flex: 1; border-bottom: 1.5px dotted currentColor; opacity: .35; transform: translateY(-3px); }
.plan__list li b { order: 2; font-weight: 700; }
.plans__foot { margin-top: 34px; text-align: center; font-size: 12.5px; color: var(--paper-mute); }

/* ---------- faq ---------- */
.faq { padding-top: 40px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq .head { position: sticky; top: 100px; }
.qa { border-top: 1.5px solid var(--paper-ink); }
.qa details { border-bottom: 1.5px solid var(--paper-ink); }
.qa summary { list-style: none; display: flex; gap: 16px; align-items: baseline; padding: 22px 4px; cursor: pointer; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '[+]'; margin-left: auto; font: 500 14px/1 var(--mono); color: var(--paper-mute); flex: none; }
.qa details[open] summary::after { content: '[−]'; color: #3b4fd1; }
.qa p { padding: 0 4px 24px; color: var(--paper-mute); font-size: 15.5px; max-width: 680px; }

/* ---------- cta ---------- */
.cta { padding: 120px 0 110px; text-align: center; overflow: hidden; background: radial-gradient(50% 60% at 50% 30%, rgba(124, 58, 237, .16), transparent 70%), var(--ink); }
.banner {
  font-size: clamp(5.4px, 1.6vw, 19px); line-height: 1.04; white-space: pre; display: inline-block; text-align: left;
  background: linear-gradient(100deg, #5b7cff 0%, #a38bff 40%, #e8ecf4 50%, #a38bff 60%, #5b7cff 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite;
  filter: drop-shadow(0 0 22px rgba(124, 58, 237, .35));
}
.cta__title { margin-top: 44px; font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.04em; }
.cta__lede { margin: 16px auto 0; max-width: 520px; color: var(--fg-mute); font-size: 17px; }
.cta__buttons { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--ink-line); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer__tag { margin-top: 14px; max-width: 300px; color: var(--fg-mute); font-size: 14px; }
.footer nav { display: grid; align-content: start; gap: 10px; }
.footer h4 { font-size: 12px; color: var(--fg-dim); font-weight: 500; margin-bottom: 4px; letter-spacing: .04em; }
.footer nav a { color: var(--fg-mute); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--fg); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-line); font-size: 12px; color: var(--fg-dim); }
.footer__status { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions .btn { display: none; }
  .tour__panel, .signals__grid, .agency__grid, .faq__grid, .head--split { grid-template-columns: 1fr; }
  .head--split { gap: 18px; }
  .faq .head { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero { padding-top: 112px; }
  .hero__field { opacity: .6; }
  .hero__stage { margin-top: 52px; perspective: none; }
  .hero__term { transform: none; }
  .scene.scene--hero { height: 250px; }
  .feed { grid-template-columns: 1fr; }
  .feed li + li { border-left: 0; border-top: 1px solid var(--ink-line); }
  .feed li:nth-child(3) { display: none; }
  .hero__proof { border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero__proof li:nth-child(3) { border-left: 0; }
  .hero__proof li:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .steps { grid-template-columns: 1fr; }
  .wire { display: none; }
  .spec { grid-template-columns: 1fr; }
  .cell--wide { grid-column: auto; }
  .how, .product, .signals, .agency, .features, .pricing { padding: 84px 0; }
  .switcher__body { grid-template-columns: 1fr; }
  .switcher__list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .switcher__list .ws-name { display: none; }
  .kpis b { font-size: 19px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--ink-line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .step-in { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
