/* Chainsense landing. Every size, space and radius comes from a fixed scale:
   type  12/16 14/20 16/24 18/28 20/28 24/32 30/36 36/40 48/1 60/1
   space 2 4 8 12 16 24 32 40 48 64 80 96
   radius 4 6 8 12 16 24 full */
:root {
  --bg: #181818;
  --surface: #1f1f1f;
  --raised: #272727;
  --line: #313131;
  --text: #f2f2f2;
  --muted: #9b9b9b;
  --faint: #6b6b6b;
  --ok: #35e0a1;
  --warn: #ffc24b;
  --err: #ff5470;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Geist", "Manrope", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--text); color: #000; padding: 8px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top 700ms var(--ease); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; border: 1px solid var(--text);
  background: var(--text); color: #000;
  font: 600 16px/24px var(--font); text-decoration: none; cursor: pointer;
  transition: transform 700ms var(--ease), background 700ms var(--ease), box-shadow 700ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn i { font-size: 16px; transition: transform 700ms var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.btn-sm { font-size: 14px; line-height: 20px; padding: 8px 12px; border-radius: 9999px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--raised); box-shadow: none; }
.btn-full { width: 100%; }

/* ── Nav: floating island ───────────────────────────────────────────── */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto; margin-top: 24px; width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 24px; border-radius: 9999px;
  background: rgba(31, 31, 31, 0.72); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: none; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 9999px; font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; transition: color 700ms var(--ease), background 700ms var(--ease); }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.is-current { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-cta { display: none; }
.burger { position: relative; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.burger span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 700ms var(--ease), top 700ms var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(64px); -webkit-backdrop-filter: blur(64px);
  opacity: 0; transition: opacity 700ms var(--ease);
}
.menu.open { opacity: 1; }
.menu ul { display: grid; gap: 16px; text-align: center; }
.menu a:not(.btn) { font-size: 30px; line-height: 36px; font-weight: 600; text-decoration: none; }
.menu li { transform: translateY(48px); opacity: 0; transition: transform 700ms var(--ease), opacity 700ms var(--ease); }
.menu.open li { transform: none; opacity: 1; }
.menu li:nth-child(1) { transition-delay: 100ms; }
.menu li:nth-child(2) { transition-delay: 150ms; }
.menu li:nth-child(3) { transition-delay: 200ms; }
.menu li:nth-child(4) { transition-delay: 250ms; }
.menu li:nth-child(5) { transition-delay: 300ms; }
.menu li:nth-child(6) { transition-delay: 350ms; margin-top: 16px; }

/* ── Reveal on scroll ───────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ── Type ───────────────────────────────────────────────────────────── */
.eyebrow { font: 500 12px/16px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; max-width: 680px; }
@media (min-width: 768px) { .h2 { font-size: 36px; line-height: 40px; } }
.lead { margin-top: 16px; max-width: 680px; color: var(--muted); font-size: 18px; line-height: 28px; }
h3 { font-size: 18px; line-height: 28px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-grid { padding-top: 32px; }
@media (min-width: 1024px) { .hero { padding: 96px 0; } .hero-grid { padding-top: 64px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; } }
.hero-title {
  max-width: 680px; font-size: 30px; line-height: 36px; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 420px) { .hero-title { font-size: 36px; line-height: 40px; } }
@media (min-width: 768px) { .hero-title { font-size: 48px; line-height: 1; } }
.hero-sub { margin-top: 24px; max-width: 680px; color: var(--muted); font-size: 18px; line-height: 28px; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.proof { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof b { font: 500 14px/20px var(--mono); color: var(--text); margin-right: 4px; }

/* Phone mock */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 380px; border-radius: 24px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 96px rgba(0, 0, 0, 0.5);
}
.phone-top { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--raised); }
.phone-top b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.phone-top small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.phone-top > i { margin-left: auto; color: var(--muted); font-size: 20px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: #000; flex: none; }
.avatar img { width: 16px; height: 16px; }
.chat { height: 440px; padding: 16px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; mask-image: linear-gradient(to bottom, transparent 0, #000 48px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px); }
.msg { max-width: 88%; padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 20px; background: var(--raised); animation: pop 700ms var(--ease) both; }
.msg .who { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.msg.me { align-self: flex-end; background: #313131; }
.msg.bot .who { color: var(--text); }
.msg.status { align-self: flex-start; }
.msg .mention { color: var(--text); font-weight: 600; }
.draft { margin-top: 8px; padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.draft small { display: block; font: 500 12px/16px var(--mono); color: var(--muted); }
.draft b { display: block; margin: 4px 0 8px; font-size: 14px; line-height: 20px; }
.draft dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; line-height: 16px; }
.draft dt { color: var(--muted); }
.draft dd { margin: 0; }
.chips { display: flex; gap: 8px; margin-top: 8px; }
.chip { flex: 1; text-align: center; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 600; transition: background 700ms var(--ease), color 700ms var(--ease); }
.chip.primary { background: var(--text); color: #000; border-color: var(--text); }
.chip.tapped { transform: scale(0.96); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px; border-radius: 16px; background: var(--raised); animation: pop 700ms var(--ease) both; }
.typing span { width: 6px; height: 6px; border-radius: 9999px; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
.composer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--raised); color: var(--faint); font-size: 14px; line-height: 20px; }
.st-ok { color: var(--ok); }
.st-warn { color: var(--warn); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform 700ms var(--ease), border-color 700ms var(--ease), background 700ms var(--ease); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 20px; }
.grid3, .grid4 { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 768px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.num { display: block; font: 500 12px/16px var(--mono); color: var(--faint); margin-bottom: 24px; }

/* Steps: a chain of links */
.steps { margin-top: 48px; display: grid; gap: 8px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 23px; top: 24px; width: 2px; height: calc((100% - 48px) * var(--f, 0)); background: var(--text); transition: height 900ms var(--ease); }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 16px 0; }
.step-dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--line); font-size: 20px; color: var(--muted); transition: background 700ms var(--ease), color 700ms var(--ease), border-color 700ms var(--ease); }
.step.lit .step-dot { background: var(--text); color: #000; border-color: var(--text); }
.step h3 { margin-top: 8px; }
.step p { margin-top: 4px; color: var(--muted); max-width: 680px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps::before { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .steps::after { left: 24px; top: 23px; height: 2px; width: calc((100% - 48px) * var(--f, 0)); transition: width 900ms var(--ease); }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 0; }
  .step h3 { margin-top: 0; }
}

/* Roles */
.role-icon, .svc > i, .trust > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--raised); font-size: 20px; margin-bottom: 24px; }
.card:hover { border-color: #3d3d3d; transform: translateY(-4px); }
.asks { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.asks li { font: 400 12px/16px var(--mono); color: var(--text); padding: 8px 12px; border-radius: 8px; background: var(--raised); }
.asks li::before { content: "“"; color: var(--faint); }
.asks li::after { content: "”"; color: var(--faint); }

/* Tagline reveal */
.tagline { padding: 64px 0; }
@media (min-width: 768px) { .tagline { padding: 96px 0; } }
.tagline-text { max-width: 880px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
@media (min-width: 768px) { .tagline-text { font-size: 60px; line-height: 1; } }
.tagline-text .w { color: rgba(242, 242, 242, 0.3); transition: color 700ms var(--ease); }
.tagline-text .w.on { color: var(--text); }

/* Control visuals */
.viz { height: 160px; margin-bottom: 24px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; padding: 16px; overflow: hidden; }
.viz-approvals { align-content: center; gap: 12px; }
.appr { display: flex; align-items: center; gap: 8px; }
.appr .line { width: 24px; height: 2px; background: var(--line); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.pill.ok i { color: var(--ok); }
.viz small { font-size: 12px; line-height: 16px; color: var(--faint); text-align: center; }
.push { width: 100%; max-width: 280px; padding: 12px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); }
.push-head { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; }
.push-head small { margin-left: auto; color: var(--faint); font-weight: 400; }
.push p { margin: 8px 0 12px; font-size: 12px; line-height: 16px; color: var(--text) !important; }
.push-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.push-btns span { text-align: center; padding: 4px; border-radius: 6px; font-size: 12px; line-height: 16px; font-weight: 600; background: var(--surface); }
.push-btns .allow { background: var(--text); color: #000; }
.viz-sla { grid-template-columns: auto auto; gap: 16px; }
.ring { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: 301.6; transition: stroke-dashoffset 2400ms var(--ease), stroke 700ms var(--ease); }
.sla-text b { display: block; font-size: 24px; line-height: 32px; font-weight: 500; }
.sla-text small { color: var(--muted); }

/* Split layouts */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-rev > :first-child { order: 2; } }
.ticks { margin-top: 32px; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); }
.ticks i { font-size: 20px; color: var(--text); padding-top: 2px; }
.ticks b { color: var(--text); font-weight: 600; }

/* Knowledge canvas */
.kb { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin: 0 auto; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.kb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kb-legend { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.kb-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; }
.dot.hub { background: #ffffff; }
.dot.you { background: #b5b5b5; }
.dot.other { background: #4a4a4a; }

/* Client page mock */
.cpage { width: 100%; max-width: 480px; margin: 0 auto; border-radius: 24px; padding: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.cpage-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.cpage-top b { font-size: 16px; }
.cpage-top small { margin-left: auto; color: var(--faint); font-size: 12px; line-height: 16px; }
.cpage-sec { padding: 16px; border-radius: 16px; background: var(--raised); display: grid; gap: 8px; }
.cpage-sec > small { font-size: 12px; line-height: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.row { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.row.muted { color: var(--muted); }
.ref { font-size: 12px; line-height: 16px; color: var(--faint); }
.tag { margin-left: auto; font-size: 12px; line-height: 16px; padding: 2px 8px; border-radius: 9999px; border: 1px solid var(--line); color: var(--muted); }
.ok-ic { margin-left: auto; color: var(--ok); }
.bar { height: 4px; border-radius: 9999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--text); border-radius: 9999px; }
.row-btns { display: flex; gap: 8px; }
.row-btns span { padding: 4px 12px; border-radius: 8px; font-size: 12px; line-height: 16px; font-weight: 600; border: 1px solid var(--line); }
.row-btns .b-ok { background: var(--text); color: #000; border-color: var(--text); }
.inv { grid-template-columns: 1fr auto; align-items: center; }
.inv small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.inv b { font-size: 18px; line-height: 28px; font-weight: 500; }
.inv .btn { pointer-events: none; }

/* Engagement */
.plan small { display: block; margin-top: 24px; font-size: 12px; line-height: 16px; color: var(--text); }
.assure { margin-top: 24px; display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.assure i { font-size: 24px; color: var(--ok); }
.assure b { color: var(--text); font-weight: 600; }

/* FAQ */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; } }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: background 700ms var(--ease); }
.faq details[open] { background: var(--raised); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; font-weight: 600; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/24px var(--mono); color: var(--muted); transition: transform 700ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); }

/* Form */
.final .split { align-items: start; }
.contact-alt { margin-top: 24px; color: var(--muted); }
.contact-alt a { color: var(--text); text-underline-offset: 4px; }
#tgLink { margin-top: 24px; }
.form { display: grid; gap: 16px; }
.form:hover { transform: none; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 400 16px/24px var(--font);
  transition: border-color 700ms var(--ease), box-shadow 700ms var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.field.bad input, .field.bad textarea { border-color: var(--err); }
.err { min-height: 16px; font-size: 12px; line-height: 16px; color: var(--err); }
.err:empty { min-height: 0; }
.form-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.form-note:empty { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot-grid img { height: 24px; width: auto; }
.foot-grid p { margin-top: 16px; max-width: 360px; color: var(--muted); font-size: 14px; line-height: 20px; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; }
.foot-grid nav a { color: var(--muted); text-decoration: none; transition: color 700ms var(--ease); }
.foot-grid nav a:hover { color: var(--text); }
.foot-bottom { margin-top: 32px; color: var(--faint); font-size: 12px; line-height: 16px; }

/* Plain pages (privacy, terms, 404) */
.page { padding: 96px 0; }
.page .wrap { max-width: 760px; padding-top: 64px; }
.page h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; margin-bottom: 24px; background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page h2 { font-size: 20px; line-height: 28px; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page ul { list-style: disc; padding-left: 24px; display: grid; gap: 8px; margin-top: 8px; }
.page .btn { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* ── Sci fi layer: HUD brackets, telemetry, 3D stages ────────────────── */
.hud { position: relative; }
.hud::before, .hud::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.55); transition: width 700ms var(--ease), height 700ms var(--ease), border-color 700ms var(--ease); }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: inherit; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: inherit; }
.card.hud:hover::before, .card.hud:hover::after { width: 32px; height: 32px; border-color: #ffffff; }
.card:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 64px rgba(0, 0, 0, 0.45); }
.hud-tag { position: absolute; z-index: 2; font: 500 12px/16px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); pointer-events: none; }
.hud-tag.tl { top: 12px; left: 16px; }
.hud-tag.br { bottom: 12px; right: 16px; }

.section .eyebrow::before { content: "// "; color: var(--faint); }
.eyebrow.status { display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 9999px; background: var(--ok); box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(53, 224, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0); } }

/* Hero stage */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.core-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; }
.hero-copy { position: relative; }
.core-slot { height: 360px; border-radius: 24px; }
@media (min-width: 1024px) { .core-slot { height: 560px; } }
.core-slot::before, .core-slot::after { width: 24px; height: 24px; border-color: rgba(255, 255, 255, 0.3); }
.core-fallback { display: none; }
.no-webgl .core-fallback { display: block; position: absolute; inset: 0; margin: auto; width: 120px; height: 120px; opacity: 0.85; }
.no-webgl .hero-canvas, .no-webgl .core-labels { display: none; }
.core-label { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 4px 8px; border-radius: 6px; background: rgba(24, 24, 24, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; will-change: transform; }
.core-label b { font-size: 12px; line-height: 16px; font-weight: 600; }
.core-label small { font: 400 12px/16px var(--mono); color: var(--muted); }
@media (max-width: 767px) { .core-label small { display: none; } }

/* Telemetry ticker */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font: 400 12px/16px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.ticker b { font-weight: 500; color: var(--text); margin-left: 8px; }
.ticker b.t-ok { color: var(--ok); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Knowledge sphere */
.kb { background: var(--bg); }
.kb .hud-tag { z-index: 2; }
.no-webgl .kb .core-fallback { display: block; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .pulse { animation: none; }
}
