:root {
  /* Dark surfaces */
  --bg-dark:         oklch(8% 0.008 60);
  --bg-dark-card:    oklch(11% 0.008 60);
  --bg-dark-mid:     oklch(12% 0.008 60);
  --bg-dark-raised:  oklch(14% 0.008 60);
  --bg-screen-bot:   oklch(12% 0.008 60 / 0.90);
  --bg-screen-top:   oklch(14% 0.008 60 / 0.80);

  /* Light surfaces */
  --bg-light:         oklch(96% 0.012 80);
  --bg-light-mid:     oklch(95% 0.012 80);
  --bg-light-card:    oklch(93% 0.014 75);
  --bg-light-header:  oklch(91% 0.014 75);

  /* Legacy aliases — used by existing selectors, map to dark theme */
  --bg:             oklch(8% 0.008 60);
  --bg-2:           oklch(11% 0.008 60);
  --panel:          oklch(100% 0 0 / 0.04);
  --panel-2:        oklch(100% 0 0 / 0.06);

  /* Text — dark sections */
  --ink-light:       oklch(94% 0.008 75);
  --ink-light-muted: oklch(76% 0.012 75);

  /* Text — light sections */
  --ink:         oklch(18% 0.010 60);
  --ink-muted:   oklch(48% 0.018 65);
  --ink-soft:    oklch(62% 0.014 65);

  /* Legacy aliases for existing dark-section text selectors */
  --muted:  oklch(72% 0.012 75 / 0.7);
  --soft:   oklch(55% 0.010 75 / 0.7);
  --charcoal: oklch(94% 0.008 75); /* legacy: near-white text-on-dark, NOT dark charcoal */
  --graphite: oklch(75% 0.010 75);

  /* Gold accent */
  --gold:        oklch(68% 0.095 72);
  --gold-bright: oklch(78% 0.090 78);
  --gold-dim:    oklch(52% 0.075 68);
  --gold-subtle: oklch(68% 0.095 72 / 0.14);
  --gold-glow:   oklch(68% 0.095 72 / 0.20);
  --gold-haze:   oklch(68% 0.095 72 / 0.06);
  --gold-trace:  oklch(68% 0.095 72 / 0.05);

  /* Legacy gold aliases */
  --gold-dark:     oklch(52% 0.075 68);
  --gold-soft:     oklch(68% 0.095 72 / 0.12); /* new token: 12% alpha */

  /* Borders */
  --border-glass:       oklch(100% 0 0 / 0.08);
  --border-glass-hover: oklch(100% 0 0 / 0.14);
  --border-light: oklch(18% 0.010 60 / 0.10);
  --border-gold:  oklch(68% 0.095 72 / 0.28);
  --border-gold-strong: oklch(68% 0.095 72 / 0.36);

  /* Legacy border aliases */
  --line:      oklch(100% 0 0 / 0.07);
  --line-warm: oklch(68% 0.095 72 / 0.22);

  /* Status */
  --green:     oklch(52% 0.085 148);
  --green-bg:  oklch(52% 0.085 148 / 0.14);
  --green-ink: oklch(38% 0.070 148);
  --amber:     oklch(64% 0.090 72);
  --amber-bg:  oklch(68% 0.095 72 / 0.18);
  --red:       oklch(48% 0.085 22);
  --red-bg:    oklch(48% 0.085 22 / 0.15);
  --red-ink:   oklch(38% 0.070 22);

  /* Motion */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-emphasis: cubic-bezier(0.2, 0, 0, 1);
  --ease-decel:    cubic-bezier(0, 0, 0.2, 1);
  --motion-fast:   180ms;
  --motion-base:   260ms;
  --motion-slow:   480ms;
  --motion-reveal: 600ms;
  --motion-entrance: 720ms;

  /* Layout */
  --max: 1160px;

  /* Fonts */
  --display-font: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body-font: "Figtree", "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono-font: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* Legacy cp-* aliases — used by existing selectors */
  --cp-cream:            oklch(96% 0.012 80);
  --cp-off-white:        oklch(11% 0.008 60);
  --cp-warm-paper:       oklch(14% 0.008 60);
  --cp-nude-beige:       oklch(100% 0 0 / 0.08);
  --cp-soft-taupe:       oklch(100% 0 0 / 0.15);
  --cp-muted-gold:       oklch(68% 0.095 72);
  --cp-deep-gold:        oklch(52% 0.075 68);
  --cp-charcoal:         oklch(94% 0.008 75);
  --cp-charcoal-soft:    oklch(82% 0.008 75);
  --cp-graphite:         oklch(65% 0.010 75); /* legacy: darker than --graphite (75%), preserved for existing selectors */
  --cp-soft-gray:        oklch(100% 0 0 / 0.12);
  --cp-line:             oklch(100% 0 0 / 0.07);
  --cp-line-strong:      oklch(100% 0 0 / 0.12);
  --cp-gold-soft:        oklch(68% 0.095 72 / 0.10); /* legacy: 10% alpha, preserved for existing selectors */
  --cp-gold-glow:        oklch(68% 0.095 72 / 0.28); /* legacy: 28% alpha, preserved for existing selectors */
  --cp-card:             oklch(100% 0 0 / 0.04);
  --cp-card-strong:      oklch(100% 0 0 / 0.07);
  --cp-text-primary:     oklch(94% 0.008 75);
  --cp-text-secondary:   oklch(72% 0.012 75 / 0.7);
  --cp-text-muted:       oklch(55% 0.010 75 / 0.7);
  --cp-shadow-raised:
    0 1px 0 oklch(100% 0 0 / 0.06),
    0 20px 40px oklch(0% 0 0 / 0.45),
    0 4px 12px oklch(0% 0 0 / 0.30);
  --cp-shadow-inset:
    inset 0 1px 0 oklch(100% 0 0 / 0.08),
    inset 0 -1px 0 oklch(0% 0 0 / 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body-font);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(200, 164, 93, 0.18);
  transition: outline-offset 120ms var(--ease-emphasis);
}

a:focus,
button:focus {
  outline-offset: 8px;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), #e3c47b);
  z-index: 100;
  box-shadow: 0 0 14px rgba(200, 164, 93, 0.5);
  will-change: transform;
  animation: progress-glow 2.4s ease-in-out infinite;
}

.page {
  position: relative;
  z-index: 1;
}

/* ─── Section system ─────────────────────────────────────────── */
.section--dark {
  background: var(--bg-dark);
  color: var(--ink-light);
}

.section--dark p,
.section--dark .section-head p {
  color: var(--ink-light-muted);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark .module-title {
  color: var(--ink-light);
}

.section--dark .kicker,
.section--dark .meta-label,
.section--dark .eyebrow {
  color: var(--gold);
}

.section--light {
  background: var(--bg-light);
  color: var(--ink);
}

.section--light p,
.section--light .section-head p {
  color: var(--ink-muted);
}

.section--light h1,
.section--light h2,
.section--light h3 {
  color: var(--ink);
}

.section--light .kicker,
.section--light .meta-label {
  color: var(--gold-dim);
}

.section--light .bento-card {
  background: var(--bg-light-card);
  border: 1px solid oklch(18% 0.010 60 / 0.08);
  border-radius: 18px;
  box-shadow:
    8px 10px 24px oklch(18% 0.010 60 / 0.14),
    -4px -4px 14px oklch(100% 0 0 / 0.80),
    inset 0 1px 0 oklch(100% 0 0 / 0.72);
  color: var(--ink);
}

.section--light .bento-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow:
    10px 14px 32px oklch(18% 0.010 60 / 0.18),
    -4px -4px 14px oklch(100% 0 0 / 0.80),
    inset 0 1px 0 oklch(100% 0 0 / 0.72);
}

.section--light .bento-card h2,
.section--light .bento-card h3 {
  color: var(--ink);
}

.section--light .bento-card p {
  color: var(--ink-muted);
}

.section--light .bento-card .kicker,
.section--light .bento-card .meta-label {
  color: var(--gold-dim);
}

.section--light .bento-card .index {
  background: oklch(68% 0.095 72 / 0.14);
  border: 1px solid oklch(68% 0.095 72 / 0.34);
  color: var(--gold-dim);
}

/* Cards inside dark sections get glass treatment */
.section--dark .card,
.section--dark .panel,
.section--dark .list-card,
.section--dark .pricing-card,
.section--dark .case-card,
.section--dark .faq-item {
  background: var(--bg-dark-card);
  border-color: var(--border-glass);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.06),
    0 20px 40px oklch(0% 0 0 / 0.40);
  color: var(--ink-light);
}

.section--dark .card:hover,
.section--dark .panel:hover,
.section--dark .list-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.08),
    0 28px 56px oklch(0% 0 0 / 0.55);
}

.section--dark .card p,
.section--dark .panel p,
.section--dark .list-card p {
  color: var(--ink-light-muted);
}

.section--dark .index,
.home-page .bento-card .index {
  background: oklch(68% 0.095 72 / 0.18);
  border: 1px solid oklch(68% 0.095 72 / 0.40);
  color: var(--gold);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.10em;
  font-weight: 700;
}

.section--light .bento-card .index {
  background: oklch(68% 0.095 72 / 0.14);
  border: 1px solid oklch(68% 0.095 72 / 0.34);
  color: var(--gold-dim);
}

/* Cards inside light sections get neumorphic treatment */
.section--light .card,
.section--light .panel,
.section--light .list-card,
.section--light .pricing-card,
.section--light .case-card,
.section--light .faq-item {
  background: var(--bg-light-card);
  border: 1px solid oklch(18% 0.010 60 / 0.08);
  box-shadow:
    8px 10px 24px oklch(18% 0.010 60 / 0.14),
    -4px -4px 14px oklch(100% 0 0 / 0.80),
    inset 0 1px 0 oklch(100% 0 0 / 0.72);
  color: var(--ink);
}

.section--light .card:hover,
.section--light .panel:hover,
.section--light .list-card:hover {
  border-color: var(--border-gold);
  box-shadow:
    10px 14px 32px oklch(18% 0.010 60 / 0.18),
    -4px -4px 14px oklch(100% 0 0 / 0.80),
    inset 0 1px 0 oklch(100% 0 0 / 0.72);
}

.section--light .card p,
.section--light .panel p,
.section--light .list-card p {
  color: var(--ink-muted);
}

.section--light .index {
  background: oklch(68% 0.095 72 / 0.12);
  border-color: oklch(68% 0.095 72 / 0.20);
  color: var(--gold-dim);
}

/* Check items on light sections */
.section--light .check-icon {
  background: var(--green-bg);
  color: var(--green-ink);
}

/* Table on light sections */
.section--light th {
  background: var(--bg-light-header);
  color: var(--ink-soft);
}

.section--light td {
  color: var(--ink-muted);
  border-bottom-color: var(--border-light);
}

.section--light td:first-child {
  color: var(--ink);
}

/* FAQ on light sections */
.section--light details summary {
  color: var(--ink);
}

.section--light details[open] {
  border-left: 2px solid var(--gold-dim);
  padding-left: 14px;
}

.section--light details p {
  color: var(--ink-muted);
}

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

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 18px 0;
}

nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(8,9,12,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04),
    0 8px 32px rgba(0,0,0,0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 15px;
  font-weight: 850;
  line-height: 0;
  color: var(--ink-light);
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  transition: opacity var(--motion-fast) var(--ease-decel);
}

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

.brand:hover .brand-logo {
  opacity: 1;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.52), transparent 28%),
    linear-gradient(145deg, #efd9aa, #c8963e 54%, #3b3025);
  box-shadow:
    inset 2px 2px 5px rgba(255,255,255,0.56),
    inset -4px -4px 10px rgba(55,38,14,0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--border-gold-strong);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: none;
  transition:
    background var(--motion-fast) var(--ease-decel),
    color var(--motion-fast) var(--ease-decel),
    border-color var(--motion-fast) var(--ease-decel);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: transparent;
}

.hero {
  padding: 58px 18px 30px;
}

.hero-shell,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.panel,
.card,
.step,
.list-card,
.pricing-card,
.case-card,
.faq-item {
  border: 1px solid var(--border-light);
  background: var(--bg-light-card);
  box-shadow:
    16px 16px 40px oklch(18% 0.010 60 / 0.10),
    -14px -14px 34px oklch(96% 0.012 80 / 0.70),
    inset 1px 1px 0 oklch(96% 0.012 80 / 0.52);
  transition:
    transform 0.22s ease-out,
    border-color 0.22s ease-out,
    box-shadow 0.22s ease-out,
    background-color 0.22s ease-out;
}

.panel {
  border-radius: 28px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 36px;
}

.hero-copy::before,
.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 8%, rgba(200, 164, 93, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 46%);
  opacity: 0.72;
}

.hero-copy > *,
.dashboard > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker,
.meta-label {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 11px;
  font-weight: 850;
  font-family: var(--mono-font);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200,150,62,0.22);
  background: rgba(200,150,62,0.10);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.home-page .eyebrow {
  position: relative;
}

.home-page .eyebrow::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: eyebrow-ripple 3.2s ease-out infinite;
  pointer-events: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  max-width: 680px;
  font-family: var(--display-font);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 650;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-family: var(--display-font);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06;
  font-weight: 650;
  text-wrap: balance;
}

h3,
.module-title {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.14;
  font-weight: 760;
}

.module-title {
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.58;
}

.lead {
  max-width: 650px;
  margin: 0;
  font-size: 17px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 13px 16px;
  border: 1px solid var(--border-light);
  background: oklch(96% 0.012 80 / 0.36);
  color: var(--ink);
  font-size: 14px;
  font-weight: 810;
  transition:
    transform 0.18s ease-out,
    border-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out;
  box-shadow:
    9px 9px 18px oklch(18% 0.010 60 / 0.08),
    -9px -9px 18px oklch(96% 0.012 80 / 0.66);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
  box-shadow:
    11px 12px 22px oklch(18% 0.010 60 / 0.12),
    -8px -8px 18px oklch(96% 0.012 80 / 0.72);
}

.btn.primary {
  background: var(--ink);
  color: var(--bg-light);
  border-color: transparent;
  box-shadow: 0 16px 28px oklch(18% 0.010 60 / 0.20);
}

.btn.primary:hover {
  background: var(--bg-dark-mid);
  color: var(--bg-light);
  box-shadow: 0 18px 30px oklch(18% 0.010 60 / 0.26);
}

/* Buttons on dark sections — glass variant */
.section--dark .btn,
.home-page .btn:not(.primary) {
  background: oklch(100% 0 0 / 0.06);
  border-color: var(--border-glass);
  color: var(--ink-light);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.06);
}

.section--dark .btn:hover,
.home-page .btn:not(.primary):hover {
  background: oklch(100% 0 0 / 0.10);
  border-color: var(--border-glass-hover);
}

.section--dark .btn.primary,
.home-page .btn.primary {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 16px 28px var(--gold-glow);
}

.section--dark .btn.primary:hover,
.home-page .btn.primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 18px 32px oklch(68% 0.095 72 / 0.28);
}

.hero-notes,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-notes span,
.tag-row span {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-light-muted);
  border: 1px solid var(--border-glass);
  background: oklch(100% 0 0 / 0.06);
}

.dashboard {
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 770;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-light-muted);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px oklch(52% 0.085 148 / 0.14);
}

.screen {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  background:
    radial-gradient(circle at 80% 18%, oklch(68% 0.095 72 / 0.14), transparent 24%),
    linear-gradient(145deg, oklch(95% 0.012 80 / 0.62), oklch(91% 0.014 75 / 0.56));
  box-shadow:
    inset 10px 10px 24px oklch(18% 0.010 60 / 0.07),
    inset -10px -10px 24px oklch(96% 0.012 80 / 0.68);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.kpi,
.module,
.metric {
  border-radius: 18px;
  border: 1px solid var(--border-light);
  background: var(--bg-light-mid);
  box-shadow:
    7px 7px 16px oklch(18% 0.010 60 / 0.07),
    -7px -7px 16px oklch(96% 0.012 80 / 0.62);
}

.kpi,
.metric {
  padding: 12px 10px;
  min-width: 0;
}

.kpi span,
.metric span {
  display: block;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  font-weight: 830;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi b,
.metric b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.home-page .kpi span,
.home-page .metric span {
  color: var(--ink-light-muted);
}

.home-page .kpi b,
.home-page .metric b {
  color: var(--ink-light);
}

.control-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
}

.module {
  min-height: 190px;
  padding: 14px;
}

.signal-list,
.bars,
.check-list,
.page-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 710;
  color: var(--muted);
}

.track {
  height: 8px;
  border-radius: 999px;
  background: oklch(18% 0.010 60 / 0.08);
  overflow: hidden;
  box-shadow: inset 1px 1px 3px oklch(18% 0.010 60 / 0.12);
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright));
  box-shadow: 0 0 14px var(--gold-glow);
  transform-origin: left center;
}

.signal,
.check-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  background: oklch(96% 0.012 80 / 0.30);
  border: 1px solid var(--border-light);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.good { background: var(--green-bg); color: var(--green-ink); }
.warn { background: var(--amber-bg); color: var(--gold-dim); }
.risk { background: var(--red-bg); color: var(--red-ink); }

.section {
  padding: 56px 0;
}

.section--dark .section {
  padding: 64px 0;
}

.section--light .section {
  padding: 56px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head p {
  margin: 0;
  max-width: 640px;
  font-size: 15.5px;
}

.grid-3,
.related-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card,
.pricing-card,
.case-card,
.list-card,
.faq-item {
  border-radius: 22px;
  padding: 22px;
}

.card:hover,
.pricing-card:hover,
.case-card:hover,
.list-card:hover,
.faq-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow:
    18px 20px 42px oklch(18% 0.010 60 / 0.14),
    -12px -12px 28px oklch(96% 0.012 80 / 0.74),
    inset 1px 1px 0 oklch(96% 0.012 80 / 0.56);
}

.index {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(200,150,62,0.20);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}

.list-card {
  display: grid;
  gap: 12px;
}

.check-item {
  grid-template-columns: 30px 1fr;
  align-items: start;
}

.check-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(110,130,98,0.14);
  color: #4f6246;
  font-weight: 900;
}

.check-item b {
  display: block;
  margin-bottom: 4px;
}

.check-item span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.46;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

th {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  background: oklch(91% 0.014 75 / 0.24);
}

td {
  color: var(--ink-muted);
}

td:first-child {
  color: var(--ink);
  font-weight: 790;
}

.table-panel {
  overflow-x: auto;
  padding: 8px;
}

.table-panel table {
  min-width: 720px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pricing-card .btn {
  margin-top: auto;
  width: fit-content;
}

.price-note {
  color: var(--gold-dark);
  font-weight: 850;
}

.case-card .metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

details summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 830;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  color: var(--gold-dark);
  font-size: 20px;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 12px 0 0;
  font-size: 14px;
}

.cta {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cta p {
  max-width: 680px;
}

.home-page {
  color: var(--cp-text-primary);
  background-color: var(--bg-dark);
}

.home-page::before {
  opacity: 0;
}

.home-page .section--dark {
  position: relative;
}

.home-page .section--dark.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%, var(--gold-haze) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 8%, var(--gold-trace) 0%, transparent 65%);
}

.home-page .section--dark > * {
  position: relative;
  z-index: 1;
}

.home-page .section--light {
  position: relative;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, oklch(91% 0.014 75 / 0.6), transparent 70%),
    var(--bg-light);
}

.home-page .section--light::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 2px,
      oklch(18% 0.010 60 / 0.015) 2px,
      oklch(18% 0.010 60 / 0.015) 3px
    );
}

.home-page .section--light > * {
  position: relative;
  z-index: 1;
}

.home-page .section--light + .section--dark {
  border-top: 1px solid oklch(68% 0.095 72 / 0.18);
}

.home-page .section--dark + .section--light {
  border-top: 1px solid oklch(68% 0.095 72 / 0.18);
}

.home-page .nav-wrap {
  padding-top: 18px;
}

.home-page nav {
  border-color: rgba(255,255,255,0.07);
  background: rgba(8,9,12,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04),
    0 8px 32px rgba(0,0,0,0.4);
  transition:
    padding-block var(--motion-base) var(--ease-decel),
    border-radius var(--motion-base) var(--ease-decel),
    backdrop-filter var(--motion-base) var(--ease-decel),
    box-shadow var(--motion-base) var(--ease-decel);
}

.home-page nav.nav--scrolled {
  padding-block: 6px;
  border-radius: 14px;
  background: rgba(8,9,12,0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06),
    0 12px 40px rgba(0,0,0,0.5);
}

.home-page .nav-links a {
  color: rgba(255,255,255,0.65);
}

.home-page .nav-links a:hover {
  color: #FFFFFF;
}

.home-hero {
  padding: 64px 18px 22px;
}

.home-main {
  padding-top: 4px;
}

.home-section {
  padding: 32px 0;
}

.home-page .bento-grid {
  perspective: 1400px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.home-bento {
  max-width: var(--max);
  margin: 0 auto;
  align-items: stretch;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.09);
  border-radius: 20px;
  background: var(--bg-dark-card);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.08),
    0 1px 3px oklch(0% 0 0 / 0.5),
    0 8px 24px oklch(0% 0 0 / 0.35);
  padding: 28px;
  transition:
    transform var(--motion-base) var(--ease-decel),
    border-color var(--motion-base) var(--ease-decel),
    box-shadow var(--motion-base) var(--ease-decel);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: oklch(100% 0 0 / 0.16);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.12),
    0 2px 6px oklch(0% 0 0 / 0.55),
    0 16px 40px oklch(0% 0 0 / 0.45);
}

/* Home-page bento on dark — larger surface, more raised */
.home-page .section--dark .bento-card {
  background: var(--bg-dark-raised);
  border: 1px solid oklch(100% 0 0 / 0.10);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.10),
    0 2px 4px oklch(0% 0 0 / 0.6),
    0 12px 32px oklch(0% 0 0 / 0.40);
}

.home-page .section--dark .bento-card:hover {
  border-color: oklch(100% 0 0 / 0.18);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.14),
    0 4px 8px oklch(0% 0 0 / 0.65),
    0 20px 48px oklch(0% 0 0 / 0.50);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, oklch(100% 0 0 / 0.04) 0%, transparent 50%);
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.card-primary {
  grid-column: span 7;
  min-height: auto;
}

.card-chart {
  grid-column: span 5;
  min-height: auto;
}

.card-action {
  grid-column: span 5;
  min-height: auto;
}

.card-list {
  grid-column: span 7;
  min-height: auto;
}

.service-card {
  grid-column: span 4;
  min-height: auto;
}

.route-card {
  grid-column: span 4;
  min-height: auto;
}

@media (min-width: 961px) {
  .card-primary { min-height: 460px; }
  .card-chart   { min-height: 460px; }
  .card-action  { min-height: 260px; }
  .card-list    { min-height: 260px; }
  .service-card { min-height: 240px; }
  .route-card   { min-height: 220px; }
}

.home-page .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: clamp(34px, 4vw, 48px);
  background:
    radial-gradient(ellipse 80% 50% at 18% 0%, oklch(68% 0.095 72 / 0.16), transparent 62%),
    var(--bg-dark-card);
}

.home-page .hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  bottom: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(68% 0.095 72 / 0.55), transparent);
  display: block;
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
  opacity: 1;
}

.home-page .dashboard::before {
  display: none;
}

.home-page h1 {
  max-width: 760px;
  color: var(--cp-charcoal);
  font-size: clamp(44px, 5.7vw, 78px);
  line-height: 0.98;
}

.home-page .section--dark h2 {
  color: var(--cp-charcoal);
  font-size: clamp(31px, 3.2vw, 48px);
}

.home-page .section--light h2 {
  color: var(--ink);
  font-size: clamp(31px, 3.2vw, 48px);
}

.home-page .section--dark h3,
.home-page .section--dark .module-title {
  color: var(--cp-charcoal);
}

.home-page .section--light h3 {
  color: var(--ink);
}

.home-page .section--dark p,
.home-page .section--dark .lead {
  color: var(--cp-text-secondary);
}

.home-page .section--light p {
  color: var(--ink-muted);
}

.home-page .lead {
  font-size: 18px;
  max-width: 690px;
}

.home-page .eyebrow,
.home-page .kicker,
.home-page .meta-label {
  color: var(--cp-deep-gold);
  letter-spacing: 0.12em;
}

.home-page .eyebrow {
  border-color: rgba(200, 150, 62, 0.26);
  background: rgba(200, 150, 62, 0.12);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.58);
}

.home-page .hero-notes span,
.home-page .tag-row span {
  color: var(--cp-text-secondary);
  border-color: var(--cp-line);
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.64),
    5px 6px 14px rgba(72, 61, 49, 0.06);
}

.home-page .dashboard {
  display: grid;
  gap: 16px;
  padding: 24px;
  min-width: 0;
}

.home-page .topbar {
  flex-wrap: wrap;
  color: var(--cp-text-secondary);
}

.home-page .screen {
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  border-color: var(--border-glass);
  background:
    radial-gradient(circle at 82% 14%, var(--gold-subtle), transparent 28%),
    linear-gradient(145deg, var(--bg-screen-top), var(--bg-screen-bot));
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.06),
    inset 0 -1px 0 oklch(0% 0 0 / 0.20);
}

.home-page .kpi,
.home-page .module,
.home-page .metric,
.home-page .signal {
  border-color: var(--border-glass);
  background: var(--bg-dark-raised);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.05),
    0 4px 12px oklch(0% 0 0 / 0.30);
}

.home-page .screen-grid {
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}

.home-page .control-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
}

.home-page .kpi,
.home-page .module,
.home-page .signal {
  min-width: 0;
}

.home-page .bar-row {
  grid-template-columns: minmax(58px, 78px) minmax(0, 1fr) 34px;
  gap: 8px;
  font-size: 11px;
}

.home-page .module {
  min-height: 220px;
  padding: 18px;
}

.home-page .track {
  height: 9px;
  background: var(--panel-2);
}

.home-page .fill {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright));
  box-shadow: 0 0 16px var(--gold-glow);
}

/* (legacy .home-page .index override removed — see section--dark .index / section--light .bento-card .index above) */

/* Light section bento layout — balanced spans for 7 cards */
.section--light .bento-grid .editorial-card {
  grid-column: span 12;
}

.section--light .bento-grid .page-stack {
  grid-column: span 6;
}

.section--light .bento-grid .route-card:nth-of-type(3),
.section--light .bento-grid .route-card:nth-of-type(4) {
  grid-column: span 3;
}

.section--light .bento-grid .route-card:nth-of-type(5),
.section--light .bento-grid .route-card:nth-of-type(6),
.section--light .bento-grid .route-card:nth-of-type(7) {
  grid-column: span 4;
}

@media (max-width: 960px) {
  .section--light .bento-grid .editorial-card,
  .section--light .bento-grid .page-stack,
  .section--light .bento-grid .route-card,
  .section--light .bento-grid .route-card:nth-of-type(3),
  .section--light .bento-grid .route-card:nth-of-type(4),
  .section--light .bento-grid .route-card:nth-of-type(5),
  .section--light .bento-grid .route-card:nth-of-type(6),
  .section--light .bento-grid .route-card:nth-of-type(7) {
    grid-column: 1 / -1;
  }
}

.home-page .card-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.home-page .card-list h2 {
  margin-bottom: 0;
}

.home-page .card-action,
.home-page .page-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-page .service-card,
.home-page .route-card {
  display: flex;
  flex-direction: column;
}

.home-page .service-card p,
.home-page .route-card p {
  margin-top: auto;
}

.home-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 260px;
}

.home-cta p {
  max-width: 680px;
}

.footer {
  max-width: none;
  margin: 0 auto;
  padding: 48px 18px 56px;
  color: var(--ink-light-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-glass);
}

.footer .footer-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.footer a {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.56s var(--ease-out),
    transform 0.56s var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
  will-change: opacity, transform;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.motion-ready .dashboard .kpi,
.motion-ready .dashboard .module,
.motion-ready .dashboard .signal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.42s var(--ease-out),
    transform 0.42s var(--ease-out);
}

.motion-ready .dashboard.is-visible .kpi,
.motion-ready .dashboard.is-visible .module,
.motion-ready .dashboard.is-visible .signal {
  opacity: 1;
  transform: none;
}

.motion-ready .dashboard.is-visible .kpi:nth-child(1) { transition-delay: 90ms; }
.motion-ready .dashboard.is-visible .kpi:nth-child(2) { transition-delay: 140ms; }
.motion-ready .dashboard.is-visible .kpi:nth-child(3) { transition-delay: 190ms; }
.motion-ready .dashboard.is-visible .kpi:nth-child(4) { transition-delay: 240ms; }
.motion-ready .dashboard.is-visible .module:nth-child(1) { transition-delay: 260ms; }
.motion-ready .dashboard.is-visible .module:nth-child(2) { transition-delay: 320ms; }
.motion-ready .dashboard.is-visible .signal:nth-child(1) { transition-delay: 380ms; }
.motion-ready .dashboard.is-visible .signal:nth-child(2) { transition-delay: 430ms; }
.motion-ready .dashboard.is-visible .signal:nth-child(3) { transition-delay: 480ms; }

.motion-ready .fill {
  width: var(--bar-target, auto) !important;
  transform: scaleX(0);
  transition: transform 0.82s var(--ease-out);
}

.motion-ready .dashboard.is-visible .fill {
  width: var(--bar-target, 0%) !important;
  transform: scaleX(1);
  transition-delay: 340ms;
}


@keyframes progress-glow {
  0%, 100% { box-shadow: 0 0 12px oklch(68% 0.095 72 / 0.50); }
  50%       { box-shadow: 0 0 28px oklch(68% 0.095 72 / 0.82); }
}

@keyframes eyebrow-ripple {
  0%   { box-shadow: 0 0 0 0px oklch(68% 0.095 72 / 0.42); opacity: 1; }
  100% { box-shadow: 0 0 0 9px oklch(68% 0.095 72 / 0);   opacity: 0; }
}

/* Nav link gold underline animation */
.home-page .nav-links a:not(.nav-cta) {
  position: relative;
}

.home-page .nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-fast) var(--ease-emphasis);
}

.home-page .nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

/* CTA activation glow — anchored bottom-right behind button */
.home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 40% 50% at 82% 78%, oklch(68% 0.095 72 / 0.14), transparent 70%);
  transition: background 320ms var(--ease-decel);
  pointer-events: none;
  z-index: 0;
}

.home-cta:hover::after {
  background: radial-gradient(ellipse 50% 60% at 82% 78%, oklch(68% 0.095 72 / 0.22), transparent 70%);
  transition-duration: 220ms;
}

/* 3D bento card entrance — home page only */
.motion-ready .home-page .bento-card.reveal {
  opacity: 0;
  transform: rotateX(5deg) translateY(18px) scale(0.99);
  transform-origin: top center;
  transition:
    opacity var(--motion-entrance) var(--ease-decel),
    transform var(--motion-entrance) var(--ease-decel);
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
  will-change: opacity, transform;
}

.motion-ready .home-page .bento-card.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .home-page {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .progress {
    animation: none;
  }

  .home-page .eyebrow::after {
    animation: none;
  }

  .home-page .hero-copy h1 .word-split,
  .home-page .hero-copy .lead {
    clip-path: none;
    animation: none;
    opacity: 1;
  }
  .home-page .hero-copy .eyebrow {
    opacity: 1;
    animation: none;
  }
  .home-page .hero-copy h1 .word-split.gold-word {
    color: var(--cp-charcoal);
    background: none;
    animation: none;
  }

  .motion-ready .home-page .bento-card.reveal {
    opacity: 1;
    transform: none;
  }

  .motion-ready .dashboard .kpi,
  .motion-ready .dashboard .module,
  .motion-ready .dashboard .signal,
  .motion-ready .fill {
    opacity: 1;
    transform: none;
    width: var(--bar-target, auto) !important;
  }

  .home-page .card-chart.dashboard {
    transform: none;
    transition: none;
  }

  .screen--shimmer::after {
    animation: none;
  }

  .variance--flash {
    animation: none;
  }

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

@media (max-width: 1080px) {
  .nav-links {
    gap: 10px;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  nav,
  .hero-shell,
  .section-head,
  .split,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .grid-3,
  .grid-2,
  .related-grid,
  .case-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .home-hero {
    padding-top: 44px;
  }

  .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .card-primary,
  .card-chart,
  .card-action,
  .card-list,
  .service-card,
  .route-card {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .home-page .hero-copy {
    min-height: auto;
  }

  .home-page .dashboard {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .nav-wrap,
  .hero,
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding-top: 38px;
  }

  .home-hero {
    padding: 40px 14px 18px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card {
    border-radius: 26px;
    padding: 22px;
  }

  .hero-copy,
  .dashboard,
  .cta {
    padding: 22px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .home-page .hero-copy h1,
  .home-page h1 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.05;
  }

  .home-page h2 {
    font-size: clamp(26px, 7.6vw, 34px);
    line-height: 1.08;
  }

  .home-page .hero-copy {
    min-height: auto;
    justify-content: flex-start;
    padding: 24px;
  }

  .home-page .dashboard {
    min-height: auto;
    padding: 20px;
  }

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

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

  .home-page .module {
    min-height: auto;
  }

  .home-page .bar-row {
    grid-template-columns: 72px minmax(0, 1fr) 34px;
  }

  .screen-grid,
  .control-grid,
  .case-card .metric-row {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 78px 1fr 34px;
  }

  th,
  td {
    padding: 12px;
  }

  .btn {
    width: 100%;
  }
}

/* Dashboard 3D tilt — driven by JS --tilt-x / --tilt-y custom props */
.home-page .card-chart.dashboard {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform:
    perspective(900px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(calc(var(--scroll-y, 0) * -0.04px));
  transition: transform 0.6s ease-out;
  will-change: transform;
}

/* Faster response on enter, slow spring on exit */
.home-page .card-chart.dashboard:hover {
  transition: transform 0.1s ease-out;
}

@keyframes screen-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(220%);
  }
}

.screen--shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 65%
  );
  animation: screen-shimmer 700ms var(--ease-decel) forwards;
  pointer-events: none;
}

/* Ensure .screen has position for ::after */
.home-page .screen {
  position: relative;
}

.home-page .screen.screen--shimmer {
  overflow: hidden;
}

/* Hero word-split entrance */
.home-page .hero-copy h1 .word-split {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: word-wipe var(--motion-entrance) var(--ease-decel) forwards;
  animation-delay: calc(var(--word-index, 0) * 60ms + 200ms);
}

@keyframes word-wipe {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}

.home-page .hero-copy .eyebrow {
  opacity: 0;
  animation: eyebrow-fade var(--motion-slow) var(--ease-decel) 80ms forwards;
}

@keyframes eyebrow-fade {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

.home-page .hero-copy .lead {
  clip-path: inset(0 100% 0 0);
  animation: word-wipe var(--motion-entrance) var(--ease-decel) forwards;
  animation-delay: 860ms;
}

/* Gold word shimmer — single pass */
.home-page .hero-copy h1 .word-split.gold-word {
  background: linear-gradient(
    90deg,
    var(--ink-light) 0%,
    var(--ink-light) 30%,
    var(--gold) 50%,
    var(--ink-light) 70%,
    var(--ink-light) 100%
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation:
    word-wipe var(--motion-entrance) var(--ease-decel) forwards,
    gold-shimmer 600ms var(--ease-decel) forwards;
  animation-delay:
    calc(var(--word-index, 0) * 60ms + 200ms),
    calc(var(--word-index, 0) * 60ms + 900ms);
}

@keyframes gold-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

@keyframes variance-flash {
  0%, 100% { color: var(--cp-charcoal); }
  40%       { color: var(--cp-muted-gold); }
}

.variance--flash {
  animation: variance-flash 400ms var(--ease-decel) forwards;
}

/* Inner page hero — dark glass treatment */
.hero .hero-shell .panel {
  background: var(--bg-dark-card);
  border-color: var(--border-glass);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.06),
    0 20px 40px oklch(0% 0 0 / 0.40);
  color: var(--ink-light);
}

.hero .hero-shell .panel:hover {
  border-color: var(--border-glass-hover);
}

.hero .hero-shell .panel p,
.hero .hero-shell .panel .lead {
  color: var(--ink-light-muted);
}

.hero .hero-shell .panel h1 {
  color: var(--ink-light);
}

.hero .hero-shell .panel .eyebrow {
  border-color: var(--border-gold);
  background: var(--cp-gold-soft);
  color: var(--gold);
}

.hero .hero-shell .panel .hero-notes span,
.hero .hero-shell .panel .tag-row span {
  color: var(--ink-light-muted);
  border-color: var(--border-glass);
  background: var(--panel-2);
}

/* Inner page hero dashboard — dark glass screen */
.hero .hero-shell .dashboard .screen {
  border-color: var(--border-glass);
  background:
    radial-gradient(circle at 82% 14%, var(--gold-subtle), transparent 28%),
    linear-gradient(145deg, var(--bg-screen-top), var(--bg-screen-bot));
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.06),
    inset 0 -1px 0 oklch(0% 0 0 / 0.20);
}

.hero .hero-shell .dashboard .kpi,
.hero .hero-shell .dashboard .module,
.hero .hero-shell .dashboard .metric,
.hero .hero-shell .dashboard .signal {
  border-color: var(--border-glass);
  background: var(--bg-dark-raised);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.05),
    0 4px 12px oklch(0% 0 0 / 0.30);
}

.hero .hero-shell .dashboard .kpi span,
.hero .hero-shell .dashboard .metric span {
  color: var(--ink-light-muted);
}

.hero .hero-shell .dashboard .kpi b,
.hero .hero-shell .dashboard .metric b {
  color: var(--ink-light);
}

.hero .hero-shell .dashboard .bar-row {
  color: var(--ink-light-muted);
}

.hero .hero-shell .dashboard .track {
  background: var(--panel-2);
}

.hero .hero-shell .dashboard .fill {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright));
  box-shadow: 0 0 14px var(--gold-glow);
}

.hero .hero-shell .dashboard .signal {
  background: var(--panel);
  color: var(--ink-light-muted);
}

.hero .hero-shell .dashboard .topbar {
  color: var(--ink-light-muted);
}

/* ─── Design repair — premium polish layer ───────────────────────
   Added after baseline to refine hierarchy, depth, and intent. */

/* Hero ambient glow behind dashboard card */
.home-page .card-chart.dashboard {
  position: relative;
}

.home-page .card-chart.dashboard::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle at 60% 40%, oklch(68% 0.095 72 / 0.22), transparent 65%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.home-page .card-chart.dashboard > * {
  position: relative;
  z-index: 1;
}

/* Editorial card — statement H2 inside bento */
.editorial-card h2 {
  letter-spacing: -0.005em;
  line-height: 1.04;
}

.section--dark .editorial-card h2 .first-word,
.section--light .editorial-card h2 .first-word {
  position: relative;
}

.editorial-card .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid oklch(68% 0.095 72 / 0.32);
  background: oklch(68% 0.095 72 / 0.10);
  margin-bottom: 14px;
  width: fit-content;
}

.editorial-card .kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Service cards — premium offering treatment */
.home-page .service-card {
  position: relative;
  padding-bottom: 28px;
  cursor: pointer;
  transition:
    transform var(--motion-base) var(--ease-decel),
    box-shadow var(--motion-base) var(--ease-decel),
    border-color var(--motion-base) var(--ease-decel);
}

.home-page .service-card::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 22px;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
  transition: width var(--motion-base) var(--ease-decel);
}

.home-page .service-card:hover::after {
  width: 40px;
}

.home-page .service-card:hover {
  transform: translateY(-2px);
  border-color: oklch(68% 0.095 72 / 0.22);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.14),
    0 4px 8px oklch(0% 0 0 / 0.65),
    0 24px 56px oklch(0% 0 0 / 0.55);
}

/* Route cards (light section) — premium offering with arrow */
.section--light .route-card,
.section--light .page-stack {
  position: relative;
  transition:
    transform var(--motion-base) var(--ease-decel),
    border-color var(--motion-base) var(--ease-decel),
    box-shadow var(--motion-base) var(--ease-decel);
}

.section--light .route-card h3,
.section--light .page-stack h3 {
  position: relative;
  padding-right: 24px;
}

.section--light .route-card h3 a,
.section--light .page-stack h3 a {
  color: inherit;
  transition: color var(--motion-fast) var(--ease-decel);
}

.section--light .route-card h3::after,
.section--light .page-stack h3::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  color: var(--gold-dim);
  opacity: 0;
  transition:
    opacity var(--motion-fast) var(--ease-decel),
    transform var(--motion-fast) var(--ease-decel);
  font-weight: 600;
}

.section--light .route-card:hover h3::after,
.section--light .page-stack:hover h3::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.section--light .route-card:hover h3 a,
.section--light .page-stack:hover h3 a {
  color: var(--gold-dim);
}

/* CTA card — premium invitation */
.home-page .home-cta {
  position: relative;
  padding: clamp(36px, 5vw, 56px);
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, oklch(68% 0.095 72 / 0.22), transparent 60%),
    var(--bg-dark-raised);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.10),
    0 2px 4px oklch(0% 0 0 / 0.5),
    0 16px 40px oklch(0% 0 0 / 0.45);
}

.home-page .home-cta::before {
  content: "START";
  position: absolute;
  right: -2%;
  bottom: -28%;
  font-family: var(--display-font);
  font-size: clamp(160px, 22vw, 280px);
  font-weight: 700;
  color: oklch(68% 0.095 72 / 0.06);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.home-page .home-cta > * {
  position: relative;
  z-index: 1;
}

.home-page .home-cta h2 {
  color: var(--ink-light);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.home-page .home-cta p {
  color: var(--ink-light-muted);
  max-width: 560px;
}

.home-page .home-cta .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid oklch(68% 0.095 72 / 0.36);
  background: oklch(68% 0.095 72 / 0.12);
  margin-bottom: 14px;
  width: fit-content;
}

.home-page .home-cta .kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Nav refinements with logo */
.home-page nav {
  padding-left: 18px;
}

.home-page .brand {
  height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Section block padding — provide breathing room between bands */
.home-page .section--dark.hero-section {
  padding-bottom: 24px;
}

.home-page .section--dark + .section--dark .home-section {
  padding-top: 36px;
}

.home-page .section--light .home-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.home-page .section--dark:last-of-type .home-section {
  padding-top: 64px;
  padding-bottom: 80px;
}

/* Reduce hero h1 size slightly for better hierarchy */
.home-page .hero-copy h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.01;
  letter-spacing: -0.015em;
}

.home-page .hero-copy .lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
}

/* Card-list (non-editorial) h3 hierarchy */
.section--dark .card-list h3,
.section--dark .card-action h3 {
  font-size: 22px;
  letter-spacing: -0.005em;
}

/* Meta-label (small uppercase) — give breathing room */
.bento-card .meta-label {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid oklch(68% 0.095 72 / 0.20);
}

/* Hero notes — refine chips */
.home-page .hero-notes {
  margin-top: 22px;
}

.home-page .hero-notes span {
  background: oklch(100% 0 0 / 0.04);
  border-color: oklch(100% 0 0 / 0.10);
  color: var(--ink-light-muted);
  box-shadow: none;
  padding: 7px 11px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* Improve eyebrow positioning */
.home-page .hero-copy .eyebrow {
  margin-bottom: 4px;
}

/* Ensure hero lead reads well */
.home-page .hero-copy .lead {
  color: oklch(82% 0.012 75);
}

/* Tighten paragraph color in dark cards */
.home-page .section--dark .bento-card p {
  color: oklch(78% 0.012 75);
  line-height: 1.55;
}

.home-page .section--light .bento-card p {
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Card-list / card-action layout fix — top-align content */
.home-page .card-action {
  justify-content: flex-start;
}

/* Footer cleanup */
.footer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-light);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono-font);
}

.footer p {
  color: var(--ink-light-muted);
  margin-top: 4px;
  font-size: 13px;
  max-width: 32ch;
}

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

/* KPI value — ensure no overflow */
.home-page .kpi b {
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: -0.01em;
}

/* Module title hierarchy */
.home-page .module-title {
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light-muted);
  margin-bottom: 14px;
  font-family: var(--mono-font);
}

/* Signal text refinement */
.home-page .signal {
  font-size: 12px;
  color: var(--ink-light);
  padding: 10px 12px;
}

/* Navigation links — clearer hierarchy */
.home-page .nav-links a:not(.nav-cta) {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .home-page .home-cta::before {
    font-size: clamp(120px, 28vw, 200px);
    bottom: -20%;
  }

  .home-page .hero-copy {
    padding: 32px 26px;
  }
}

@media (max-width: 620px) {
  .home-page .home-cta {
    padding: 32px 24px;
    gap: 18px;
  }

  .home-page .home-cta::before {
    font-size: 140px;
    bottom: -16%;
    right: -8%;
  }

  .home-page .home-cta .btn.primary {
    width: 100%;
  }

  .home-page .hero-notes {
    gap: 6px;
  }

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

  .home-page .section--light .home-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
