/*
 * Lugano editorial system — loaded after homepage-sections.css.
 * The ivory hero stays untouched; the verification ledger starts the midnight
 * continuation below it.
 */

:root {
  --lugano-paper: #fcf2df;
  --lugano-paper-deep: #f5e6cd;
  --lugano-paper-bright: #fffaf0;
  --lugano-ink: #123a70;
  --lugano-cobalt: #194987;
  --lugano-engraving: #2552a0;
  --lugano-copy: #31516e;
  --lugano-rule: rgba(25, 73, 135, 0.25);
  --lugano-rule-strong: rgba(25, 73, 135, 0.46);
  --lugano-serif: "Instrument Serif", Georgia, serif;
  --lugano-sans: "IBM Plex Sans", Arial, sans-serif;
  --lugano-mono: "JetBrains Mono", ui-monospace, monospace;
}

html {
  background: var(--lugano-paper);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  background: var(--lugano-paper) !important;
  color: var(--lugano-copy);
  font-family: var(--lugano-sans);
}

#root:has(section.lgx-hero-editorial) {
  background: var(--lugano-paper);
}

/* Keep keyboard navigation as legible as the new visual language. */
#root nav a:focus-visible,
#root nav button:focus-visible,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) a:focus-visible,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) button:focus-visible,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) input:focus-visible,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) textarea:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--lugano-engraving) !important;
  outline-offset: 4px;
}

/* Header stays quiet over the ivory hero and exposes the same route affordances. */
#root:has(section.lgx-hero-editorial) nav {
  border-bottom: 1px solid rgba(25, 73, 135, 0.18) !important;
  background: rgba(252, 242, 223, 0.94) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#root:has(section.lgx-hero-editorial) nav a,
#root:has(section.lgx-hero-editorial) nav button,
#root:has(section.lgx-hero-editorial) nav a *,
#root:has(section.lgx-hero-editorial) nav button * {
  color: var(--lugano-cobalt) !important;
}

#root:has(section.lgx-hero-editorial) nav a[href*="apply"] {
  border: 1px solid var(--lugano-cobalt) !important;
  border-radius: 3px !important;
  background: var(--lugano-cobalt) !important;
  color: var(--lugano-paper) !important;
  box-shadow: none !important;
}

#root:has(section.lgx-hero-editorial) nav a[href*="apply"] * {
  color: var(--lugano-paper) !important;
}

#root:has(section.lgx-hero-editorial) nav a[href*="apply"]:hover {
  background: var(--lugano-ink) !important;
  transform: translateY(-1px);
}

/* The application route mounts the same header without the hero in the DOM. */
#root nav {
  border-bottom: 1px solid rgba(25, 73, 135, 0.18) !important;
  background: rgba(252, 242, 223, 0.94) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#root nav :where(a, button),
#root nav :where(a, button) * {
  color: var(--lugano-cobalt) !important;
}

#root nav button svg,
#root nav button svg * {
  stroke: var(--lugano-cobalt) !important;
}

#root nav button[aria-label="Toggle menu"] span {
  background-color: var(--lugano-cobalt) !important;
}

#root nav a[href*="apply"] {
  border: 1px solid var(--lugano-cobalt) !important;
  border-radius: 3px !important;
  background: var(--lugano-cobalt) !important;
  box-shadow: none !important;
  color: var(--lugano-paper) !important;
}

#root nav a[href*="apply"] * {
  color: var(--lugano-paper) !important;
}

#root nav a[href*="apply"]:hover {
  background: var(--lugano-ink) !important;
  transform: translateY(-1px);
}

#root nav .lgx-brand-mark-image {
  filter: brightness(0) saturate(100%) invert(24%) sepia(28%) saturate(2382%) hue-rotate(178deg)
    brightness(89%) contrast(91%) !important;
}

#root nav > div.fixed.inset-0 {
  border-top-color: rgba(25, 73, 135, 0.18) !important;
  background: var(--lugano-paper) !important;
}

#root nav > div.fixed.inset-0 > :where(a, button) {
  border-bottom-color: rgba(25, 73, 135, 0.16) !important;
  color: var(--lugano-cobalt) !important;
}

#root nav > div.fixed.inset-0 > a:last-child {
  background: var(--lugano-cobalt) !important;
  color: var(--lugano-paper) !important;
}

/*
 * Shared chapter frame. The direct child constraint preserves original React
 * structure while replacing its dark/glass surfaces below the hero.
 */
#root .lgx-root,
#lugano-extra-sections {
  background: var(--lugano-paper) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#lugano-extra-sections > section:not(#lugano-proof-ledger) {
  --lugano-section-bg: var(--lugano-paper);
  --lugano-section-ink: var(--lugano-cobalt);
  --lugano-section-copy: var(--lugano-copy);
  --lugano-section-accent: var(--lugano-engraving);
  --lugano-section-panel: var(--lugano-paper-bright);
  --lugano-section-rule: var(--lugano-rule);
  position: relative;
  isolation: isolate;
  margin: 0 !important;
  padding: clamp(5.5rem, 9vw, 9.5rem) 0 !important;
  border: 0 !important;
  background: var(--lugano-section-bg) !important;
  color: var(--lugano-section-copy) !important;
}

/* The proof ledger is owned by the hero system. Do not style it here. */
#lugano-proof-ledger {
  isolation: isolate;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger)::before,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger)::after {
  background-image: none !important;
  box-shadow: none !important;
}

#root .lgx-live-section > div:not(.absolute),
#root .lgx-why-now-section > .lgx-shell,
#root .lgx-root > .lgx-section > .lgx-shell,
#root #cta > .relative.z-10,
#root section:has(.apply-form) > .relative.z-10 {
  width: min(100% - clamp(2.5rem, 9vw, 10rem), 80rem) !important;
  max-width: 80rem !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

#root .lgx-live-section > div:not(.absolute),
#root .lgx-why-now-section > .lgx-shell,
#root .lgx-root > .lgx-section > .lgx-shell {
  position: relative;
  z-index: 1;
}

/* Intentional cobalt chapters. */
#root section:is(.lgx-live-the-problem, #privacy, #platform, #cta, #private-agents):not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#root section:has(.apply-form):not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#lugano-extra-sections > section#private-agents:not(#lugano-proof-ledger) {
  --lugano-section-bg: var(--lugano-ink);
  --lugano-section-ink: var(--lugano-paper);
  --lugano-section-copy: rgba(252, 242, 223, 0.82);
  --lugano-section-accent: #a8c2e3;
  --lugano-section-panel: rgba(252, 242, 223, 0.06);
  --lugano-section-rule: rgba(252, 242, 223, 0.22);
}

#root section:is(.lgx-live-the-problem, #privacy, #platform, #cta, #private-agents):not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#root section:has(.apply-form):not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#lugano-extra-sections > section#private-agents:not(#lugano-proof-ledger) {
  background: var(--lugano-section-bg) !important;
}

/* Typography: serif for statements, functional sans and mono for evidence. */
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(h1, h2, h3, h4),
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(h2, h3, h4) {
  color: var(--lugano-section-ink) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(p, li, dd, dt, cite),
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(p, li, dd, dt, cite) {
  color: var(--lugano-section-copy) !important;
}

#root .lgx-live-heading h2,
#root .lgx-centered-heading h2,
#root .lgx-why-now-copy h2,
#root #cta h2,
#root .apply-headline {
  max-width: 17ch;
  margin: 0 !important;
  color: var(--lugano-section-ink) !important;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(3rem, 5vw, 5.7rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.94 !important;
  text-wrap: balance;
}

#root .lgx-centered-heading {
  max-width: 54rem;
  margin: 0 auto clamp(2.75rem, 5vw, 5.25rem) !important;
  text-align: center;
}

#root .lgx-centered-heading h2 {
  max-width: 100%;
}

#root .lgx-live-heading {
  max-width: 48rem;
  margin-bottom: clamp(2.6rem, 5vw, 5rem) !important;
}

#root .lgx-live-heading > :not(.bracket-label) + :not(.bracket-label) {
  margin-top: 1.3rem !important;
}

#root .lgx-live-heading h2,
#root .lgx-live-heading p,
#root .lgx-live-heading > div:not(.bracket-label) {
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

#root .lgx-live-heading p,
#root .lgx-centered-heading > p,
#root .lgx-why-now-copy > p,
#root .apply-sub {
  max-width: 42rem;
  margin-bottom: 0 !important;
  font-family: var(--lugano-sans) !important;
  font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.72 !important;
}

#root .lgx-live-heading p {
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

#root .lgx-centered-heading > p {
  margin: 1.25rem auto 0 !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(h2, h3, h4) em,
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(h2, h3, h4) em {
  color: var(--lugano-section-accent) !important;
}

#root .bracket-label,
#root .lgx-kicker,
#root .lgx-product-surface,
#root .lgx-model-spec,
#root .lgx-model-note,
#root .prop-num {
  color: var(--lugano-section-accent) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.71rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.13em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .bracket-label,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .lgx-kicker,
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(.bracket-label, .lgx-kicker) {
  color: var(--lugano-section-accent) !important;
}

#root .bracket-label {
  display: flex !important;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.15rem !important;
}

#root .bracket-label::before,
#root .bracket-label::after,
#root .lgx-kicker > span {
  display: block !important;
  width: 2rem !important;
  height: 1px !important;
  background: currentColor !important;
  content: "";
  opacity: 0.68;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .bracket-label::before,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .bracket-label::after,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .lgx-kicker > span,
#lugano-extra-sections > section:not(#lugano-proof-ledger) .lgx-kicker > span {
  background: currentColor !important;
}

#root .lgx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

#root .lgx-product-surface {
  margin-top: 1.2rem !important;
  line-height: 1.75 !important;
}

#root .lgx-product-surface span {
  color: currentColor !important;
}

/* Cards use flat paper/ink panels with rules rather than glass effects. */
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card),
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(.lgx-card) {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lugano-section-rule) !important;
  border-radius: 5px !important;
  background: var(--lugano-section-panel) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card)::before,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card)::after {
  background-image: none !important;
  box-shadow: none !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card):hover {
  border-color: var(--lugano-section-ink) !important;
  box-shadow: none !important;
  transform: translateY(-2px) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card) :where(h3, h4, strong) {
  color: var(--lugano-section-ink) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card) :where(p, li, dd, dt) {
  color: var(--lugano-section-copy) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .icon-chip,
#lugano-extra-sections .lgx-icon {
  display: grid !important;
  width: 3rem !important;
  height: 3rem !important;
  flex: 0 0 3rem;
  border: 1px solid var(--lugano-section-rule) !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lugano-section-ink) !important;
  font-size: 1.25rem !important;
  place-items: center;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .icon-chip * {
  color: inherit !important;
}

/* The four privacy statements retain every line, but read as parallel evidence. */
#root .lgx-live-privacy .comparison-card,
#root #privacy .comparison-card {
  min-height: 100%;
  padding: clamp(1.45rem, 2.5vw, 2.25rem) !important;
}

#root .lgx-live-privacy .comparison-card > :first-child,
#root #privacy .comparison-card > :first-child {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--lugano-section-rule);
}

#root .lgx-live-privacy .comparison-card :where(.space-y-4, .space-y-5) {
  margin-top: 1.35rem !important;
}

#root .lgx-live-privacy .comparison-card :where(.space-y-4, .space-y-5) > * + * {
  margin-top: 1rem !important;
}

#root .lgx-live-privacy .comparison-card :where(.flex.items-start) {
  align-items: flex-start !important;
}

#root .lgx-live-privacy .comparison-card p {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

#root .lgx-live-privacy .comparison-card > .flex.items-center > p {
  color: var(--lugano-section-accent) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  line-height: 1.35 !important;
}

#root .lgx-live-privacy .comparison-card [style*="color"] {
  color: var(--lugano-section-copy) !important;
}

#root .lgx-live-privacy .comparison-card :where(h3, h4, strong),
#root .lgx-live-privacy .comparison-card [style*="font-family"]:first-child {
  color: var(--lugano-section-ink) !important;
}

#root #privacy .lgx-privacy-positioning {
  margin-top: clamp(2.25rem, 4vw, 3.5rem) !important;
}

#root #privacy .lgx-tier-band {
  border-color: var(--lugano-section-rule) !important;
  background: transparent !important;
}

#root #privacy .lgx-tier-card,
#root #privacy .lgx-tier-card.is-restricted {
  border-color: var(--lugano-section-rule) !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lugano-section-copy) !important;
}

#root #privacy .lgx-tier-card.is-restricted {
  border-color: rgba(252, 242, 223, 0.46) !important;
  color: var(--lugano-section-ink) !important;
}

#root #privacy .lgx-tier-label {
  color: inherit !important;
  font-family: var(--lugano-mono) !important;
}

/* Trust gap: a restrained editorial statistic instead of a floating glass tile. */
#root section.lgx-why-now-section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) {
  --lugano-section-bg: var(--lugano-paper-deep);
  --lugano-section-ink: var(--lugano-cobalt);
  --lugano-section-copy: var(--lugano-copy);
  --lugano-section-accent: var(--lugano-engraving);
  --lugano-section-panel: var(--lugano-paper-bright);
  --lugano-section-rule: var(--lugano-rule);
  padding: clamp(4.75rem, 8vw, 8rem) 0 !important;
  background: var(--lugano-paper-deep) !important;
}

#root .lgx-why-now-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr) !important;
  align-items: end !important;
  gap: clamp(2rem, 8vw, 8rem) !important;
}

#root .lgx-why-now-copy .lgx-kicker {
  margin-bottom: 1.3rem !important;
}

#root .lgx-why-now-copy h2 {
  max-width: 22ch;
  font-size: clamp(2.75rem, 4.4vw, 5rem) !important;
}

#root .lgx-why-now-stat {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
  border: 1px solid var(--lugano-cobalt) !important;
  border-radius: 5px !important;
  background: var(--lugano-cobalt) !important;
  box-shadow: none !important;
}

#root .lgx-why-now-stat :where(strong, p, cite) {
  color: var(--lugano-paper) !important;
}

#root #why-now .lgx-why-now-stat p,
#root #why-now .lgx-why-now-stat cite {
  color: var(--lugano-paper) !important;
}

#root .lgx-why-now-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(4.5rem, 7vw, 7.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.07em !important;
  line-height: 0.75 !important;
}

#root .lgx-why-now-stat p {
  margin: 1.25rem 0 0 !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

#root .lgx-why-now-stat cite {
  display: block;
  margin-top: 1rem !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.67rem !important;
  font-style: normal !important;
  letter-spacing: 0.08em !important;
  opacity: 0.84;
  text-transform: uppercase;
}

/* Six structural properties become a numbered, rule-led reading sequence. */
#root #architecture .lgx-live-heading {
  max-width: 43rem;
}

#root #architecture > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  gap: 1px !important;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--lugano-section-rule);
}

#root #architecture > div > .lgx-live-heading {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 clamp(2.2rem, 4vw, 3.5rem) !important;
  background: var(--lugano-section-bg) !important;
  text-align: center !important;
}

#root #architecture > div > .prop-card {
  grid-column: auto !important;
  margin: 0 !important;
}

#root #architecture > div > .grid {
  display: contents !important;
}

#root #architecture .prop-card {
  min-height: 15.5rem;
  padding: clamp(1.35rem, 2.5vw, 2.25rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--lugano-section-panel) !important;
}

#root section#architecture:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .prop-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#root #architecture .prop-card > .grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.72fr) !important;
  align-items: start !important;
  gap: clamp(1rem, 2vw, 1.75rem) !important;
}

#root #architecture .prop-num {
  color: var(--lugano-section-accent) !important;
  font-size: 0.78rem !important;
}

#root section#architecture:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .prop-num {
  color: var(--lugano-engraving) !important;
}

#root #architecture .prop-card h3 {
  margin: 0 0 0.7rem !important;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(1.55rem, 2vw, 2.05rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  line-height: 1 !important;
}

#root #architecture .prop-card p {
  margin: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
}

#root #architecture .attestation-receipt {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 1rem !important;
  border: 1px solid var(--lugano-section-rule) !important;
  border-radius: 3px !important;
  background: rgba(25, 73, 135, 0.045) !important;
  color: var(--lugano-section-copy) !important;
  font-family: var(--lugano-mono) !important;
  line-height: 1.65 !important;
}

#root #architecture .prop-card > .grid > :last-child {
  display: flex !important;
  min-width: 0;
  align-items: center !important;
  justify-content: center !important;
}

#root #architecture .receipt-line {
  opacity: 1 !important;
  color: var(--lugano-section-copy) !important;
}

#root #architecture .hash-value,
#root #architecture .attestation-receipt [style*="color"] {
  color: var(--lugano-section-accent) !important;
}

/* Platform steps are a readable diagram even before any motion initializes. */
#root #platform .lgx-live-heading {
  max-width: 48rem;
}

#root #platform .lgx-live-heading + .relative {
  max-width: 53rem !important;
}

#root #platform .feature-card {
  padding: clamp(1.35rem, 2vw, 1.9rem) !important;
  border-left: 3px solid var(--lugano-section-accent) !important;
}

#root #platform .feature-card h4 {
  margin: 0 !important;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(1.45rem, 2.1vw, 2rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
}

#root #platform .feature-card p {
  margin: 0.6rem 0 0 !important;
  font-size: 1rem !important;
  line-height: 1.62 !important;
}

#root #platform .feature-card + div {
  height: 2.8rem !important;
  opacity: 1 !important;
  transform: none !important;
}

#root #platform .feature-card + div [style*="background"] {
  background: var(--lugano-section-accent) !important;
}

#root #platform .feature-card + div path {
  stroke: var(--lugano-section-accent) !important;
}

/* First post-hero proof statistics use a quiet ruled grid. */
#root section:has(.stat-glass-card) {
  padding-top: clamp(4rem, 7vw, 7rem) !important;
  padding-bottom: clamp(4rem, 7vw, 7rem) !important;
}

#root .stat-glass-card {
  min-height: 11rem;
  padding: clamp(1.25rem, 2.3vw, 2rem) !important;
  border-top: 2px solid var(--lugano-section-ink) !important;
}

#root .stat-glass-card :where(h3, strong, [class*="text-"]) {
  color: var(--lugano-section-ink) !important;
}

#root .stat-glass-card > div:not(.icon-chip) {
  color: var(--lugano-cobalt) !important;
}

#root .stat-glass-card > div:last-child {
  color: var(--lugano-engraving) !important;
  font-size: 0.72rem !important;
}

/* Supplementary use cases, agents, and models retain their detail but use one system. */
#lugano-extra-sections .lgx-section {
  padding: clamp(5.5rem, 9vw, 9.5rem) 0 !important;
}

#lugano-extra-sections .lgx-vertical-grid,
#lugano-extra-sections .lgx-agent-grid,
#lugano-extra-sections .lgx-model-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(1rem, 2vw, 1.55rem) !important;
}

#lugano-extra-sections .lgx-card {
  display: flex !important;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

#lugano-extra-sections .lgx-card-media {
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  overflow: hidden;
  border-bottom: 1px solid var(--lugano-section-rule);
  border-radius: 0 !important;
  background: var(--lugano-paper-deep) !important;
}

#lugano-extra-sections .lgx-card-media::after {
  background: none !important;
}

#lugano-extra-sections .lgx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  transition: transform 220ms ease;
}

#lugano-extra-sections .lgx-card:hover .lgx-card-media img {
  filter: none !important;
  transform: scale(1.018);
}

#lugano-extra-sections .lgx-card-body,
#lugano-extra-sections .lgx-agent-card,
#lugano-extra-sections .lgx-model-card {
  padding: clamp(1.25rem, 2vw, 1.75rem) !important;
}

#lugano-extra-sections .lgx-card-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  background: transparent !important;
}

#lugano-extra-sections .lgx-icon,
#lugano-extra-sections .lgx-card:hover .lgx-icon {
  border-color: var(--lugano-section-rule) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lugano-section-ink) !important;
  transform: translateY(0) !important;
}

#lugano-extra-sections .lgx-card:hover .lgx-icon {
  border-color: var(--lugano-section-ink) !important;
  transform: translateY(-1px) !important;
}

#lugano-extra-sections .lgx-icon svg,
#lugano-extra-sections .lgx-icon svg :where(path, circle, rect, line, polyline) {
  stroke: var(--lugano-section-ink) !important;
}

#lugano-extra-sections .lgx-icon :where(span, svg) {
  color: var(--lugano-section-ink) !important;
  filter: none !important;
}

#lugano-extra-sections .lgx-icon :where(img, svg) {
  width: min(1.75rem, 68%) !important;
  height: min(1.75rem, 68%) !important;
}

#lugano-extra-sections .lgx-emoji-icon span {
  font-size: 1.6rem !important;
}

#lugano-extra-sections .lgx-vertical-card li::before,
#lugano-extra-sections .lgx-agent-list li::before {
  background: var(--lugano-section-accent) !important;
  box-shadow: none !important;
}

#lugano-extra-sections .lgx-model-spec {
  border-color: var(--lugano-section-rule) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: var(--lugano-section-accent) !important;
}

#lugano-extra-sections .lgx-card-head {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 1rem !important;
}

#lugano-extra-sections .lgx-card :where(h3) {
  margin: 0 !important;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(1.6rem, 2vw, 2rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
  line-height: 0.98 !important;
}

#lugano-extra-sections .lgx-card p {
  margin: 0.85rem 0 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.62 !important;
}

#lugano-extra-sections .lgx-agent-card .lgx-icon,
#lugano-extra-sections .lgx-model-card .lgx-icon {
  margin-bottom: 1.5rem !important;
}

#lugano-extra-sections .lgx-agent-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0 !important;
  padding: 1.1rem 0 0 !important;
  border-top: 1px solid var(--lugano-section-rule);
}

#lugano-extra-sections .lgx-agent-list li {
  padding-left: 1.25rem !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

#lugano-extra-sections .lgx-agent-list li::before {
  left: 0 !important;
}

#lugano-extra-sections .lgx-model-card {
  min-height: 100%;
}

#lugano-extra-sections .lgx-model-copy {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  align-self: stretch;
  flex-direction: column;
}

#lugano-extra-sections .lgx-model-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0;
  margin: 1.25rem 0 0 !important;
  border-top: 1px solid var(--lugano-section-rule);
}

#lugano-extra-sections .lgx-model-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--lugano-section-rule);
}

#lugano-extra-sections .lgx-model-card dt {
  font-family: var(--lugano-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

#lugano-extra-sections .lgx-model-card dd {
  margin: 0 !important;
  color: var(--lugano-section-ink) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-align: right;
}

#lugano-extra-sections .lgx-model-note {
  max-width: 70rem;
  margin: clamp(2rem, 3vw, 3rem) auto 0 !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--lugano-section-rule);
  text-align: center;
}

/* Closing statement and application form share the cobalt chapter surface. */
#root #cta {
  display: flex !important;
  min-height: min(48rem, 90dvh) !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#root #cta > .absolute {
  background:
    radial-gradient(circle at 50% 32%, rgba(75, 116, 170, 0.28), transparent 38rem) !important;
  opacity: 1 !important;
}

#root #cta .lgx-live-heading,
#root #cta > .relative.z-10 {
  text-align: center;
}

#root #cta h2,
#root #cta .lgx-live-heading {
  margin-right: auto !important;
  margin-left: auto !important;
}

#root #cta h2 {
  max-width: none;
  font-size: clamp(4rem, 8vw, 8rem) !important;
  line-height: 0.8 !important;
}

#root #cta .lgx-live-heading p {
  margin: 1.75rem auto 0 !important;
}

#root #cta a[href*="apply"],
#root .apply-form button[type="submit"] {
  display: inline-flex !important;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lugano-paper) !important;
  border-radius: 3px !important;
  background: var(--lugano-paper) !important;
  box-shadow: none !important;
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-sans) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

#root #cta a[href*="apply"]:hover,
#root .apply-form button[type="submit"]:hover:not(:disabled) {
  background: transparent !important;
  color: var(--lugano-paper) !important;
  transform: translateY(-2px);
}

#root section:has(.apply-form) {
  display: flex !important;
  min-height: 100dvh !important;
  align-items: center !important;
}

#root section:has(.apply-form) .hash-field-wrap {
  opacity: 0.12 !important;
}

#root .apply-headline {
  max-width: 11ch;
}

#root .apply-headline span {
  color: var(--lugano-section-accent) !important;
}

#root .apply-form form > div,
#root .apply-form > div {
  border: 1px solid var(--lugano-section-rule) !important;
  border-radius: 5px !important;
  background: rgba(252, 242, 223, 0.06) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#root .apply-form label {
  color: var(--lugano-section-accent) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.1em !important;
}

#root .apply-form input,
#root .apply-form textarea,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) input,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) textarea {
  border: 1px solid rgba(252, 242, 223, 0.34) !important;
  border-radius: 3px !important;
  background: rgba(252, 242, 223, 0.06) !important;
  box-shadow: none !important;
  color: var(--lugano-paper) !important;
  font-family: var(--lugano-sans) !important;
}

#root .apply-form input::placeholder,
#root .apply-form textarea::placeholder {
  color: rgba(252, 242, 223, 0.58) !important;
}

#root .apply-form input:focus,
#root .apply-form textarea:focus {
  border-color: var(--lugano-paper) !important;
}

/* Global footer is the final cobalt rule on the home route. */
footer {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 7vw, 8rem) !important;
  border-top: 1px solid rgba(252, 242, 223, 0.28) !important;
  background: var(--lugano-ink) !important;
  color: rgba(252, 242, 223, 0.8) !important;
  font-family: var(--lugano-sans) !important;
}

footer :where(a, span, p) {
  color: inherit !important;
}

footer button {
  border: 1px solid rgba(252, 242, 223, 0.42) !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lugano-paper) !important;
  font-family: var(--lugano-sans) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
}

footer button * {
  color: inherit !important;
}

footer button:hover {
  border-color: var(--lugano-paper) !important;
  background: rgba(252, 242, 223, 0.1) !important;
  color: var(--lugano-paper) !important;
}

footer .flex.items-center.gap-8 {
  min-width: 0;
  flex-wrap: wrap !important;
  gap: clamp(0.5rem, 1.5vw, 1.5rem) !important;
}

footer a {
  font-size: 0.82rem !important;
  letter-spacing: 0.015em;
  text-decoration-color: rgba(252, 242, 223, 0.42) !important;
  text-underline-offset: 0.24em;
}

footer a:hover {
  color: var(--lugano-paper) !important;
}

footer .lgx-brand-link {
  color: var(--lugano-paper) !important;
  font-family: var(--lugano-serif) !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.025em !important;
}

footer :where(.lgx-brand-mark-image, img[src*="logo"]) {
  filter: brightness(0) saturate(100%) invert(91%) sepia(14%) saturate(593%) hue-rotate(322deg)
    brightness(106%) contrast(98%) !important;
}

@media (max-width: 1080px) {
  #root .lgx-live-section > div:not(.absolute),
  #root .lgx-why-now-section > .lgx-shell,
  #root .lgx-root > .lgx-section > .lgx-shell,
  #root #cta > .relative.z-10,
  #root section:has(.apply-form) > .relative.z-10 {
    width: min(100% - 3rem, 64rem) !important;
  }

  #root .lgx-why-now-grid {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr) !important;
  }

  #lugano-extra-sections .lgx-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger),
  #lugano-extra-sections > section:not(#lugano-proof-ledger) {
    padding: clamp(4rem, 16vw, 5.5rem) 0 !important;
  }

  #root .lgx-live-section > div:not(.absolute),
  #root .lgx-why-now-section > .lgx-shell,
  #root .lgx-root > .lgx-section > .lgx-shell,
  #root #cta > .relative.z-10,
  #root section:has(.apply-form) > .relative.z-10 {
    width: min(100% - 2rem, 38rem) !important;
  }

  #root .lgx-live-heading,
  #root .lgx-centered-heading {
    margin-bottom: 2.6rem !important;
  }

  #root .lgx-live-heading h2,
  #root .lgx-centered-heading h2,
  #root .lgx-why-now-copy h2,
  #root .apply-headline {
    font-size: clamp(2.7rem, 12vw, 4.15rem) !important;
    line-height: 0.96 !important;
  }

  #root .lgx-why-now-grid,
  #root #architecture > div,
  #lugano-extra-sections .lgx-vertical-grid,
  #lugano-extra-sections .lgx-agent-grid,
  #lugano-extra-sections .lgx-model-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #root .lgx-why-now-grid {
    gap: 2rem !important;
  }

  #root .lgx-why-now-copy h2 {
    max-width: 14ch;
  }

  #root .lgx-why-now-stat strong {
    font-size: clamp(4rem, 21vw, 6rem) !important;
  }

  #root #architecture .prop-card {
    min-height: 0;
  }

  #root #architecture .prop-card > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  #root #platform .feature-card {
    padding: 1.25rem !important;
  }

  #root #platform .feature-card .flex.items-start {
    gap: 1rem !important;
  }

  #root #cta {
    min-height: 38rem !important;
  }

  #root #cta h2 {
    font-size: clamp(4rem, 20vw, 6.1rem) !important;
    line-height: 0.83 !important;
  }

  #root section:has(.apply-form) .grid {
    gap: 2.6rem !important;
  }

  #root .apply-form form > div,
  #root .apply-form > div {
    padding: 1.5rem !important;
  }

  footer {
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 390px) {
  #root .lgx-live-section > div:not(.absolute),
  #root .lgx-why-now-section > .lgx-shell,
  #root .lgx-root > .lgx-section > .lgx-shell,
  #root #cta > .relative.z-10,
  #root section:has(.apply-form) > .relative.z-10 {
    width: min(100% - 1.5rem, 38rem) !important;
  }

  #root .lgx-card-head {
    gap: 0.75rem !important;
  }

  #lugano-extra-sections .lgx-model-card dl > div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.25rem;
  }

  #lugano-extra-sections .lgx-model-card dd {
    text-align: left;
  }

  #root footer > div {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  footer .flex.items-center.gap-8 {
    gap: 0.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) *,
  #lugano-extra-sections * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/*
 * Midnight continuation
 *
 * This final layer is deliberately confined to the rendered homepage and
 * application route. It wins over the earlier editorial pass without changing
 * the ivory hero, its artwork, or the separate docs and policy shells below.
 */
#root,
#lugano-extra-sections {
  --lugano-midnight: #091625;
  --lugano-midnight-raised: #0d1e34;
  --lugano-card: #13283f;
  --lugano-ivory: #fcf2df;
  --lugano-muted: #b6c5d7;
  --lugano-soft-blue: #91b8ed;
  --lugano-dark-rule: rgba(145, 184, 237, 0.2);
  --lugano-dark-rule-strong: rgba(145, 184, 237, 0.38);
}

#root .lgx-root,
#lugano-extra-sections {
  background: var(--lugano-midnight) !important;
}

/* The ledger is the first dark chapter after the unchanged ivory panorama. */
#root #lugano-proof-ledger {
  border-color: var(--lugano-dark-rule) !important;
  background: var(--lugano-midnight) !important;
  color: var(--lugano-ivory) !important;
}

/* Center the verification statement above its full-width evidence ledger. */
#root #lugano-proof-ledger .lgx-hero-ledger-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3.25rem, 5vw, 4.75rem);
}

#root #lugano-proof-ledger .lgx-hero-ledger-heading {
  position: static;
  display: grid;
  justify-items: center;
  width: min(100%, 38rem);
  margin: 0 auto;
  text-align: center;
}

#root #lugano-proof-ledger .lgx-hero-ledger-kicker {
  justify-content: center;
  color: var(--lugano-soft-blue) !important;
}

#root #lugano-proof-ledger h2 {
  max-width: 100%;
  text-align: center;
  color: var(--lugano-ivory) !important;
}

#root #lugano-proof-ledger .lgx-hero-ledger-list {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

#root #lugano-proof-ledger .lgx-hero-ledger-list,
#root #lugano-proof-ledger .lgx-hero-ledger-row {
  border-color: var(--lugano-dark-rule) !important;
}

#root #lugano-proof-ledger .lgx-hero-ledger-row {
  color: var(--lugano-muted) !important;
}

#root #lugano-proof-ledger .lgx-hero-ledger-index,
#root #lugano-proof-ledger .lgx-hero-ledger-digest {
  color: var(--lugano-soft-blue) !important;
}

#root #lugano-proof-ledger .lgx-hero-ledger-label {
  color: var(--lugano-muted) !important;
}

/* Alternating midnight chapters keep the long homepage legible without glass. */
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#lugano-extra-sections > section:not(#lugano-proof-ledger) {
  --lugano-section-bg: var(--lugano-midnight) !important;
  --lugano-section-ink: var(--lugano-ivory) !important;
  --lugano-section-copy: var(--lugano-muted) !important;
  --lugano-section-accent: var(--lugano-soft-blue) !important;
  --lugano-section-panel: var(--lugano-card) !important;
  --lugano-section-rule: var(--lugano-dark-rule) !important;
  background: var(--lugano-section-bg) !important;
}

#root section.lgx-gradient-band:not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#lugano-extra-sections > section.lgx-gradient-band:not(#lugano-proof-ledger),
#root section.lgx-why-now-section:not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#root #platform:not(.lgx-hero-editorial):not(#lugano-proof-ledger),
#lugano-extra-sections > #private-agents:not(#lugano-proof-ledger),
#root #cta:not(.lgx-hero-editorial):not(#lugano-proof-ledger) {
  --lugano-section-bg: var(--lugano-midnight-raised) !important;
}

#root section.lgx-why-now-section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) {
  padding: clamp(4.75rem, 8vw, 8rem) 0 !important;
  background: var(--lugano-section-bg) !important;
}

#root section.lgx-why-now-section:not(.lgx-hero-editorial):not(#lugano-proof-ledger)::before {
  background: none !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(h1, h2, h3, h4),
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(h2, h3, h4) {
  color: var(--lugano-ivory) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(p, li, dd, dt, cite),
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(p, li, dd, dt, cite) {
  color: var(--lugano-muted) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(h2, h3, h4) em,
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(h2, h3, h4) em,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.bracket-label, .lgx-kicker, .lgx-product-surface, .lgx-model-spec, .lgx-model-note, .prop-num),
#lugano-extra-sections > section:not(#lugano-proof-ledger) :where(.bracket-label, .lgx-kicker, .lgx-product-surface, .lgx-model-spec, .lgx-model-note, .prop-num) {
  color: var(--lugano-soft-blue) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card),
#lugano-extra-sections > section:not(#lugano-proof-ledger) .lgx-card {
  border-color: var(--lugano-dark-rule) !important;
  background: var(--lugano-card) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card):hover,
#lugano-extra-sections > section:not(#lugano-proof-ledger) .lgx-card:hover {
  border-color: var(--lugano-dark-rule-strong) !important;
  background: var(--lugano-card) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.16) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card) :where(h3, h4, strong),
#lugano-extra-sections > section:not(#lugano-proof-ledger) .lgx-card :where(h3, h4, strong) {
  color: var(--lugano-ivory) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(.feature-card, .comparison-card, .prop-card, .stat-glass-card, .lgx-card) :where(p, li, dd, dt),
#lugano-extra-sections > section:not(#lugano-proof-ledger) .lgx-card :where(p, li, dd, dt) {
  color: var(--lugano-muted) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .icon-chip,
#lugano-extra-sections .lgx-icon,
#lugano-extra-sections .lgx-card:hover .lgx-icon {
  border-color: var(--lugano-dark-rule) !important;
  background: transparent !important;
  color: var(--lugano-ivory) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .icon-chip *,
#lugano-extra-sections .lgx-icon :where(span, svg),
#lugano-extra-sections .lgx-icon svg :where(path, circle, rect, line, polyline) {
  color: var(--lugano-ivory) !important;
  stroke: currentColor !important;
}

/* The trust-gap number is elevated, not a bright card within a dark section. */
#root .lgx-why-now-stat {
  border-color: var(--lugano-dark-rule-strong) !important;
  background: var(--lugano-card) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16) !important;
}

#root .lgx-why-now-stat strong {
  color: var(--lugano-ivory) !important;
}

#root .lgx-why-now-stat p {
  color: var(--lugano-muted) !important;
}

#root .lgx-why-now-stat cite {
  color: var(--lugano-soft-blue) !important;
}

/* The first post-hero evidence cards retain their hierarchy on the dark field. */
#root section:has(.stat-glass-card) {
  --lugano-section-bg: var(--lugano-midnight-raised) !important;
}

#root .stat-glass-card {
  border-top-color: var(--lugano-soft-blue) !important;
}

#root .stat-glass-card :where(h3, strong, [class*="text-"]),
#root .stat-glass-card > div:not(.icon-chip) {
  color: var(--lugano-ivory) !important;
}

#root .stat-glass-card > div:last-child {
  color: var(--lugano-soft-blue) !important;
}

/* Privacy remains a comparison, with every proof surface lifted from the field. */
#root .lgx-live-privacy .comparison-card > :first-child,
#root #privacy .comparison-card > :first-child,
#root #privacy .lgx-tier-band,
#root #privacy .lgx-tier-card,
#root #privacy .lgx-tier-card.is-restricted {
  border-color: var(--lugano-dark-rule) !important;
}

#root .lgx-live-privacy .comparison-card > .flex.items-center > p {
  color: var(--lugano-soft-blue) !important;
}

#root .lgx-live-privacy .comparison-card [style*="color"],
#root .lgx-live-privacy .comparison-card :where(h3, h4, strong),
#root .lgx-live-privacy .comparison-card [style*="font-family"]:first-child {
  color: var(--lugano-ivory) !important;
}

#root #privacy .lgx-tier-card {
  background: var(--lugano-card) !important;
  color: var(--lugano-muted) !important;
}

#root #privacy .lgx-tier-card.is-restricted {
  border-color: var(--lugano-dark-rule-strong) !important;
  background: var(--lugano-midnight-raised) !important;
  color: var(--lugano-ivory) !important;
}

/* Architecture keeps code-like proof readable within the alternating cadence. */
#root #architecture > div {
  background: var(--lugano-dark-rule) !important;
}

#root #architecture > div > .lgx-live-heading {
  background: var(--lugano-section-bg) !important;
}

#root #architecture .prop-card {
  background: var(--lugano-card) !important;
}

#root #architecture .prop-num,
#root #architecture .hash-value,
#root #architecture .attestation-receipt [style*="color"] {
  color: var(--lugano-soft-blue) !important;
}

#root section#architecture:not(.lgx-hero-editorial):not(#lugano-proof-ledger) .prop-num {
  color: var(--lugano-soft-blue) !important;
}

#root #architecture .attestation-receipt {
  border-color: var(--lugano-dark-rule) !important;
  background: rgba(145, 184, 237, 0.07) !important;
  color: var(--lugano-muted) !important;
}

#root #architecture .receipt-line {
  color: var(--lugano-muted) !important;
}

/* Platform steps retain a clear reading path without the original blue glass. */
#root #platform .feature-card {
  border-left-color: var(--lugano-soft-blue) !important;
}

#root #platform .feature-card + div [style*="background"] {
  background: var(--lugano-soft-blue) !important;
}

#root #platform .feature-card + div path {
  stroke: var(--lugano-soft-blue) !important;
}

/* Engravings remain their approved, unfiltered ivory panels inside dark cards. */
#lugano-extra-sections #use-cases .lgx-card-media {
  border-bottom-color: var(--lugano-dark-rule) !important;
  background: var(--lugano-ivory) !important;
}

#lugano-extra-sections #use-cases .lgx-card-media img {
  filter: none !important;
}

#lugano-extra-sections .lgx-card-body {
  background: transparent !important;
}

#lugano-extra-sections .lgx-agent-list,
#lugano-extra-sections .lgx-model-card dl,
#lugano-extra-sections .lgx-model-card dl > div,
#lugano-extra-sections .lgx-model-note {
  border-color: var(--lugano-dark-rule) !important;
}

#lugano-extra-sections .lgx-model-card dd {
  color: var(--lugano-ivory) !important;
}

/* Closing CTA and the hash-routed application share the same midnight finish. */
#root #cta > .absolute {
  background: none !important;
}

#root #cta a[href*="apply"],
#root .apply-form button[type="submit"] {
  border-color: var(--lugano-ivory) !important;
  background: var(--lugano-ivory) !important;
  color: var(--lugano-midnight) !important;
}

#root #cta a[href*="apply"]:hover,
#root .apply-form button[type="submit"]:hover:not(:disabled) {
  border-color: var(--lugano-soft-blue) !important;
  background: transparent !important;
  color: var(--lugano-ivory) !important;
}

#root .apply-form form > div,
#root .apply-form > div {
  border-color: var(--lugano-dark-rule) !important;
  background: var(--lugano-card) !important;
}

#root .apply-form label {
  color: var(--lugano-soft-blue) !important;
}

#root .apply-form input,
#root .apply-form textarea,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) input,
#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) textarea {
  border-color: var(--lugano-dark-rule-strong) !important;
  background: var(--lugano-midnight-raised) !important;
  color: var(--lugano-ivory) !important;
}

#root .apply-form input::placeholder,
#root .apply-form textarea::placeholder {
  color: var(--lugano-muted) !important;
}

#root .apply-form input:focus,
#root .apply-form textarea:focus {
  border-color: var(--lugano-soft-blue) !important;
}

#root section:not(.lgx-hero-editorial):not(#lugano-proof-ledger) :where(a, button, input, textarea):focus-visible,
#lugano-extra-sections :where(a, button, input, textarea):focus-visible {
  outline-color: var(--lugano-soft-blue) !important;
}

/* Footer only follows the homepage/application theme; docs and policy footers retain their own shell. */
body:has(#root .lgx-hero-editorial) footer,
body:has(#root .apply-form) footer {
  border-top-color: var(--lugano-dark-rule) !important;
  background: var(--lugano-midnight) !important;
  color: var(--lugano-muted) !important;
}

body:has(#root .lgx-hero-editorial) footer button,
body:has(#root .apply-form) footer button {
  border-color: var(--lugano-dark-rule-strong) !important;
  color: var(--lugano-ivory) !important;
}

body:has(#root .lgx-hero-editorial) footer button:hover,
body:has(#root .apply-form) footer button:hover {
  border-color: var(--lugano-soft-blue) !important;
  background: rgba(145, 184, 237, 0.1) !important;
  color: var(--lugano-ivory) !important;
}

/*
 * Static policy pages share the home system through a link-only hook. Their
 * source content remains intact; these rules only replace the previous dark shell.
 */
html:has(.legal-shell),
html:has(.docs-shell) {
  background: var(--lugano-paper);
  color-scheme: light;
}

body:has(.legal-shell),
body:has(.docs-shell) {
  min-width: 0;
  background: var(--lugano-paper) !important;
  color: var(--lugano-copy);
}

body:has(.docs-shell)::before {
  display: none !important;
}

body:has(.legal-shell) .legal-shell {
  width: min(100% - clamp(2rem, 9vw, 8rem), 66rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

body:has(.legal-shell) .legal-nav,
body:has(.legal-shell) .legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.69rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

body:has(.legal-shell) .legal-nav {
  border-bottom: 1px solid var(--lugano-rule) !important;
}

body:has(.legal-shell) .legal-footer {
  justify-content: flex-start;
  gap: 1.35rem;
  border-top: 1px solid var(--lugano-rule) !important;
}

body:has(.legal-shell) :where(.legal-nav, .legal-footer) a {
  color: inherit !important;
  text-decoration: none;
}

body:has(.legal-shell) :where(.legal-nav, .legal-footer) a:hover {
  color: var(--lugano-engraving) !important;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

body:has(.legal-shell) .legal-card {
  margin: clamp(3.5rem, 9vw, 7.5rem) 0 !important;
  padding: clamp(2.25rem, 5vw, 5rem) 0 !important;
  border-top: 1px solid var(--lugano-cobalt) !important;
  border-bottom: 1px solid var(--lugano-rule) !important;
}

body:has(.legal-shell) .legal-kicker {
  margin: 0 0 1.2rem !important;
  color: var(--lugano-engraving) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.7rem !important;
  font-weight: 500;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
}

body:has(.legal-shell) h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(3.2rem, 7vw, 6.6rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em !important;
  line-height: 0.92 !important;
  text-wrap: balance;
}

body:has(.legal-shell) .legal-lede {
  max-width: 44rem;
  margin: 1.5rem 0 0 !important;
  color: var(--lugano-copy) !important;
  font-size: clamp(1rem, 1.35vw, 1.17rem) !important;
  font-weight: 400 !important;
  line-height: 1.72 !important;
}

body:has(.legal-shell) .legal-list {
  gap: 0 !important;
  margin: clamp(2rem, 5vw, 3.6rem) 0 0 !important;
}

body:has(.legal-shell) .legal-list li {
  padding: 1.25rem 0 1.25rem 1.45rem !important;
  border-top: 1px solid var(--lugano-rule) !important;
  color: var(--lugano-copy) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.68 !important;
}

body:has(.legal-shell) .legal-list li::marker {
  color: var(--lugano-engraving);
}

body:has(.legal-shell) .legal-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-serif) !important;
  font-size: 1.35rem;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
}

body:has(.legal-shell) .legal-note,
body:has(.legal-shell) .legal-note a {
  color: var(--lugano-engraving) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

/* Documentation keeps its density, but moves from blue-black glass to paper and ink. */
body:has(.docs-shell) .site-header {
  border-bottom: 1px solid var(--lugano-rule) !important;
  background: rgba(252, 242, 223, 0.96) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px) !important;
}

body:has(.docs-shell) .shell {
  width: min(80rem, calc(100% - clamp(2rem, 8vw, 8rem))) !important;
}

body:has(.docs-shell) .brand span {
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-serif) !important;
  font-style: normal !important;
}

body:has(.docs-shell) .nav-links a {
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  color: var(--lugano-cobalt) !important;
  font-size: 0.76rem !important;
}

body:has(.docs-shell) .nav-links a:hover {
  border-color: var(--lugano-rule) !important;
  background: var(--lugano-paper-bright) !important;
  color: var(--lugano-ink) !important;
}

body:has(.docs-shell) .docs-shell {
  gap: clamp(1.5rem, 3vw, 3rem) !important;
  padding-top: clamp(2rem, 4vw, 3.25rem) !important;
  padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

body:has(.docs-shell) .docs-main {
  padding: clamp(1.5rem, 3vw, 3rem) !important;
  border: 1px solid var(--lugano-rule) !important;
  border-radius: 0 !important;
  background: var(--lugano-paper) !important;
  box-shadow: none !important;
}

body:has(.docs-shell) .sidebar {
  border: 1px solid rgba(252, 242, 223, 0.24) !important;
  border-radius: 5px !important;
  background: var(--lugano-ink) !important;
  box-shadow: none !important;
  color: rgba(252, 242, 223, 0.78) !important;
}

body:has(.docs-shell) .sidebar :where(h2, h3, strong) {
  color: var(--lugano-paper) !important;
  font-family: var(--lugano-serif) !important;
  font-weight: 400 !important;
}

body:has(.docs-shell) .sidebar h2 {
  color: #a8c2e3 !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.67rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.35 !important;
  text-transform: uppercase;
}

body:has(.docs-shell) .sidebar-group {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(252, 242, 223, 0.18);
}

body:has(.docs-shell) .sidebar-intro p:not(.kicker) {
  color: rgba(252, 242, 223, 0.76) !important;
}

body:has(.docs-shell) .sidebar :where(p, li, a) {
  color: rgba(252, 242, 223, 0.75) !important;
}

body:has(.docs-shell) .sidebar .kicker,
body:has(.docs-shell) .sidebar .meta {
  color: #a8c2e3 !important;
  font-family: var(--lugano-mono) !important;
}

body:has(.docs-shell) .sidebar a:hover {
  color: var(--lugano-paper) !important;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

body:has(.docs-shell) .docs-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--lugano-rule);
}

body:has(.docs-shell) .docs-header :where(h1, h2) {
  max-width: 13ch;
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(3rem, 6vw, 5.75rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em !important;
  line-height: 0.94 !important;
  text-wrap: balance;
}

body:has(.docs-shell) .docs-main :where(.kicker, .meta) {
  color: var(--lugano-engraving) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.69rem !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
}

body:has(.docs-shell) .docs-main :where(p, li, dd, .model-fit, .model-signal span, .model-name span) {
  color: var(--lugano-copy) !important;
  font-weight: 400 !important;
  line-height: 1.62 !important;
}

body:has(.docs-shell) .docs-main :where(h2, h3, dt, strong, .model-name strong, .model-signal strong) {
  color: var(--lugano-cobalt) !important;
}

body:has(.docs-shell) .docs-main :where(code, kbd, pre) {
  border: 1px solid var(--lugano-rule) !important;
  border-radius: 3px !important;
  background: var(--lugano-paper-deep) !important;
  box-shadow: none !important;
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-mono) !important;
}

body:has(.docs-shell) .docs-main pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  line-height: 1.6;
}

body:has(.docs-shell) .docs-main :where(.index-note span, .model-rank, .model-tag, .model-sources a) {
  border-color: var(--lugano-rule) !important;
  border-radius: 3px !important;
  background: var(--lugano-paper-deep) !important;
  box-shadow: none !important;
  color: var(--lugano-engraving) !important;
}

body:has(.docs-shell) .docs-main .model-rank {
  font-family: var(--lugano-mono) !important;
}

body:has(.docs-shell) .docs-section {
  margin: 0 !important;
  padding: clamp(2.4rem, 5vw, 4.5rem) 0 !important;
  border-top: 1px solid var(--lugano-rule) !important;
  background: transparent !important;
}

body:has(.docs-shell) .docs-section h2 {
  margin: 0 0 1.15rem !important;
  font-family: var(--lugano-serif) !important;
  font-size: clamp(2.2rem, 4vw, 3.65rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.04em !important;
  line-height: 0.98 !important;
}

body:has(.docs-shell) :where(.process-list li, .path-row, .definition-table > div, .glossary-list > div, .guide-group, .guide-section, .callout, .model-stat) {
  border-color: var(--lugano-rule) !important;
  border-radius: 4px !important;
  background: var(--lugano-paper-bright) !important;
  box-shadow: none !important;
}

body:has(.docs-shell) .process-list strong::before,
body:has(.docs-shell) .model-rank {
  color: var(--lugano-engraving) !important;
}

body:has(.docs-shell) .path-row a,
body:has(.docs-shell) .guide-group a,
body:has(.docs-shell) .guide-section a,
body:has(.docs-shell) .model-sources a {
  color: var(--lugano-engraving) !important;
  text-decoration: underline;
  text-decoration-color: rgba(37, 82, 160, 0.42);
  text-underline-offset: 0.2em;
}

body:has(.docs-shell) .path-row a:hover,
body:has(.docs-shell) .guide-group a:hover,
body:has(.docs-shell) .guide-section a:hover,
body:has(.docs-shell) .model-sources a:hover {
  color: var(--lugano-ink) !important;
}

body:has(.docs-shell) .atlas,
body:has(.docs-shell) .model-table {
  border: 1px solid var(--lugano-rule) !important;
  border-radius: 4px !important;
  background: var(--lugano-paper-bright) !important;
  box-shadow: none !important;
}

body:has(.docs-shell) .atlas-head,
body:has(.docs-shell) .model-head {
  border-color: var(--lugano-rule-strong) !important;
  background: var(--lugano-paper-deep) !important;
  color: var(--lugano-cobalt) !important;
  font-family: var(--lugano-mono) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase;
}

body:has(.docs-shell) .atlas-row,
body:has(.docs-shell) .model-row {
  border-color: var(--lugano-rule) !important;
}

body:has(.docs-shell) .model-tag {
  border: 1px solid var(--lugano-rule) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: var(--lugano-engraving) !important;
  font-family: var(--lugano-mono) !important;
}

body:has(.docs-shell) .model-sources {
  border-color: var(--lugano-rule) !important;
  background: var(--lugano-paper-deep) !important;
  box-shadow: none !important;
}

body:has(.docs-shell) .callout.risk {
  border-color: rgba(164, 110, 38, 0.46) !important;
}

body:has(.docs-shell) .footer {
  padding: 2.4rem 0 !important;
  border-top: 1px solid rgba(252, 242, 223, 0.24) !important;
  background: var(--lugano-ink) !important;
}

body:has(.docs-shell) .footer :where(a, p) {
  color: rgba(252, 242, 223, 0.76) !important;
}

body:has(.legal-shell) :focus-visible,
body:has(.docs-shell) :focus-visible {
  outline: 2px solid var(--lugano-engraving) !important;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body:has(.legal-shell) .legal-shell,
  body:has(.docs-shell) .shell {
    width: min(100% - 2rem, 80rem) !important;
  }

  body:has(.legal-shell) h1,
  body:has(.docs-shell) .docs-header :where(h1, h2) {
    font-size: clamp(2.7rem, 13vw, 4.3rem) !important;
  }

  body:has(.legal-shell) .legal-nav,
  body:has(.legal-shell) .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body:has(.docs-shell) .sidebar {
    border-radius: 4px !important;
  }
}

/* Model names link directly to the verified release cards. */
#lugano-extra-sections .lgx-model-source {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 160ms ease;
}
#lugano-extra-sections .lgx-model-source:hover,
#lugano-extra-sections .lgx-model-source:focus-visible {
  text-decoration-color: currentColor;
}
#lugano-extra-sections .lgx-model-source:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
