@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --page-accent-rgb-base: 24 91 161;
  --page-accent-rgb: var(--page-accent-rgb-base);
  --page-accent: rgb(var(--page-accent-rgb));
  --page-accent-soft: rgba(var(--page-accent-rgb), 0.14);
  --bg: #f8fbff;
  --bg-strong: #edf3fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --surface-dark: rgba(9, 17, 31, 0.92);
  --surface-dark-strong: rgba(12, 22, 40, 0.96);
  --ink: #101a2d;
  --muted: #3f536f;
  --muted-strong: #576f91;
  --line: rgba(15, 31, 55, 0.12);
  --line-strong: rgba(15, 31, 55, 0.22);
  --gold: #205da8;
  --gold-soft: rgba(32, 93, 168, 0.16);
  --emerald: #0b7380;
  --emerald-soft: rgba(11, 115, 128, 0.15);
  --navy: #0e192d;
  --navy-strong: #08101d;
  --cream: #fbfcff;
  --shadow: 0 18px 52px rgba(13, 28, 49, 0.11);
  --shadow-soft: 0 10px 26px rgba(13, 28, 49, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-scale: 1;
  --focus-ring: rgba(var(--page-accent-rgb), 0.4);
  --font-brand-hybrid: "Plus Jakarta Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-brand-name: "Sora", "Plus Jakarta Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-ui: "Plus Jakarta Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --site-header-height: 86px;
  --btn-start: #1f4d9a;
  --btn-mid: #2f6fca;
  --btn-end: #5b94dd;
  --btn-shadow-rgb: 33 87 172;
  --signal-a: #265dba;
  --signal-b: #2f85c7;
  --signal-c: #1ea68e;
  --liquid-cyan: rgba(112, 208, 255, 0.42);
  --liquid-mint: rgba(118, 239, 205, 0.38);
  --liquid-amber: rgba(251, 199, 132, 0.32);
  --liquid-violet: rgba(189, 176, 255, 0.3);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.001em;
  background:
    radial-gradient(circle at 7% 0%, rgba(96, 142, 200, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(68, 131, 149, 0.12), transparent 25rem),
    radial-gradient(circle at 50% 100%, rgba(60, 94, 144, 0.08), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fd 100%);
}

body:not([data-page="home"]) {
  background:
    radial-gradient(circle at 6% 2%, rgba(var(--page-accent-rgb), 0.18), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(var(--page-accent-rgb), 0.1), transparent 24rem),
    linear-gradient(180deg, #fbfdff 0%, #eef5fc 100%);
}

html.pref-large-text {
  --font-scale: 1.08;
}

html.pref-high-contrast {
  --page-accent-rgb: 16 74 178;
  --bg: #ffffff;
  --bg-strong: #f1f4f8;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-strong: rgba(255, 255, 255, 1);
  --ink: #080d16;
  --muted: #1d2738;
  --muted-strong: #2a3850;
  --line: rgba(8, 14, 26, 0.28);
  --line-strong: rgba(8, 14, 26, 0.46);
  --gold: #1153ba;
  --gold-soft: rgba(17, 83, 186, 0.22);
  --emerald: #0b6f8d;
  --emerald-soft: rgba(11, 111, 141, 0.2);
  --shadow: 0 16px 44px rgba(8, 14, 26, 0.16);
  --shadow-soft: 0 10px 24px rgba(8, 14, 26, 0.12);
}

html.pref-high-contrast body {
  background: linear-gradient(180deg, #ffffff 0%, #f1f4f8 100%);
}

html.pref-high-contrast .site-header {
  background: rgba(8, 14, 26, 0.93);
}

html[data-colorblind-mode="protanopia"] {
  --page-accent-rgb: 22 101 166;
  --gold: #1665a6;
  --gold-soft: rgba(22, 101, 166, 0.2);
  --emerald: #007f90;
  --emerald-soft: rgba(0, 127, 144, 0.18);
  --focus-ring: rgba(22, 101, 166, 0.42);
  --btn-start: #1e589f;
  --btn-mid: #2f78c0;
  --btn-end: #52a5d0;
  --btn-shadow-rgb: 30 88 159;
  --signal-a: #1e589f;
  --signal-b: #2f78c0;
  --signal-c: #13929a;
}

html[data-colorblind-mode="deuteranopia"] {
  --page-accent-rgb: 18 96 173;
  --gold: #2368ad;
  --gold-soft: rgba(35, 104, 173, 0.2);
  --emerald: #0f7b98;
  --emerald-soft: rgba(15, 123, 152, 0.18);
  --focus-ring: rgba(18, 96, 173, 0.42);
  --btn-start: #1f55a9;
  --btn-mid: #2c78cb;
  --btn-end: #56a0d7;
  --btn-shadow-rgb: 31 85 169;
  --signal-a: #1f55a9;
  --signal-b: #2c78cb;
  --signal-c: #1f9e94;
}

html[data-colorblind-mode="tritanopia"] {
  --page-accent-rgb: 0 103 124;
  --gold: #005f73;
  --gold-soft: rgba(0, 95, 115, 0.22);
  --emerald: #a45b00;
  --emerald-soft: rgba(164, 91, 0, 0.2);
  --focus-ring: rgba(0, 103, 124, 0.44);
  --btn-start: #006a7f;
  --btn-mid: #007f91;
  --btn-end: #2f9f9a;
  --btn-shadow-rgb: 0 106 127;
  --signal-a: #006a7f;
  --signal-b: #007f91;
  --signal-c: #b86d06;
}

html.pref-reduce-motion {
  scroll-behavior: auto;
}

html.pref-reduce-motion *,
html.pref-reduce-motion *::before,
html.pref-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 36%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.25), transparent 18rem);
  opacity: 0.7;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:where(button, input, textarea, select, a):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header {
  --header-compact-progress: 0;
  --header-hide-progress: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  transform: translateY(calc((var(--header-hide-progress) * -100%) - (0.7rem * var(--header-hide-progress))));
  opacity: calc(1 - var(--header-hide-progress));
  transform-origin: top center;
  will-change: transform, opacity;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-compact {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(16, 30, 49, 0.1);
  box-shadow: 0 10px 28px rgba(17, 36, 63, 0.08);
}

.site-header.is-hidden {
  pointer-events: none;
}

.site-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.78rem;
  padding: calc(0.82rem - (0.3rem * var(--header-compact-progress)) - (0.18rem * var(--header-hide-progress))) 0;
  transition: padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-emblem {
  --brand-emblem-size: calc(2.56rem - (0.3rem * var(--header-compact-progress)) - (0.24rem * var(--header-hide-progress)));
  width: var(--brand-emblem-size);
  height: var(--brand-emblem-size);
  min-width: var(--brand-emblem-size);
  min-height: var(--brand-emblem-size);
  flex: 0 0 var(--brand-emblem-size);
  aspect-ratio: 1 / 1;
  border-radius: calc(0.9rem - (0.14rem * var(--header-compact-progress)) - (0.08rem * var(--header-hide-progress)));
  background-color: #0b1830;
  background-image: url("/assets/brand/logo");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: auto;
  border: 1px solid rgba(156, 184, 224, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(5, 14, 29, 0.44),
    0 4px 10px rgba(8, 19, 38, 0.22);
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.brand-meta {
  display: grid;
  gap: 0.14rem;
}

.brand-name {
  font-family: var(--font-brand-name);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  font-feature-settings: "ss01" 1, "ss03" 1, "kern" 1;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-tag {
  font-size: 0.74rem;
  color: var(--muted);
  opacity: calc(1 - (0.48 * var(--header-compact-progress)) - (0.4 * var(--header-hide-progress)));
  transform: translateY(calc(-3px * var(--header-compact-progress)));
  transition: opacity 220ms ease, transform 220ms ease;
  max-width: min(60ch, 54vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
}

.nav-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.nav-products-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-products-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.nav-products-count {
  min-width: 1.32rem;
  height: 1.32rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.36);
  background: rgba(var(--page-accent-rgb), 0.08);
  color: rgba(var(--page-accent-rgb), 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-products-caret {
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.nav-products-menu.is-open .nav-products-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-radius: 999px;
  min-height: 2.45rem;
  padding: 0.52rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nav-menu-toggle:hover {
  background: var(--gold-soft);
  border-color: rgba(var(--page-accent-rgb), 0.36);
}

.nav-menu-toggle-icon {
  display: inline-grid;
  gap: 0.16rem;
  margin-left: 0.44rem;
}

.nav-menu-toggle-icon span {
  display: block;
  width: 0.92rem;
  height: 0.12rem;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-links a,
.nav-products-toggle {
  padding: calc(0.52rem - (0.05rem * var(--header-compact-progress))) calc(0.74rem - (0.07rem * var(--header-compact-progress)));
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--font-ui);
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-links a.is-active,
.nav-links a:hover,
.nav-products-toggle:hover,
.nav-products-toggle.is-active,
.nav-products-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: var(--gold-soft);
  border-color: rgba(var(--page-accent-rgb), 0.3);
  box-shadow: inset 0 0 0 1px rgba(var(--page-accent-rgb), 0.22);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  font-weight: 700;
}

.nav-products-panel {
  position: absolute;
  top: calc(100% + 0.62rem);
  right: 0;
  width: min(33rem, calc(100vw - 2rem));
  padding: 0.72rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 30, 49, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(16, 35, 62, 0.16);
  display: grid;
  gap: 0.6rem;
}

.nav-products-panel[hidden] {
  display: none !important;
}

.nav-products-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.15rem 0.15rem 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.nav-products-summary strong {
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.nav-products-sections {
  display: grid;
  gap: 0.62rem;
}

.nav-products-section {
  border: 1px solid rgba(16, 30, 49, 0.1);
  border-radius: 12px;
  background: rgba(250, 253, 255, 0.86);
  padding: 0.48rem;
}

.nav-products-section-title {
  margin: 0 0 0.4rem;
  padding: 0 0.2rem;
  color: var(--muted-strong);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.nav-products-grid-group {
  gap: 0.4rem;
}

.nav-products-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
  min-height: 2.45rem;
  width: 100%;
  padding: 0.58rem 0.72rem;
  border-radius: 11px;
  border: 1px solid rgba(16, 30, 49, 0.12);
  background: rgba(247, 251, 255, 0.84);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-products-panel a.nav-product-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  column-gap: 0;
}

.nav-products-panel a.nav-page-link {
  justify-content: center;
  text-transform: none;
  font-weight: 650;
}

.nav-links a.nav-product-link {
  justify-content: space-between;
}

.nav-product-link-label {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.nav-product-link-icon {
  position: relative;
  --product-logo-size: 1.28rem;
  width: var(--product-logo-size);
  height: var(--product-logo-size);
  flex: 0 0 var(--product-logo-size);
  border-radius: 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background-image:
    var(--product-logo-url),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(11, 28, 55, 0.66));
  background-size: cover, 100% 100%;
  background-position: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(10, 24, 49, 0.4),
    0 3px 7px rgba(8, 20, 38, 0.24);
  margin-left: auto;
  justify-self: end;
}

.nav-product-link-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.3), transparent 55%);
  pointer-events: none;
}

.nav-products-panel a:hover,
.nav-products-panel a.is-active {
  background: rgba(var(--page-accent-rgb), 0.1);
  border-color: rgba(var(--page-accent-rgb), 0.36);
  box-shadow: inset 0 0 0 1px rgba(var(--page-accent-rgb), 0.22);
  transform: translateY(-1px);
}

.nav-utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border-radius: 999px;
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.nav-utility-button:hover {
  background: var(--gold-soft);
  border-color: rgba(var(--page-accent-rgb), 0.36);
}

.nav-auth-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth-state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(var(--page-accent-rgb), 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-auth-state-chip.is-authenticated {
  border-color: rgba(31, 135, 97, 0.42);
  color: #1f6c50;
  background: rgba(235, 255, 245, 0.92);
}

.nav-auth-button {
  min-width: 2.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-auth-button-label {
  white-space: nowrap;
}

.nav-auth-signin {
  background: linear-gradient(135deg, rgba(var(--page-accent-rgb), 0.9), rgba(42, 113, 223, 0.7));
  color: #f7fbff;
  border-color: rgba(var(--page-accent-rgb), 0.7);
  box-shadow: 0 10px 24px rgba(var(--page-accent-rgb), 0.22);
}

.nav-auth-signin:hover {
  filter: brightness(1.06);
  border-color: rgba(var(--page-accent-rgb), 0.82);
}

.nav-auth-signin svg,
.nav-auth-power svg {
  width: 0.94rem;
  height: 0.94rem;
  fill: currentColor;
}

.nav-auth-power {
  min-width: auto;
  border-color: rgba(var(--page-accent-rgb), 0.38);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.nav-auth-power:hover {
  border-color: rgba(var(--page-accent-rgb), 0.62);
  background: rgba(255, 255, 255, 1);
}

.nav-auth-power.is-on {
  border-color: rgba(31, 135, 97, 0.6);
  color: #155e44;
  background: linear-gradient(130deg, rgba(230, 255, 242, 0.96), rgba(214, 247, 231, 0.94));
}

.nav-auth-power:disabled {
  opacity: 0.6;
  cursor: default;
}

.nav-auth-power svg path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-auth-logout {
  border-color: rgba(11, 27, 52, 0.22);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.92));
  color: #0f1d34;
  box-shadow: 0 10px 24px rgba(17, 35, 62, 0.12);
}

.nav-auth-logout:hover {
  border-color: rgba(var(--page-accent-rgb), 0.46);
  box-shadow: 0 14px 28px rgba(var(--page-accent-rgb), 0.16);
}

.nav-auth-logout svg {
  width: 1rem;
  height: 1rem;
}

.nav-auth-logout svg path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-auth-logout:disabled {
  opacity: 0.64;
  cursor: default;
  box-shadow: none;
}

a.is-auth-locked {
  position: relative;
}

a.is-auth-locked::after {
  content: "•";
  margin-left: 0.38rem;
  color: rgba(var(--page-accent-rgb), 0.8);
}

.preferences-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(8, 14, 26, 0.48);
}

.preferences-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 45;
  width: min(28rem, calc(100vw - 1rem));
  height: 100vh;
  overflow: auto;
  padding: 1.25rem 1rem 1.8rem;
  background: #f8fbff;
  border-left: 1px solid rgba(8, 14, 26, 0.14);
  box-shadow: -20px 0 48px rgba(8, 14, 26, 0.22);
}

.auth-panel {
  width: min(24rem, calc(100vw - 1rem));
}

.auth-layer-stack {
  display: grid;
  gap: 0.48rem;
  margin-top: 0.45rem;
}

.auth-layer-item {
  border: 1px solid var(--line);
  border-radius: 0.84rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.58rem 0.66rem;
  display: grid;
  gap: 0.22rem;
}

.auth-layer-item strong {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--page-accent-rgb), 0.88);
}

.auth-layer-item span {
  font-size: 0.86rem;
  color: var(--muted-strong);
}

.auth-layer-item--secure {
  border-color: rgba(var(--page-accent-rgb), 0.34);
}

.auth-form {
  display: grid;
  gap: 0.88rem;
  margin-top: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.auth-form input {
  border-radius: 0.84rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.66rem 0.76rem;
  font: inherit;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.runtime-gate {
  margin-top: 1rem;
}

.runtime-gate-panel {
  --runtime-gate-tone: var(--page-accent-rgb);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--runtime-gate-tone), 0.24);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(var(--runtime-gate-tone), 0.09) 54%,
    rgba(235, 244, 255, 0.94) 100%
  );
  box-shadow: 0 10px 24px rgba(12, 28, 52, 0.08);
}

.runtime-gate-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--runtime-gate-tone), 0.95), rgba(var(--runtime-gate-tone), 0.28));
}

.runtime-gate-eyebrow {
  margin-bottom: 0.42rem;
}

.runtime-gate-title {
  max-width: 26ch;
}

.runtime-gate-copy {
  max-width: 64ch;
  color: rgba(34, 58, 89, 0.9);
}

.runtime-gate-panel .hero-actions {
  margin-top: 0.9rem;
}

.runtime-gate-panel .runtime-gate-action {
  min-width: 8.6rem;
}

body[data-page="luxlibs"] .runtime-gate-panel {
  --runtime-gate-tone: 20 110 149;
}

body[data-page="luxforge"] .runtime-gate-panel {
  --runtime-gate-tone: 38 111 178;
}

body[data-page="luxscore"] .runtime-gate-panel {
  --runtime-gate-tone: 66 85 214;
}

body[data-page="luxldr"] .runtime-gate-panel {
  --runtime-gate-tone: 54 99 191;
}

body[data-page="luxq"] .runtime-gate-panel {
  --runtime-gate-tone: 42 89 174;
}

body[data-page="luxsight"] .runtime-gate-panel {
  --runtime-gate-tone: 21 118 186;
}

.preferences-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.preferences-panel-header h2 {
  font-size: 1.42rem;
  line-height: 1.25;
}

.preferences-close {
  border: 1px solid rgba(8, 14, 26, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #111925;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.78rem;
  cursor: pointer;
}

.preferences-note {
  margin: 0.6rem 0 0;
  color: #3e4e64;
}

.preferences-status {
  margin: 0.85rem 0 0;
  border: 1px solid rgba(8, 14, 26, 0.12);
  background: #ffffff;
  border-radius: 14px;
  padding: 0.72rem 0.8rem;
  color: #243149;
  font-size: 0.86rem;
}

.signout-backdrop {
  z-index: 46;
}

.signout-panel {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 47;
  width: min(30rem, calc(100vw - 1rem));
  padding: 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(8, 14, 26, 0.16);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.99), rgba(242, 248, 255, 0.95));
  box-shadow: 0 26px 64px rgba(11, 22, 40, 0.28);
}

.signout-header {
  align-items: center;
}

.signout-countdown {
  margin: 0.56rem 0 0;
  color: #334c6d;
  font-size: 0.9rem;
}

.signout-countdown strong {
  color: rgba(var(--page-accent-rgb), 0.96);
}

.signout-actions {
  justify-content: flex-end;
  margin-top: 0.95rem;
}

.signout-actions .ghost-btn,
.signout-actions .btn {
  min-height: 2.5rem;
}

.signout-confirm-button {
  background: linear-gradient(140deg, rgba(var(--page-accent-rgb), 0.94), rgba(69, 131, 222, 0.86));
  border-color: rgba(var(--page-accent-rgb), 0.7);
  color: #f8fbff;
}

.signout-confirm-button:hover {
  filter: brightness(1.05);
}

.preferences-group {
  margin-top: 0.95rem;
  padding: 0.88rem;
  border-radius: 16px;
  border: 1px solid rgba(8, 14, 26, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.preferences-consent-group {
  margin-top: 0.8rem;
}

.preferences-group h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.preferences-group > p {
  margin: 0.36rem 0 0.8rem;
  color: #3f5067;
  font-size: 0.9rem;
}

.preferences-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(8, 14, 26, 0.08);
}

.preferences-switch-row:first-of-type {
  border-top: none;
}

.preferences-switch-text strong {
  display: block;
  font-size: 0.93rem;
  color: #131b2a;
}

.preferences-switch-text span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.83rem;
  color: #465972;
}

.preferences-switch {
  position: relative;
  display: inline-flex;
  width: 2.7rem;
  height: 1.58rem;
}

.preferences-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.preferences-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c6ced9;
  transition: background 160ms ease;
}

.preferences-switch-slider::before {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 1.34rem;
  height: 1.34rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(10, 15, 25, 0.24);
  transition: transform 160ms ease;
}

.preferences-switch input:checked + .preferences-switch-slider {
  background: var(--page-accent);
}

.preferences-switch input:checked + .preferences-switch-slider::before {
  transform: translateX(1.11rem);
}

.preferences-switch input:disabled + .preferences-switch-slider {
  background: #8e97a8;
}

.preferences-radio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.preferences-radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(8, 14, 26, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  background: #ffffff;
  font-size: 0.85rem;
  color: #1d293d;
}

.preferences-radio-chip input {
  width: auto;
  margin: 0;
}

.preferences-select-row {
  display: grid;
  gap: 0.42rem;
}

.preferences-select-row span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d293d;
}

.preferences-select {
  width: 100%;
  min-height: 2.45rem;
  border-radius: 12px;
  border: 1px solid rgba(8, 14, 26, 0.16);
  background: #ffffff;
  color: #172238;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.72rem;
}

.preferences-select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: rgba(var(--page-accent-rgb), 0.42);
}

.preferences-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page {
  padding: 1.55rem 0 4.5rem;
}

.page > .section {
  animation: section-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page > .section:nth-of-type(2) {
  animation-delay: 60ms;
}

.page > .section:nth-of-type(3) {
  animation-delay: 100ms;
}

.page > .section:nth-of-type(4) {
  animation-delay: 140ms;
}

.page > .section:nth-of-type(5) {
  animation-delay: 180ms;
}

.page > .section:nth-of-type(6) {
  animation-delay: 220ms;
}

.section {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.12rem 0;
}

body:not([data-page="home"]) .section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid rgba(129, 175, 241, 0.24);
  background:
    linear-gradient(172deg, rgba(255, 255, 255, 0.86), rgba(242, 250, 255, 0.66));
  backdrop-filter: blur(13px) saturate(132%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 20px 44px rgba(13, 35, 66, 0.1),
    0 0 24px rgba(122, 186, 250, 0.1),
    0 0 28px rgba(122, 240, 206, 0.08);
}

body:not([data-page="home"]) .section::before,
body:not([data-page="home"]) .section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
}

body:not([data-page="home"]) .section::before {
  background:
    radial-gradient(92% 58% at 12% 6%, rgba(136, 191, 255, 0.22), transparent 74%),
    radial-gradient(88% 54% at 90% 12%, rgba(117, 239, 210, 0.18), transparent 76%),
    linear-gradient(
      126deg,
      rgba(130, 180, 249, 0.14) 0%,
      rgba(106, 211, 230, 0.08) 34%,
      rgba(252, 255, 255, 0.06) 58%,
      rgba(135, 221, 203, 0.1) 82%,
      rgba(122, 170, 243, 0.14) 100%
    );
  background-size: 160% 130%, 165% 130%, 240% 180%;
  background-position: 10% 22%, 90% 18%, 0% 52%;
  opacity: 0.48;
  mix-blend-mode: screen;
  animation: home-aurora-section-flow 26s ease-in-out infinite alternate;
}

body:not([data-page="home"]) .section::after {
  inset: 0;
  padding: 1.2px;
  border-radius: inherit;
  background:
    linear-gradient(
      124deg,
      rgba(132, 188, 255, 0.56) 0%,
      rgba(121, 245, 218, 0.44) 28%,
      rgba(244, 206, 149, 0.38) 52%,
      rgba(190, 171, 255, 0.34) 76%,
      rgba(132, 188, 255, 0.52) 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0 16px,
      rgba(255, 255, 255, 0.03) 16px 24px
    );
  background-size: 240% 220%, 100% 100%;
  background-position: 0% 50%, 0 0;
  opacity: 0.24;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: home-aurora-border-flow 20s linear infinite;
}

body:not([data-page="home"]) .section > * {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-panel,
.card,
.module-card,
.pattern-card,
.status-card,
.score-card,
.form-card,
.cta-band,
.detail-panel,
.stack-card,
.stack-meta-card,
.contact-mode {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hero-panel::before,
.card::before,
.module-card::before,
.pattern-card::before,
.status-card::before,
.score-card::before,
.form-card::before,
.cta-band::before,
.detail-panel::before,
.stack-card::before,
.stack-meta-card::before,
.contact-mode::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--page-accent-rgb), 0.62), rgba(255, 255, 255, 0));
}

@media (hover: hover) and (pointer: fine) {
  .hero-panel:hover,
  .card:hover,
  .module-card:hover,
  .pattern-card:hover,
  .status-card:hover,
  .score-card:hover,
  .form-card:hover,
  .cta-band:hover,
  .detail-panel:hover,
  .stack-card:hover,
  .stack-meta-card:hover,
  .contact-mode:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--page-accent-rgb), 0.34);
    box-shadow: 0 22px 48px rgba(var(--page-accent-rgb), 0.12), var(--shadow-soft);
  }
}

.hero-copy {
  padding: 2.15rem;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(var(--page-accent-rgb), 0.24), transparent 24rem),
    radial-gradient(circle at bottom left, rgba(var(--page-accent-rgb), 0.14), transparent 21rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(242, 248, 255, 0.94));
}

.hero-copy .eyebrow,
.cta-band .eyebrow {
  color: var(--gold);
}

.hero-copy h1,
.hero-copy h2,
.cta-band h2 {
  color: var(--ink);
  text-wrap: balance;
}

.hero-copy .lede,
.cta-band .lede,
.hero-copy p:not(.eyebrow) {
  color: rgba(49, 73, 108, 0.98);
}

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

.proof-badge {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--page-accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.proof-badge span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.proof-badge strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.22;
  text-transform: uppercase;
}

.luxlibs-typing-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem 0.4rem;
}

.luxlibs-typing-token {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.08rem 0.44rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.26);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.luxlibs-typing-output,
.luxlibs-typing-word {
  display: inline-block;
  min-width: clamp(18ch, 32vw, 28ch);
  max-width: min(62vw, 74ch);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0.01em;
}

.luxlibs-typing-output {
  font-weight: 700;
}

body[data-page="home"] .luxlibs-typing-token-home-compact {
  padding: 0.06rem 0.4rem;
}

body[data-page="home"] .luxlibs-typing-token-home-compact .luxlibs-typing-output {
  min-width: 10ch;
  max-width: 22ch;
  font-size: 0.78rem;
}

.luxlibs-live-card p {
  margin: 0;
}

.luxlibs-live-card #luxlibs-live-narrative {
  font-size: 1.04rem;
  line-height: 1.58;
  text-transform: none;
}

.luxlibs-typing-cursor {
  display: inline-block;
  width: 0.095rem;
  height: 0.9rem;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.92;
  animation: luxlibsTypingBlink 1s steps(1, end) infinite;
}

@keyframes luxlibsTypingBlink {
  0%, 48% {
    opacity: 0.92;
  }
  49%, 100% {
    opacity: 0.16;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-brand-hybrid);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  max-width: 11ch;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 2.4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  letter-spacing: -0.01em;
}

.lede {
  margin: 1rem 0 0;
  color: rgba(50, 73, 107, 0.98);
  font-size: 1.05rem;
  line-height: 1.74;
  max-width: 62ch;
}

.hero-actions,
.button-row,
.tag-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.86rem 1.18rem;
  font-size: 0.93rem;
  font-family: var(--font-ui);
  font-weight: 640;
  letter-spacing: 0.008em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn {
  color: #f7fbff;
  background: linear-gradient(135deg, var(--btn-start), var(--btn-mid) 58%, var(--btn-end) 100%);
  box-shadow: 0 16px 34px rgba(var(--btn-shadow-rgb), 0.29);
}

.ghost-btn {
  color: #1a2739;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 31, 49, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero-copy .ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(20, 31, 49, 0.14);
}

.hero-copy .filter-chip {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 31, 49, 0.14);
}

.hero-copy .filter-chip.is-active {
  background: rgba(var(--page-accent-rgb), 0.15);
  border-color: rgba(var(--page-accent-rgb), 0.32);
}

.btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  padding: 1.65rem;
  display: grid;
  gap: 0.95rem;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(var(--page-accent-rgb), 0.2), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
}

.hero-metrics h2,
.cta-band h2 {
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
}

.metric-grid,
.info-grid,
.status-grid,
.stack-card-grid,
.pattern-grid,
.score-grid,
.contact-grid {
  display: grid;
  gap: 0.95rem;
}

.metric-grid,
.status-grid,
.score-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cinema-rail {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.18rem 0.12rem 0.5rem;
  touch-action: pan-x pinch-zoom;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--page-accent-rgb), 0.48) rgba(15, 31, 55, 0.08);
}

.cinema-rail > * {
  flex: 0 0 min(21rem, 82vw);
  scroll-snap-align: start;
}

.cinema-rail.cinema-rail-wide > * {
  flex-basis: min(25rem, 88vw);
}

.cinema-rail > .stack-card-link {
  display: block;
}

.cinema-rail.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.cinema-rail::-webkit-scrollbar {
  height: 0.5rem;
}

.cinema-rail::-webkit-scrollbar-track {
  background: rgba(15, 31, 55, 0.08);
  border-radius: 999px;
}

.cinema-rail::-webkit-scrollbar-thumb {
  background: rgba(var(--page-accent-rgb), 0.52);
  border-radius: 999px;
}

@media (pointer: coarse) {
  .cinema-rail {
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .cinema-rail::-webkit-scrollbar {
    display: none;
  }

  .cinema-rail > * {
    scroll-snap-stop: normal;
  }
}

.metric-tile {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 31, 49, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.status-card,
.score-card,
.contact-mode {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(239, 247, 255, 0.84));
}

.metric-tile span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-tile strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.65rem;
  color: var(--ink);
}

.status-card span,
.score-card span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-card strong,
.score-card strong {
  display: block;
  margin-top: 0.42rem;
  font-size: 1.28rem;
}

.metric-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.card,
.module-card,
.stack-card,
.pattern-card,
.form-card,
.detail-panel,
.stack-meta-card,
.cta-band {
  padding: 1.28rem;
  background:
    radial-gradient(circle at top right, rgba(var(--page-accent-rgb), 0.08), transparent 62%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.signal-card {
  min-height: 100%;
}

.card p,
.module-card p,
.stack-card p,
.pattern-card p,
.detail-panel p,
.stack-meta-card p,
.contact-mode p,
.status-card p,
.score-card p {
  margin: 0.72rem 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.card h3,
.module-card h3,
.stack-card h3,
.pattern-card h3,
.detail-panel h3,
.stack-meta-card h3,
.contact-mode h3 {
  line-height: 1.18;
  text-wrap: balance;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 54rem;
  line-height: 1.72;
  font-size: 1rem;
}

.section-tag-row {
  margin-top: 1rem;
}

.competitive-section {
  padding-top: 0.4rem;
}

.competitive-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.08fr 0.92fr;
}

.competitive-panel {
  padding: 1.12rem;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.reference-chip-row,
.competitor-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.reference-chip,
.competitor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 650;
  border: 1px solid rgba(var(--page-accent-rgb), 0.32);
  background: rgba(var(--page-accent-rgb), 0.08);
}

.reference-chip:hover,
.competitor-link:hover {
  border-color: rgba(var(--page-accent-rgb), 0.46);
  background: rgba(var(--page-accent-rgb), 0.13);
}

.trusted-partner-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--page-accent-rgb), 0.36);
}

.trusted-partner-link:hover {
  color: rgb(var(--page-accent-rgb));
  border-bottom-color: rgba(var(--page-accent-rgb), 0.62);
}

.trusted-partner-card {
  display: grid;
  gap: 0.75rem;
}

.trusted-partner-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  min-height: 2.4rem;
  padding: 0.46rem 0.78rem 0.46rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.3);
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 245, 255, 0.86));
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.trusted-partner-open-btn span:last-child {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.trusted-partner-open-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--page-accent-rgb), 0.44);
  box-shadow: 0 10px 20px rgba(var(--page-accent-rgb), 0.14);
}

.trusted-partner-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.48);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(var(--page-accent-rgb), 0.2));
  color: rgba(20, 42, 76, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
}

body.trusted-redirect-open {
  overflow: hidden;
}

.trusted-redirect-backdrop {
  position: fixed;
  inset: 0;
  z-index: 72;
  background: rgba(6, 13, 24, 0.44);
  backdrop-filter: blur(5px);
}

.trusted-redirect-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 73;
  width: min(30rem, calc(100vw - 1.5rem));
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--page-accent-rgb), 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 255, 0.94));
  box-shadow: 0 22px 44px rgba(12, 25, 44, 0.3);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.trusted-redirect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.trusted-redirect-head .eyebrow {
  margin: 0;
}

.trusted-redirect-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trusted-redirect-link {
  margin: 0;
  padding: 0.62rem 0.78rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(var(--page-accent-rgb), 0.22);
  background: rgba(var(--page-accent-rgb), 0.08);
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.trusted-redirect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.trusted-redirect-actions .btn,
.trusted-redirect-actions .ghost-btn,
.trusted-redirect-close {
  min-height: 2.6rem;
}

.competitive-checklist {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.56rem;
}

.competitive-checklist li {
  color: var(--muted);
  line-height: 1.55;
}

.competitive-grid {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.3rem;
}

.competitive-card {
  border: 1px solid rgba(var(--page-accent-rgb), 0.18);
  border-radius: var(--radius-md);
  padding: 0.82rem 0.86rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(var(--page-accent-rgb), 0.055));
}

.competitive-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.benchmark-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.benchmark-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.26rem;
  padding: 0.82rem 0.96rem;
  min-width: min(100%, 15rem);
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--page-accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.benchmark-pill span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benchmark-pill strong {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}

.hero-copy .benchmark-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.hero-copy .benchmark-pill span {
  color: rgba(177, 207, 255, 0.92);
}

.hero-copy .benchmark-pill strong {
  color: rgba(247, 239, 230, 0.8);
}

.module-layout,
.architecture-layout,
.architecture-product-shell,
.contact-layout,
.learn-detail-grid,
.stack-meta-grid {
  display: grid;
  gap: 1rem;
}

.module-layout,
.contact-layout {
  grid-template-columns: 0.78fr 1.22fr;
}

.architecture-layout {
  grid-template-columns: 0.56fr 1.44fr;
}

.architecture-product-shell {
  grid-template-columns: 0.8fr 1.2fr;
}

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

.module-list,
.source-list {
  display: grid;
  gap: 0.75rem;
}

.module-button,
.filter-chip,
.stack-card {
  width: 100%;
  text-align: left;
  padding: 0.92rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.module-button strong {
  display: block;
  font-family: var(--font-brand-hybrid);
  font-size: 1.22rem;
  letter-spacing: -0.012em;
}

.module-button span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.6;
}

.module-button.is-active,
.filter-chip.is-active,
.stack-card.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 255, 0.9));
  border-color: rgba(var(--page-accent-rgb), 0.46);
  border-width: 2px;
  box-shadow: 0 12px 24px rgba(var(--page-accent-rgb), 0.14);
}

.module-button:hover,
.filter-chip:hover,
.stack-card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--page-accent-rgb), 0.34);
}

.stack-card {
  display: block;
  font: inherit;
  color: var(--ink);
}

.stack-card-link {
  text-decoration: none;
}

.detail-panel h3 {
  font-size: 1.5rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(16, 26, 42, 0.06);
  color: var(--navy);
  font-size: 0.8rem;
  border: 1px solid rgba(16, 26, 42, 0.06);
}

.hero-copy .tag,
.cta-band .tag {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-color: rgba(20, 31, 49, 0.12);
}

.chapter-list,
.build-sequence,
.takeaway-list,
.source-list,
.stack-layer-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.chapter-list li,
.build-sequence li,
.takeaway-list li,
.source-list li,
.stack-layer-card {
  padding: 0.92rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  line-height: 1.68;
}

.source-list a {
  color: var(--emerald);
  font-weight: 700;
  text-decoration: none;
}

.release-command {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: rgba(15, 31, 55, 0.04);
  overflow-wrap: anywhere;
}

.pattern-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.pattern-toolbar input {
  flex: 1 1 280px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(20, 31, 49, 0.14);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  color: var(--ink);
  padding: 0.92rem 0.96rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

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

.architecture-main,
.architecture-side-panel,
.architecture-foundation-panel,
.stack-detail-group,
.optimizer-output {
  display: grid;
  gap: 1rem;
}

.architecture-count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.architecture-subheading {
  margin-bottom: 0;
}

.stack-meta-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 31, 49, 0.1);
}

.stack-meta-card span {
  display: block;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack-meta-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.5;
}

.stack-layer-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.stack-layer-head span {
  color: var(--emerald);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack-component-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.empty-state-card {
  min-height: 100%;
}

.pattern-card h3 {
  font-size: 1.18rem;
}

.pattern-card p strong,
.detail-panel p strong,
.card p strong {
  color: var(--ink);
}

.pattern-card small {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid .checkbox-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.form-grid .checkbox-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: rgba(var(--page-accent-rgb), 1);
}

.luxldr-profile-block {
  margin-top: 0.6rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 31, 49, 0.11);
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 0.75rem;
}

.luxldr-profile-block .hero-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.luxldr-pattern-editor {
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 31, 49, 0.11);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.75rem;
}

.luxldr-pattern-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.luxldr-pattern-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.luxldr-pattern-toolbar .ghost-btn {
  min-height: 2.4rem;
  padding: 0.55rem 1rem;
}

.luxldr-pattern-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.32rem;
}

.luxldr-pattern-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(20, 31, 49, 0.2);
  background: rgba(255, 255, 255, 0.84);
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.luxldr-pattern-cell.is-active {
  border-color: rgba(var(--page-accent-rgb), 0.7);
  background: linear-gradient(145deg, rgba(var(--page-accent-rgb), 0.86), rgba(var(--page-accent-rgb), 0.62));
}

.luxldr-pattern-cell:focus-visible {
  outline: 2px solid rgba(var(--page-accent-rgb), 0.6);
  outline-offset: 1px;
}

@media (max-width: 760px) {
  .luxldr-pattern-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

body[data-page="limi"] .hero-copy {
  background:
    radial-gradient(circle at 88% 8%, rgba(100, 137, 224, 0.24), transparent 18rem),
    radial-gradient(circle at 14% 86%, rgba(62, 182, 168, 0.16), transparent 20rem),
    linear-gradient(148deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.95));
}

body[data-page="limi"] .hero-metrics {
  background:
    radial-gradient(circle at 90% 12%, rgba(121, 165, 236, 0.22), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.95));
}

.limi-helix-visual-shell,
.limi-mm-visual-shell {
  display: grid;
  gap: 0.9rem;
}

.limi-helix-visual-shell {
  grid-template-columns: minmax(180px, 0.74fr) minmax(0, 1.26fr);
  margin-top: 1rem;
}

.limi-helix-ring-card,
.limi-helix-bar-card,
.limi-mm-core-card,
.limi-mm-distribution-card {
  border: 1px solid rgba(var(--page-accent-rgb), 0.22);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(var(--page-accent-rgb), 0.06));
  padding: 0.86rem;
}

.limi-helix-device-shell {
  margin-top: 0.2rem;
}

.limi-helix-device-track {
  display: flex;
  width: 100%;
  height: 0.98rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(var(--page-accent-rgb), 0.18);
  background: rgba(12, 28, 51, 0.08);
}

.limi-helix-device-fill {
  display: block;
  height: 100%;
  width: 50%;
  transition: width 240ms ease;
}

.limi-helix-device-fill-gpu {
  background: linear-gradient(90deg, #366dcf 0%, #5b8ef4 100%);
}

.limi-helix-device-fill-cpu {
  background: linear-gradient(90deg, #1f9f95 0%, #41c7ba 100%);
}

.limi-helix-device-label-row {
  margin-top: 0.52rem;
  display: flex;
  justify-content: space-between;
  gap: 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.limi-helix-ops-grid {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.limi-helix-ops-grid div {
  border: 1px solid rgba(var(--page-accent-rgb), 0.2);
  border-radius: 10px;
  background: rgba(var(--page-accent-rgb), 0.06);
  padding: 0.46rem 0.54rem;
}

.limi-helix-ops-grid dt {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.limi-helix-ops-grid dd {
  margin: 0.24rem 0 0;
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 700;
}

.limi-helix-bars {
  display: grid;
  gap: 0.62rem;
}

.limi-helix-bar-row {
  display: grid;
  grid-template-columns: 8.3rem minmax(0, 1fr) 4.2rem;
  gap: 0.58rem;
  align-items: center;
}

.limi-helix-bar-row span {
  font-size: 0.77rem;
  color: var(--muted-strong);
  font-weight: 700;
}

.limi-helix-bar-row strong {
  justify-self: end;
  font-size: 0.8rem;
  color: var(--ink);
}

.limi-helix-bar-track,
.limi-mm-category-track {
  width: 100%;
  height: 0.56rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(12, 28, 51, 0.1);
}

.limi-helix-bar-fill,
.limi-mm-category-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--signal-a) 0%, var(--signal-b) 54%, var(--signal-c) 100%);
  transition: width 220ms ease;
}

.limi-mm-capability-cloud {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.limi-mm-capability-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.66rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.24);
  background: rgba(var(--page-accent-rgb), 0.08);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 630;
}

.limi-mm-visual-shell {
  grid-template-columns: minmax(180px, 0.54fr) minmax(0, 1.46fr);
  margin-bottom: 0.92rem;
}

.limi-mm-core-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.limi-mm-core-orb {
  min-height: 9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--page-accent-rgb), 0.2);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1rem;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(127, 162, 240, 0.28), transparent 66%),
    linear-gradient(160deg, rgba(245, 251, 255, 0.95), rgba(233, 243, 255, 0.9));
}

.limi-mm-core-orb span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--muted-strong);
}

.limi-mm-core-orb strong {
  margin-top: 0.44rem;
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.35;
}

.limi-mm-category-bars {
  display: grid;
  gap: 0.58rem;
  margin-top: 0.55rem;
}

.limi-mm-category-row {
  display: grid;
  grid-template-columns: minmax(8.4rem, 0.82fr) minmax(0, 1fr) 2.2rem;
  gap: 0.56rem;
  align-items: center;
}

.limi-mm-category-row span {
  font-size: 0.76rem;
  color: var(--muted-strong);
  font-weight: 700;
}

.limi-mm-category-row strong {
  justify-self: end;
  font-size: 0.77rem;
  color: var(--ink);
}

.cta-band {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(107, 144, 236, 0.2), transparent 18rem),
    radial-gradient(circle at bottom left, rgba(74, 187, 168, 0.14), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.95));
}

.site-footer {
  padding: 2rem 0 3rem;
}

.site-footer .site-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-smile {
  margin-left: 0.08rem;
  letter-spacing: 0;
  color: rgba(var(--page-accent-rgb), 0.86);
}

.contact-mode strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.12rem;
}

.brand-preview-frame {
  margin-top: 0.88rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-preview-frame-small {
  min-height: 6rem;
}

.brand-preview-image {
  max-width: min(100%, 10rem);
  max-height: 8rem;
  object-fit: contain;
}

.product-logo-form {
  margin-top: 1.15rem;
}

.product-logo-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.product-logo-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.44rem 0.58rem;
}

.product-logo-list-name {
  color: var(--ink);
  font-weight: 700;
}

.product-logo-list-meta {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
}

.builder-card,
.summary-card,
.template-card,
.question-card,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 245, 0.88);
  box-shadow: var(--shadow-soft);
}

.summary-card,
.builder-card,
.template-card,
.question-card {
  padding: 1.5rem;
}

.summary-panel {
  padding: 1rem;
  margin-top: 1rem;
}

.luxlibs-slot-block {
  margin-top: -0.25rem;
}

.luxlibs-slot-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.luxlibs-slot-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.28);
  background: rgba(var(--page-accent-rgb), 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.luxlibs-live-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--page-accent-rgb), 0.22);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(var(--page-accent-rgb), 0.08));
  padding: 0.9rem;
}

.luxlibs-live-card p {
  margin: 0;
}

#luxlibs-live-narrative {
  margin-top: 0.4rem;
  font-size: 1.02rem;
  line-height: 1.52;
  color: var(--ink);
}

.luxlibs-live-token {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.42rem;
  margin: 0 0.08rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--page-accent-rgb), 0.28);
  background: rgba(var(--page-accent-rgb), 0.12);
  color: var(--ink);
  font-weight: 700;
}

.luxlibs-prompt-hint {
  display: block;
  margin-top: 0.36rem;
  min-height: 1.18rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.luxlibs-paywall-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 12, 23, 0.54);
  backdrop-filter: blur(6px);
}

.luxlibs-paywall-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 61;
  width: min(52rem, calc(100vw - 1rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 31, 48, 0.14);
  background: #f7fbff;
  box-shadow: 0 24px 70px rgba(6, 15, 28, 0.32);
  padding: 1rem;
}

.luxlibs-paywall-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.luxlibs-tier-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.luxlibs-tier-card {
  border: 1px solid rgba(var(--page-accent-rgb), 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(var(--page-accent-rgb), 0.08));
  padding: 0.82rem;
  display: grid;
  gap: 0.42rem;
}

.luxlibs-tier-card h3 {
  font-size: 1.12rem;
}

.luxlibs-tier-price {
  color: var(--ink);
  font-size: 1.44rem;
  font-weight: 780;
}

.luxlibs-tier-tokens {
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 650;
}

.luxlibs-tier-notes {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.79rem;
}

.luxscore-playback-track {
  position: relative;
  width: 100%;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(12, 28, 51, 0.12);
  overflow: hidden;
}

.luxscore-playback-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--page-accent-rgb), 0.85), rgba(var(--page-accent-rgb), 0.35));
  transition: width 90ms linear;
}

.luxscore-visualizer-shell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
  padding: 1.1rem;
}

.luxscore-visualizer-bars {
  min-height: 8.5rem;
  display: grid;
  grid-template-columns: repeat(64, minmax(0, 1fr));
  align-items: end;
  gap: 0.16rem;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--page-accent-rgb), 0.18);
  background:
    radial-gradient(circle at top right, rgba(var(--page-accent-rgb), 0.11), transparent 58%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(241, 247, 255, 0.94));
}

.luxscore-bin {
  display: block;
  width: 100%;
  min-height: 4px;
  height: var(--bin-height, 10%);
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, rgba(var(--page-accent-rgb), 0.88), rgba(var(--page-accent-rgb), 0.36));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.luxscore-sheet-shell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.9);
  padding: 0.5rem;
}

.luxscore-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.luxscore-sheet-table th,
.luxscore-sheet-table td {
  text-align: left;
  padding: 0.56rem 0.48rem;
  border-bottom: 1px solid rgba(var(--page-accent-rgb), 0.16);
}

.luxscore-sheet-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted-strong);
}

.luxscore-sheet-table tr:last-child td {
  border-bottom: none;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.systems-disclosure-panel {
  display: grid;
  gap: 0.9rem;
}

.systems-disclosure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.systems-disclosure-card {
  border: 1px solid rgba(var(--page-accent-rgb), 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.32rem;
}

.systems-disclosure-card p {
  margin: 0;
}

.systems-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem;
  display: grid;
  gap: 0.7rem;
}

.systems-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.systems-route-link {
  white-space: nowrap;
}

.systems-card-block {
  display: grid;
  gap: 0.34rem;
}

.systems-card-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted-strong);
}

.systems-contract-list {
  display: grid;
  gap: 0.42rem;
}

.systems-contract-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid rgba(var(--page-accent-rgb), 0.2);
  border-radius: var(--radius-sm);
  background: rgba(var(--page-accent-rgb), 0.06);
  padding: 0.52rem 0.62rem;
}

.systems-contract-item span {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted-strong);
}

.systems-contract-item strong {
  font-size: 0.84rem;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

.systems-assurance-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.32rem;
  color: var(--muted-strong);
}

.systems-boundary-note {
  margin: 0;
  border: 1px dashed rgba(var(--page-accent-rgb), 0.34);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.58rem 0.68rem;
}

.luxbridge-command-card {
  align-content: start;
}

.luxbridge-command-card.is-locked {
  opacity: 0.9;
}

.luxbridge-command-shell {
  margin: 0;
  border: 1px solid rgba(var(--page-accent-rgb), 0.24);
  border-radius: var(--radius-sm);
  background: rgba(var(--page-accent-rgb), 0.08);
  padding: 0.62rem 0.74rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
  white-space: pre-wrap;
}

.question-list {
  display: grid;
  gap: 1rem;
}

.question-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.choice-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.choice-row {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(15, 32, 50, 0.04);
}

.choice-key {
  font-weight: 700;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.export-actions {
  margin-top: 0.9rem;
}

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

body[data-page="home"] {
  color: #eaf2ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(132, 163, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 88% 4%, rgba(102, 225, 198, 0.16), transparent 24rem),
    radial-gradient(circle at 50% 96%, rgba(171, 197, 255, 0.14), transparent 24rem),
    linear-gradient(180deg, #04060b 0%, #080c14 48%, #0b1323 100%);
}

body[data-page="home"]::before {
  background-image: none;
}

body[data-page="home"]::after {
  background:
    linear-gradient(116deg, rgba(162, 188, 255, 0.11), transparent 40%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.1), transparent 22rem),
    radial-gradient(circle at 84% 32%, rgba(119, 156, 255, 0.12), transparent 20rem);
  opacity: 0.9;
}

body[data-page="home"] .site-header {
  background: rgba(6, 10, 18, 0.64);
  border-bottom: 1px solid rgba(177, 198, 242, 0.24);
  backdrop-filter: blur(28px) saturate(140%);
}

body[data-page="home"] .page {
  padding-top: 0.85rem;
  padding-bottom: 1.25rem;
}

body[data-page="home"] .section {
  width: min(1280px, calc(100% - 2.2rem));
  padding: 0.72rem 0;
}

body[data-page="home"] h1,
body[data-page="home"] h2,
body[data-page="home"] h3 {
  color: #f6f9ff;
}

body[data-page="home"] h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.97;
}

body[data-page="home"] .eyebrow {
  color: #97b8ff;
}

body[data-page="home"] .hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
  gap: 0.86rem;
}

body[data-page="home"] .hero-panel,
body[data-page="home"] .card,
body[data-page="home"] .module-card,
body[data-page="home"] .status-card,
body[data-page="home"] .pattern-card,
body[data-page="home"] .detail-panel,
body[data-page="home"] .stack-card,
body[data-page="home"] .cta-band {
  border-color: rgba(176, 199, 247, 0.26);
  box-shadow:
    0 26px 62px rgba(2, 7, 17, 0.56),
    inset 0 1px 0 rgba(223, 233, 255, 0.18);
  backdrop-filter: blur(26px) saturate(145%);
}

body[data-page="home"] .hero-panel::before,
body[data-page="home"] .card::before,
body[data-page="home"] .module-card::before,
body[data-page="home"] .status-card::before,
body[data-page="home"] .pattern-card::before,
body[data-page="home"] .detail-panel::before,
body[data-page="home"] .stack-card::before,
body[data-page="home"] .cta-band::before {
  background: linear-gradient(90deg, rgba(136, 171, 255, 0.72), rgba(255, 255, 255, 0));
}

body[data-page="home"] .hero-copy {
  min-height: 28rem;
  background:
    radial-gradient(circle at 88% 7%, rgba(145, 181, 255, 0.3), transparent 18rem),
    radial-gradient(circle at 16% 82%, rgba(89, 226, 202, 0.2), transparent 20rem),
    linear-gradient(148deg, rgba(10, 14, 24, 0.78), rgba(16, 24, 41, 0.62));
}

body[data-page="home"] .hero-copy .lede,
body[data-page="home"] .hero-copy p:not(.eyebrow) {
  color: rgba(223, 234, 255, 0.84);
}

body[data-page="home"] .hero-metrics {
  background:
    radial-gradient(circle at 90% 8%, rgba(140, 173, 255, 0.25), transparent 15rem),
    linear-gradient(180deg, rgba(10, 16, 31, 0.82), rgba(15, 23, 41, 0.64));
}

body[data-page="home"] .home-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

body[data-page="home"] .metric-tile {
  padding: 0.88rem;
  background: rgba(16, 27, 48, 0.58);
  border-color: rgba(181, 202, 244, 0.26);
  box-shadow: inset 0 1px 0 rgba(237, 244, 255, 0.11);
}

body[data-page="home"] .metric-tile span {
  color: rgba(192, 211, 246, 0.8);
}

body[data-page="home"] .metric-tile strong {
  color: #f5f8ff;
  font-size: 1.48rem;
}

body[data-page="home"] .metric-note {
  color: rgba(210, 223, 246, 0.82);
  margin-top: 0.55rem;
  font-size: 0.82rem;
}

body[data-page="home"] .btn {
  color: #f5f9ff;
  background: linear-gradient(132deg, #2b64ee 0%, #5d90ff 52%, #84b2ff 100%);
  box-shadow: 0 14px 34px rgba(61, 117, 242, 0.34);
}

body[data-page="home"] .ghost-btn {
  color: #e6f0ff;
  border-color: rgba(176, 198, 240, 0.3);
  background: rgba(20, 34, 58, 0.48);
}

body[data-page="home"] .hero-copy .ghost-btn {
  border-color: rgba(146, 169, 219, 0.28);
  background: rgba(20, 34, 57, 0.68);
}

body[data-page="home"] .btn:hover,
body[data-page="home"] .ghost-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

body[data-page="home"] .benchmark-pill {
  border-color: rgba(146, 169, 219, 0.3);
  background: rgba(13, 23, 40, 0.8);
  box-shadow: none;
}

body[data-page="home"] .benchmark-pill span {
  color: rgba(159, 190, 255, 0.92);
}

body[data-page="home"] .benchmark-pill strong {
  color: rgba(224, 236, 255, 0.86);
}

body[data-page="home"] .hero-proofband {
  margin-top: 0.8rem;
}

body[data-page="home"] .proof-badge {
  border-color: rgba(181, 202, 244, 0.26);
  background: rgba(20, 34, 56, 0.56);
  backdrop-filter: blur(18px);
}

body[data-page="home"] .proof-badge span {
  color: rgba(159, 190, 255, 0.9);
}

body[data-page="home"] .proof-badge strong {
  color: rgba(236, 243, 255, 0.95);
}

body[data-page="home"] .home-product-layout,
body[data-page="home"] .home-foundation-layout,
body[data-page="home"] .home-learning-layout,
body[data-page="home"] .home-design-layout,
body[data-page="home"] .home-pattern-layout {
  display: grid;
  gap: 0.82rem;
}

body[data-page="home"] .home-product-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body[data-page="home"] .home-foundation-layout {
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
}

body[data-page="home"] .home-foundation-panels {
  display: grid;
  gap: 1rem;
}

body[data-page="home"] .home-learning-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body[data-page="home"] .home-design-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body[data-page="home"] .home-pattern-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

body[data-page="home"] .home-lane-grid {
  margin-top: 0.82rem;
}

body[data-page="home"] .home-control-grid {
  grid-template-columns: 1fr;
}

body[data-page="home"] #home-stack-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="home"] #home-initiative-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

body[data-page="home"] #home-initiative-preview .detail-panel {
  padding: 0.82rem;
}

body[data-page="home"] #home-initiative-preview h2 {
  font-size: 1.08rem;
  line-height: 1.25;
}

body[data-page="home"] #home-initiative-preview .lede {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="home"] #home-initiative-preview .hero-actions {
  margin-top: 0.68rem;
}

body[data-page="home"] #home-module-list,
body[data-page="home"] #home-brand-foundation-grid,
body[data-page="home"] #home-llm-scale-grid,
body[data-page="home"] #home-design-niche-grid,
body[data-page="home"] #home-niche-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="home"] #home-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="home"] #home-pattern-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="home"] .card,
body[data-page="home"] .module-card,
body[data-page="home"] .status-card,
body[data-page="home"] .pattern-card,
body[data-page="home"] .detail-panel,
body[data-page="home"] .stack-card,
body[data-page="home"] .home-cta-band {
  background: linear-gradient(170deg, rgba(14, 24, 42, 0.66), rgba(20, 33, 57, 0.48));
}

body[data-page="home"] .status-card span,
body[data-page="home"] .score-card span,
body[data-page="home"] .card p,
body[data-page="home"] .module-card p,
body[data-page="home"] .stack-card p,
body[data-page="home"] .pattern-card p,
body[data-page="home"] .detail-panel p,
body[data-page="home"] .section-heading p {
  color: rgba(213, 227, 250, 0.82);
}

body[data-page="home"] .status-card strong,
body[data-page="home"] .score-card strong,
body[data-page="home"] .stack-card h3,
body[data-page="home"] .module-card h3,
body[data-page="home"] .card h3,
body[data-page="home"] .pattern-card h3,
body[data-page="home"] .detail-panel h3 {
  color: #f3f8ff;
}

body[data-page="home"] .build-sequence li,
body[data-page="home"] .chapter-list li,
body[data-page="home"] .takeaway-list li,
body[data-page="home"] .stack-layer-card {
  background: rgba(18, 31, 54, 0.54);
  border-color: rgba(173, 196, 242, 0.26);
  color: rgba(226, 237, 255, 0.88);
}

body[data-page="home"] .tag {
  background: rgba(117, 150, 230, 0.2);
  border-color: rgba(181, 202, 244, 0.32);
  color: rgba(232, 241, 255, 0.96);
}

body[data-page="home"] .site-footer .site-shell {
  color: rgba(191, 207, 236, 0.82);
}

body[data-page="home"] .section-heading p {
  display: none;
}

body[data-page="home"] .section-heading h2 {
  font-size: clamp(1.34rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
}

body[data-page="home"] #home-stack-preview .stack-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="home"] #home-brand-positioning {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

body[data-page="home"] #home-brand-proof li {
  line-height: 1.35;
}

body[data-page="home"] .page.home-page {
  height: calc(100vh - var(--site-header-height));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
  overscroll-behavior-y: contain;
  padding: 0 0 0.75rem;
}

body[data-page="home"] .home-page > .section {
  width: min(1280px, calc(100% - 2rem));
  min-height: calc(100vh - var(--site-header-height));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0.85rem 0;
  display: grid;
  gap: 0.82rem;
  align-content: stretch;
}

body[data-page="home"] .home-stage {
  display: grid;
  gap: 0.82rem;
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
}

body[data-page="home"] .home-stage-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

body[data-page="home"] .home-stage-products,
body[data-page="home"] .home-stage-system {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="home"] .home-panel-scroll,
body[data-page="home"] .home-stage .hero-panel {
  min-height: 0;
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
}

body[data-page="home"] .home-stage .detail-panel h2 {
  margin-bottom: 0.55rem;
}

body[data-page="home"] .home-stage .detail-panel h3 {
  margin: 0.7rem 0 0.45rem;
}

body[data-page="home"] .home-stage .lede {
  font-size: 0.92rem;
}

body[data-page="home"] #home-initiative-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body[data-page="home"] #home-initiative-preview .detail-panel {
  padding: 0.76rem;
}

body[data-page="home"] #home-initiative-preview .hero-actions {
  margin-top: 0.5rem;
}

body[data-page="home"] #home-stack-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="home"] #home-status-grid {
  margin-top: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

body[data-page="home"] #home-module-list,
body[data-page="home"] #home-brand-foundation-grid,
body[data-page="home"] #home-llm-scale-grid,
body[data-page="home"] #home-design-niche-grid,
body[data-page="home"] #home-niche-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="home"] #home-pattern-preview {
  margin-top: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="home"] #home-design-signal-row {
  margin-top: 0.62rem;
}

body[data-page="home"] .home-stage .build-sequence {
  margin: 0.55rem 0 0.7rem;
}

body[data-page="home"] .home-stage .hero-actions {
  margin-top: 0.72rem;
}

html.pref-high-contrast body[data-page="home"] {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
  color: #111925;
}

html.pref-high-contrast body[data-page="home"] .hero-panel,
html.pref-high-contrast body[data-page="home"] .card,
html.pref-high-contrast body[data-page="home"] .module-card,
html.pref-high-contrast body[data-page="home"] .status-card,
html.pref-high-contrast body[data-page="home"] .pattern-card,
html.pref-high-contrast body[data-page="home"] .detail-panel,
html.pref-high-contrast body[data-page="home"] .stack-card,
html.pref-high-contrast body[data-page="home"] .home-cta-band {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
}

html.pref-high-contrast body[data-page="home"] h1,
html.pref-high-contrast body[data-page="home"] h2,
html.pref-high-contrast body[data-page="home"] h3,
html.pref-high-contrast body[data-page="home"] .metric-tile strong {
  color: #111925;
}

html.pref-high-contrast body[data-page="home"] .card p,
html.pref-high-contrast body[data-page="home"] .module-card p,
html.pref-high-contrast body[data-page="home"] .stack-card p,
html.pref-high-contrast body[data-page="home"] .pattern-card p,
html.pref-high-contrast body[data-page="home"] .detail-panel p,
html.pref-high-contrast body[data-page="home"] .metric-note {
  color: #202636;
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  html.nav-open,
  body.nav-open {
    overflow: hidden;
  }

  .hero,
  .competitive-shell,
  .limi-helix-visual-shell,
  .limi-mm-visual-shell,
  .systems-disclosure-grid,
  .info-grid,
  .builder-layout,
  .cta-band,
  .module-layout,
  .architecture-layout,
  .architecture-product-shell,
  .contact-layout,
  .stack-card-grid,
  .pattern-grid,
  .form-grid,
  .score-grid,
  .status-grid,
  .metric-grid,
  .contact-grid,
  .stack-meta-grid,
  .hero-proofband,
  .systems-card-grid {
    grid-template-columns: 1fr;
  }

  .nav-row {
    position: relative;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.72rem;
    padding: calc(0.76rem - (0.24rem * var(--header-compact-progress)) - (0.18rem * var(--header-hide-progress))) 0;
  }

  .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-meta {
    min-width: 0;
  }

  .brand-tag {
    max-width: min(40ch, calc(100vw - 10rem));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .luxlibs-typing-token {
    max-width: 100%;
  }

  .luxlibs-typing-output,
  .luxlibs-typing-word {
    min-width: 0;
    max-width: min(84vw, 44ch);
  }

  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    min-width: 6.1rem;
  }

  .nav-links {
    order: 4;
    position: absolute;
    top: calc(100% + 0.42rem);
    left: 0;
    right: 0;
    z-index: 70;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    border: 1px solid rgba(16, 30, 49, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 32px rgba(16, 35, 62, 0.11);
    padding: 0.5rem;
    max-height: calc(100dvh - var(--site-header-height) - 1rem);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.is-nav-open .nav-links {
    display: grid;
  }

  body.nav-open {
    overflow: hidden;
  }

  body[data-page="home"].nav-open .page.home-page {
    overflow: hidden;
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 2.72rem;
    width: 100%;
    border-radius: 12px;
    font-size: 0.92rem;
    padding: 0.64rem 0.85rem;
    transform: none;
  }

  .nav-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.4rem;
  }

  .nav-products-menu {
    width: 100%;
    display: block;
  }

  .nav-products-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 2.72rem;
    border-radius: 12px;
    font-size: 0.92rem;
    padding: 0.64rem 0.85rem;
    transform: none;
  }

  .nav-products-panel {
    position: static;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.5rem;
    border-radius: 12px;
    border-color: rgba(16, 30, 49, 0.1);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
  }

  .nav-products-summary {
    display: none;
  }

  .nav-products-grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .nav-products-sections {
    gap: 0.42rem;
  }

  .nav-products-section {
    padding: 0.4rem;
  }

  .nav-products-panel a {
    justify-content: space-between;
    min-height: 2.62rem;
    padding: 0.58rem 0.76rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .nav-products-panel a.nav-product-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    column-gap: 0;
  }

  .site-header.is-nav-open .nav-menu-toggle-icon span:nth-child(1) {
    transform: translateY(0.28rem) rotate(45deg);
  }

  .site-header.is-nav-open .nav-menu-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-menu-toggle-icon span:nth-child(3) {
    transform: translateY(-0.28rem) rotate(-45deg);
  }

  .cinema-rail {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .cinema-rail > * {
    flex: 1 1 auto;
  }

  .nav-utility-button {
    order: 3;
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.58rem 1rem;
  }

  .nav-auth-controls {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
  }

  .nav-auth-controls .nav-auth-state-chip {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 2.5rem;
    justify-content: center;
  }

  .nav-auth-controls .nav-auth-button {
    width: 100%;
    justify-content: center;
  }

  .nav-auth-controls .nav-auth-power {
    justify-self: stretch;
  }

  .luxlibs-tier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav-auth-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-auth-controls .nav-auth-state-chip {
    grid-column: auto;
  }

  .runtime-gate-panel .hero-actions {
    width: 100%;
  }

  .runtime-gate-panel .runtime-gate-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .page {
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-metrics,
  .card,
  .module-card,
  .pattern-card,
  .form-card,
  .detail-panel,
  .cta-band,
  .stack-card,
  .stack-meta-card,
  .status-card,
  .score-card,
  .contact-mode {
    padding: 1rem;
  }

  h1 {
    max-width: none;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-links a {
    min-height: 2.62rem;
    padding: 0.58rem 0.76rem;
    font-size: 0.88rem;
  }

  .nav-products-toggle {
    min-height: 2.62rem;
    padding: 0.58rem 0.76rem;
    font-size: 0.88rem;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .benchmark-pill {
    min-width: 100%;
  }

  .limi-helix-bar-row {
    grid-template-columns: minmax(6.8rem, 0.9fr) minmax(0, 1fr) 3.4rem;
  }

  .limi-helix-device-label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .limi-helix-ops-grid {
    grid-template-columns: 1fr;
  }

  .limi-mm-category-row {
    grid-template-columns: minmax(6.8rem, 0.84fr) minmax(0, 1fr) 2rem;
  }

  .systems-contract-item {
    display: grid;
    gap: 0.14rem;
  }

  .systems-contract-item strong {
    text-align: left;
  }

  .luxlibs-paywall-modal {
    width: calc(100vw - 0.5rem);
    max-height: calc(100vh - 0.6rem);
    padding: 0.85rem 0.72rem;
  }

  .preferences-panel {
    width: calc(100vw - 0.5rem);
    padding: 1rem 0.75rem 1.4rem;
  }

  .preferences-radio-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1240px) {
  body[data-page="home"] .home-stage-hero,
  body[data-page="home"] .home-stage-products,
  body[data-page="home"] .home-stage-system {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-foundation-layout,
  body[data-page="home"] .home-pattern-layout,
  body[data-page="home"] .home-learning-layout,
  body[data-page="home"] .home-design-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] #home-pattern-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] #home-initiative-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  body[data-page="home"] .page.home-page {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    padding-top: 0.6rem;
  }

  body[data-page="home"] .home-page > .section {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  body[data-page="home"] .hero {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero-copy {
    min-height: auto;
  }

  body[data-page="home"] #home-stack-preview,
  body[data-page="home"] #home-module-list,
  body[data-page="home"] #home-brand-foundation-grid,
  body[data-page="home"] #home-llm-scale-grid,
  body[data-page="home"] #home-design-niche-grid,
  body[data-page="home"] #home-niche-grid,
  body[data-page="home"] #home-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] #home-initiative-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-page="home"] #home-stack-preview,
  body[data-page="home"] #home-module-list,
  body[data-page="home"] #home-brand-foundation-grid,
  body[data-page="home"] #home-llm-scale-grid,
  body[data-page="home"] #home-design-niche-grid,
  body[data-page="home"] #home-niche-grid,
  body[data-page="home"] #home-status-grid,
  body[data-page="home"] #home-pattern-preview,
  body[data-page="home"] #home-initiative-preview {
    grid-template-columns: 1fr;
  }
}

/* Home Page Light Refresh */
body[data-page="home"] {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(97, 135, 197, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(74, 132, 149, 0.14), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fd 56%, #eaf1fa 100%);
}

body[data-page="home"] .site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

body[data-page="home"] .page.home-page {
  height: auto;
  overflow: visible;
  scroll-snap-type: none;
  min-height: calc(100vh - 6.8rem);
  padding: 0.7rem 0 1.15rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  position: relative;
  isolation: isolate;
  --home-depth-shift-x: 0px;
  --home-depth-shift-y: 0px;
  --home-depth-tilt-x: 0deg;
  --home-depth-tilt-y: 0deg;
  --home-depth-roll: 0deg;
  --home-depth-depth: 1;
  --home-realm-blend: 0;
  --home-depth-energy: 0.45;
  --home-depth-phase: 0.46;
  --home-depth-flow: 0;
}

body[data-page="home"] .home-page > .section {
  width: min(1180px, calc(100% - 2rem));
  min-height: auto;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  padding: 0.5rem 0;
  display: block;
  position: relative;
  z-index: 1;
}

body[data-page="home"] .home-depth-realm {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint style;
  transform-style: preserve-3d;
  perspective: calc(1900px + (var(--home-depth-phase, 0.46) * 900px));
  background:
    radial-gradient(
      circle at calc(48% + (var(--home-depth-flow, 0) * 18%)) 22%,
      rgba(102, 149, 231, calc(0.1 + (var(--home-depth-phase, 0.46) * 0.14))),
      transparent 36%
    ),
    radial-gradient(
      circle at calc(40% - (var(--home-depth-flow, 0) * 14%)) 78%,
      rgba(84, 204, 184, calc(0.08 + (var(--home-depth-phase, 0.46) * 0.12))),
      transparent 40%
    );
}

body[data-page="home"] .home-depth-realm::before {
  content: "";
  position: absolute;
  inset: -14% -12%;
  background:
    radial-gradient(circle at 12% 16%, rgba(124, 162, 236, 0.24), transparent 34%),
    radial-gradient(circle at 84% 22%, rgba(98, 208, 191, 0.22), transparent 34%),
    radial-gradient(circle at 52% 76%, rgba(236, 182, 112, 0.14), transparent 42%),
    radial-gradient(circle at 74% 84%, rgba(118, 178, 252, 0.12), transparent 36%);
  transform:
    translate3d(
      calc(var(--home-depth-shift-x, 0px) * 0.28),
      calc(var(--home-depth-shift-y, 0px) * 0.24),
      calc((var(--home-depth-depth, 1) - 1) * 260px)
    )
    rotateX(calc(var(--home-depth-tilt-x, 0deg) * 1.15))
    rotateY(calc(var(--home-depth-tilt-y, 0deg) * 1.1))
    rotateZ(calc(var(--home-depth-roll, 0deg) * 0.75))
    scale(calc(1 + (var(--home-realm-blend, 0) * 0.08) + (var(--home-depth-phase, 0.46) * 0.03)));
  filter:
    saturate(calc(1.06 + (var(--home-realm-blend, 0) * 0.24) + (var(--home-depth-phase, 0.46) * 0.12)))
    hue-rotate(calc((var(--home-depth-phase, 0.46) - 0.5) * 8deg));
  opacity: calc(0.8 + (var(--home-depth-energy, 0.45) * 0.18));
  transition: transform 380ms cubic-bezier(0.18, 0.72, 0.24, 1), opacity 300ms ease;
}

body[data-page="home"] .home-depth-realm::after {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background:
    radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.26), transparent 40%),
    radial-gradient(circle at 22% 76%, rgba(104, 186, 244, 0.18), transparent 36%),
    linear-gradient(
      140deg,
      rgba(94, 136, 220, calc(0.1 + (var(--home-realm-blend, 0) * 0.12))),
      transparent 44%
    );
  mix-blend-mode: screen;
  opacity: calc(0.56 + (var(--home-realm-blend, 0) * 0.22));
  transform:
    translate3d(
      calc(var(--home-depth-shift-x, 0px) * -0.18),
      calc(var(--home-depth-shift-y, 0px) * -0.22),
      calc((var(--home-depth-depth, 1) - 1) * 190px)
    )
    rotateX(calc(var(--home-depth-tilt-x, 0deg) * -0.72))
    rotateY(calc(var(--home-depth-tilt-y, 0deg) * -0.7))
    rotateZ(calc(var(--home-depth-roll, 0deg) * -0.5))
    scale(calc(1 + (var(--home-realm-blend, 0) * 0.06) + (var(--home-depth-phase, 0.46) * 0.02)));
  filter: saturate(calc(1 + (var(--home-depth-phase, 0.46) * 0.16)));
  transition: transform 420ms cubic-bezier(0.18, 0.72, 0.24, 1), opacity 320ms ease;
}

body[data-page="home"] .home-depth-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--orb-size, 120px);
  height: var(--orb-size, 120px);
  border-radius: 999px;
  opacity: var(--orb-alpha, 0.26);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.02) 56%),
    radial-gradient(circle at 65% 68%, var(--orb-color, rgba(116, 152, 224, 0.3)), rgba(32, 53, 88, 0.03) 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 calc(var(--orb-glow, 18px) * 1px) rgba(123, 169, 236, 0.18),
    0 0 calc(var(--orb-glow, 18px) * 1.66px) rgba(88, 196, 220, 0.1);
  transform:
    translate3d(
      calc(var(--orb-x, 0px) + (var(--home-depth-shift-x, 0px) * var(--orb-parallax, 0.12))),
      calc(var(--orb-y, 0px) + (var(--home-depth-shift-y, 0px) * var(--orb-parallax, 0.12))),
      calc(var(--orb-z, 0px) * var(--home-depth-depth, 1))
    )
    rotateX(calc(var(--home-depth-tilt-x, 0deg) * 0.25))
    rotateY(calc(var(--home-depth-tilt-y, 0deg) * 0.25))
    rotateZ(calc(var(--home-depth-roll, 0deg) * var(--orb-parallax, 0.12) * 1.6))
    scale(var(--orb-scale, 1));
  filter:
    blur(var(--orb-blur, 12px))
    saturate(calc(1.06 + (var(--home-realm-blend, 0) * 0.34) + (var(--home-depth-phase, 0.46) * 0.08)))
    hue-rotate(calc((var(--home-depth-phase, 0.46) - 0.5) * 10deg))
    brightness(calc(0.96 + (var(--home-depth-energy, 0.45) * 0.32) + (var(--home-depth-phase, 0.46) * 0.05)));
  mix-blend-mode: screen;
  transition: opacity 220ms ease, filter 280ms ease, box-shadow 280ms ease;
  will-change: transform, opacity;
}

body[data-page="home"] .page.home-page.home-perf-mode .home-depth-orb {
  opacity: calc(var(--orb-alpha, 0.26) * 0.88);
  filter:
    blur(calc(var(--orb-blur, 12px) * 0.82))
    saturate(calc(1 + (var(--home-realm-blend, 0) * 0.2)))
    hue-rotate(calc((var(--home-depth-phase, 0.46) - 0.5) * 7deg))
    brightness(calc(0.96 + (var(--home-depth-energy, 0.45) * 0.22)));
}

body[data-page="home"] .home-depth-orb::before {
  content: "";
  position: absolute;
  inset: 16% 18% 20%;
  border-radius: 999px;
  background: radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 74%);
}

body[data-page="home"] .home-depth-orb::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 999px;
  border: 1px solid rgba(215, 230, 255, 0.28);
  opacity: calc(0.24 + (var(--home-realm-blend, 0) * 0.28));
  transform: scale(1);
  transition: opacity 220ms ease, transform 240ms ease;
}

body[data-page="home"] .home-depth-orb.is-pulse::after {
  opacity: 0.9;
  transform: scale(1.34);
}

body[data-page="home"] .home-page > .section:first-child {
  min-height: clamp(26rem, calc(100vh - 10.2rem), 37rem);
}

body[data-page="home"] .home-page > .section:first-child .hero {
  min-height: 100%;
}

body[data-page="home"] .hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1rem;
  align-items: stretch;
}

body[data-page="home"] .hero-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(112, 147, 230, 0.18), transparent 20rem),
    radial-gradient(circle at bottom left, rgba(173, 190, 224, 0.14), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.95));
}

body[data-page="home"] .hero-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

body[data-page="home"] .hero-panel,
body[data-page="home"] .card,
body[data-page="home"] .module-card,
body[data-page="home"] .status-card,
body[data-page="home"] .pattern-card,
body[data-page="home"] .detail-panel,
body[data-page="home"] .stack-card,
body[data-page="home"] .cta-band {
  border-color: var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

body[data-page="home"] .hero-panel::before,
body[data-page="home"] .card::before,
body[data-page="home"] .module-card::before,
body[data-page="home"] .status-card::before,
body[data-page="home"] .pattern-card::before,
body[data-page="home"] .detail-panel::before,
body[data-page="home"] .stack-card::before,
body[data-page="home"] .cta-band::before {
  background: linear-gradient(90deg, rgba(36, 88, 216, 0.44), rgba(255, 255, 255, 0));
}

body[data-page="home"] h1,
body[data-page="home"] h2,
body[data-page="home"] h3 {
  color: var(--ink);
}

body[data-page="home"] .eyebrow {
  color: var(--gold);
}

body[data-page="home"] .hero-copy .lede,
body[data-page="home"] .hero-copy p:not(.eyebrow),
body[data-page="home"] .card p,
body[data-page="home"] .module-card p,
body[data-page="home"] .stack-card p,
body[data-page="home"] .pattern-card p,
body[data-page="home"] .detail-panel p,
body[data-page="home"] .metric-note,
body[data-page="home"] .section-heading p {
  color: var(--muted);
}

body[data-page="home"] .metric-tile {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(20, 31, 49, 0.12);
}

body[data-page="home"] .metric-tile span {
  color: var(--muted-strong);
}

body[data-page="home"] .metric-tile strong,
body[data-page="home"] .status-card strong,
body[data-page="home"] .score-card strong,
body[data-page="home"] .stack-card h3,
body[data-page="home"] .module-card h3,
body[data-page="home"] .card h3,
body[data-page="home"] .pattern-card h3,
body[data-page="home"] .detail-panel h3 {
  color: var(--ink);
}

body[data-page="home"] #home-product-stack-count {
  display: inline-flex;
  align-items: flex-end;
  min-height: 1.95rem;
  line-height: 1;
}

body[data-page="home"] #home-product-stack-count .infinity-mark-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  font-size: 1.24em;
  letter-spacing: -0.01em;
  line-height: 1;
}

body[data-page="home"] #home-product-stack-count .infinity-mark {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 1em;
  font-weight: 800;
  font-family: "Segoe UI Symbol", "Apple Symbols", var(--font-brand-name);
  color: var(--ink);
}

body[data-page="home"] #home-product-stack-count .infinity-mark::after {
  content: "∞";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    105deg,
    rgba(15, 31, 55, 0.94) 0%,
    rgba(15, 31, 55, 0.94) 40%,
    rgba(var(--page-accent-rgb), 0.98) 50%,
    rgba(15, 31, 55, 0.94) 60%,
    rgba(15, 31, 55, 0.94) 100%
  );
  background-size: 260% 100%;
  background-position: 130% 50%;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: infinity-scan 3.2s linear infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  body[data-page="home"] #home-product-stack-count .infinity-mark::after {
    display: none;
  }
}

body[data-page="home"] #home-product-stack-count .infinity-plus {
  display: inline-block;
  line-height: 1;
  font-size: 0.8em;
  font-weight: 800;
  transform: translateY(-0.02em);
}

body[data-page="home"] .status-card span,
body[data-page="home"] .score-card span {
  color: var(--muted-strong);
}

@keyframes infinity-scan {
  0% {
    background-position: 130% 50%;
  }
  100% {
    background-position: -130% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] #home-product-stack-count .infinity-mark::after {
    animation: none;
    display: none;
  }
}

body[data-page="home"] .btn {
  color: #f6f9ff;
  background: linear-gradient(132deg, var(--btn-start) 0%, var(--btn-mid) 56%, var(--btn-end) 100%);
  box-shadow: 0 12px 28px rgba(var(--btn-shadow-rgb), 0.24);
}

body[data-page="home"] .ghost-btn {
  color: var(--ink);
  border-color: rgba(20, 31, 49, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

body[data-page="home"] .hero-copy .ghost-btn {
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .btn:hover,
body[data-page="home"] .ghost-btn:hover {
  transform: translateY(-1px);
}

body[data-page="home"] #home-initiative-preview {
  margin-top: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: start;
}

body[data-page="home"] #home-initiative-preview .detail-panel {
  padding: 0.85rem;
}

body[data-page="home"] #home-luxlibs-template-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="home"] #home-luxlibs-concept-list {
  margin-top: 1rem;
}

body[data-page="home"] .site-footer .site-shell {
  color: var(--muted);
}

@media (max-width: 1060px) {
  body[data-page="home"] .hero,
  body[data-page="home"] .builder-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-page > .section:first-child {
    min-height: auto;
  }

  body[data-page="home"] #home-luxlibs-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-page="home"] #home-initiative-preview,
  body[data-page="home"] #home-luxlibs-template-grid {
    grid-template-columns: 1fr;
  }
}

/* Home Apple Scroll Rebuild */
body[data-page="home"] {
  background:
    radial-gradient(circle at 10% -5%, rgba(116, 152, 213, 0.26), transparent 26rem),
    radial-gradient(circle at 88% 6%, rgba(146, 178, 231, 0.22), transparent 28rem),
    linear-gradient(180deg, #f7faff 0%, #edf4ff 54%, #e8f0fb 100%);
}

body[data-page="home"] .site-header {
  background:
    linear-gradient(182deg, rgba(254, 255, 255, 0.94), rgba(246, 252, 255, 0.82));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 34, 66, 0.12);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.56),
    0 12px 30px rgba(16, 36, 64, 0.1),
    0 0 18px rgba(114, 187, 247, 0.1);
  isolation: isolate;
}

body[data-page="home"] .site-header::before,
body[data-page="home"] .site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
}

body[data-page="home"] .site-header::before {
  z-index: -1;
  opacity: 0.36;
  background:
    radial-gradient(42% 120% at 6% 0%, rgba(134, 187, 255, 0.34), transparent 74%),
    radial-gradient(46% 120% at 94% 0%, rgba(122, 236, 206, 0.28), transparent 74%);
  mix-blend-mode: screen;
}

body[data-page="home"] .site-header::after {
  z-index: 1;
  inset: auto 0 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(130, 188, 255, 0.2) 0%,
      rgba(120, 238, 211, 0.36) 34%,
      rgba(244, 202, 145, 0.26) 66%,
      rgba(131, 186, 255, 0.22) 100%
    );
}

body[data-page="home"] .site-header.is-compact {
  background:
    linear-gradient(182deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 255, 0.82));
  border-bottom-color: rgba(12, 34, 66, 0.14);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.58),
    0 16px 34px rgba(16, 36, 64, 0.12),
    0 0 22px rgba(118, 232, 208, 0.1);
}

body[data-page="home"] .site-header.is-nav-open {
  background: rgba(255, 255, 255, 0.95);
}

body[data-page="home"] .page.home-page {
  height: calc(100vh - var(--site-header-height));
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scroll-padding-top: 1.5rem;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding: 0.78rem 0 1.28rem;
  gap: clamp(0.54rem, 1.15vw, 0.96rem);
}

body[data-page="home"] .page.home-page::before,
body[data-page="home"] .page.home-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -16% -10%;
  z-index: 0;
  mix-blend-mode: screen;
  filter: saturate(1.04) blur(2px);
  opacity: 0.38;
  transform:
    translate3d(
      calc(var(--home-depth-shift-x, 0px) * 0.18),
      calc(var(--home-depth-shift-y, 0px) * 0.12),
      calc((var(--home-depth-depth, 1) - 1) * 120px)
    )
    rotateZ(calc(var(--home-depth-roll, 0deg) * 0.28));
  will-change: transform, opacity, background-position;
}

body[data-page="home"] .page.home-page::before {
  background:
    radial-gradient(76% 54% at 8% 20%, rgba(109, 154, 234, 0.24), transparent 70%),
    radial-gradient(84% 48% at 92% 26%, rgba(79, 191, 212, 0.2), transparent 70%),
    linear-gradient(
      128deg,
      rgba(121, 166, 239, 0.14) 0%,
      rgba(97, 198, 197, 0.12) 24%,
      rgba(184, 220, 252, 0.08) 49%,
      rgba(122, 206, 188, 0.12) 76%,
      rgba(95, 143, 221, 0.14) 100%
    );
  background-size: 180% 150%, 170% 140%, 240% 190%;
  background-position: 8% 24%, 88% 16%, 0% 50%;
  animation: home-aurora-page-flow 40s ease-in-out infinite alternate;
}

body[data-page="home"] .page.home-page::after {
  background:
    radial-gradient(70% 42% at 24% 74%, rgba(128, 207, 188, 0.16), transparent 72%),
    radial-gradient(72% 44% at 84% 70%, rgba(152, 176, 236, 0.14), transparent 72%),
    linear-gradient(
      164deg,
      rgba(122, 170, 243, 0.1) 0%,
      rgba(104, 194, 228, 0.07) 36%,
      rgba(255, 255, 255, 0.05) 58%,
      rgba(112, 198, 186, 0.08) 82%,
      rgba(101, 148, 222, 0.1) 100%
    );
  background-size: 210% 180%, 190% 165%, 260% 200%;
  background-position: 20% 72%, 82% 76%, 100% 56%;
  opacity: 0.32;
  animation: home-aurora-page-flow-reverse 52s ease-in-out infinite alternate;
}

body[data-page="home"] .home-page > .section.home-apple-stage {
  width: min(1280px, calc(100% - 3.4rem));
  min-height: calc(100vh - var(--site-header-height));
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  padding: clamp(2rem, 4.8vh, 3.2rem) 0 1.35rem;
  display: grid;
  align-items: start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  contain: layout paint;
  border-radius: 34px;
  border: 1px solid rgba(133, 186, 248, 0.26);
  background:
    radial-gradient(84% 58% at 8% 8%, rgba(139, 196, 255, 0.2), transparent 74%),
    radial-gradient(82% 56% at 92% 12%, rgba(123, 241, 212, 0.16), transparent 76%),
    linear-gradient(168deg, rgba(250, 254, 255, 0.74), rgba(238, 247, 255, 0.5));
  backdrop-filter: blur(14px) saturate(134%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26),
    0 18px 42px rgba(16, 38, 70, 0.12),
    0 0 34px rgba(126, 176, 248, 0.16),
    0 0 42px rgba(119, 231, 203, 0.11);
  transform:
    perspective(1700px)
    rotateX(calc(var(--home-depth-tilt-x, 0deg) * 0.1))
    rotateY(calc(var(--home-depth-tilt-y, 0deg) * -0.12))
    translate3d(
      calc(var(--home-depth-shift-x, 0px) * 0.03),
      calc(var(--home-depth-shift-y, 0px) * 0.03),
      calc((var(--home-depth-depth, 1) - 1) * 36px)
    );
  transition:
    transform 360ms cubic-bezier(0.2, 0.82, 0.25, 1),
    box-shadow 320ms ease,
    border-color 240ms ease;
  animation:
    home-stage-border-pulse 10s ease-in-out infinite,
    home-stage-liquid-drift 30s ease-in-out infinite alternate;
  margin: 0 auto;
}

body[data-page="home"] .home-page > .section.home-apple-stage:not(.home-stage-intro) {
  content-visibility: auto;
  contain-intrinsic-size: 980px;
}

body[data-page="home"] .home-page > .section.home-apple-stage > * {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .home-page > .section.home-apple-stage::before,
body[data-page="home"] .home-page > .section.home-apple-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(1px);
}

body[data-page="home"] .home-page > .section.home-apple-stage::before {
  width: clamp(12rem, 24vw, 20rem);
  height: clamp(12rem, 24vw, 20rem);
  top: clamp(0.4rem, 3vh, 2.2rem);
  right: clamp(-3.5rem, -5vw, -1.4rem);
  background:
    radial-gradient(62% 44% at 20% 24%, rgba(127, 174, 245, 0.28), transparent 78%),
    linear-gradient(
      120deg,
      rgba(112, 157, 236, 0.2) 0%,
      rgba(96, 199, 198, 0.14) 35%,
      rgba(199, 228, 255, 0.08) 56%,
      rgba(116, 210, 184, 0.13) 78%,
      rgba(115, 156, 226, 0.2) 100%
    );
  background-size: 150% 130%, 220% 180%;
  background-position: 14% 26%, 0% 48%;
  transform:
    translate3d(
      calc(var(--home-depth-shift-x, 0px) * 0.24),
      calc(var(--home-depth-shift-y, 0px) * 0.2),
      calc((var(--home-depth-depth, 1) - 1) * 160px)
    )
    rotateZ(calc(var(--home-depth-roll, 0deg) * 0.42))
    scale(calc(0.98 + ((var(--home-depth-depth, 1) - 1) * 0.75)));
  opacity: 0.42;
  mix-blend-mode: screen;
  animation: home-aurora-section-flow 24s ease-in-out infinite alternate;
  transition: transform 360ms cubic-bezier(0.18, 0.72, 0.24, 1), opacity 320ms ease;
}

body[data-page="home"] .home-page > .section.home-apple-stage::after {
  inset: 0;
  padding: 1.35px;
  width: auto;
  height: auto;
  bottom: auto;
  left: auto;
  background:
    linear-gradient(
      124deg,
      rgba(132, 188, 255, 0.64) 0%,
      rgba(121, 245, 218, 0.52) 28%,
      rgba(244, 206, 149, 0.48) 52%,
      rgba(190, 171, 255, 0.46) 76%,
      rgba(132, 188, 255, 0.62) 100%
    ),
    radial-gradient(54% 46% at 74% 72%, rgba(129, 212, 189, 0.18), transparent 78%),
    linear-gradient(
      166deg,
      rgba(108, 161, 236, 0.13) 0%,
      rgba(130, 203, 230, 0.09) 32%,
      rgba(245, 252, 255, 0.03) 55%,
      rgba(104, 190, 170, 0.08) 78%,
      rgba(106, 153, 223, 0.12) 100%
    );
  background-size: 240% 240%, 145% 125%, 210% 170%;
  background-position: 0% 52%, 74% 68%, 100% 52%;
  transform:
    translate3d(
      calc(var(--home-depth-shift-x, 0px) * -0.08),
      calc(var(--home-depth-shift-y, 0px) * -0.08),
      calc((var(--home-depth-depth, 1) - 1) * 90px)
    )
    rotateZ(calc(var(--home-depth-roll, 0deg) * -0.2))
    scale(calc(0.98 + ((var(--home-depth-depth, 1) - 1) * 0.42)));
  opacity: calc(0.26 + (var(--home-depth-phase, 0.46) * 0.2));
  mix-blend-mode: screen;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter:
    saturate(1.16)
    drop-shadow(0 0 13px rgba(112, 181, 252, 0.16))
    drop-shadow(0 0 18px rgba(114, 240, 207, 0.13));
  animation:
    home-aurora-border-flow 18s linear infinite,
    home-aurora-border-pulse 7.5s ease-in-out infinite alternate;
  transition: transform 380ms cubic-bezier(0.18, 0.72, 0.24, 1), opacity 320ms ease;
}

body[data-page="home"] .home-page > .section.home-apple-stage .hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
  background:
    linear-gradient(
      154deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.02) 44%,
      rgba(120, 180, 248, 0.09) 72%,
      rgba(112, 238, 206, 0.08) 100%
    ),
    repeating-linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.08) 0 10px,
      rgba(255, 255, 255, 0) 10px 17px
    );
  mix-blend-mode: screen;
  opacity: 0.26;
}

body[data-page="home"] .home-page > .section.home-apple-stage .hero-panel > * {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .home-stage-intro {
  padding-top: clamp(2.25rem, 5.8vh, 3.2rem);
  background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  align-items: center;
  overflow: hidden;
}

body[data-page="home"] .home-apple-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(0.9rem, 1.8vw, 1.45rem);
  align-items: stretch;
}

body[data-page="home"] .home-apple-glass,
body[data-page="home"] .home-apple-metrics,
body[data-page="home"] .home-stage-copy,
body[data-page="home"] #home-initiative-preview .detail-panel,
body[data-page="home"] #home-stack-preview .stack-card {
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.89)) padding-box,
    linear-gradient(
      126deg,
      rgba(137, 188, 255, 0.55) 0%,
      rgba(120, 241, 208, 0.42) 30%,
      rgba(246, 201, 143, 0.34) 58%,
      rgba(176, 167, 251, 0.34) 76%,
      rgba(132, 184, 255, 0.48) 100%
    ) border-box;
  background-size: auto, 240% 220%;
  background-position: 0% 0%, 0% 50%;
  backdrop-filter: blur(14px) saturate(132%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 20px 56px rgba(18, 45, 86, 0.14),
    0 0 20px rgba(124, 181, 248, 0.08);
  border-radius: 22px;
  position: relative;
  z-index: 1;
  color: var(--ink);
  transform:
    perspective(1200px)
    translate3d(
      calc(var(--home-depth-shift-x, 0px) * 0.014),
      calc(var(--home-depth-shift-y, 0px) * 0.014),
      calc((var(--home-depth-depth, 1) - 1) * 20px)
    );
  transition: transform 320ms cubic-bezier(0.2, 0.82, 0.25, 1), box-shadow 260ms ease;
  animation:
    home-card-border-flow 24s linear infinite,
    home-card-border-pulse 8.5s ease-in-out infinite alternate;
}

body[data-page="home"] .home-apple-glass,
body[data-page="home"] .home-apple-metrics {
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
}

body[data-page="home"] .home-apple-glass .eyebrow {
  margin-bottom: 0.58rem;
}

body[data-page="home"] .home-apple-title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

body[data-page="home"] .home-apple-glass .lede {
  max-width: 34ch;
}

body[data-page="home"] .home-apple-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

body[data-page="home"] .home-apple-metrics {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: clip;
  isolation: isolate;
  perspective: 1200px;
  transform-style: preserve-3d;
  --bubble-tilt-x: -3.8deg;
  --bubble-tilt-y: 5.6deg;
  --bubble-roll-z: 0deg;
  --bubble-pan-x: 0px;
  --bubble-pan-y: 0px;
  --bubble-depth-scale: 1;
  --bubble-focus: 0.58;
  --bubble-phase: 0.4;
}

body[data-page="home"] .home-apple-metrics > * {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .home-apple-metrics::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 64% at 20% 18%, rgba(86, 144, 246, 0.18), transparent 72%),
    radial-gradient(54% 52% at 82% 26%, rgba(69, 204, 170, 0.15), transparent 66%),
    radial-gradient(62% 58% at 52% 84%, rgba(236, 167, 82, 0.13), transparent 70%);
  transform: translateZ(-40px);
}

body[data-page="home"] .home-apple-metrics::after {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.2), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.58;
}

body[data-page="home"] .home-stage-products,
body[data-page="home"] .home-stage-system {
  grid-template-columns: minmax(290px, 0.84fr) minmax(0, 1.16fr);
  gap: 1.1rem;
  align-items: start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid transparent;
  background:
    radial-gradient(128% 94% at 4% 18%, rgba(160, 210, 255, 0.26), transparent 62%),
    radial-gradient(128% 90% at 92% 24%, rgba(114, 236, 206, 0.24), transparent 64%),
    radial-gradient(110% 84% at 56% 100%, rgba(255, 205, 150, 0.2), transparent 70%),
    radial-gradient(132% 90% at 58% -8%, rgba(195, 174, 252, 0.14), transparent 67%),
    linear-gradient(166deg, rgba(252, 255, 255, 0.93), rgba(237, 246, 255, 0.84)) padding-box,
    linear-gradient(
      124deg,
      rgba(130, 184, 255, 0.48) 0%,
      rgba(118, 236, 208, 0.42) 30%,
      rgba(246, 200, 142, 0.4) 56%,
      rgba(171, 160, 248, 0.36) 78%,
      rgba(126, 174, 246, 0.44) 100%
    ) border-box;
  background-size: auto, auto, auto, auto, auto, 240% 240%;
  background-position: 4% 18%, 92% 24%, 56% 100%, 58% -8%, 0% 0%, 0% 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.36),
    0 20px 46px rgba(16, 40, 72, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 28px rgba(126, 176, 248, 0.14),
    0 0 36px rgba(121, 238, 210, 0.1);
  animation:
    home-stage-border-flow 20s linear infinite,
    home-stage-border-pulse 10s ease-in-out infinite;
}

body[data-page="home"] .home-stage-products::before,
body[data-page="home"] .home-stage-system::before {
  content: "";
  position: absolute;
  inset: -24% -18%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(66% 48% at 18% 18%, rgba(138, 191, 255, 0.34), transparent 74%),
    radial-gradient(62% 44% at 84% 22%, rgba(131, 242, 207, 0.3), transparent 74%),
    radial-gradient(58% 40% at 58% 86%, rgba(244, 198, 140, 0.26), transparent 74%),
    linear-gradient(
      118deg,
      rgba(107, 165, 247, 0.24) 0%,
      rgba(121, 231, 202, 0.2) 30%,
      rgba(235, 196, 128, 0.16) 58%,
      rgba(175, 163, 248, 0.14) 78%,
      rgba(134, 180, 248, 0.22) 100%
    );
  filter: blur(8px);
  opacity: 0.66;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
}

body[data-page="home"] .home-stage-products::after,
body[data-page="home"] .home-stage-system::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 16% 78%, rgba(132, 247, 214, 0.2), transparent 74%),
    radial-gradient(54% 36% at 85% 80%, rgba(255, 207, 160, 0.18), transparent 74%),
    radial-gradient(56% 30% at 50% 4%, rgba(184, 171, 248, 0.14), transparent 72%),
    linear-gradient(
      164deg,
      rgba(130, 184, 255, 0.16) 0%,
      rgba(160, 220, 255, 0.1) 36%,
      rgba(255, 255, 255, 0.06) 57%,
      rgba(149, 246, 220, 0.12) 82%,
      rgba(127, 173, 245, 0.18) 100%
    );
  opacity: 0.58;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(140% 120% at 50% 48%, #000 58%, rgba(0, 0, 0, 0.88) 70%, transparent 100%);
  mask-image: radial-gradient(140% 120% at 50% 48%, #000 58%, rgba(0, 0, 0, 0.88) 70%, transparent 100%);
}

body[data-page="home"] .home-stage-products > *,
body[data-page="home"] .home-stage-system > * {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .home-apple-kpis {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .metric-tile {
  border-radius: 18px;
  border: 1px solid rgba(24, 46, 82, 0.18);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 22px rgba(17, 44, 84, 0.08);
  backdrop-filter: blur(2px);
}

body[data-page="home"] .metric-tile strong {
  font-size: clamp(2rem, 2vw, 2.28rem);
  letter-spacing: -0.02em;
}

body[data-page="home"] .metric-bubble-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint style;
  opacity: 0.98;
  transform-style: preserve-3d;
  transform:
    translate3d(var(--bubble-pan-x, 0px), var(--bubble-pan-y, 0px), 0)
    rotateX(var(--bubble-tilt-x, -3deg))
    rotateY(var(--bubble-tilt-y, 5deg))
    rotateZ(var(--bubble-roll-z, 0deg))
    scale(calc(var(--bubble-depth-scale, 1) + (var(--bubble-phase, 0.4) * 0.03)));
  transition: transform 420ms cubic-bezier(0.18, 0.72, 0.24, 1);
  will-change: transform;
}

body[data-page="home"] .home-apple-metrics.is-perf-mode .metric-bubble-layer {
  opacity: 0.88;
}

body[data-page="home"] .home-apple-metrics.is-perf-mode .metric-bubble-layer::before,
body[data-page="home"] .home-apple-metrics.is-perf-mode .metric-bubble-layer::after {
  animation-duration: 42s;
  opacity: 0.72;
}

body[data-page="home"] .home-apple-metrics.is-perf-mode .metric-bubble {
  transition: opacity 180ms ease, box-shadow 180ms ease, transform 120ms ease, filter 180ms ease;
}

body[data-page="home"] .metric-bubble-layer::before {
  content: "";
  position: absolute;
  inset: -24% -20%;
  background:
    radial-gradient(120% 72% at 8% 4%, rgba(138, 206, 255, 0.22), transparent 58%),
    radial-gradient(130% 76% at 92% 8%, rgba(95, 255, 196, 0.2), transparent 62%),
    linear-gradient(104deg,
      rgba(117, 190, 255, 0.12) 8%,
      rgba(74, 234, 189, 0.23) 28%,
      rgba(115, 163, 255, 0.18) 48%,
      rgba(83, 238, 178, 0.22) 68%,
      rgba(161, 188, 255, 0.16) 88%);
  filter:
    blur(1.1px)
    saturate(calc(1.18 + (var(--bubble-phase, 0.4) * 0.24)))
    hue-rotate(calc((var(--bubble-phase, 0.4) - 0.5) * 12deg));
  transform-origin: 50% 40%;
  animation: metric-aurora-field-flow 26s ease-in-out infinite alternate;
}

body[data-page="home"] .metric-bubble-layer::after {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(72% 52% at 18% 16%, rgba(193, 241, 255, 0.28), transparent 62%),
    radial-gradient(74% 48% at 84% 24%, rgba(148, 255, 225, 0.24), transparent 64%),
    linear-gradient(116deg,
      rgba(152, 205, 255, 0.1) 16%,
      rgba(78, 228, 179, 0.2) 42%,
      rgba(119, 170, 255, 0.14) 66%,
      rgba(205, 232, 255, 0.06) 94%);
  mix-blend-mode: screen;
  opacity: calc(0.58 + (var(--bubble-phase, 0.4) * 0.26));
  animation: metric-aurora-ribbon-sheen 34s ease-in-out infinite alternate-reverse;
}

body[data-page="home"] .metric-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--bubble-size, 18px);
  height: var(--bubble-size, 18px);
  border-radius: 999px;
  transform:
    translate3d(
      calc(var(--bubble-x, 0px) + var(--bubble-drift-x, 0px)),
      calc(var(--bubble-y, 0px) + var(--bubble-drift-y, 0px)),
      calc(var(--bubble-z, 0px) * var(--bubble-focus, 0.58))
    )
    scale(var(--bubble-scale, 1));
  opacity: var(--bubble-alpha, 0.45);
  background:
    radial-gradient(circle at 28% 24%, rgba(243, 255, 255, 0.72), rgba(243, 255, 255, 0.04) 56%),
    radial-gradient(circle at 58% 70%, var(--bubble-color, rgba(66, 137, 226, 0.5)), rgba(66, 137, 226, 0.02) 74%);
  box-shadow:
    inset 0 1px 0 rgba(244, 255, 255, 0.46),
    0 0 0 1px rgba(176, 212, 255, 0.18),
    0 0 calc(var(--bubble-glow, 8px) * 1.2px) rgba(106, 200, 255, 0.22),
    0 0 calc(var(--bubble-shadow-depth, 12px) * 1.1) rgba(92, 242, 188, 0.2);
  mix-blend-mode: screen;
  filter: saturate(1.08) blur(var(--bubble-blur, 0px));
  transition: opacity 220ms ease, box-shadow 220ms ease, transform 180ms ease, filter 220ms ease;
  will-change: transform, opacity;
}

body[data-page="home"] .metric-bubble::before {
  content: "";
  position: absolute;
  inset: 14% 16% 18%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 72%);
}

body[data-page="home"] .metric-bubble::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  border: 1px solid rgba(205, 227, 255, 0.2);
  opacity: 0.52;
}

body[data-page="home"] .metric-bubble.is-hot {
  opacity: min(1, calc(var(--bubble-alpha, 0.45) + 0.3));
  box-shadow:
    inset 0 1px 0 rgba(250, 255, 255, 0.7),
    0 0 0 1px rgba(171, 214, 248, 0.34),
    0 0 calc(var(--bubble-glow, 8px) * 1.76px) rgba(110, 205, 255, 0.48),
    0 0 calc(var(--bubble-shadow-depth, 12px) * 1.26) rgba(102, 250, 197, 0.34);
}

body[data-page="home"] .metric-bubble.is-pop {
  animation: metric-bubble-pop 460ms cubic-bezier(0.18, 0.72, 0.24, 1) forwards;
}

@keyframes metric-bubble-pop {
  0% {
    transform: translate3d(var(--bubble-x, 0px), var(--bubble-y, 0px), var(--bubble-z, 0px)) scale(1);
    opacity: min(1, calc(var(--bubble-alpha, 0.45) + 0.2));
  }
  52% {
    transform: translate3d(var(--bubble-x, 0px), var(--bubble-y, 0px), var(--bubble-z, 0px)) scale(1.28);
    opacity: 0.86;
  }
  100% {
    transform: translate3d(var(--bubble-x, 0px), var(--bubble-y, 0px), var(--bubble-z, 0px)) scale(0.88);
    opacity: 0.34;
  }
}

@keyframes metric-aurora-field-flow {
  0% {
    transform: translate3d(-2.2%, -1.4%, -28px) rotate(-1.2deg) scale(1);
  }
  100% {
    transform: translate3d(2.4%, 1.8%, 0px) rotate(1.4deg) scale(1.05);
  }
}

@keyframes metric-aurora-ribbon-sheen {
  0% {
    transform: translate3d(-1.8%, 1.2%, -12px) rotate(-0.8deg) scale(1);
    opacity: calc(0.54 + (var(--bubble-phase, 0.4) * 0.22));
  }
  100% {
    transform: translate3d(1.9%, -1.4%, 6px) rotate(1deg) scale(1.06);
    opacity: calc(0.66 + (var(--bubble-phase, 0.4) * 0.24));
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .metric-bubble-layer {
    display: none;
  }

  body[data-page="home"] .home-depth-realm {
    display: none;
  }

  body[data-page="home"] .home-page > .section.home-apple-stage::before,
  body[data-page="home"] .home-page > .section.home-apple-stage::after {
    transition: none;
    transform: none;
  }
}

@media (max-width: 860px) {
  body[data-page="home"] .home-depth-realm {
    opacity: 0.9;
    perspective: calc(1500px + (var(--home-depth-phase, 0.46) * 620px));
  }

  body[data-page="home"] .home-apple-metrics {
    --bubble-tilt-x: -2.1deg;
    --bubble-tilt-y: 2.8deg;
    --bubble-roll-z: -0.8deg;
    --bubble-depth-scale: 1;
    --bubble-focus: 0.62;
  }

  body[data-page="home"] .metric-bubble-layer::before,
  body[data-page="home"] .metric-bubble-layer::after {
    animation-duration: 30s;
  }
}

body[data-page="home"] .home-stage-contact {
  place-items: start;
  align-items: start;
  padding-top: clamp(1.6rem, 4.4vh, 2.6rem);
}

body[data-page="home"] .home-contact-card {
  width: min(920px, 100%);
  margin-inline: auto;
  padding: clamp(1.2rem, 2.8vw, 1.8rem);
}

body[data-page="home"] .home-contact-card h2 {
  font-size: clamp(1.78rem, 3.7vw, 2.72rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-bottom: 0.52rem;
}

body[data-page="home"] .home-contact-card .lede {
  max-width: 54ch;
  margin-bottom: 1rem;
}

body[data-page="home"] .home-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem 0.82rem;
}

body[data-page="home"] .home-contact-form label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(28, 48, 79, 0.92);
}

body[data-page="home"] .home-contact-form label.full {
  grid-column: 1 / -1;
}

body[data-page="home"] .home-contact-form input,
body[data-page="home"] .home-contact-form textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(24, 49, 86, 0.2);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.82rem;
}

body[data-page="home"] .home-contact-form textarea {
  min-height: 8.8rem;
  resize: vertical;
}

body[data-page="home"] .home-contact-actions {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  gap: 0.56rem;
}

body[data-page="home"] #home-contact-status {
  grid-column: 1 / -1;
  margin: 0;
}

body[data-page="home"] .home-stage-copy {
  padding: clamp(1rem, 2.4vw, 1.4rem);
  min-height: clamp(16rem, 34vh, 20rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body[data-page="home"] .home-stage-copy h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body[data-page="home"] .home-stage-copy .lede {
  max-width: 30ch;
}

body[data-page="home"] #home-product-type-row {
  margin-top: 0.74rem;
  gap: 0.5rem;
}

body[data-page="home"] #home-product-type-row .tag {
  color: rgba(19, 43, 77, 0.95);
  border-color: rgba(63, 105, 171, 0.34);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.96), rgba(214, 229, 252, 0.9));
  font-weight: 700;
  letter-spacing: 0.01em;
}

body[data-page="home"] .home-apple-glass .lede,
body[data-page="home"] .home-stage-copy .lede,
body[data-page="home"] .metric-note,
body[data-page="home"] .metric-tile span {
  color: rgba(42, 64, 96, 0.94);
}

body[data-page="home"] #home-benchmark-rail {
  margin-top: 0.78rem;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.56rem;
  padding: 0.04rem 0.04rem 0.36rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 97, 173, 0.42) rgba(26, 42, 70, 0.08);
}

body[data-page="home"] #home-benchmark-rail .benchmark-pill {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(18, 37, 68, 0.14);
  flex: 0 0 min(17.6rem, 76vw);
  min-width: 0;
  padding: 0.62rem 0.74rem;
  color: var(--ink);
}

body[data-page="home"] #home-benchmark-rail .benchmark-pill span {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: rgba(46, 92, 165, 0.93);
}

body[data-page="home"] #home-benchmark-rail .benchmark-pill strong {
  font-size: 0.8rem;
  line-height: 1.36;
  color: rgba(28, 46, 74, 0.96);
  font-weight: 700;
}

body[data-page="home"] #home-benchmark-rail::-webkit-scrollbar {
  height: 0.42rem;
}

body[data-page="home"] #home-benchmark-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(55, 97, 173, 0.45);
}

body[data-page="home"] #home-benchmark-rail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(26, 42, 70, 0.09);
}

body[data-page="home"] #home-initiative-preview,
body[data-page="home"] #home-stack-preview {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  margin-top: 0;
  align-items: flex-start;
  gap: 0.78rem;
  padding: 0.2rem 0.18rem 0.9rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 97, 173, 0.42) rgba(26, 42, 70, 0.08);
}

body[data-page="home"] #home-initiative-preview.cinema-rail,
body[data-page="home"] #home-stack-preview.cinema-rail {
  align-items: flex-start;
  padding: 0.2rem 0.16rem 0.9rem;
}

body[data-page="home"] #home-initiative-preview.cinema-rail > *,
body[data-page="home"] #home-stack-preview.cinema-rail > * {
  flex-basis: min(22.6rem, 84vw);
  min-height: 0;
}

body[data-page="home"] #home-initiative-preview > *,
body[data-page="home"] #home-stack-preview > * {
  flex: 0 0 min(22.6rem, 84vw);
  min-height: 0;
}

body[data-page="home"] #home-initiative-preview .detail-panel,
body[data-page="home"] #home-stack-preview .stack-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.56rem;
  min-height: clamp(10.2rem, 22vh, 12.6rem);
  text-decoration: none;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid transparent;
  background-size: 100% 100%, 230% 230%;
  background-position: 0 0, 0% 52%;
  animation: home-mini-card-aurora 24s ease-in-out infinite alternate;
  box-shadow:
    0 18px 38px rgba(15, 40, 78, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

body[data-page="home"] #home-initiative-preview .detail-panel {
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.9)) padding-box,
    linear-gradient(
      116deg,
      rgba(102, 154, 236, 0.6) 0%,
      rgba(84, 208, 196, 0.5) 30%,
      rgba(236, 190, 120, 0.46) 57%,
      rgba(149, 173, 245, 0.56) 80%,
      rgba(91, 151, 230, 0.6) 100%
    ) border-box;
}

body[data-page="home"] #home-stack-preview .stack-card {
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.9)) padding-box,
    linear-gradient(
      126deg,
      rgba(86, 150, 229, 0.58) 0%,
      rgba(88, 204, 213, 0.52) 26%,
      rgba(119, 221, 188, 0.46) 47%,
      rgba(160, 183, 246, 0.54) 72%,
      rgba(236, 182, 126, 0.44) 90%,
      rgba(102, 160, 238, 0.58) 100%
    ) border-box;
  animation-duration: 28s;
}

body[data-page="home"] .home-mini-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body[data-page="home"] .home-mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 87, 154, 0.36);
  box-shadow: 0 18px 36px rgba(15, 40, 78, 0.15);
}

body[data-page="home"] .home-mini-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(38, 98, 194, 0.82), rgba(96, 157, 233, 0.82));
  opacity: 0.76;
}

@keyframes home-mini-card-aurora {
  0% {
    background-position: 0 0, 0% 52%;
  }
  100% {
    background-position: 0 0, 100% 48%;
  }
}

body[data-page="home"] .home-mini-head {
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

body[data-page="home"] .home-mini-emblem {
  width: 2.26rem;
  height: 2.26rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(56, 98, 166, 0.32);
  background: linear-gradient(165deg, rgba(235, 245, 255, 0.98), rgba(196, 219, 251, 0.74));
  color: rgba(24, 53, 95, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

body[data-page="home"] .home-mini-head-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

body[data-page="home"] .home-mini-head-copy .eyebrow {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(33, 87, 165, 0.95);
}

body[data-page="home"] .home-mini-head-copy h3 {
  margin: 0;
  line-height: 1.18;
  font-size: 1.06rem;
  color: rgba(16, 33, 59, 0.98);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body[data-page="home"] .home-mini-caption {
  margin: 0;
  color: rgba(33, 57, 92, 0.96);
  line-height: 1.42;
  font-size: 0.89rem;
  min-height: 2.46rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body[data-page="home"] .home-mini-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

body[data-page="home"] .home-mini-bar {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(72, 110, 172, 0.24);
  background: rgba(206, 223, 247, 0.44);
}

body[data-page="home"] .home-mini-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(53, 104, 195, 0.88), rgba(98, 156, 230, 0.9));
}

body[data-page="home"] #home-initiative-preview .detail-panel .tag-row,
body[data-page="home"] #home-stack-preview .stack-card .tag-row {
  margin-top: auto;
  gap: 0.34rem;
}

body[data-page="home"] #home-initiative-preview .tag,
body[data-page="home"] #home-stack-preview .tag {
  color: rgba(20, 47, 82, 0.94);
  border-color: rgba(62, 101, 166, 0.32);
  background: rgba(226, 237, 254, 0.86);
  padding: 0.3rem 0.56rem;
  font-size: 0.76rem;
  font-weight: 600;
}

body[data-page="home"] .metric-note {
  margin-top: 0.8rem;
}

body[data-page="home"] .home-scroll-footer {
  width: min(1280px, calc(100% - 3.4rem));
  min-height: clamp(6rem, 15vh, 8.2rem);
  display: flex;
  align-items: flex-end;
  margin-top: 0.28rem;
  padding: 0.34rem 0 0.52rem;
  scroll-snap-align: end;
  scroll-snap-stop: normal;
  position: relative;
  z-index: 5;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="home"] .home-footer-shell {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 255, 0.84)) padding-box,
    linear-gradient(
      124deg,
      rgba(131, 186, 255, 0.46) 0%,
      rgba(122, 236, 206, 0.36) 30%,
      rgba(244, 201, 146, 0.28) 58%,
      rgba(176, 164, 250, 0.28) 78%,
      rgba(131, 186, 255, 0.42) 100%
    ) border-box;
  background-size: auto, 230% 210%;
  background-position: 0% 0%, 0% 50%;
  box-shadow: 0 10px 26px rgba(17, 38, 70, 0.08);
  padding: 0.72rem 0.96rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.46rem 0.8rem;
  color: rgba(31, 52, 84, 0.92);
  font-size: 0.84rem;
  animation:
    home-card-border-flow 30s linear infinite,
    home-card-border-pulse 9.5s ease-in-out infinite alternate;
}

body[data-page="home"] .home-footer-shell span:first-child {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(22, 44, 78, 0.9);
}

body[data-page="home"] .site-footer {
  display: none;
}

body[data-page="trusted"] .page {
  padding-bottom: 0.95rem;
  gap: 0.25rem;
}

body[data-page="trusted"] .section {
  width: min(1180px, calc(100% - 2.2rem));
  padding: 1.05rem 0;
}

body[data-page="trusted"] .hero-copy h1 {
  max-width: 14ch;
  letter-spacing: -0.02em;
}

body[data-page="trusted"] .hero-copy .lede,
body[data-page="trusted"] .section-heading p {
  max-width: 58ch;
}

body[data-page="trusted"] #trusted-client-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="trusted"] #trusted-partner-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

body[data-page="trusted"] #trusted-partner-grid .card {
  min-height: 100%;
  padding: 1.05rem;
}

body[data-page="trusted"] #trusted-client-grid .card h3,
body[data-page="trusted"] #trusted-partner-grid .card h3 {
  line-height: 1.3;
}

body[data-page="trusted"] #trusted-client-grid .card p,
body[data-page="trusted"] #trusted-partner-grid .card p {
  line-height: 1.56;
}

body[data-page="trusted"] .trusted-cta-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
  align-content: start;
  margin-top: 0.15rem;
}

body[data-page="trusted"] .trusted-cta-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.72rem 1rem;
  line-height: 1.2;
  text-align: center;
}

body[data-page="trusted"] .trusted-scroll-footer {
  width: min(1180px, calc(100% - 2.2rem));
  min-height: 5.5rem;
  display: flex;
  align-items: flex-end;
  padding: 0.16rem 0 0.56rem;
}

body[data-page="trusted"] .trusted-footer-shell {
  width: 100%;
  border: 1px solid rgba(35, 58, 96, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 255, 0.84));
  box-shadow: 0 10px 26px rgba(17, 38, 70, 0.08);
  padding: 0.72rem 0.96rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.42rem 0.8rem;
  color: rgba(31, 52, 84, 0.92);
  font-size: 0.84rem;
}

body[data-page="trusted"] .trusted-footer-shell span:first-child {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(22, 44, 78, 0.9);
}

@media (max-width: 1080px) {
  body[data-page="home"] .home-apple-intro,
  body[data-page="home"] .home-stage-products,
  body[data-page="home"] .home-stage-system {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-stage-copy {
    min-height: auto;
  }

  body[data-page="home"] #home-initiative-preview,
  body[data-page="home"] #home-stack-preview {
    min-height: auto;
  }

  body[data-page="home"] .home-scroll-footer {
    min-height: auto;
    width: min(1280px, calc(100% - 1.8rem));
  }

  body[data-page="trusted"] #trusted-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-page="home"] .page.home-page {
    height: calc(100dvh - var(--site-header-height));
    min-height: calc(100dvh - var(--site-header-height));
    overflow-y: auto;
    overflow-x: clip;
    scroll-snap-type: y proximity;
    scroll-padding-top: 1.1rem;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.58rem 0 1rem;
    gap: 0.58rem;
  }

  body[data-page="home"] .home-page > .section.home-apple-stage {
    min-height: min(calc(100dvh - var(--site-header-height)), 44rem);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    width: min(1280px, calc(100% - 1.78rem));
    padding: 1.06rem 0 0.96rem;
    transform: none;
    backdrop-filter: blur(9px) saturate(122%);
  }

  body[data-page="home"] .home-apple-glass,
  body[data-page="home"] .home-apple-metrics,
  body[data-page="home"] .home-stage-copy,
  body[data-page="home"] #home-initiative-preview .detail-panel,
  body[data-page="home"] #home-stack-preview .stack-card {
    transform: none;
    backdrop-filter: blur(10px) saturate(122%);
  }

  body[data-page="home"] .home-scroll-footer {
    width: min(1280px, calc(100% - 1.78rem));
    padding: 0.24rem 0 0.8rem;
  }

  body[data-page="home"] .home-apple-title {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  body[data-page="home"] .home-apple-kpis {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-contact-form {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="home"] .home-contact-actions .btn,
  body[data-page="home"] .home-contact-actions .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  body[data-page="home"] .home-apple-metrics.is-perf-mode .metric-bubble-layer {
    opacity: 0.78;
  }

  body[data-page="trusted"] .section,
  body[data-page="trusted"] .trusted-scroll-footer {
    width: min(1180px, calc(100% - 1.5rem));
  }

  body[data-page="trusted"] #trusted-client-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="trusted"] .trusted-cta-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes home-aurora-page-flow {
  0% {
    background-position: 8% 24%, 88% 16%, 0% 50%;
  }
  100% {
    background-position: 28% 38%, 66% 26%, 100% 50%;
  }
}

@keyframes home-aurora-page-flow-reverse {
  0% {
    background-position: 20% 72%, 82% 76%, 100% 56%;
  }
  100% {
    background-position: 6% 62%, 92% 66%, 0% 44%;
  }
}

@keyframes home-aurora-section-flow {
  0% {
    background-position: 14% 26%, 0% 48%;
  }
  100% {
    background-position: 30% 36%, 100% 52%;
  }
}

@keyframes home-aurora-section-flow-reverse {
  0% {
    background-position: 74% 68%, 100% 52%;
  }
  100% {
    background-position: 58% 58%, 0% 48%;
  }
}

@keyframes home-aurora-border-flow {
  0% {
    background-position: 0% 52%, 74% 68%, 100% 52%;
  }
  100% {
    background-position: 100% 52%, 56% 58%, 0% 48%;
  }
}

@keyframes home-aurora-border-pulse {
  0% {
    opacity: calc(0.24 + (var(--home-depth-phase, 0.46) * 0.16));
    filter:
      saturate(1.08)
      drop-shadow(0 0 10px rgba(112, 181, 252, 0.12))
      drop-shadow(0 0 14px rgba(114, 240, 207, 0.08));
  }
  100% {
    opacity: calc(0.33 + (var(--home-depth-phase, 0.46) * 0.22));
    filter:
      saturate(1.2)
      drop-shadow(0 0 14px rgba(112, 181, 252, 0.18))
      drop-shadow(0 0 20px rgba(114, 240, 207, 0.14));
  }
}

@keyframes home-stage-border-flow {
  0% {
    background-position: 4% 18%, 92% 24%, 56% 100%, 58% -8%, 0% 0%, 0% 50%;
  }
  100% {
    background-position: 14% 30%, 84% 32%, 48% 86%, 64% 8%, 0% 0%, 100% 50%;
  }
}

@keyframes home-stage-border-pulse {
  0% {
    border-color: rgba(130, 178, 246, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.58),
      inset 0 -1px 0 rgba(255, 255, 255, 0.3),
      0 16px 34px rgba(16, 40, 72, 0.1),
      0 0 22px rgba(126, 176, 248, 0.1),
      0 0 28px rgba(121, 238, 210, 0.08);
  }
  50% {
    border-color: rgba(143, 199, 250, 0.34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.62),
      inset 0 -1px 0 rgba(255, 255, 255, 0.34),
      0 20px 44px rgba(16, 40, 72, 0.13),
      0 0 30px rgba(126, 176, 248, 0.14),
      0 0 40px rgba(121, 238, 210, 0.11);
  }
  100% {
    border-color: rgba(132, 184, 247, 0.3);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -1px 0 rgba(255, 255, 255, 0.32),
      0 18px 38px rgba(16, 40, 72, 0.11),
      0 0 26px rgba(126, 176, 248, 0.12),
      0 0 34px rgba(121, 238, 210, 0.1);
  }
}

@keyframes home-stage-liquid-drift {
  0% {
    background-position: 6% 10%, 92% 8%, 0% 54%;
  }
  100% {
    background-position: 18% 24%, 80% 20%, 100% 46%;
  }
}

@keyframes home-card-border-flow {
  0% {
    background-position: 0% 0%, 0% 50%;
  }
  100% {
    background-position: 0% 0%, 100% 50%;
  }
}

body[data-page="home"] .page.home-page.home-lite-visuals .home-page > .section.home-apple-stage {
  animation-duration: 12s, 38s;
  backdrop-filter: blur(10px) saturate(122%);
}

body[data-page="home"] .page.home-page.home-lite-visuals .home-page > .section.home-apple-stage::before {
  opacity: 0.28;
  animation-duration: 34s;
}

body[data-page="home"] .page.home-page.home-lite-visuals .home-page > .section.home-apple-stage::after {
  opacity: 0.2;
  animation-duration: 28s, 11s;
  filter:
    saturate(1.08)
    drop-shadow(0 0 10px rgba(112, 181, 252, 0.12))
    drop-shadow(0 0 14px rgba(114, 240, 207, 0.1));
}

body[data-page="home"] .page.home-page.home-lite-visuals .home-apple-glass,
body[data-page="home"] .page.home-page.home-lite-visuals .home-apple-metrics,
body[data-page="home"] .page.home-page.home-lite-visuals .home-stage-copy,
body[data-page="home"] .page.home-page.home-lite-visuals #home-initiative-preview .detail-panel,
body[data-page="home"] .page.home-page.home-lite-visuals #home-stack-preview .stack-card {
  backdrop-filter: blur(9px) saturate(118%);
  animation-duration: 34s, 12s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 30px rgba(18, 45, 86, 0.1),
    0 0 14px rgba(124, 181, 248, 0.08);
}

body[data-page="home"] .page.home-page.home-lite-visuals .home-apple-metrics .metric-bubble-layer {
  opacity: 0.72;
}

body[data-page="home"] .page.home-page.home-lite-visuals .home-depth-realm {
  opacity: 0.8;
}

@keyframes home-card-border-pulse {
  0% {
    box-shadow:
      0 16px 38px rgba(18, 45, 86, 0.11),
      0 0 16px rgba(124, 181, 248, 0.07),
      0 0 20px rgba(118, 235, 207, 0.06);
  }
  100% {
    box-shadow:
      0 20px 48px rgba(18, 45, 86, 0.14),
      0 0 24px rgba(124, 181, 248, 0.11),
      0 0 30px rgba(118, 235, 207, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-page > .section.home-apple-stage,
  body[data-page="home"] .home-stage-products,
  body[data-page="home"] .home-stage-system,
  body[data-page="home"] .home-apple-glass,
  body[data-page="home"] .home-apple-metrics,
  body[data-page="home"] .home-stage-copy,
  body[data-page="home"] .home-footer-shell,
  body[data-page="home"] .page.home-page::before,
  body[data-page="home"] .page.home-page::after,
  body[data-page="home"] .home-page > .section.home-apple-stage::before,
  body[data-page="home"] .home-page > .section.home-apple-stage::after,
  body[data-page="home"] #home-initiative-preview .detail-panel,
  body[data-page="home"] #home-stack-preview .stack-card {
    animation: none;
  }
}
