/* =========================================================
   JLT Header System — Canonical Consolidated Block
   Replaces:
   - sticky header duplicates
   - body theme duplicates
   - header pill theme duplicates
   - nav dropdown toggle duplicates
   ========================================================= */

/* ---------- Theme foundations ---------- */
html[data-theme="dark"] body {
  background: #071a4a;
  color: #f5f7fb;
}

html[data-theme="light"] body {
  background: #ffffff;
  color: #0f172a;
}

html[data-theme="dark"] {
  --header-shell: linear-gradient(180deg, #082154 0%, #07204f 100%);
  --header-shell-border: rgba(255, 255, 255, 0.08);

  --header-pill: rgba(255, 255, 255, 0.08);
  --header-pill-hover: rgba(255, 255, 255, 0.14);
  --header-pill-active: rgba(255, 255, 255, 0.16);
  --header-pill-ring: rgba(255, 255, 255, 0.14);

  --header-text: rgba(255, 255, 255, 0.94);
  --header-text-muted: rgba(255, 255, 255, 0.72);

  --header-dropdown: linear-gradient(
    180deg,
    rgba(7, 24, 61, 0.97),
    rgba(6, 20, 50, 0.95)
  );
}

html[data-theme="light"] {
  /* Keep a STRONG header shell (do not go pale) */
  --header-shell: linear-gradient(180deg, #0f2f6b 0%, #0b2556 100%);
  --header-shell-border: rgba(255, 255, 255, 0.08);

  /* Pills become LIGHT (contrast against dark shell) */
  --header-pill: #ffffff;
  --header-pill-hover: #f3f6fb;
  --header-pill-active: #dbe6ff;
  --header-pill-ring: rgba(15, 23, 42, 0.08);

  /* Text flips DARK for pills */
  --header-text: #0f172a;
  --header-text-muted: #475569;

  /* Dropdown stays readable */
  --header-dropdown: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(241, 245, 249, 0.98)
  );
}
html[data-theme="light"] .nav-pill,
html[data-theme="light"] .nav-chip,
html[data-theme="light"] .nav-dropdown-toggle {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 6px 16px rgba(15, 23, 42, 0.06);
}
/* ---------- Global scroll offsets ---------- */
html {
  scroll-padding-top: 10rem;
}

.page {
  padding-top: 2rem;
}

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

/* ---------- Header shell ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-shell);
  border-bottom: 1px solid var(--header-shell-border);
  box-shadow:
    0 14px 34px rgba(8, 18, 44, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #22c1ee 0%, #2c7df0 45%, #22c1ee 100%);
  opacity: 0.95;
}

.site-header .navbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;                /* tighter horizontal spacing */
  align-items: center;
  padding: 0.55rem 1rem 0.6rem; /* reduced vertical height */
}
.nav-top-row,
.site-nav {
  gap: 0.5rem;
}

.nav-bottom-row {
  gap: 0.75rem;
}
.site-header .navbar {
  gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.55rem;
}
/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  min-width: 320px;
  max-width: 320px;
}

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

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.02;
}

.brand-title {
  margin: 0;
  color: var(--header-text);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 1;
}

.brand-subtitle {
  margin: 0;
  color: var(--header-text-muted);
  font-size: 0.93rem;
  margin-top: 0.18rem;
  opacity: 1;
}

/* ---------- Nav shell ---------- */
.nav-shell {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
}

.nav-top-row,
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.nav-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.site-nav {
  flex: 1;
}

/* ---------- Shared pills ---------- */
.nav-chip,
.nav-pill,
.site-nav > a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--header-pill-ring);
  background: var(--header-pill);
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 1px 2px rgba(0,0,0,0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}
.nav-chip:hover,
.nav-pill:hover,
.site-nav > a:hover,
.nav-dropdown-toggle:hover,
.nav-chip:focus-visible,
.nav-pill:focus-visible,
.site-nav > a:focus-visible,
.nav-dropdown-toggle:focus-visible {
  background: var(--header-pill-hover);
  color: var(--header-text);
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 10px rgba(0,0,0,0.18);
}

.nav-pill--active,
.site-nav > a.is-active,
.site-nav > a[aria-current="page"],
.site-nav > a.is-primary,
.nav-dropdown-toggle[aria-expanded="true"] {
  background: var(--header-pill-active);
  color: var(--header-text);
  box-shadow: 0 0 0 1px var(--header-pill-ring);
}

/* ---------- Dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.01em;
  appearance: none;
  -webkit-appearance: none;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.62rem;
  margin-left: 0.32rem;
  transition: transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-toggle svg,
.nav-dropdown-toggle .caret,
.nav-dropdown-toggle span {
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 220px;
  padding: 0.55rem;
  border-radius: 16px;
  background: var(--header-dropdown);
  color: var(--header-text);
  border: 1px solid var(--header-shell-border);
  box-shadow: 0 18px 40px rgba(4, 13, 34, 0.28);
  display: none;
  z-index: 30;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  color: var(--header-text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--header-pill-hover);
  color: var(--header-text);
  outline: none;
  text-decoration: none;
}

/* ---------- Profile chip ---------- */
.nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-left: auto;
  min-height: 40px;
  padding: 0.3rem 0.45rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(8, 18, 44, 0.14);
  white-space: nowrap;
}

.nav-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.nav-profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-profile-eyebrow {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  font-weight: 800;
}

.nav-profile-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1f2937;
}

.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff7ed;
  color: #92400e;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.88rem;
}

.nav-theme-toggle:hover {
  background: #ffffff;
}

/* ---------- Meta rail ---------- */
.header-meta,
.header-subtext,
.deploy-status {
  background: color-mix(in srgb, var(--header-shell) 88%, black 12%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--header-text-muted);
}

/* ---------- Hero offsets ---------- */
.home-hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--site-header-height) + var(--hero-header-offset));
}

.home-hero-inner {
  position: relative;
  z-index: 2;
}

.hero-card {
  position: relative;
  z-index: 3;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-header .navbar {
    grid-template-columns: 1fr;
  }

  .nav-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-profile {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .brand-logo {
    width: 40px;
    height: 40px;
  }

.brand-title {
  font-size: 0.98rem;
}

.brand-subtitle {
  font-size: 0.78rem;
}

  .nav-top-row,
  .site-nav {
    gap: 0.55rem;
  }

  .nav-chip,
  .nav-pill,
  .site-nav > a,
  .nav-dropdown-toggle {
    min-height: 38px;
    padding: 0.58rem 0.9rem;
    font-size: 0.94rem;
  }

  .nav-profile-text {
    display: none;
  }
}
/* =========================================================
   Platform Status Bar
   ========================================================= */

.platform-status-bar {
  background: #0b2a5a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
}

.platform-status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  gap: 1rem;
}

.platform-status-left,
.platform-status-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.status-item strong {
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.status-ok {
  color: #7ee787; /* green status */
  font-weight: 600;
}

@media (max-width: 900px) {
  .platform-status-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0;
  }

  .platform-status-right {
    gap: 0.8rem;
  }
}
/* =========================================================
   Platform Status Bar — integrated with header
   ========================================================= */

.platform-status-bar {
  background: linear-gradient(
    180deg,
    #0a2a5a 0%,
    #0a2550 100%
  );
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.88);
}

.platform-status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  gap: 1rem;
}

.platform-status-left,
.platform-status-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.status-item {
  opacity: 0.9;
}

.status-item strong {
  font-weight: 700;
  color: rgba(255,255,255,0.96);
  margin-right: 4px;
}

.status-ok {
  color: #7ee787;
  font-weight: 600;
}

/* add subtle separators between items */
.platform-status-left .status-item:not(:last-child)::after {
  content: "|";
  margin-left: 1.2rem;
  color: rgba(255,255,255,0.25);
}

@media (max-width: 900px) {
  .platform-status-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0;
  }

  .platform-status-right {
    gap: 0.8rem;
  }

  .platform-status-left .status-item:not(:last-child)::after {
    display: none;
  }
}
/* ===============================
   HERO / CARDS
   =============================== */

/* Kill legacy injected hero artwork */
.hero-section::before,
.hero-section::after,
.logo-banner::before,
.logo-banner::after{
  content:none !important;
  display:none !important;
}

.hero-section,
.logo-banner{
  background-image:none !important;
}

/* Canonical hero */
.home-hero{
  position:relative;
  overflow:hidden;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4.5vw, 4rem);
  background: linear-gradient(180deg, #eef2f7 0%, #e9eef5 100%);
}

.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size:48px 48px;
  opacity:0.7;
}

.home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 74% 48%,
      transparent 0 54%,
      rgba(59, 130, 246, 0.11) 54.2%,
      rgba(59, 130, 246, 0.07) 55.2%,
      transparent 57%
    );
  opacity:0.95;
}

.mesh-nodes{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.mesh-node{
  position:absolute;
  width:12px;
  height:12px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.75) 0%, rgba(37, 99, 235, 0.18) 65%, transparent 75%);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.06);
  z-index:0;
  pointer-events:none;
}

.hero-card{
  position:relative;
  z-index:2;

  width:100%;
  max-width:640px; /* ⬅️ reduce from 900px */

  min-height:auto; /* ⬅️ remove forced height */

  padding: clamp(2rem, 3vw, 2.4rem);
  border-radius:28px;

  background: linear-gradient(180deg, #fdfefe 0%, #f5f7fb 100%);
  border:1px solid rgba(15, 23, 42, 0.08);

  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.05);

  backdrop-filter: blur(6px);
}

.hero-card{
  position:relative;
  z-index:2;
  padding: clamp(2rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(245,247,251,0.92) 100%);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-card > *{
  max-width: 640px;
}

.hero-card-crest{
  margin-bottom: .9rem;
}

.hero-card-crest img{
  display:block;
  width:56px;
  height:56px;
  object-fit:contain;
}

.home-hero-eyebrow{
  margin:0 0 0.7rem;
  font-size:0.76rem;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color: rgba(15, 23, 42, 0.38);
}

.home-hero-title{
  margin:0.35rem 0 0.85rem;
  max-width: 9ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height:0.96;
  letter-spacing:-0.045em;
  font-weight:800;
  text-wrap:balance;
  color:#0b1220;
}

.home-hero-lead{
  margin:0.85rem 0 0;
  max-width:60ch;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height:1.72;
  color: rgba(15, 23, 42, 0.72);
}

.home-hero-support{
  margin:1rem 0 0;
  max-width:64ch;
  font-size:0.92rem;
  line-height:1.65;
  color: rgba(15, 23, 42, 0.76);
}

.home-hero-support a{
  color:#2563eb;
  text-decoration:none;
}

.home-hero-support a:hover{
  color:#1d4ed8;
  text-decoration:underline;
}

.hero-card-links{
  display:flex;
  flex-wrap:wrap;
  gap:0.85rem;
  margin-top:1.35rem;
}

.hero-inline-links{
  display:flex;
  flex-wrap:wrap;
  gap:0.85rem 1.2rem;
  margin-top:1rem;
}

.hero-inline-links a{
  font-size:0.94rem;
  font-weight:600;
  color: rgba(15, 23, 42, 0.72);
  text-decoration:none;
}

.hero-inline-links a:hover{
  color:#0f172a;
}

.hero-btn,
.mesh-btn-primary,
.mesh-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0.82rem 1.15rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.hero-btn:hover,
.mesh-btn-primary:hover,
.mesh-btn-secondary:hover{
  transform: translateY(-1px);
}

.mesh-btn-primary{
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color:#fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.mesh-btn-primary:hover{
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color:#fff;
}

.mesh-btn-secondary{
  background: rgba(255,255,255,0.7);
  color:#0f172a;
  border:1px solid rgba(15, 23, 42, 0.12);
}

.mesh-btn-secondary:hover{
  border-color: rgba(37, 99, 235, 0.28);
  color:#0f172a;
}

.hero-visual-stack{
  display:grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap:1rem;
  min-height: 100%;
}

.hero-visual-content{
  position:relative;
  z-index:1;
  display:grid;
  gap:1rem;
  height:100%;
  align-content:space-between;
}

.hero-visual-kicker{
  margin:0;
  font-size:0.75rem;
  font-weight:800;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.hero-visual-title{
  margin:.2rem 0 0;
  font-size:1.35rem;
  line-height:1.2;
  color:#0f172a;
}

.hero-visual-copy{
  margin:0.35rem 0 0;
  font-size:0.95rem;
  line-height:1.65;
  color: rgba(15, 23, 42, 0.7);
  max-width: 34ch;
}

.hero-visual-flow{
  display:grid;
  gap:.65rem;
  margin-top:.6rem;
}

.hero-flow-row{
  display:flex;
  align-items:center;
  gap:.65rem;
}

.hero-flow-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.58rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.hero-flow-arrow {
  color: rgba(15, 23, 42, 0.32);
  font-weight: 700;
}

.hero-flow-arrow{
  color: rgba(15, 23, 42, 0.35);
  font-weight:700;
}
.home-hero-inner{
  position:relative;
  z-index:1;

  display:grid;

  /* ✅ THIS IS THE FIX */
  grid-template-columns: 1.1fr 1fr;

  gap:2.5rem;
  align-items:center;
}

@media (max-width: 1180px){
  .home-hero-inner{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card{
    min-height:auto;
  }

  .hero-visual-stack{
    grid-template-rows:auto auto;
  }
}

@media (max-width: 820px){
  .home-hero{
    padding: 2.25rem 0 2.5rem;
  }

  .hero-card{
    padding: 1.5rem;
    border-radius:24px;
  }

  .hero-inline-links{
    gap:.75rem 1rem;
  }
}

.mesh-btn-primary,
.hero-btn--primary{
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color:#ffffff;
  border:1px solid transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.mesh-btn-primary:hover,
.hero-btn--primary:hover{
  color:#ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.mesh-btn-secondary,
.hero-btn--ghost{
  background: rgba(255, 255, 255, 0.88);
  color:#0f172a;
  border:1px solid rgba(15, 23, 42, 0.10);
}

.mesh-btn-secondary:hover,
.hero-btn--ghost:hover{
  background: rgba(255, 255, 255, 0.96);
  color:#0b1220;
  border-color: rgba(15, 23, 42, 0.16);
}
.home-cta-row{
  margin-top:1.5rem;
}

.home-cta-row .btn,
.home-cta-row a{
  color:#1d4ed8;
}

.home-cta-row .btn-outline{
  background: rgba(255, 255, 255, 0.82);
  color:#1d4ed8;
  border:1px solid rgba(37, 99, 235, 0.18);
}

.home-cta-row .btn-outline:hover{
  background:#ffffff;
  color:#1e40af;
  border-color: rgba(37, 99, 235, 0.28);
}

.home-cta-row .btn-gradient{
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color:#ffffff;
  border:1px solid transparent;
}

/* Optional mesh helpers */
.mesh-surface--soft::before { opacity: 0.72; }
.mesh-surface--soft::after { opacity: 0.45; }

.mesh-surface--standard::before { opacity: 1; }
.mesh-surface--standard::after { opacity: 0.9; }

.mesh-surface--deep::before { opacity: 1.15; }
.mesh-surface--deep::after {
  opacity: 1;
  background-image:
    linear-gradient(var(--mesh-grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mesh-grid-line-strong) 1px, transparent 1px);
}

@media (max-width: 900px){

  .hero-card{
    max-width:100%;
  }
}

@media (max-width: 768px){
  .home-hero{
    padding:3.5rem 0 4rem;
  }

  .home-hero-inner{
    min-height:auto;
    align-items:start;
    gap:1.5rem;
  }

  .hero-card{
    padding:1.5rem;
    border-radius:22px;
  }
}

@media (max-width: 640px){
  .home-hero{
    padding:3rem 0 2.25rem;
  }

  .hero-card{
    padding:1.25rem;
  }
  /* tighten the hero canvas a little */
.home-hero-inner{
  gap: 1.5rem;
}

/* make the main card slightly more prominent */
.hero-card{
  max-width: 900px;
  padding: clamp(2.1rem, 3.2vw, 2.9rem);
}

/* give the headline a bit more authority */
.home-hero-title{
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1;
}
/* keep the ring a little tighter to the composition */
.home-hero::after{
  background:
    radial-gradient(
      circle at center,
      transparent 52%,
      rgba(59, 130, 246, 0.11) 52.2%,
      rgba(59, 130, 246, 0.07) 53%,
      transparent 54%
    );
  opacity: 0.82;
}
  .hero-card-crest img{
    width:40px;
    height:40px;
  }

  .home-hero-title{
    max-width:100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-card-links{
    flex-direction:column;
    align-items:stretch;
  }

  .mesh-btn-primary,
  .mesh-btn-secondary{
    width:100%;
  }
}
/* ===============================
   HERO MESH MOTION
   =============================== */

.home-hero{
  --hero-grid-y: 0px;
  --hero-glow-x: 0px;
  --hero-glow-y: 0px;
  --hero-fade: 1;
}

/* animated grid drift */
.home-hero::before{
  transform: translateY(var(--hero-grid-y));
  transition: transform 220ms linear;
}

/* ambient radial glow movement */
.home-hero::after{
  transform: translate(var(--hero-glow-x), var(--hero-glow-y));
  opacity: calc(0.88 * var(--hero-fade));
  transition:
    transform 220ms ease-out,
    opacity 220ms ease-out;
}

/* floating mesh nodes */
.mesh-node{
  animation: meshPulse 4.8s ease-in-out infinite;
}

.mesh-node:nth-of-type(1){
  animation-delay: 0s;
}

.mesh-node:nth-of-type(2){
  animation-delay: 1.4s;
}

/* architecture nodes in right panel */
.hero-flow-node {
  position: relative;
  overflow: hidden;
}

.hero-flow-node::after {
  content: "";
  position: absolute;
  inset: auto auto 8px 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.55);
  box-shadow:
    0 0 0 0 rgba(37, 99, 235, 0.35);
  animation: heroNodePulse 3.8s ease-out infinite;
}

/* stagger the pulses */
.hero-flow-row:nth-child(2) .hero-flow-node::after {
  animation-delay: 1s;
}

.hero-flow-row:nth-child(3) .hero-flow-node::after {
  animation-delay: 2s;
}

/* pulse animation instead of blink */
@keyframes heroNodePulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
    opacity: 0.9;
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.08);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.0);
    opacity: 0.9;
  }
.hero-flow-node {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-flow-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

}
/* subtle card float */
.hero-card{
  animation: heroCardLift 9s ease-in-out infinite;
}

  .home-hero::before,
  .home-hero::after{
    transition: none !important;
  }

@keyframes meshPulse{
  0%, 100%{
    transform: scale(1);
    opacity: .72;
  }
  50%{
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes meshPanelBreath{
  0%, 100%{
    box-shadow:
      0 20px 48px rgba(15, 23, 42, 0.08),
      0 8px 20px rgba(15, 23, 42, 0.05);
  }
  50%{
    box-shadow:
      0 24px 56px rgba(15, 23, 42, 0.11),
      0 10px 26px rgba(37, 99, 235, 0.08);
  }
}

@keyframes heroNodeBlink{
  0%, 100%{
    opacity: .28;
    transform: scale(1);
  }
  50%{
    opacity: .95;
    transform: scale(1.22);
  }
}

@keyframes heroCardLift{
  0%, 100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-3px);
  }
}

/* slightly tighten desktop card widths visually */
@media (min-width: 901px){

}
.hero-card {
  position: relative;
  z-index: 2;

  /* ⬆️ Wider but still controlled */
  width: min(94vw, 920px);

  /* Keep height balanced */

  padding: clamp(2.2rem, 3vw, 3rem);
  border-radius: 32px;

  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);

  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.10),
    0 10px 24px rgba(15, 23, 42, 0.06);

  backdrop-filter: blur(6px);
}
/* Primary button (Docs Index) */
.mesh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.55rem 0.9rem;
  border-radius: 8px;

  font-size: 0.9rem;
  font-weight: 600;

  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);

  box-shadow:
    0 6px 14px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transition: all 0.18s ease;
}

.mesh-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px rgba(37, 99, 235, 0.35);
}


/* Secondary button (README) */
.mesh-btn-secondary {
  display: inline-flex;
  align-items: center;

  padding: 0.5rem 0.85rem;
  border-radius: 8px;

  font-size: 0.9rem;
  font-weight: 500;

  color: #1e293b;
  background: rgba(255, 255, 255, 0.85);

  border: 1px solid rgba(15, 23, 42, 0.08);

  transition: all 0.18s ease;
}

.mesh-btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}
.hero-card-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.mesh-btn-primary:active,
.mesh-btn-secondary:active {
  transform: scale(0.98);
}
/* ===============================
   FOOTER
   =============================== */

.site-footer{
  border-top:1px solid var(--line);
  background: var(--footerBg);
  margin-top:60px;
  padding-top:24px;
  padding-bottom:28px;
}

.site-footer::before{
  content:"";
  display:block;
  height:3px;
  background: linear-gradient(90deg, var(--jlt-blue), rgba(6,182,212,.85), rgba(20,184,166,.85));
  margin-bottom:14px;
}

/* A) footer__inner + footer__links */
.footer__inner{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-size:11px;
}

.footer__links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.footer__links a{
  color: var(--muted);
  text-decoration:none;
}

.footer__links a:hover{
  color: var(--fg);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* B) footer-inner + footer-nav */
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
  color: var(--muted);
  font-size:11px;
}

.footer-nav{
  display:flex;
  gap:18px;
  justify-content:center;
  flex-wrap:wrap;
}

.footer-nav a{
  color: var(--muted);
  text-decoration:none;
}

.footer-nav a:hover{
  color: var(--fg);
  text-decoration:underline;
  text-underline-offset:3px;
}

.footer-version{
  font-size:0.95rem;
  opacity:0.8;
  margin-top:6px;
  letter-spacing:0.2px;
}

/* C) older: container footer-grid */
.site-footer .footer-grid{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:16px;
  display:grid;
  gap:24px;
  grid-template-columns:2fr 1fr 1fr;
  align-items:start;
}

.site-footer nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

@media (max-width: 768px){
  .site-footer .footer-grid{
    grid-template-columns:1fr;
    text-align:left;
  }
}

/* =========================
   TOOLKIT
   ========================= */

.page-main{
  padding:2.25rem 0 3rem;
}

.section-header{
  margin-bottom:1.5rem;
}

/* Diagram */
.toolkit-diagram{
  grid-column:1 / -1;
  max-width:900px;
  margin:0 auto 2rem;
  text-align:center;
}

.toolkit-diagram-title{
  grid-column:1 / -1;
  text-align:center;
  margin:0 0 1rem;
  font-size:1.35rem;
  letter-spacing:.01em;
}

.toolkit-diagram img{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255,255,255,0.02);
}

html:not([data-theme="light"]) .toolkit-diagram img{
  border-color: rgba(255,255,255,0.12);
}

.toolkit-diagram figcaption{
  margin-top:.75rem;
  font-size:.95rem;
  color: var(--toolkit-text-muted);
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}

/* Layout */
.toolkit-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap:2rem;
  align-items:start;
}

.toolkit-left{
  min-width:0;
  max-width:760px;
}

.toolkit-right{
  position:sticky;
  top:6.5rem;
  display:grid;
  gap:1rem;
}

@media (max-width: 900px){
  .toolkit-layout{
    grid-template-columns:1fr;
  }

  .toolkit-right{
    position:static;
    top:auto;
  }
}

/* Panels */
.panel{
  border:1px solid var(--toolkit-line);
  border-radius:14px;
  padding:1rem;
  background: var(--toolkit-surface);
}

.panel h3{
  margin:0 0 0.75rem 0;
  font-size:1rem;
}

.panel-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:0.5rem;
}

.panel-list li{
  margin:0.2rem 0;
}

.panel-list a{
  text-decoration:none;
}

/* API label */
.api-label{
  display:inline-flex;
  align-items:center;
  margin-left:.5rem;
  padding:.12rem .45rem;
  border-radius:999px;
  font-size:.75rem;
  line-height:1.2;
  border:1px solid rgba(148, 163, 184, .28);
  background: rgba(255, 255, 255, .55);
  color: rgba(15, 23, 42, .75);
}

html:not([data-theme="light"]) .api-label{
  background: rgba(255,255,255,0.08);
  color: rgba(226,232,240,.85);
  border-color: rgba(160, 200, 255, 0.20);
}

/* Tool cards */
.tool-index{
  display:grid;
  gap:1rem;
}

.tool-card{
  border:1px solid var(--toolkit-line);
  border-radius:14px;
  padding:1rem;
  background: var(--toolkit-surface-2);
}

.tool-card h3{
  margin:0 0 0.5rem 0;
}

/* Chips */
.toolkit-actions{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-top:1rem;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding:0.35rem 0.65rem;
  border:1px solid var(--toolkit-line);
  border-radius:999px;
  text-decoration:none;
  background: var(--toolkit-surface);
}

/* Section divider */
.section-divider{
  height:1px;
  width:100%;
  margin:2rem 0;
  opacity:0.35;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(11, 31, 58, 0.55),
    rgba(11, 31, 58, 0.22),
    rgba(11, 31, 58, 0.55),
    transparent
  );
}

html:not([data-theme="light"]) .section-divider{
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 200, 255, 0.32),
    rgba(160, 200, 255, 0.12),
    rgba(160, 200, 255, 0.32),
    transparent
  );
}

.section-divider.is-visible{
  opacity:0.9;
  background-size:220% 100%;
  animation: dividerSweep 4.5s linear infinite;
}
.section-divider {
  margin: 2.5rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
}

.hero-index-statement {
  margin-top: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid rgba(124,58,237,0.6);
  padding-left: 0.75rem;
}

.gallery-hero__figure.full-width {
  grid-column: 1 / -1;
}

.gallery-hero__figure.full-width img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow:
    0 40px 100px rgba(124,58,237,0.25),
    0 10px 30px rgba(2,6,23,0.5);
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.lifecycle-item {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

.lifecycle-item strong {
  display: block;
  margin-bottom: 0.3rem;
}

.lifecycle-item.highlight {
  border: 1px solid rgba(124,58,237,0.5);
  box-shadow: 0 10px 30px rgba(124,58,237,0.2);
}

.diagram-grid figure img {
  height: 260px;
}

@keyframes dividerSweep{
  0% { background-position: 0% 0%; }
  100% { background-position: 220% 0%; }
}

@media (prefers-reduced-motion: reduce){
  .section-divider.is-visible{
    animation:none;
  }
}

/* Tables */
.table-wrapper{
  overflow-x:auto;
  margin-top:1rem;
  border:1px solid var(--toolkit-line);
  border-radius:14px;
  background: var(--toolkit-surface);
}

.toolkit-table{
  width:100%;
  border-collapse:collapse;
  font-size:0.95rem;
  min-width:760px;
}

.toolkit-table th,
.toolkit-table td{
  border-top:1px solid var(--toolkit-line);
  border-right:1px solid var(--toolkit-line);
  padding:0.6rem 0.75rem;
  vertical-align:top;
}

.toolkit-table th:last-child,
.toolkit-table td:last-child{
  border-right:0;
}

.toolkit-table thead th{
  text-align:left;
  background: rgba(11, 31, 58, 0.06);
}

html:not([data-theme="light"]) .toolkit-table thead th{
  background: rgba(255, 255, 255, 0.06);
}

.toolkit-table a{
  word-break:break-word;
}

/* Badges + buttons */
.badge{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.25rem 0.55rem;
  border-radius:999px;
  font-size:0.85rem;
  font-weight:700;
  border:1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.4rem;
  padding:0.5rem 0.75rem;
  border-radius:10px;
  border:1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}

.btn--sm{
  padding:0.35rem 0.6rem;
  font-size:0.9rem;
}

.btn--primary{
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Image modal */
.toolkit-diagram__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.75rem;
}

.toolkit-diagram__actions{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}

.toolkit-diagram__zoom{
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:zoom-in;
}

.toolkit-diagram__zoom img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:16px;
}
/* Toolkit page top-section stabilization */
.toolkit-hero {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.toolkit-hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.08);
}

.toolkit-hero__lead {
  max-width: 60ch;
  margin-bottom: 0;
}

.toolkit-intro {
  margin: 1.25rem 0 1.5rem;
}

.toolkit-intro p {
  max-width: 72ch;
}

.toolkit-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.toolkit-summary-card {
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.toolkit-summary-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.toolkit-summary-card p {
  margin: 0;
}

.toolkit-diagram--hero {
  margin-top: 0.5rem;
}

@media (max-width: 960px) {
  .toolkit-summary-grid {
    grid-template-columns: 1fr;
  }
}
.img-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}

.img-modal.is-open{
  display:block;
}

.img-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65);
}

.img-modal__panel{
  position:relative;
  margin:4vh auto;
  width:min(1100px, 92vw);
  max-height:92vh;
  background: rgba(255,255,255,0.96);
  border-radius:18px;
  padding:0.75rem;
  overflow:auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.img-modal__panel img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
}

.img-modal__close{
  position:sticky;
  top:0;
  margin-left:auto;
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  cursor:pointer;
  font-size:24px;
  line-height:1;
}

/* Repository callout */
.repo-card{
  border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding:1.5rem;
  border-radius:16px;
  margin-bottom:2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.repo-card-content{
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.repo-eyebrow{
  font-size:0.7rem;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color: color-mix(in srgb, var(--muted) 90%, transparent);
  font-weight:800;
}

.repo-title{
  font-size:1.2rem;
  font-weight:850;
}

.repo-sub{
  font-size:0.9rem;
  color: var(--muted);
}

.repo-actions{
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
  display:inline-block;
  padding:0.6rem 1rem;
  border-radius:999px;
  font-size:0.85rem;
  font-weight:800;
  text-decoration:none;
  transition: all 0.2s ease;
  border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.btn-primary{
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  color: var(--fg);
}

.btn-primary:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-secondary{
  background:transparent;
  color: var(--fg);
}

.btn-secondary:hover{
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
  transform: translateY(-1px);
}
.site-footer--network {
  margin-top: 4rem;
  border-top: 1px solid rgba(37, 99, 235, 0.10);
  background: rgba(239, 246, 255, 0.88);
  color: #475569;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer--network .footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.site-footer--network .footer-col {
  min-width: 0;
}

.site-footer--network .footer-brand-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.site-footer--network .footer-brand-copy {
  margin: 0.75rem 0 0;
  max-width: 30rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #475569;
}

.site-footer--network .footer-brand-ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer--network .footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.site-footer--network .footer-btn--primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.site-footer--network .footer-btn--primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.site-footer--network .footer-btn--secondary {
  background: transparent;
  color: #1d4ed8;
  border: 1px solid #2563eb;
}

.site-footer--network .footer-btn--secondary:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}

.site-footer--network .footer-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.site-footer--network .footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer--network .footer-list li + li {
  margin-top: 0.8rem;
}

.site-footer--network .footer-list a {
  color: #475569;
  text-decoration: none;
  font-size: 0.98rem;
}

.site-footer--network .footer-list a:hover {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer--network .footer-bottom {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  padding: 1.25rem 1rem 2rem;
}

.site-footer--network .footer-bottom-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.site-footer--network .footer-meta {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.site-footer--network .footer-submeta {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
}

.site-footer--network .footer-strong {
  font-weight: 600;
  color: #475569;
}

.site-footer--network .footer-network {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer--network .footer-network a {
  color: #2563eb;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-footer--network .footer-network a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer--network .footer-divider {
  margin-top: 0.9rem;
  width: 100%;
  max-width: 36rem;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.site-footer--network .footer-version {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.site-footer--network .footer-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  font-size: 0.75rem;
}

.site-footer--network .footer-utility-links a {
  color: #9ca3af;
  text-decoration: none;
}

.site-footer--network .footer-utility-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (max-width: 1024px) {
  .site-footer--network .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .site-footer--network .footer-top {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .site-footer--network .footer-brand-ctas {
    gap: 0.75rem;
  }

  .site-footer--network .footer-btn {
    width: 100%;
  }

  .site-footer--network .footer-meta {
    font-size: 0.88rem;
  }

  .site-footer--network .footer-network {
    gap: 1rem;
  }
}
.code-block {
  background: #0b1e3a;
  color: #e6edf3;
  padding: 1.2rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}
.home-docs-overview{
  padding: 3rem 0 4rem;
}

.home-docs-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.home-docs-card{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(16, 42, 92, 0.10);
  border-radius: 24px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 18px 38px -28px rgba(10, 24, 60, 0.28);
  backdrop-filter: blur(8px);
}

.home-docs-card h3{
  margin-top: 0;
  margin-bottom: .9rem;
}

.home-docs-list,
.home-docs-steps{
  margin: 0;
  padding-left: 1.2rem;
}

.home-docs-list li,
.home-docs-steps li{
  margin-bottom: .75rem;
  line-height: 1.65;
}

.home-docs-list a,
.home-docs-steps a{
  font-weight: 600;
}

@media (max-width: 900px){
  .home-docs-grid{
    grid-template-columns: 1fr;
  }

  .home-docs-overview{
    padding: 2rem 0 3rem;
  }
}
/* ===============================
   Diagram Gallery Hero
   =============================== */

.gallery-hero {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.16), transparent 28%),
    linear-gradient(135deg, #020817 0%, #06122b 48%, #0b1736 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 60px rgba(2, 6, 23, 0.28),
    0 8px 20px rgba(2, 6, 23, 0.16);
}

.gallery-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 2rem;
  align-items: center;
}

.gallery-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  color: rgba(255,255,255,0.92);
  padding: 0.5rem 0.5rem 0.5rem 0.25rem;
}

.gallery-hero__eyebrow {
  margin: 0 0 0.75rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.92);
}

.gallery-hero__title {
  margin: 0 0 0.75rem 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  color: #ffffff;
}

.gallery-hero__lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(226,232,240,0.86);
}

.gallery-hero__figure {
  margin: 0;
  padding: 1.1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.gallery-hero__figure a {
  display: block;
  text-decoration: none;
}

.gallery-hero__figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: 0 auto;
}

.gallery-hero__figure figcaption {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(226,232,240,0.78);
}

/* ===============================
   Diagram section headings
   =============================== */

section[aria-labelledby="gallery"] > h2 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.08;
}

section[aria-labelledby="gallery"] > p.muted {
  margin: 0 0 1.25rem 0;
  color: rgba(15,23,42,0.68);
  font-size: 0.95rem;
}

section[aria-labelledby="gallery"] > h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* mobile */
@media (max-width: 960px) {
  .gallery-hero__inner {
    grid-template-columns: 1fr;
  }

  .gallery-hero__copy {
    min-height: auto;
    padding: 0;
  }

  .gallery-hero__figure {
    order: -1;
  }

  .gallery-hero {
    padding: 1.1rem;
    border-radius: 20px;
  }
}
.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2.25rem;
}

.diagram-grid figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 10, 30, 0.98), rgba(12, 28, 66, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.18),
    0 6px 16px rgba(2, 6, 23, 0.12);
}

.diagram-grid figure a {
  display: block;
  text-decoration: none;
}

.diagram-grid figure img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: transparent;
  padding: 1.25rem;
}

.diagram-grid figure figcaption {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  color: rgba(255,255,255,0.84);
  font-size: 0.95rem;
  line-height: 1.55;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.diagram-grid + h3 {
  margin-top: 3rem;
}
.diagram-card-hero {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(99,102,241,0.12), transparent 60%),
    linear-gradient(180deg, rgba(3, 10, 30, 0.98), rgba(12, 28, 66, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 30px 60px rgba(2, 6, 23, 0.35),
    0 10px 25px rgba(2, 6, 23, 0.25);
}

.diagram-card-hero img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  border-radius: 16px;
}

.diagram-card-hero figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.feature-quote {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid rgba(99,102,241,0.9);
  background: rgba(15,23,42,0.45);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.feature-quote p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.featured-diagram {
  margin-top: 1.5rem;
  margin-bottom: 2rem;

  border-radius: 20px;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(3,10,30,0.98), rgba(12,28,66,0.96));

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 30px 80px rgba(124,58,237,0.25),
    0 10px 30px rgba(2,6,23,0.4);
}

.featured-diagram img {
  width: 100%;
  height: auto;
  display: block;
  padding: 1rem;
}

.featured-diagram figcaption {
  padding: 0.75rem 1rem 1rem;
}
.featured-diagram {
  margin-top: 1.5rem;
  margin-bottom: 2rem;

  border-radius: 20px;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(3,10,30,0.98), rgba(12,28,66,0.96));

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 30px 80px rgba(124,58,237,0.25),
    0 10px 30px rgba(2,6,23,0.4);
}

.featured-diagram img {
  width: 100%;
  height: auto;
  display: block;
  padding: 1rem;
}

.featured-diagram figcaption {
  padding: 0.75rem 1rem 1rem;
}
/* =========================================================
   Docs homepage — Treasure Links / Shortcut Pills
   ========================================================= */
.shortcut-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 16px;
}

.shortcut-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #2748b0;
  background: linear-gradient(180deg, #3558d4 0%, #1f3fb2 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow:
    0 3px 8px rgba(15, 35, 95, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

/* =========================================================
   Docs homepage — Elevated surfaces
   ========================================================= */
.hero-card-elevated,
.hero-visual-panel-elevated,
.feature-card-elevated {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(205, 216, 245, 0.9);
  box-shadow:
    0 10px 30px rgba(20, 36, 84, 0.10),
    0 2px 10px rgba(20, 36, 84, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-card-elevated:hover,
.hero-visual-panel-elevated:hover,
.feature-card-elevated:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 42px rgba(20, 36, 84, 0.14),
    0 6px 18px rgba(20, 36, 84, 0.08);
}

/* Right panel text contrast */
.hero-visual-panel-elevated .hero-visual-title,
.hero-visual-panel-elevated .hero-visual-copy,
.hero-visual-panel-elevated .hero-visual-kicker {
  color: #1c2540;
}

.hero-visual-panel-elevated .hero-visual-copy {
  max-width: 34ch;
  line-height: 1.65;
}

/* Optional extra polish for the feature cards */
.feature-card-elevated {
  min-height: 138px;
  box-shadow:
    0 10px 24px rgba(20, 36, 84, 0.08),
    0 2px 8px rgba(20, 36, 84, 0.04);
}

/* =========================================================
   Docs homepage — Hero layout (authoritative)
   ========================================================= */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 12px 0 18px;   /* tighter top & bottom */
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 560px);
  gap: 72px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 24px 4px;  /* reduce inner vertical padding */
}

.hero-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;        /* small stagger only */
}

.hero-visual-panel {
  min-height: 260px;      /* reduce from 300+ if you had that */
}
.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 560px);
  gap: 80px;                 /* more space between the two cards */
  align-items: center;
  max-width: 1120px;         /* reduce container width */
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  min-height: auto;
  padding: clamp(2rem, 3vw, 2.5rem);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-card > * {
  max-width: 100%;
}

.hero-card {
  margin-top: 10px;
}

.hero-visual-stack {
  margin-top: 36px;   /* pushes right panel slightly down */
}
.hero-card,
.hero-visual-stack {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
}
.hero-visual-stack {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.hero-visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 1.35rem 1.4rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.50)),
    radial-gradient(circle at 22% 18%, rgba(59,130,246,0.10), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(37,99,235,0.08), transparent 30%),
    linear-gradient(180deg, rgba(13,40,96,0.04), rgba(13,40,96,0.015));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    0 6px 16px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-visual-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  background:
    linear-gradient(rgba(15,23,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-visual-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -18px;
  top: 18px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow:
    0 0 0 28px rgba(37, 99, 235, 0.045),
    0 0 0 56px rgba(37, 99, 235, 0.025);
  pointer-events: none;
}
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 1rem;
  align-items: stretch;
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 136px;
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.05),
    0 2px 8px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-card-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mesh-btn-primary,
.mesh-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.mesh-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.mesh-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.mesh-btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.mesh-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #0b1220;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1180px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 28px;
  }

  .hero-card,
  .hero-visual-stack {
    max-width: 100%;
  }

  .hero-visual-stack {
    margin-top: 0;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .home-hero {
    padding: 48px 0 56px;
  }

  .hero-card {
    padding: 1.5rem;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .hero-card-links {
    flex-direction: column;
    align-items: stretch;
  }

  .mesh-btn-primary,
  .mesh-btn-secondary {
    width: 100%;
  }
}
.home-hero .container {
  max-width: 1140px;
}
/* Home hero: push content below the sticky header stack */
.home-hero,
.docs-home-hero,
.hero-shell,
.hero-surface {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

/* If the cards are inside a grid/card rail, give that block breathing room too */
.home-hero .hero-grid,
.home-hero .entry-grid,
.docs-home-hero .hero-grid,
.docs-home-hero .entry-grid {
  margin-top: 1rem;
}

/* Anchor scrolling: prevent section titles from hiding under sticky header */
[id] {
  scroll-margin-top: 7rem;
}

.ecosystem-hero {
  margin: 2rem 0 3rem;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(124,58,237,0.25), transparent 60%),
    linear-gradient(180deg, #020617 0%, #0b1a3a 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 60px 140px rgba(2,6,23,0.7),
    0 20px 60px rgba(124,58,237,0.25);
}

.ecosystem-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
}

.ecosystem-hero-copy h2,
.ecosystem-hero-copy h3 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.ecosystem-hero-copy .lead,
.gallery-hero__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.ecosystem-hero-image {
  margin: 0;
}

.ecosystem-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.8),
    0 15px 40px rgba(124,58,237,0.3);
}

.section-divider {
  margin: 2.5rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
}

.hero-index-statement {
  margin-top: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid rgba(124,58,237,0.6);
  padding-left: 0.75rem;
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.lifecycle-item {
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(15,23,42,0.65);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.lifecycle-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.lifecycle-item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.lifecycle-item.highlight {
  border: 1px solid rgba(124,58,237,0.6);
  box-shadow: 0 12px 30px rgba(124,58,237,0.25);
}

@media (max-width: 960px) {
  .ecosystem-hero-inner {
    grid-template-columns: 1fr;
  }

  .ecosystem-hero-image {
    order: -1;
  }
}
.lifecycle-item {
  padding: 1.3rem;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(15,23,42,0.75),
    rgba(2,6,23,0.9)
  );

  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.lifecycle-item:hover {
  transform: translateY(-6px) scale(1.01);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.5),
    0 0 25px rgba(59,130,246,0.25);
}

.lifecycle-item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.lifecycle-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );

  z-index: 0;
}

.lifecycle-item {
  z-index: 1;
}
.diagram-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.diagram-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: linear-gradient(
    180deg,
    #020617,
    #0b1a3a
  );

  border-radius: 18px;
  padding: 1rem;

  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.25s ease;
}

.diagram-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    0 0 20px rgba(59,130,246,0.2);
}
.diagram-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.diagram-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: linear-gradient(
    180deg,
    #020617,
    #0b1a3a
  );

  border-radius: 18px;
  padding: 1rem;

  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.25s ease;
}

.diagram-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    0 0 20px rgba(59,130,246,0.2);
}
.lifecycle-connector {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}
/* Hero ambient motion */
.ecosystem-hero-animated {
  position: relative;
}

.ecosystem-hero-animated::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(124,58,237,0.18), transparent 28%),
    radial-gradient(circle at 70% 40%, rgba(59,130,246,0.14), transparent 30%),
    radial-gradient(circle at 50% 75%, rgba(34,197,94,0.10), transparent 28%);
  filter: blur(32px);
  animation: ecosystemAmbientShift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

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

/* Diagram float */
.ecosystem-hero-image img {
  animation: ecosystemFloat 7s ease-in-out infinite;
  transform-origin: center center;
}

/* Entitlements pulse */
.lifecycle-pulse {
  animation: entitlementPulse 3.2s ease-in-out infinite;
}

/* Lifecycle cards hover polish */
.lifecycle-item {
  will-change: transform, box-shadow;
}

.lifecycle-item:hover {
  transform: translateY(-6px) scale(1.015);
}

/* Optional subtle shimmer line */
.section-divider {
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.16),
    transparent
  );
  animation: dividerSweep 5s linear infinite;
}
.home-hero,
.docs-home-hero,
.hero-shell,
.hero-surface {
  padding-top: 6rem;
}
/* Keyframes */
@keyframes ecosystemAmbientShift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate3d(0%, -1%, 0) scale(1.02);
    opacity: 0.82;
  }
}

@keyframes ecosystemFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes entitlementPulse {
  0%,
  100% {
    box-shadow:
      0 12px 30px rgba(124,58,237,0.22),
      0 0 0 rgba(124,58,237,0);
  }
  50% {
    box-shadow:
      0 18px 42px rgba(124,58,237,0.34),
      0 0 24px rgba(124,58,237,0.18);
  }
}

@keyframes dividerSweep {
  0% {
    left: -35%;
  }
  100% {
    left: 105%;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ecosystem-hero-animated::before,
  .ecosystem-hero-image img,
  .lifecycle-pulse,
  .section-divider::after {
    animation: none !important;
  }

  .lifecycle-item:hover {
    transform: none;
  }
}
.diagram-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.diagram-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.diagram-link:hover .diagram-image,
.diagram-link:focus-visible .diagram-image {
  transform: translateY(-2px);
  border-color: rgba(120, 170, 255, 0.45);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.diagram-caption {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent, #8eb8ff);
}
/* FIX: lifecycle cards readability */
.lifecycle-item {
  display: block;
  padding: 1.2rem;
  border-radius: 18px;
  text-decoration: none;

  background: linear-gradient(
    180deg,
    rgba(20, 30, 60, 0.95),
    rgba(10, 15, 35, 0.95)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  /* 👇 THIS IS THE KEY FIX */
  color: #e6ecff;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

/* Title */
.lifecycle-item strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff; /* force visible */
}

/* Description */
.lifecycle-item p {
  margin-top: 0.4rem;
  color: rgba(230, 236, 255, 0.75);
}

/* Hover effect (your current glow but clearer) */
.lifecycle-item:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 170, 255, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Highlight card (Entitlements) */
.lifecycle-item.highlight {
  border-color: rgba(160, 120, 255, 0.6);
  box-shadow: 0 0 18px rgba(160, 120, 255, 0.25);
}
.lifecycle-item::after {
  content: "→";
  float: right;
  opacity: 0.6;
  transition: transform 120ms ease;
}

.lifecycle-item:hover::after {
  transform: translateX(4px);
  opacity: 1;
}
.home-hero {
  padding-top: 7.5rem; /* increase slightly */
}
/* Your header (likely already set, but ensure this) */
.site-header,
header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;

  background: linear-gradient(
    to bottom,
    rgba(10, 20, 50, 0.6),
    transparent
  );

  pointer-events: none;
}
.home-hero {
  position: relative;
  padding-top: 7.5rem;
  z-index: 1;
}

.hero-card,
.hero-visual-stack {
  position: relative;
  z-index: 2;
}
.home-hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--site-header-height) + var(--hero-header-offset));
}

.hero-card,
.hero-visual-stack {
  position: relative;
  z-index: 2;
}

[id] {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}
.brand-logo {
  height: 36px;
  width: auto;
}
