/* ==========================================================================
   BNG SOFTWARE LIMITED: shared stylesheet
   Brand: AI-Powered Blockchain Intelligence and Digital Forensics
   Palette: midnight navy surfaces, cyan and blue accents, cool gray borders
   Font: Inter Variable (SIL OFL 1.1), hosted locally in /fonts
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #07111f;
  --bg-2: #0b1625;
  --surface: #101f31;
  --surface-2: #15273c;
  --text: #f3f6fa;
  --muted: #a9b7c8;
  --faint: #7d8ea1;
  --cyan: #49d6e8;
  --blue: #5688ff;
  --green: #3fb97f;
  --amber: #e0b25c;
  --border: rgba(140, 170, 205, 0.16);
  --border-strong: rgba(140, 170, 205, 0.3);
  --shadow: 0 18px 50px rgba(2, 8, 16, 0.55);
  --radius: 12px;
  --radius-sm: 9px;
  --max: 1240px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(73, 214, 232, 0.28);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.mono {
  font-feature-settings: "tnum" 1, "cv05" 1;
  font-variant-numeric: tabular-nums;
}

.section {
  padding-block: clamp(72px, 9vw, 120px);
  position: relative;
}

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 650;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.7;
  max-width: 65ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  color: #06121f;
  box-shadow: 0 8px 26px rgba(73, 214, 232, 0.22);
}

.btn--primary:hover {
  box-shadow: 0 10px 32px rgba(86, 136, 255, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* Disclosure and notice boxes */
.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  background: rgba(224, 178, 92, 0.06);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 860px;
}

.notice strong,
.notice .notice-title {
  display: block;
  color: var(--text);
  font-weight: 650;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-word .bw-name {
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
}

.brand-word .bw-sub {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--faint);
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(140, 170, 205, 0.08);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-header.menu-open .nav-toggle span {
  background: transparent;
}

.site-header.menu-open .nav-toggle span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.site-header.menu-open .nav-toggle span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: 18px 24px 26px;
  background: rgba(7, 17, 31, 0.97);
}

.mobile-panel .nav-link {
  display: block;
  padding: 13px 6px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.mobile-panel .btn {
  width: 100%;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(140px, 16vw, 190px) 0 clamp(64px, 7vw, 96px);
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(86, 136, 255, 0.13), transparent 60%),
    radial-gradient(900px 480px at 8% 0%, rgba(73, 214, 232, 0.09), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.45rem, 4.7vw, 3.85rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-title .accent {
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.88rem;
}

.hero-trust svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--green);
}

/* Hero visual: layered photography with floating registration badge */
.hero-visual {
  position: relative;
  padding: 26px 0 64px 54px;
}

.hero-media {
  position: relative;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10.4;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-media:hover {
  border-color: rgba(73, 214, 232, 0.35);
  box-shadow: 0 18px 50px rgba(2, 8, 16, 0.55), 0 0 60px rgba(73, 214, 232, 0.08);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.32, 1), filter 0.5s ease;
  filter: saturate(0.97);
}

.hero-media:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-media--inset {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 46%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(2, 8, 16, 0.6);
}

.hero-badge {
  position: absolute;
  top: 0;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(11, 22, 37, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 38px rgba(2, 8, 16, 0.5);
}

.hero-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--cyan);
  background: var(--bg-2);
  border: 1px solid rgba(73, 214, 232, 0.32);
  border-radius: 10px;
  overflow: hidden;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-badge-text strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.hero-badge-text span {
  font-size: 0.7rem;
  color: var(--faint);
}

/* Shared legend item (used by the cross-chain evidence legend) */
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   6. Trust strip principles
   -------------------------------------------------------------------------- */
.principles {
  padding-block: clamp(44px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.principle {
  padding: 4px 0;
}

.principle + .principle {
  border-left: 1px solid var(--border);
  padding-left: 26px;
}

.principle-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(73, 214, 232, 0.3);
  color: var(--cyan);
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(2, 8, 16, 0.4);
}

.principle h3 {
  font-size: 1.0rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.principle p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--surface), rgba(11, 22, 37, 0.6));
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 214, 232, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.service-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(86, 136, 255, 0.1);
  border: 1px solid rgba(86, 136, 255, 0.28);
  color: var(--blue);
}

.service-card:nth-child(odd) .service-icon {
  background: rgba(73, 214, 232, 0.09);
  border-color: rgba(73, 214, 232, 0.26);
  color: var(--cyan);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.service-desc {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 18px;
  margin-bottom: 20px;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--cyan);
  border-bottom: 1.6px solid var(--cyan);
  transform: rotate(-45deg) translateY(-1px);
}

.service-note {
  border-top: 1px dashed var(--border-strong);
  padding-top: 14px;
  margin-bottom: 20px;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

.service-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.service-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.service-cta:hover {
  text-decoration: none;
}

.service-cta:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. Recovery steps and fee model
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  margin-bottom: 34px;
}

.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  background: rgba(16, 31, 49, 0.45);
}

.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid rgba(73, 214, 232, 0.35);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.recovery-cta {
  margin-bottom: 34px;
}

/* Fee panel */
.fee-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--surface), rgba(11, 22, 37, 0.7));
  padding: clamp(30px, 4vw, 52px);
  box-shadow: var(--shadow);
}

.fee-copy p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 58ch;
}

.fee-terms {
  margin-top: 8px;
  display: grid;
  gap: 11px;
}

.fee-terms li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.fee-terms li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 9px;
  height: 5px;
  border-left: 1.8px solid var(--green);
  border-bottom: 1.8px solid var(--green);
  transform: rotate(-45deg) translateY(-1px);
}

.fee-stats {
  display: grid;
  gap: 16px;
  align-content: start;
}

.fee-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: rgba(7, 17, 31, 0.5);
}

.fee-stat .fs-value {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fee-stat .fs-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.fee-disclosure {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   9. Anti-scam safeguards
   -------------------------------------------------------------------------- */
.anti-scam {
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(63, 185, 127, 0.06), transparent 60%),
    var(--bg-2);
}

.safeguards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.safeguard {
  display: flex;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(7, 17, 31, 0.55);
}

.safeguard-icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(63, 185, 127, 0.35);
  color: var(--green);
  box-shadow: 0 6px 18px rgba(2, 8, 16, 0.4);
}

.safeguard h3 {
  font-size: 1.04rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.safeguard p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   10. Technology pipeline
   -------------------------------------------------------------------------- */
.pipeline {
  counter-reset: pipe;
  max-width: 840px;
  margin-bottom: 40px;
}

.pipe-stage {
  counter-increment: pipe;
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 22px;
  padding-bottom: 30px;
}

.pipe-stage:last-child {
  padding-bottom: 4px;
}

/* Connecting rail between stages */
.pipe-stage::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 48px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(73, 214, 232, 0.35), var(--border));
}

.pipe-stage:last-child::before {
  display: none;
}

/* Numbered node on the rail */
.pipe-stage::after {
  content: counter(pipe, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(73, 214, 232, 0.4);
  background: var(--bg-2);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  font-feature-settings: "tnum" 1;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pipe-stage:hover::after {
  border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(73, 214, 232, 0.07);
}

.pipe-stage h3 {
  grid-column: 2;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding-top: 8px;
  margin-bottom: 6px;
}

.pipe-stage p {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 62ch;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 15px;
  background: rgba(16, 31, 49, 0.5);
}

/* --------------------------------------------------------------------------
   11. Cross-chain visualization
   -------------------------------------------------------------------------- */
.chainviz {
  counter-reset: chain;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 26px;
}

.chain-cell {
  position: relative;
  counter-increment: chain;
}

/* Chevron connector between nodes in the same row */
.chain-cell:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.chain-cell.link-probable::after {
  border-color: rgba(224, 178, 92, 0.55);
}

.chain-cell.link-unresolved::after {
  border-color: var(--faint);
}

.chain-node {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  background: rgba(16, 31, 49, 0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chain-node:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.chain-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chain-top .badge {
  align-self: auto;
}

/* Reading-order number, top right of each node */
.chain-top::after {
  content: counter(chain, decimal-leading-zero);
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-feature-settings: "tnum" 1;
}

.chain-node.is-probable {
  border-style: dashed;
  border-color: rgba(224, 178, 92, 0.45);
}

.chain-node.is-unresolved {
  border-style: dotted;
  border-color: var(--border-strong);
}

/* Cross-chain node icon chips (AI-generated, tinted per evidence class) */
.chain-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: 0 0 18px rgba(73, 214, 232, 0.12);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.chain-node:hover .chain-icon {
  transform: scale(1.06);
}

.chain-icon--verified {
  border-color: rgba(63, 185, 127, 0.5);
  box-shadow: 0 0 18px rgba(63, 185, 127, 0.16);
}

.chain-icon--protocol {
  border-color: rgba(86, 136, 255, 0.5);
  box-shadow: 0 0 18px rgba(86, 136, 255, 0.16);
}

.chain-icon--probable {
  border-style: dashed;
  border-color: rgba(224, 178, 92, 0.55);
  box-shadow: 0 0 18px rgba(224, 178, 92, 0.14);
}

.chain-icon--unresolved {
  border-style: dotted;
  border-color: var(--border-strong);
  box-shadow: none;
  opacity: 0.85;
}

.chain-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.badge {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid;
}

.badge--verified {
  color: var(--green);
  border-color: rgba(63, 185, 127, 0.45);
  background: rgba(63, 185, 127, 0.08);
}

.badge--protocol {
  color: var(--cyan);
  border-color: rgba(73, 214, 232, 0.4);
  background: rgba(73, 214, 232, 0.07);
}

.badge--probable {
  color: var(--amber);
  border-color: rgba(224, 178, 92, 0.45);
  background: rgba(224, 178, 92, 0.07);
}

.badge--unresolved {
  color: var(--faint);
  border-color: var(--border-strong);
  background: transparent;
}

.chain-evi {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.chainviz-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  background: rgba(73, 214, 232, 0.05);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 860px;
}

.chainviz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  color: var(--muted);
}

.chainviz-legend .legend-item span:last-child {
  padding-top: 1px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   12. Enterprise segments
   -------------------------------------------------------------------------- */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.segment {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: rgba(16, 31, 49, 0.45);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.segment:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.segment-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(86, 136, 255, 0.32);
  color: var(--blue);
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(2, 8, 16, 0.4);
}

.segment h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.segment p {
  color: var(--muted);
  font-size: 0.89rem;
}

/* Center the enterprise section call-to-action */
#enterprise .container > .btn {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   13. Networks coverage
   -------------------------------------------------------------------------- */
.networks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 24px;
}

.network-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text);
  background: rgba(16, 31, 49, 0.5);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.network-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  flex: none;
}

.network-tag:hover {
  border-color: rgba(73, 214, 232, 0.5);
}

/* --------------------------------------------------------------------------
   14. About and corporate details
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.about-title {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 650;
  margin-bottom: 22px;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 58ch;
}

.corp-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(155deg, var(--surface), rgba(11, 22, 37, 0.75));
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow);
}

.corp-card h3 {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.corp-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 18px;
  padding-block: 11px;
  border-bottom: 1px dashed var(--border);
}

.corp-row:last-of-type {
  border-bottom: 0;
}

.corp-row dt {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
}

.corp-row dd {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.55;
}

.corp-verify {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.6;
}

/* Keep the corporate card in view while the about copy scrolls */
@media (min-width: 961px) {
  .corp-card {
    position: sticky;
    top: 100px;
  }
}

/* --------------------------------------------------------------------------
   15. Insights
   -------------------------------------------------------------------------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}

.insight-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: rgba(16, 31, 49, 0.45);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.insight-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.insight-card:hover::before {
  transform: scaleX(1);
}

.insight-tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(86, 136, 255, 0.35);
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.insight-card h3 {
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.insight-card p {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 16px;
}

.insight-status {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--faint);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.insights-note {
  color: var(--faint);
  font-size: 0.9rem;
  max-width: 72ch;
}

.insight-card h3 a {
  color: inherit;
  text-decoration: none;
}

.insight-card h3 a:hover {
  color: var(--cyan);
  text-decoration: none;
}

a.insight-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.insight-status:hover {
  color: var(--cyan);
  text-decoration: none;
}

a.insight-status svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.insight-media {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 18px;
  background: var(--bg);
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  filter: saturate(0.95);
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.insight-card:hover .insight-media img {
  transform: scale(1.06);
}

.insight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 17, 31, 0.45));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq-wrap {
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 31, 49, 0.45);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  list-style: none;
  transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--cyan);
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.8px solid var(--cyan);
  border-bottom: 1.8px solid var(--cyan);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.faq-item[open] summary {
  color: var(--cyan);
}

.faq-a {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   17. Contact and intake
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 52ch;
}

.contact-points {
  display: grid;
  gap: 0;
  margin: 26px 0;
}

.contact-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px dashed var(--border);
}

.contact-point:first-child {
  padding-top: 0;
}

.contact-point:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-point-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  margin-top: 2px;
  box-shadow: 0 6px 18px rgba(2, 8, 16, 0.35);
}

.contact-point div strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 2px;
}

.contact-point div span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-address {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: rgba(16, 31, 49, 0.45);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-address strong {
  display: block;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Form */
.intake-form {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(155deg, var(--surface), rgba(11, 22, 37, 0.75));
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 7px;
}

.field label .opt {
  color: var(--faint);
  font-weight: 450;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 17, 31, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(73, 214, 232, 0.14);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.check input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--cyan);
  flex: none;
}

.check label {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.form-note {
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 4px 0 18px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-status.is-error {
  display: block;
  border: 1px solid rgba(224, 178, 92, 0.5);
  background: rgba(224, 178, 92, 0.08);
  color: var(--amber);
}

.form-status.is-info {
  display: block;
  border: 1px solid rgba(73, 214, 232, 0.4);
  background: rgba(73, 214, 232, 0.07);
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: clamp(56px, 7vw, 84px) 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 38ch;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  margin-bottom: 22px;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-legal strong {
  color: var(--muted);
  font-weight: 600;
}

.footer-disclaimer {
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 100ch;
  margin-bottom: 22px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--faint);
  font-size: 0.8rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-bottom a {
  color: var(--faint);
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   19. Legal and policy pages
   -------------------------------------------------------------------------- */
.legal-hero {
  padding: clamp(140px, 16vw, 180px) 0 clamp(40px, 5vw, 56px);
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(86, 136, 255, 0.1), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 14px;
}

.legal-hero .lead {
  max-width: 72ch;
}

.legal-body {
  padding-block: clamp(48px, 6vw, 80px);
}

.article-media {
  margin-top: 34px;
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 7.6;
  max-width: 920px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

.article-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 17, 31, 0.5));
  pointer-events: none;
}

.draft-banner {
  border: 1px solid rgba(224, 178, 92, 0.5);
  background: rgba(224, 178, 92, 0.07);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--amber);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 860px;
  margin-bottom: 40px;
}

.draft-banner strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prose {
  max-width: 78ch;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
  padding-top: 8px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.08rem;
  font-weight: 650;
  margin: 26px 0 10px;
}

.prose p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 4px;
  display: grid;
  gap: 8px;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.prose ol {
  counter-reset: legal;
}

.prose ol li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  counter-increment: legal;
}

.prose ol li::before {
  content: counter(legal, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   20. Advanced effects layer
   -------------------------------------------------------------------------- */

/* Animated angle property for conic border effects */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  z-index: 130;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 125;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Custom scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #233a55 var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #233a55;
  border-radius: 6px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #33547a;
}

/* Hero aurora and blueprint grid */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(38% 30% at 22% 30%, rgba(73, 214, 232, 0.14), transparent 70%),
    radial-gradient(34% 30% at 78% 22%, rgba(86, 136, 255, 0.16), transparent 70%),
    radial-gradient(30% 26% at 60% 78%, rgba(73, 214, 232, 0.08), transparent 70%);
  filter: blur(20px);
  animation: auroraDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(140, 170, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 205, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

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

@keyframes auroraDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-1%, 3%, 0) scale(1.02);
  }
}

/* Nav link underline grow */
.nav-link {
  position: relative;
}

.nav .nav-link::after,
.mobile-panel .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.nav .nav-link:hover::after,
.mobile-panel .nav-link:hover::after {
  transform: scaleX(1);
}

/* Primary button shimmer sweep */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  left: 125%;
}

/* Ghost button soft fill */
.btn--ghost {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.25s ease, transform 0.18s ease;
}

.btn--ghost:hover {
  background: rgba(73, 214, 232, 0.06);
}

/* Scroll reveal (only when JS is available) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.8, 0.32, 1);
  transition-delay: 0s;
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

.js .reveal-group > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.js .reveal-group.in-view > * {
  opacity: 1;
  transform: none;
}

.js .reveal-group.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.js .reveal-group.in-view > *:nth-child(2) { transition-delay: 0.14s; }
.js .reveal-group.in-view > *:nth-child(3) { transition-delay: 0.23s; }
.js .reveal-group.in-view > *:nth-child(4) { transition-delay: 0.32s; }
.js .reveal-group.in-view > *:nth-child(5) { transition-delay: 0.41s; }
.js .reveal-group.in-view > *:nth-child(6) { transition-delay: 0.5s; }
.js .reveal-group.in-view > *:nth-child(7) { transition-delay: 0.59s; }
.js .reveal-group.in-view > *:nth-child(8) { transition-delay: 0.68s; }

/* Technology ticker */
.tech-ticker {
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}

.tech-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ticker-item:hover {
  color: var(--cyan);
}

.ticker-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  flex: none;
}

@keyframes tickerScroll {
  to {
    transform: translateX(-50%);
  }
}

/* Sub-headings inside long sections */
.subhead {
  margin: clamp(48px, 6vw, 72px) 0 clamp(26px, 3vw, 36px);
  max-width: 760px;
}

.subhead h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.018em;
  font-weight: 650;
  margin-bottom: 10px;
}

.subhead p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 62ch;
}

/* BNG NEXUS platform modules */
.modules {
  display: grid;
  gap: 22px;
}

.module {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface), rgba(11, 22, 37, 0.72));
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
}

.module::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 290deg, rgba(73, 214, 232, 0.85) 330deg, rgba(86, 136, 255, 0.85) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.module:hover::before {
  opacity: 1;
  animation: borderSpin 5s linear infinite;
}

@keyframes borderSpin {
  to {
    --angle: 360deg;
  }
}

.module:nth-child(even) .module-media {
  order: 2;
}

.module-media {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9.6;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.32, 1), filter 0.5s ease;
  filter: saturate(0.96);
}

.module:hover .module-media img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.module-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 17, 31, 0.55));
  pointer-events: none;
}

/* HUD corner brackets */
.hud::before,
.hud::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease;
}

.hud::before {
  top: 12px;
  left: 12px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  border-top-left-radius: 4px;
}

.hud::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  border-bottom-right-radius: 4px;
}

.module:hover .hud::before,
.module:hover .hud::after {
  width: 34px;
  height: 34px;
}

.module-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.module-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--blue);
}

.module-name {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.module-name .mn-accent {
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.module-role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.module-desc {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 52ch;
}

.module-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.module-stack .ms-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 4px;
}

.stack-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 5px 12px;
  background: rgba(7, 17, 31, 0.5);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.stack-chip:hover {
  border-color: rgba(73, 214, 232, 0.45);
  color: var(--cyan);
}

/* Engineering stack grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stack-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: rgba(16, 31, 49, 0.45);
  transition: border-color 0.2s ease;
}

.stack-group:hover {
  border-color: var(--border-strong);
}

.stack-group h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-note {
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 92ch;
}

/* About section media */
.about-media {
  margin-top: 30px;
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 1s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.about-media:hover img {
  transform: scale(1.05);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 17, 31, 0.6));
  pointer-events: none;
}

.about-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* AI-generated icon imagery fills its chip */
.principle-icon img,
.safeguard-icon img,
.segment-icon img,
.hero-badge-icon img,
.contact-point-icon img,
.chain-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.principle:hover .principle-icon img,
.safeguard:hover .safeguard-icon img,
.segment:hover .segment-icon img,
.contact-point:hover .contact-point-icon img {
  transform: scale(1.12);
}

/* Service card icon gentle float */
.service-icon,
.principle-icon,
.segment-icon {
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.service-card:hover .service-icon,
.principle:hover .principle-icon,
.segment:hover .segment-icon {
  transform: translateY(-3px) rotate(-3deg);
}

/* Section anchor focus ring for skip navigation targets */
section:focus {
  outline: none;
}

/* Technology logo treatments */
.chip-logo {
  width: 15px;
  height: 15px;
  object-fit: contain;
  border-radius: 3px;
  flex: none;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stack-chip .chip-logo {
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.stack-chip:hover .chip-logo {
  opacity: 1;
  transform: scale(1.12);
}

.ticker-item img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  border-radius: 3px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.ticker-item:hover img {
  opacity: 1;
}

.ticker-item::before {
  display: none;
}

.network-tag img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  flex: none;
}

.network-tag.has-logo::before {
  display: none;
}

.network-tag.has-logo {
  gap: 10px;
}

/* Service card media */
.service-media {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 7.6;
  margin-bottom: 22px;
  background: var(--bg);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.32, 1), filter 0.5s ease;
  filter: saturate(0.95);
}

.service-card:hover .service-media img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 17, 31, 0.45));
  pointer-events: none;
}

.service-index {
  display: inline-block;
  margin-bottom: 12px;
}

/* Form success state */
.form-status.is-success {
  display: block;
  border: 1px solid rgba(63, 185, 127, 0.5);
  background: rgba(63, 185, 127, 0.08);
  color: var(--green);
}

/* Disabled submit */
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn:disabled::after {
  display: none;
}

/* Footer gradient top accent */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 214, 232, 0.45), rgba(86, 136, 255, 0.45), transparent);
}

/* Header wordmark hover polish */
.brand .bw-name {
  transition: color 0.2s ease;
}

.brand:hover .bw-name {
  color: var(--cyan);
}

/* HUD corners sit above media overlays */
.hud::before,
.hud::after {
  z-index: 3;
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .chainviz {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .chain-cell::after {
    display: none;
  }

  .chain-cell:nth-child(odd)::after {
    display: block;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta-desktop {
    display: none;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .principles-grid,
  .segments-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles-grid {
    gap: 26px 32px;
  }

  .principle + .principle {
    border-left: 0;
    padding-left: 0;
  }

  .principle:nth-child(even) {
    border-left: 1px solid var(--border);
    padding-left: 28px;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .fee-panel,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 640px;
    padding: 22px 0 58px 44px;
  }

  .services-grid,
  .safeguards-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .module {
    grid-template-columns: 1fr;
  }

  .module:nth-child(even) .module-media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .principles-grid,
  .segments-grid,
  .insights-grid,
  .chainviz,
  .field-row,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .principle:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }

  .principle + .principle {
    border-top: 1px solid var(--border);
    padding-top: 22px;
  }

  .principles-grid {
    gap: 22px;
  }

  /* Downward chevrons for the single-column chain flow */
  .chain-cell:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    top: auto;
    bottom: -16px;
    right: auto;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--border-strong);
    border-right: 2px solid var(--border-strong);
    transform: translateX(-50%) rotate(135deg);
    z-index: 2;
  }

  .pipe-stage {
    grid-template-columns: 46px 1fr;
    column-gap: 18px;
  }

  .pipe-stage::before {
    left: 22px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-visual {
    padding: 18px 0 50px 30px;
  }

  .hero-badge {
    right: 10px;
    gap: 9px;
    padding: 9px 12px;
  }

  .hero-badge-text strong {
    font-size: 0.72rem;
  }

  .hero-badge-text span {
    font-size: 0.64rem;
  }

  .hero-trust {
    gap: 8px 16px;
  }

  .corp-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .hero::before {
    animation: none;
  }

  .ticker-track {
    animation: none;
  }

  .tech-ticker {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .module::before {
    animation: none;
  }

  .js .reveal,
  .js .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .hero-ctas,
  .btn,
  .nav-toggle,
  .mobile-panel {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section,
  .hero {
    padding-block: 24px;
  }
}
