/* Self-hosted fonts (variable woff2 from Google Fonts, latin + latin-ext).
   No third-party requests — keeps the brand's no-dependency stance. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/dmsans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/dmsans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fira Code';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/firacode-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fira Code';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/firacode-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Sora';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/sora-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Sora';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/sora-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
/* ============================================================
   ProBizSystems — shared design system
   Refined dark AI aesthetic. Single theme, no JS dependencies.
   Palette derives from the original brand tokens:
     bg oklch(12% .025 250) · violet oklch(55% .25 270)
     cyan oklch(72% .15 195) · Sora / DM Sans / Fira Code
   ============================================================ */

:root {
  --bg:            oklch(12% 0.025 250);
  --bg-alt:        oklch(14% 0.03 250);
  --card:          oklch(16% 0.03 250);
  --card-hover:    oklch(18% 0.035 250);
  --heading:       oklch(95% 0.01 250);
  --body:          oklch(75% 0.02 250);
  --muted:         oklch(58% 0.02 250);
  --primary:       oklch(55% 0.25 270);
  --primary-soft:  oklch(55% 0.25 270 / 0.12);
  --accent:        oklch(72% 0.15 195);
  --accent-soft:   oklch(72% 0.15 195 / 0.1);
  --border:        oklch(25% 0.04 250);
  --border-strong: oklch(32% 0.05 250);
  --grad: linear-gradient(100deg, oklch(60% 0.23 270), oklch(72% 0.15 195));
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "Fira Code", ui-monospace, monospace;
  --radius: 0.75rem;
  --container: 1120px;
  --shadow-card: 0 1px 2px oklch(0% 0 0 / 0.3), 0 8px 24px oklch(0% 0 0 / 0.25);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { text-wrap: pretty; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: oklch(55% 0.25 270 / 0.45); color: var(--heading); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- utilities ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before { content: ""; width: 1.6rem; height: 1px; background: var(--accent); opacity: 0.6; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: oklch(98% 0 0);
  box-shadow: 0 4px 18px oklch(55% 0.25 270 / 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 24px oklch(55% 0.25 270 / 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(12% 0.025 250 / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
}
.brand:hover { text-decoration: none; }
.brand img { width: 2.8rem; height: 2.8rem; }
.brand .biz { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--heading); text-decoration: none; }
.nav-links .btn { padding: 0.55rem 1.2rem; font-size: 0.875rem; }
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  margin-left: auto;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--heading);
  font-size: 1.2rem;
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: oklch(13% 0.028 250 / 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 0.9rem; }
  .nav-links a:not(.btn) { display: block; padding: 0.85rem 0.25rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { margin: 0.9rem 0 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 8.5rem);
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-img, none) center / cover no-repeat;
  z-index: -3;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.3);
  z-index: -2;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.ready { opacity: 1; }
.hero-video.off { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-video:not(.user-on) { display: none; }
}
.hero-toggle {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: oklch(16% 0.03 250 / 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--body);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.hero-toggle:hover { border-color: var(--accent); color: var(--heading); background: oklch(18% 0.035 250 / 0.75); }
.hero-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-toggle svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }
.hero-toggle .ic-play { display: none; }
.hero-toggle.paused .ic-pause { display: none; }
.hero-toggle.paused .ic-play { display: block; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(12% 0.025 250 / 0.78), oklch(12% 0.025 250 / 0.92) 70%, var(--bg));
  z-index: -2;
}
.hero-orbs::before, .hero-orbs::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 32rem; height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
}
.hero-orbs::before { background: oklch(55% 0.25 270); top: -10rem; left: -8rem; }
.hero-orbs::after  { background: oklch(72% 0.15 195); bottom: -12rem; right: -8rem; }
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid oklch(72% 0.15 195 / 0.25);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}
.hero h1 { max-width: 17ch; margin-bottom: 1.4rem; }
.hero .lede { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- card grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); background: var(--card-hover); }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: oklch(55% 0.25 270 / 0.5); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.6rem;
  background: var(--primary-soft);
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.card ul { padding-left: 1.1rem; margin-top: 0.8rem; font-size: 0.95rem; color: var(--muted); display: grid; gap: 0.4rem; }
button.contact-card {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
button.contact-card:hover {
  border-color: oklch(55% 0.25 270 / 0.5);
  background: var(--card-hover);
  transform: translateY(-3px);
}
button.contact-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.contact-card h3 { color: var(--heading); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.8rem;
}
.card .price { font-family: var(--font-head); color: var(--heading); font-weight: 600; margin-top: 0.9rem; }
.card-link { font-weight: 600; font-size: 0.92rem; color: var(--accent); margin-top: 0.9rem; display: inline-block; }

/* ---------- process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.step { counter-increment: step; position: relative; padding: 1.6rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { font-size: 0.97rem; color: var(--muted); }
.step .detail { margin-top: 0.9rem; font-size: 0.88rem; font-style: italic; color: var(--accent); }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: oklch(55% 0.25 270 / 0.6); box-shadow: 0 0 0 1px oklch(55% 0.25 270 / 0.4), var(--shadow-card); }
.plan .flag {
  position: absolute; top: -0.8rem; left: 50%; translate: -50% 0;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--grad); color: oklch(98% 0 0);
  padding: 0.25rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.plan .amount { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--heading); }
.plan .amount small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan .setup { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.plan ul li { padding-left: 1.5rem; position: relative; color: var(--body); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; flex-shrink: 0; transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: 0.98rem; }

/* ---------- two-column feature (about etc.) ---------- */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.split figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.split figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(12% 0.025 250 / 0.55), transparent 55%);
}
.split .body p + p { margin-top: 1rem; }

/* ---------- partners strip ---------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}
.partners span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.05rem;
  background: var(--card);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid oklch(55% 0.25 270 / 0.4);
  background:
    radial-gradient(60% 120% at 20% 0%, oklch(55% 0.25 270 / 0.22), transparent 60%),
    radial-gradient(60% 120% at 85% 100%, oklch(72% 0.15 195 / 0.18), transparent 60%),
    var(--card);
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { max-width: 38rem; margin: 0 auto 2rem; color: var(--muted); }

/* ---------- comparison / data tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { border-collapse: collapse; width: 100%; min-width: 38rem; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 0.8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { font-family: var(--font-head); color: var(--heading); background: var(--bg-alt); position: sticky; top: 0; }
table.compare td:not(:first-child) { color: var(--muted); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .group td {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-alt);
}

/* ---------- article / prose (blog, legal, service detail) ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--border); }
.page-hero .meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.2rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 0.8rem; }
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.4rem; display: grid; gap: 0.45rem; }
.prose strong { color: var(--heading); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}
.prose img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.8rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 0.3rem; padding: 0.1em 0.35em; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: 2.5rem; }
.site-footer h4 { font-size: 0.85rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--heading); }
.social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social a, .social .pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.social a:hover { color: var(--heading); border-color: var(--accent); background: var(--accent-soft); }
.social .pending { opacity: 0.35; cursor: default; }   /* present but not yet active */
.social svg { width: 1.15rem; height: 1.15rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- back-to-top (clears Consolto bubble) ---------- */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 6.5rem;
  width: 2.8rem; height: 2.8rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--heading);
  z-index: 40;
}
.back-top:hover { text-decoration: none; border-color: var(--accent); }

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: oklch(98% 0 0);
  padding: 0.6rem 1.2rem; z-index: 100; border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Motion & polish layer (v5)
   Reveals gate on html.anim — added by an inline head script only
   when JS runs AND prefers-reduced-motion is NOT set, so content
   is never hidden for no-JS or reduced-motion visitors.
   ============================================================ */

/* ---------- scroll reveals ---------- */
.anim .rv {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}
.anim .rv.in { opacity: 1; translate: 0 0; }

/* gradient sheen on accent words, once per reveal */
.grad-text { background-size: 200% 100%; background-position: 0% 0; }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: 0% 0; } }
.anim .rv.in .grad-text { animation: sheen 1s ease 0.15s backwards; }

/* ---------- cursor-aware card glow ---------- */
.card { position: relative; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              oklch(72% 0.15 195 / 0.09), transparent 70%);
}
.card:hover::after { opacity: 1; }

/* ---------- ghost numerals on process steps ---------- */
.step::after {
  content: "0" counter(step);
  position: absolute;
  top: 0.4rem;
  right: 0.9rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: oklch(72% 0.15 195 / 0.07);
  pointer-events: none;
}

/* ---------- gradient hairlines on alternate sections ---------- */
.section-alt {
  border-block: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent,
    oklch(55% 0.25 270 / 0.4), oklch(72% 0.15 195 / 0.4), transparent) 1;
}

/* ---------- icon sizing for inline SVGs ---------- */
.icon svg { width: 1.25rem; height: 1.25rem; }

/* ---------- hero terminal status line ---------- */
.hero-status {
  display: flex;
  align-items: center;
  margin-top: 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-status .prompt { color: var(--accent); margin-right: 0.5em; }
.hero-status .caret {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-left: 3px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-status .caret { animation: none; } }

/* ---------- ClawNex console illustration ---------- */
.console {
  margin-top: 2.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.8rem;
  overflow: hidden;
  background: oklch(9% 0.02 250);
  box-shadow: var(--shadow-card);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  background: oklch(14% 0.03 250);
  border-bottom: 1px solid var(--border);
}
.console-bar span { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: oklch(30% 0.04 250); }
.console-bar em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.55rem;
}
.console-bar i {
  margin-left: auto;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
}
.console-body {
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  min-height: 12.5rem;
  overflow-x: auto;
  white-space: nowrap;
}
.console-body .ln { opacity: 0; animation: lnin 0.4s ease forwards; }
@media (prefers-reduced-motion: reduce) { .console-body .ln { animation: none; opacity: 1; } }
@keyframes lnin { to { opacity: 1; } }
.console-body .t { color: oklch(45% 0.02 250); margin-right: 0.8rem; }
.console-body .k { display: inline-block; min-width: 9.5rem; color: var(--accent); }
.console-body .ln.warn .k { color: oklch(78% 0.14 85); }
.console-body .blocked { color: oklch(68% 0.19 25); }
.console-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}
.console .shot { display: block; width: 100%; }

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 60;
  pointer-events: none;
}

/* ---------- nav scrollspy active state ---------- */
.nav-links a.spy-active { color: var(--accent); }

/* ---------- smooth page transitions (progressive) ---------- */
@view-transition { navigation: auto; }
