/* =============================================================================
   Public page. Bootstrap supplies the grid and the accordion; this file is the
   hub's own voice: near-black hero, warm paper, one green, one gold.
   ========================================================================== */

:root {
  --ink: #0d1116;
  --ink-soft: #161c23;
  --ink-2: #3f4750;
  --ink-3: #79828c;
  --paper: #f7f4ec;
  --sand: #efeade;
  --card: #fffdf8;
  --line: #e2ddd0;
  --line-dark: rgba(255, 255, 255, 0.1);
  --green: #1f6f4a;
  --green-deep: #14503a;
  --gold: #c8a24a;
  --gold-deep: #a8842f;
  --gold-soft: #f3e9cf;
  --text-light: #f1ede2;
  --text-dim: rgba(241, 237, 226, 0.66);
  --shadow: 0 24px 60px -30px rgba(13, 17, 22, 0.55), 0 2px 8px rgba(13, 17, 22, 0.06);
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); text-decoration: none; }

section[id] { scroll-margin-top: 92px; }

.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.86em; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(31, 111, 74, 0.09);
  color: var(--green-deep);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --------------------------------- nav ---------------------------------- */

.hub-nav {
  padding: 16px 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.hub-nav .brand-word { color: var(--text-light); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.hub-nav .brand-word em { font-style: normal; font-weight: 400; color: var(--text-dim); }
.hub-nav .brand-mark { color: var(--gold); display: inline-flex; }

.hub-nav .nav-link { color: var(--text-dim); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.hub-nav .nav-link:hover { color: var(--text-light); background: rgba(255, 255, 255, 0.06); }
.hub-nav .nav-link.active { color: var(--gold); background: rgba(200, 162, 74, 0.1); }

.nav-status { font-size: 13.5px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; }
.nav-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fbf8f; box-shadow: 0 0 0 3px rgba(111, 191, 143, 0.18); }

.toggler-bars { display: inline-flex; flex-direction: column; gap: 5px; padding: 6px 2px; }
.toggler-bars span { display: block; width: 24px; height: 2px; background: var(--text-light); border-radius: 2px; }

/* Once the hero is behind you the bar becomes solid. */
.hub-nav.scrolled {
  padding: 9px 0;
  background: rgba(13, 17, 22, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}

/* Mobile panel: big links, dark, room to breathe. */
.menu-panel { background: var(--ink); color: var(--text-light); border-left: 1px solid var(--line-dark); width: min(84vw, 340px); }
.menu-panel .offcanvas-header { padding: 20px 24px; border-bottom: 1px solid var(--line-dark); }
.menu-panel .offcanvas-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); }
.menu-panel .offcanvas-body { padding: 18px 24px 28px; }
.menu-link {
  display: block;
  padding: 15px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-light);
  border-bottom: 1px solid var(--line-dark);
}
.menu-link:hover { color: var(--gold); }

/* -------------------------------- buttons -------------------------------- */

.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #16130a;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 20px;
  letter-spacing: -0.01em;
}
.btn-gold:hover, .btn-gold:focus { background: var(--gold-deep); border-color: var(--gold-deep); color: #16130a; }

.btn-outline-light {
  border: 1px solid rgba(241, 237, 226, 0.28);
  color: var(--text-light);
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 20px;
  background: transparent;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

.btn-lg { font-size: 16px; padding: 13px 24px; }

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
  padding: 150px 0 0;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 58% at 18% 28%, rgba(31, 111, 74, 0.34), transparent 72%),
    radial-gradient(38% 48% at 82% 18%, rgba(200, 162, 74, 0.18), transparent 74%),
    radial-gradient(60% 50% at 50% 110%, rgba(31, 111, 74, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(241, 237, 226, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 62%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.eyebrow-line { width: 28px; height: 1px; background: var(--gold); display: inline-block; }

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 21ch;
}

.hero-title-accent { color: var(--gold); display: block; }

.hero-lede { font-size: 17px; color: var(--text-dim); max-width: 50ch; margin: 0; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 28px 0 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }

.tick {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  position: relative;
  background: rgba(31, 111, 74, 0.16);
}
.tick::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 4px;
  width: 6px;
  height: 8px;
  border-right: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green);
  transform: rotate(42deg);
}
.tick-light { background: rgba(200, 162, 74, 0.16); }
.tick-light::after { border-color: var(--gold); }
.tick-gold { background: rgba(200, 162, 74, 0.16); }
.tick-gold::after { border-color: var(--gold); }

/* The photograph, in an arch, with the product resting on it. */
.hero-art { position: relative; padding: 10px 6px 46px; }

.hero-art::before {
  content: "";
  position: absolute;
  right: -30px;
  top: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(200, 162, 74, 0.34);
}

/* Landscape photograph: a clean rounded frame rather than the arch the portrait
 * needed — an arch cropped the certificate this picture is about. */
.hero-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; display: block; }

.float-card {
  position: absolute;
  background: var(--card);
  color: var(--ink);
  border: 1px solid rgba(13, 17, 22, 0.08);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  padding: 14px 16px;
}

.float-order { left: -20px; bottom: 66px; width: min(286px, 80%); }

.float-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 12.5px; }
.float-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.float-bar { height: 4px; background: rgba(13, 17, 22, 0.07); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.float-bar span { display: block; height: 100%; width: 38%; background: var(--green); border-radius: 4px; }

.float-paid { right: -8px; top: 22px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.3; }
.float-paid strong { display: block; font-size: 13px; }
.float-paid small { color: var(--ink-3); }

.float-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(31, 111, 74, 0.12); color: var(--green); display: grid; place-items: center; }

/* The strip that closes the hero: products and states sliding past. */
.marquee {
  margin-top: 64px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 16px 0;
  animation: hub-marquee 46s linear infinite;
}

.marquee-track span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); display: block; flex: 0 0 4px; }

@keyframes hub-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------------------- stats ---------------------------------- */

.stats { background: var(--paper); padding: 52px 0 20px; }

.stat { border-top: 1px solid var(--line); padding-top: 18px; }

.stat-number {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.stat-label { display: block; font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ------------------------------- sections -------------------------------- */

.section { padding: 92px 0; background: var(--paper); }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--text-light); }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.section-kicker span {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
}

.section-kicker-light { color: var(--text-dim); }
.section-kicker-light span { color: var(--gold); border-color: var(--line-dark); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
}

.section-ink .section-title { color: var(--text-light); }

.section-lede { font-size: 16px; color: var(--ink-2); margin: 0 0 8px; }
.section-ink .section-lede { color: var(--text-dim); }

/* ------------------------------- features -------------------------------- */

.feature { border-top: 1px solid var(--line); padding-top: 20px; height: 100%; }

.feature-num {
  display: block;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.feature p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ------------------------------- products -------------------------------- */

.product {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5cdb9; }

.product header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product h3 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.product p { font-size: 14px; color: var(--ink-2); margin: 0; }

.product ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.product li { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; position: relative; }
.product li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(31, 111, 74, 0.1);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.tag-gold { color: var(--gold-deep); background: var(--gold-soft); }

.product-hot { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.12); }

.product-cta { background: var(--ink); border-color: var(--ink); color: var(--text-light); justify-content: center; }
.product-cta h3 { color: var(--text-light); }
.product-cta p { color: var(--text-dim); }
.product-cta .btn-gold { align-self: flex-start; margin-top: 8px; }

/* ------------------------------- timeline -------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.timeline li { display: flex; gap: 16px; position: relative; }

.step-no {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  background: var(--card);
  position: relative;
  z-index: 1;
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 36px;
  bottom: -20px;
  width: 1px;
  background: var(--line);
}

.timeline h4 { font-size: 15.5px; font-weight: 700; margin: 5px 0 4px; letter-spacing: -0.01em; }
.timeline p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ------------------------------ code panel ------------------------------- */

.code-card {
  background: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-card-ink { background: var(--ink-soft); border-color: var(--line-dark); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }

.code-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-dim);
  font-size: 12px;
}

.code-dots { display: inline-flex; gap: 6px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(241, 237, 226, 0.22); display: block; }

.code-body {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
  color: #dfe7e1;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.6px;
  line-height: 1.65;
}

.code-body code { background: none; color: inherit; padding: 0; font-size: inherit; }

.code-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 18px 16px;
  border-top: 1px solid var(--line-dark);
  color: var(--text-dim);
  font-size: 12.5px;
}

.note-card {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
}
.note-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.note-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ------------------------------ check list ------------------------------- */

.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 20px; }
.check-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-dim); }
.check-list .tick { margin-top: 3px; }
.check-list strong { display: block; color: var(--text-light); font-size: 15px; margin-bottom: 2px; }
.check-list code { background: rgba(200, 162, 74, 0.14); color: #e6cf94; }

/* -------------------------------- pills ---------------------------------- */

.status-row { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: nowrap;
}

.pill-wait { color: #a5741f; background: #f6ecd6; }
.pill-live { color: #e9f4ee; background: #1f6f4a; }
.pill-work { color: #2a5f8a; background: #e4eef6; }
.pill-ask { color: #8a5a00; background: #fbf2e0; }
.pill-done { color: #eaf4ee; background: #1f6f4a; }
.pill-bad { color: #a32626; background: #fbeaea; }
.pill-refund { color: var(--ink-2); background: #efeee8; }
.pill-muted { color: var(--ink-3); background: #efeee8; }

/* ------------------------------- accordion ------------------------------- */

.hub-accordion { --bs-accordion-border-width: 0; --bs-accordion-bg: transparent; }

.hub-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
}
.hub-accordion .accordion-item:last-child { border-bottom: 1px solid var(--line); }

.hub-accordion .accordion-button {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  padding: 20px 0;
  box-shadow: none;
}

.hub-accordion .accordion-button:not(.collapsed) { color: var(--green-deep); background: transparent; }
.hub-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.hub-accordion .accordion-button::after { width: 14px; height: 14px; background-size: 14px; }
.hub-accordion .accordion-body { padding: 0 36px 22px 0; font-size: 15px; color: var(--ink-2); }

/* --------------------------------- cta ----------------------------------- */

.cta-band { background: var(--green-deep); color: var(--text-light); padding: 76px 0; }
.cta-band h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); letter-spacing: -0.03em; font-weight: 700; margin: 0 0 10px; max-width: 24ch; }
.cta-band p { color: rgba(241, 237, 226, 0.72); margin: 0; max-width: 46ch; }
.cta-note { font-size: 12.5px; color: rgba(241, 237, 226, 0.55); margin-top: 6px; }

/* -------------------------------- footer --------------------------------- */

.hub-footer { background: var(--ink); color: var(--text-dim); padding: 68px 0 30px; }

.footer-brand { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-light); display: inline-block; margin-bottom: 12px; }
.footer-brand em { font-style: normal; font-weight: 400; color: var(--text-dim); }

.footer-line { font-size: 14px; color: var(--text-dim); max-width: 40ch; margin: 0; }
.footer-line.small { font-size: 13px; color: rgba(241, 237, 226, 0.5); }

.hub-footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(241, 237, 226, 0.45); margin: 4px 0 14px; font-weight: 700; }
.hub-footer .col-6 a, .hub-footer .col-lg-2 a { display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0; }
.hub-footer a:hover { color: var(--gold); }

.footer-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(241, 237, 226, 0.45);
}

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 1199.98px) {
  .hero-art { max-width: 460px; margin: 0 auto; }
  .float-order { left: -6px; }
  .float-paid { right: 0; }
}

@media (max-width: 991.98px) {
  .hero { padding-top: 118px; }
  .hero-title { font-size: clamp(2.1rem, 6.4vw, 3rem); }
  .section { padding: 66px 0; }
  .stats { padding-top: 40px; }
  .marquee { margin-top: 48px; }
}

@media (max-width: 575.98px) {
  .hero { padding-top: 104px; }
  .hero-art::before { display: none; }
  .float-order { left: 0; right: 0; width: auto; bottom: 6px; }
  .float-paid { top: 8px; right: 0; }
  .hero-frame { border-radius: 16px; }
  .footer-foot { flex-direction: column; }
  .hub-accordion .accordion-button { font-size: 16px; padding: 17px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .product { transition: none; }
}

/* -------------------------------- motion ---------------------------------
   Short, eased, and only on things that respond to a pointer. Scroll-in motion
   comes from AOS (public/vendor/aos.css), initialised in landing.js. */

.btn-gold, .btn-outline-light {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-gold:active, .btn-outline-light:active { transform: translateY(1px); }

.hub-nav .nav-link, .nav-status { transition: color 0.18s ease, background 0.18s ease; }

a { transition: color 0.16s ease; }

.menu-link { transition: color 0.16s ease, padding-left 0.16s ease; }
.menu-link:hover { padding-left: 4px; }

.feature { transition: transform 0.25s ease, border-color 0.25s ease; }
.feature:hover { transform: translateY(-3px); border-color: #d5cdb9; }

.hero-frame img { transition: transform 0.6s ease; }
.hero-frame:hover img { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .btn-gold, .btn-outline-light, .hub-nav .nav-link, .nav-status, a, .menu-link,
  .feature, .hero-frame img { transition: none; }
  .feature:hover { transform: none; }
  .hero-frame:hover img { transform: none; }
}

/* The menu panel is dark, so its close button has to be too. */
.menu-panel .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.85;
}
.menu-panel .btn-close:hover { opacity: 1; }

/* A closed offcanvas panel is laid out a full viewport to the right; without this it
 * makes the whole page scroll sideways on a phone. */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}


/* The integration section's way through to the reference. */
.btn-docs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
}
.btn-docs span { transition: transform 0.2s ease; }
.btn-docs:hover span { transform: translateX(3px); }

/* ------------------------------- not found -------------------------------
   Same dark band as the hero, so a wrong address still lands on the hub's own
   page rather than a browser default. */

.nf {
  position: relative;
  overflow: hidden;
  padding: 132px 0 96px;
  background: var(--ink);
  color: var(--paper);
  min-height: 62vh;
}

.nf-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 18% 12%, rgba(31, 111, 74, 0.4), transparent 70%),
    radial-gradient(44% 46% at 86% 4%, rgba(200, 162, 74, 0.16), transparent 72%);
  pointer-events: none;
}

.nf .container { position: relative; max-width: 760px; }

.nf-code {
  margin: 0 0 4px;
  font-size: clamp(5rem, 17vw, 11rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(200, 162, 74, 0.5);
}

.nf-title {
  margin: 10px 0 16px;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.nf-lede {
  max-width: 54ch;
  margin-bottom: 28px;
  font-size: 1.05rem;
  color: rgba(247, 244, 236, 0.72);
}

.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.nf-actions .btn { padding: 13px 22px; border-radius: 12px; }

.nf-paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}
.nf-paths span { color: rgba(247, 244, 236, 0.45); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; }
.nf-paths a { color: rgba(247, 244, 236, 0.82); text-decoration: none; border-bottom: 1px solid rgba(200, 162, 74, 0.4); }
.nf-paths a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.nf-help { margin-top: 26px; font-size: 0.9rem; color: rgba(247, 244, 236, 0.55); }
.nf-help a { color: var(--gold); }

@media (max-width: 575.98px) {
  .nf { padding: 110px 0 70px; }
  .nf-actions .btn { width: 100%; text-align: center; }
}

/* On the 404 there is no hero for the bar to float over: the page opens on a dark
 * band, so the bar takes its solid state immediately rather than staying transparent. */
.nf-page .hub-nav {
  padding: 9px 0;
  background: rgba(13, 17, 22, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}


/* The phone menu carries the same two utility links as the desktop bar, under a rule
   so they read as a separate group from the sections. */
/* No border here: every .menu-link already draws its own bottom rule, and a top rule
   on the group put a second line directly under "Questions". */
.menu-utility {
  margin-top: 14px;
  padding-top: 4px;
}

.menu-link .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fbf8f;
  box-shadow: 0 0 0 3px rgba(111, 191, 143, 0.18);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}


/* ------------------------------ back to top -------------------------------
   One control, so it stays quiet: ink circle, gold chevron, and it only exists
   once there is a reason to go back up. */

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 17, 22, 0.92);
  color: var(--gold);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s,
    background 0.2s ease, color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: var(--ink); color: var(--paper); border-color: var(--gold); }
.to-top:active { transform: translateY(1px); }
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 575.98px) {
  .to-top { width: 46px; height: 46px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}


/* ------------------------------- preloader --------------------------------
   Ink panel, gold mark, one sweeping line. It is cleared by the script as soon as
   the document loads, and by the keyframes below if the script never runs — a
   preloader that can trap the page is worse than none. */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  animation: preloader-fallback 0.4s ease 2.4s forwards;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  color: var(--gold);
}

.preloader-inner svg {
  animation: preloader-pulse 1.4s ease-in-out infinite;
}

.preloader-bar {
  display: block;
  width: 132px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preloader-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: preloader-sweep 1.1s ease-in-out infinite;
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes preloader-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(300%); }
}

@keyframes preloader-fallback {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-inner svg, .preloader-bar i { animation: none; }
}


/* The bar is fixed, so a jumped-to section needs headroom or its title lands under it. */
section[id], header[id] { scroll-margin-top: 92px; }

@media (max-width: 991.98px) {
  section[id], header[id] { scroll-margin-top: 78px; }
}
