* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --logo-header-height: clamp(22px, 1.6vw, 28px);
  --logo-header-mobile-height: clamp(22px, 1.6vw, 28px);
  --logo-footer-badge-height: clamp(24px, 1.8vw, 30px);
  --logo-card-height: clamp(34px, 3.2vw, 44px);
  --logo-card-max-width: clamp(34px, 3.2vw, 44px);
  --logo-card-slot-height: clamp(40px, 4vw, 52px);
  --logo-hero-height: clamp(60px, 6vw, 84px);
  --logo-hero-max-width: clamp(84px, 9vw, 144px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  color: var(--text);
  background: var(--hero-glow), var(--bg);
  line-height: var(--line-height-body);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-1);
  transform: translateY(-120%);
  transition: transform 180ms ease;
  z-index: 140;
}

.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: var(--focus-ring-strong);
}

img {
  max-width: 100%;
  display: block;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--page-accent) 76%, var(--text) 24%);
  outline-offset: 2px;
  box-shadow: var(--focus-ring-strong);
}

main {
  display: block;
  min-width: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-4);
  color: var(--text);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--type-h1);
  font-weight: 700;
  letter-spacing: calc(var(--tracking-tight) * 1.1);
}

h2 {
  font-size: var(--type-h2);
  font-weight: 600;
  letter-spacing: calc(var(--tracking-tight) * 0.85);
}

h3 {
  font-size: var(--type-h3);
  font-weight: 600;
  letter-spacing: calc(var(--tracking-tight) * 0.65);
}

p {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  line-height: var(--line-height-body);
  max-width: var(--measure-readable);
}

small {
  font-size: var(--type-small);
  color: var(--text-3);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: calc(var(--section-pad) + var(--space-3)) 0;
}

.section--hero {
  padding: clamp(8px, 1.8vw, 18px) 0;
  background:
    radial-gradient(circle at 15% 10%, var(--page-accent-glow), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--page-accent-soft) 70%, transparent), transparent 65%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.section--hero .container {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  min-height: 0;
}

.section--hero::after {
  content: '';
  position: absolute;
  right: clamp(24px, 10vw, 140px);
  top: clamp(20px, 6vw, 72px);
  width: clamp(120px, 18vw, 180px);
  height: clamp(120px, 18vw, 180px);
  background: url('/assets/brand/UnifiedV.svg') no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
}

main .section--hero > .container > .breadcrumb:not([data-breadcrumb]) {
  display: none;
}

.section--alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.section--soft {
  background: var(--bg-2);
}

.section--tight {
  padding-bottom: var(--section-pad-tight);
}

.section--flush {
  padding-top: 0;
}

.section-header {
  display: grid;
  gap: var(--space-3);
  max-width: min(100%, var(--measure-readable));
  margin-bottom: var(--space-8);
}

.section-header h1,
.section-header h2,
.section-header h3 {
  font-weight: 650;
  margin-bottom: 0;
}

.section-header > p {
  margin-bottom: 0;
  max-width: var(--measure-readable-tight);
  font-size: var(--type-body-md);
}

.section-header--glow {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--page-accent-glow) 85%, transparent 15%), transparent 70%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
  max-width: min(100%, var(--measure-readable-tight));
  min-height: 0;
  justify-content: flex-start;
}

.section--hero .section-header {
  margin-bottom: 0;
}

.hero-content h1 {
  max-width: var(--measure-heading);
  margin-bottom: 0;
}

.hero-content .hero-subcopy {
  max-width: var(--measure-readable-tight);
  margin-bottom: 0;
  font-size: var(--type-body-md);
}

.hero-content .inline {
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.hero-logo,
.hero-mark {
  display: block;
  width: auto;
  height: var(--logo-hero-height);
  max-height: var(--logo-hero-max-height);
  max-width: var(--logo-hero-max-width);
  object-fit: contain;
  filter: var(--elevation-drop);
}

.product-hero-icon,
.product-icon,
.vyra-product-logo,
.vyra-division-logo,
.vyra-card-logo {
  object-fit: contain;
  clip-path: none;
}

[data-theme='dark'] .hero-logo,
[data-theme='dark'] .hero-mark {
  filter: var(--elevation-drop-dark);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass) 70%, transparent 30%);
  box-shadow: var(--shadow-1);
}

.hero-badge-logo {
  height: 24px;
  width: auto;
  display: block;
  background: transparent;
}

.hero-watermark {
  position: absolute;
  right: clamp(24px, 10vw, 140px);
  top: clamp(16px, 6vw, 72px);
  width: clamp(120px, 18vw, 180px);
  opacity: 0.05;
  pointer-events: none;
}

.section--hero.hero-system {
  --hero-h1: 224;
  --hero-h2: 258;
  --hero-shift: 0;
  --hero-tilt: 138deg;
  --hero-glow-opacity: 0.2;
  --hero-pattern-opacity: 0.08;
  --hero-fog-opacity: 0.12;
  --hero-pattern-size: 24px;
  --hero-glow-x: 18%;
  --hero-glow-y: 14%;
  --hero-pattern-image:
    repeating-linear-gradient(
      145deg,
      hsl(calc(var(--hero-h1) + var(--hero-shift)) 36% 62% / 0.13) 0 1px,
      transparent 1px var(--hero-pattern-size)
    );
  padding: clamp(22px, 3.4vw, 44px) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.section--hero.hero-system::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 140% at var(--hero-glow-x) var(--hero-glow-y),
      hsl(calc(var(--hero-h1) + var(--hero-shift)) 88% 62% / var(--hero-glow-opacity)),
      transparent 58%
    ),
    radial-gradient(
      88% 88% at 90% 10%,
      hsl(calc(var(--hero-h2) + var(--hero-shift)) 84% 58% / var(--hero-fog-opacity)),
      transparent 62%
    ),
    linear-gradient(
      var(--hero-tilt),
      hsl(calc(var(--hero-h1) + var(--hero-shift)) 42% 18% / 0.2) 0%,
      transparent 66%
    );
  pointer-events: none;
  z-index: 0;
}

.section--hero.hero-system::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-pattern-image);
  background-size: var(--hero-pattern-size) var(--hero-pattern-size);
  opacity: var(--hero-pattern-opacity);
  pointer-events: none;
  z-index: 0;
}

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

.section--hero.hero-system .hero-content {
  gap: var(--space-4);
}

.hero-system-meta {
  display: grid;
  gap: var(--space-3);
  width: 100%;
}

.hero-system-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--page-accent) 38%, var(--border) 62%);
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-2) 22%);
  color: var(--text-2);
  font-size: var(--type-small);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hero-system-badge-mark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 78%, var(--text) 22%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--page-accent) 22%, transparent);
}

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

.hero-system-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent 24%);
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-2) 30%);
  color: var(--text-2);
  font-size: var(--type-small);
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.015em;
}

.section--hero.hero-system[data-hero-family='home'] {
  --hero-h1: 220;
  --hero-h2: 258;
}

.section--hero.hero-system[data-hero-family='products'] {
  --hero-h1: 210;
  --hero-h2: 235;
  --hero-pattern-image:
    repeating-linear-gradient(
      132deg,
      hsl(calc(var(--hero-h1) + var(--hero-shift)) 50% 70% / 0.2) 0 1px,
      transparent 1px calc(var(--hero-pattern-size) + 2px)
    );
}

.section--hero.hero-system[data-hero-family='tools'] {
  --hero-h1: 182;
  --hero-h2: 206;
  --hero-pattern-image:
    radial-gradient(
      circle at center,
      hsl(calc(var(--hero-h1) + var(--hero-shift)) 54% 74% / 0.24) 0 1px,
      transparent 1px
    );
}

.section--hero.hero-system[data-hero-family='ecosystem'] {
  --hero-h1: 196;
  --hero-h2: 224;
  --hero-pattern-image:
    linear-gradient(
      90deg,
      hsl(calc(var(--hero-h1) + var(--hero-shift)) 34% 70% / 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      hsl(calc(var(--hero-h2) + var(--hero-shift)) 30% 72% / 0.1) 1px,
      transparent 1px
    );
}

.section--hero.hero-system[data-hero-family='entertainment'] {
  --hero-h1: 316;
  --hero-h2: 28;
  --hero-pattern-image:
    radial-gradient(
      circle at 22% 78%,
      hsl(calc(var(--hero-h2) + var(--hero-shift)) 92% 70% / 0.24) 0 1px,
      transparent 1px
    );
}

.section--hero.hero-system[data-hero-family='playgrounds'] {
  --hero-h1: 228;
  --hero-h2: 188;
  --hero-pattern-image:
    linear-gradient(
      90deg,
      hsl(calc(var(--hero-h2) + var(--hero-shift)) 58% 72% / 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      hsl(calc(var(--hero-h1) + var(--hero-shift)) 62% 68% / 0.12) 1px,
      transparent 1px
    );
}

.section--hero.hero-system[data-hero-family='company'],
.section--hero.hero-system[data-hero-family='legal'] {
  --hero-h1: 216;
  --hero-h2: 236;
}

.section--hero.hero-system[data-hero-bg='soft-gradient'] {
  --hero-glow-opacity: 0.18;
  --hero-pattern-opacity: 0.05;
}

.section--hero.hero-system[data-hero-bg='subtle-pattern'] {
  --hero-glow-opacity: 0.14;
  --hero-pattern-opacity: 0.12;
}

.section--hero.hero-system[data-hero-bg='accent-glow'] {
  --hero-glow-opacity: 0.28;
  --hero-pattern-opacity: 0.06;
}

.section--hero.hero-system[data-hero-role='home'] {
  --hero-glow-opacity: 0.24;
}

.section--hero.hero-system[data-hero-role='section-index'] {
  --hero-pattern-opacity: 0.1;
}

.section--hero.hero-system[data-hero-role='detail'] {
  --hero-fog-opacity: 0.1;
}

.section--hero.hero-system[data-hero-variant='1'] { --hero-tilt: 128deg; }
.section--hero.hero-system[data-hero-variant='2'] { --hero-tilt: 142deg; }
.section--hero.hero-system[data-hero-variant='3'] { --hero-tilt: 156deg; }
.section--hero.hero-system[data-hero-variant='4'] { --hero-tilt: 172deg; }
.section--hero.hero-system[data-hero-variant='5'] { --hero-tilt: 118deg; }

[data-theme='light'] .section--hero.hero-system {
  --hero-glow-opacity: 0.17;
  --hero-pattern-opacity: 0.08;
}

[data-theme='light'] .hero-system-chip,
[data-theme='light'] .hero-system-badge {
  background: color-mix(in srgb, var(--surface) 88%, white 12%);
}

.game-card {
  display: grid;
  gap: var(--space-3);
}

.game-thumb {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--glass) 70%, transparent 30%);
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent 35%);
  box-shadow: var(--shadow-1);
}

.label-cover {
  height: 140px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--on-primary) 22%, transparent 78%), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--lav-soft) 70%, transparent 30%), color-mix(in srgb, var(--aqua-soft) 70%, transparent 30%));
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent 30%);
  position: relative;
  overflow: hidden;
}

.label-cover::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sun);
  opacity: 0.4;
}

.feature-grid {
  align-items: stretch;
}

.feature-item {
  display: grid;
  gap: var(--space-3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  filter: var(--elevation-drop-soft);
}

.cta-band {
  background: color-mix(in srgb, var(--glass) 65%, transparent 35%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(var(--blur-1));
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.global-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.global-cta .btn-cta {
  min-height: 46px;
  min-width: 168px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: var(--type-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.global-cta--hero {
  margin-top: var(--space-4);
}

.global-cta-section {
  scroll-margin-top: 100px;
}

.global-cta-band {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.global-cta-copy {
  display: grid;
  gap: var(--space-2);
}

.global-cta-copy h2 {
  margin: 0;
}

.global-cta-copy p {
  margin: 0;
}

@media (min-width: 900px) {
  .global-cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.demo-shell {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-1);
}

.demo-topbar {
  background: color-mix(in srgb, var(--glass) 70%, transparent 30%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(var(--blur-1));
}

.demo-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
}

.demo-topbar-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--text-1);
}

.badge--solid {
  background: var(--lav-soft);
  color: var(--text);
  border-color: color-mix(in srgb, var(--lav) 35%, transparent 65%);
}

.demo-shell-content {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.demo-shell-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.demo-shell-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
  display: grid;
  gap: var(--space-2);
}

.demo-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass) 70%, transparent 30%);
  box-shadow: var(--shadow-1);
}

.demo-action-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.demo-disclaimer {
  color: var(--text-3);
  font-size: var(--text-sm);
}

.demo-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.demo-shell-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.demo-shell-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.demo-shell-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.demo-callout {
  background: color-mix(in srgb, var(--surface-2) 80%, transparent 20%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--type-small);
  color: var(--text-muted);
}

.demo-empty {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  background: var(--surface-2);
  font-size: var(--type-small);
}

.demo-panel {
  min-height: 180px;
}

.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-strong);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(var(--blur-1));
  z-index: 60;
  opacity: 0;
  transition: opacity 180ms ease;
}

.demo-modal-backdrop.is-visible {
  display: flex;
  opacity: 1;
}

.demo-modal {
  width: min(420px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-2);
}

.help-tooltip {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.help-button {
  border: 1px solid var(--border);
  background: var(--surface-overlay);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.help-button:hover {
  border-color: var(--page-accent);
  background: var(--lav-soft);
}

.help-card {
  width: min(320px, 85vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-2);
  display: none;
  opacity: 0;
  pointer-events: none;
}

.help-tooltip.is-open .help-card {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.help-card h4 {
  margin: 0 0 var(--space-2);
}

.help-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
}

.media-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--space-3);
  box-shadow: var(--shadow-2);
}

.media-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-2);
  overflow: hidden;
  background: var(--media-bg);
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skeleton {
  border-radius: var(--radius-2);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text-3) 8%, transparent) 0%,
    color-mix(in srgb, var(--text-3) 20%, transparent) 50%,
    color-mix(in srgb, var(--text-3) 8%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-line {
  height: 12px;
  margin-bottom: var(--space-2);
}

.skeleton-card {
  height: 72px;
}

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

.toast-container {
  position: fixed;
  right: 24px;
  top: 90px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-2);
  font-size: var(--text-sm);
  color: var(--text-1);
  opacity: 0;
  transform: translateY(-6px);
  animation: toast-in 180ms ease forwards;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-badge {
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--page-accent) 90%, transparent 10%);
  color: var(--on-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-2);
  z-index: 80;
}

.demo-mode .btn-primary {
  box-shadow: var(--shadow-glow);
  position: relative;
}

.demo-mode .btn-primary::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 1px solid var(--primary-outline);
  opacity: 0.7;
}

.demo-mode [data-demo-hide] {
  display: none !important;
}

.kpi-grid {
  align-items: stretch;
}

.kpi-card {
  display: grid;
  gap: var(--space-2);
}

.kpi-value {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text-1);
}

.kpi-trend {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-success);
}

.chip-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.chip.is-active {
  background: var(--accent);
  color: var(--on-primary);
  border-color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
}

.subsidiary-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  min-height: 32px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--type-small);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent 30%);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.logo-grid {
  align-items: stretch;
}

.logo-card {
  display: grid;
  gap: var(--space-3);
}

.brand-logo-grid {
  align-items: stretch;
}

.brand-logo-card {
  display: grid;
  gap: var(--space-3);
}

.brand-logo-preview {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.brand-logo-preview--light {
  background: #f8fbff;
  border-color: rgba(15, 24, 48, 0.16);
}

.brand-logo-preview--dark {
  background: linear-gradient(135deg, #0b1120 0%, #111b31 100%);
  border-color: rgba(198, 211, 238, 0.22);
}

.brand-kit-logo {
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
}

.brand-downloads {
  align-items: center;
}

.palette-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.palette-card {
  display: grid;
  gap: var(--space-2);
}

.palette-swatch {
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.palette-swatch--midnight {
  background: #0b1120;
}

.palette-swatch--surface {
  background: #141f38;
}

.palette-swatch--primary {
  background: #7f75ff;
}

.palette-swatch--accent {
  background: #48cbde;
}

.palette-swatch--warm {
  background: #f3c96a;
}

.palette-swatch--ink {
  background: #0f1830;
}

.brand-usage-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: var(--space-2);
}

.logo-mark {
  width: auto;
  height: var(--logo-card-height);
  max-width: var(--logo-card-max-width);
  opacity: 0.9;
  filter: var(--elevation-drop-subtle);
}

.logo-card .logo-mark {
  max-width: var(--logo-card-max-width);
}

[data-theme='light'] .logo-mark {
  filter: var(--elevation-drop);
}

[data-theme='dark'] .logo-card .logo-mark {
  filter: var(--elevation-drop-dark);
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hub-grid {
  align-items: stretch;
}

.hub-feature-grid {
  align-items: stretch;
}

.hub-find-card {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  border-color: color-mix(in srgb, var(--page-accent) 24%, var(--border) 76%);
}

.hub-find-card p {
  margin: 0;
}

.hub-find-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  color: var(--text-2);
}

.hub-find-list li {
  margin: 0;
  display: flex;
  gap: 0.72rem;
  align-items: flex-start;
}

.hub-find-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.48em;
  flex: 0 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 70%, var(--aqua) 30%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--page-accent-soft) 38%, transparent);
}

.hub-find-card--products {
  border-color: color-mix(in srgb, var(--lav) 38%, var(--border) 62%);
}

.hub-find-card--tools {
  border-color: color-mix(in srgb, var(--aqua) 42%, var(--border) 58%);
}

.hub-find-card--ecosystem {
  border-color: color-mix(in srgb, var(--sky) 40%, var(--border) 60%);
}

.hub-find-card--entertainment {
  border-color: color-mix(in srgb, var(--sun) 38%, var(--border) 62%);
}

.hub-find-card--playgrounds {
  border-color: color-mix(in srgb, var(--lav) 34%, var(--border) 66%);
}

.hub-card {
  display: grid;
  gap: var(--space-3);
  height: 100%;
  min-width: 0;
  align-content: start;
  grid-template-rows: auto auto minmax(3.4em, auto) auto;
}

.hub-card--featured {
  border-color: color-mix(in srgb, var(--page-accent) 34%, var(--border) 66%);
  background: color-mix(in srgb, var(--surface) 88%, var(--page-accent-soft) 12%);
}

.hub-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.hub-card p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text-2);
  line-height: var(--line-height-body);
  font-size: var(--type-body-sm);
}

.hub-card-meta {
  margin: 0;
  color: var(--text-3);
}

.hub-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-1);
  color: var(--text-2);
  font-size: var(--type-small);
}

.hub-card-list li {
  margin: 0;
  display: flex;
  gap: 0.64rem;
  align-items: flex-start;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hub-card-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  flex: 0 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 76%, var(--aqua) 24%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-accent-soft) 34%, transparent);
}

.hub-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.playground-intro {
  display: grid;
  gap: var(--space-3);
  border-color: color-mix(in srgb, var(--page-accent) 24%, var(--border) 76%);
}

.playground-intro h2,
.playground-intro p {
  margin: 0;
}

.playground-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.playground-filter {
  min-height: var(--touch-target-min, 44px);
}

.playground-filter-status {
  margin: 0;
}

.playground-grid {
  align-items: stretch;
}

.playground-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  min-width: 0;
}

.playground-card > p:not(.playground-time):not(.playground-experience-title) {
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.playground-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.playground-card-top h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.playground-time {
  margin: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--page-accent) 24%, var(--border) 76%);
  background: color-mix(in srgb, var(--page-accent) 10%, transparent);
  color: var(--text-2);
  font-size: var(--type-small);
  white-space: nowrap;
}

.playground-experience-title {
  margin: 0;
  color: var(--text);
  font-size: var(--type-small);
  font-weight: 600;
}

.playground-experience {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  color: var(--text-2);
}

.playground-experience li {
  margin: 0;
  display: flex;
  gap: 0.64rem;
  align-items: flex-start;
}

.playground-experience li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  flex: 0 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 76%, var(--aqua) 24%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-accent-soft) 34%, transparent);
}

.playground-card .hub-card-actions {
  margin-top: auto;
}

.cross-links-section {
  padding-top: clamp(26px, 3.4vw, 44px);
}

.cross-links-card {
  display: grid;
  gap: var(--space-3);
  border-color: color-mix(in srgb, var(--page-accent) 26%, var(--border) 74%);
}

.cross-links-copy {
  display: grid;
  gap: var(--space-1);
}

.cross-links-copy h2,
.cross-links-copy p {
  margin: 0;
}

.cross-links-heading {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 620;
  line-height: 1.3;
}

.cross-links-description {
  margin: 0;
  color: var(--text-2);
  font-size: var(--type-body-sm);
}

.cross-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.cross-link-item {
  min-height: 76px;
}

.cross-link-item-link {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  height: 100%;
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent 22%);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-2) 16%);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.cross-link-title {
  margin: 0;
}

.cross-link-title strong {
  color: var(--text);
  font-size: var(--type-body-sm);
  line-height: 1.35;
}

.cross-link-note {
  margin: 0;
  color: var(--text-3);
  font-size: var(--type-small);
  line-height: 1.5;
}

.cross-link-item-link:hover,
.cross-link-item-link:focus-visible {
  border-color: color-mix(in srgb, var(--page-accent) 52%, var(--border) 48%);
  background: color-mix(in srgb, var(--page-accent-soft) 28%, var(--surface) 72%);
  transform: translateY(-1px);
}

.pillars {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pillar {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--page-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--page-accent) 20%, transparent);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

[data-theme='dark'] img[data-icon],
[data-theme='dark'] .feature-icon,
[data-theme='dark'] .pillar-icon {
  opacity: 0.98;
  filter: brightness(0) invert(0.86) drop-shadow(0 2px 4px rgba(var(--shadow-rgb), 0.3));
}

[data-theme='dark'] img[src*='QuietToolsMark.png'] {
  filter: brightness(1.45) contrast(1.1) drop-shadow(0 2px 6px rgba(var(--shadow-rgb), 0.4));
}

.section-note {
  color: var(--text-3);
  font-size: var(--type-small);
  line-height: 1.58;
}

main li {
  line-height: var(--line-height-body);
  max-width: var(--measure-readable);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  min-width: 0;
  overflow-wrap: anywhere;
}

.card > :last-child {
  margin-bottom: 0;
}

.card--narrow {
  max-width: 520px;
}

.card--fit {
  height: fit-content;
}

.card--interactive:hover,
.card--interactive:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}

.card:hover {
  transform: translateY(-1px);
}

.card + .card {
  margin-top: var(--space-4);
}

.scenario-card .stack {
  gap: var(--space-2);
}

.stack-lg {
  gap: var(--space-6);
}

.centered {
  text-align: center;
}


.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-1);
}

.table th,
.table td {
  padding: var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.table thead {
  background: var(--surface-elevated);
  color: var(--text-1);
}

.table tbody tr:hover {
  background: color-mix(in srgb, var(--page-accent) 8%, transparent);
}

.table tbody tr.is-selected {
  background: color-mix(in srgb, var(--page-accent) 14%, transparent);
}

.header {
  background: color-mix(in srgb, var(--header-bg) 92%, transparent 8%);
  border-bottom: 1px solid color-mix(in srgb, var(--page-accent) 18%, transparent);
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: saturate(1.25) blur(calc(var(--blur-1) * 0.72));
  backdrop-filter: saturate(1.25) blur(calc(var(--blur-1) * 0.72));
  transition: background 180ms ease, box-shadow 220ms ease, border-color 180ms ease, -webkit-backdrop-filter 180ms ease, backdrop-filter 180ms ease;
}

.header.header-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 12px 28px rgba(var(--shadow-rgb), 0.28);
  border-color: color-mix(in srgb, var(--page-accent) 28%, transparent);
  -webkit-backdrop-filter: saturate(1.35) blur(var(--blur-1));
  backdrop-filter: saturate(1.35) blur(var(--blur-1));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 6px 0;
}

.header-main {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 38px;
  flex: 1;
  overflow: visible;
}

.brand,
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-badge,
.brand-logo,
.logo-mark {
  display: block;
  width: auto;
  height: auto;
  background: transparent;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: var(--logo-footer-wordmark-size, 1rem);
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-fallback {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: none;
}

.header .brand-logo {
  height: var(--logo-header-height);
}

.nav-panel-header .brand-logo {
  height: var(--logo-header-mobile-height);
}

.footer .brand-badge {
  height: var(--logo-footer-badge-height);
}

.footer .brand-wordmark {
  font-size: var(--logo-footer-wordmark-size, 1rem);
}

.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-group--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.nav-group--stack .nav-group-label {
  margin-right: 0;
}

.nav-group-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-right: 6px;
}

.nav-primary {
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
  overflow: visible;
}

.nav-dropdown-group {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.nav-dropdown-group--has-panel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-primary .nav-dropdown-group > .nav-top-link {
  flex: 0 0 auto;
  font-size: var(--type-small);
  padding: 7px 12px;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  z-index: 56;
  width: clamp(220px, 24vw, 310px);
  max-height: min(56vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--page-accent) 28%, var(--border) 72%);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  box-shadow: 0 18px 38px rgba(var(--shadow-rgb), 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.nav-dropdown-group:hover > .nav-dropdown-panel,
.nav-dropdown-group:focus-within > .nav-dropdown-panel,
.nav-dropdown-group.is-open > .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent 24%);
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-2) 22%);
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-within {
  border-color: color-mix(in srgb, var(--page-accent) 40%, var(--border) 60%);
  background: color-mix(in srgb, var(--page-accent-soft) 28%, var(--surface) 72%);
}

.nav-dropdown-link {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: var(--text-2);
}

.nav-dropdown-panel .nav-dropdown-link,
.nav-dropdown-panel .nav-dropdown-sub {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.nav-dropdown-panel .nav-dropdown-link--single {
  margin: 0;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent 24%);
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-2) 22%);
}

.nav-dropdown-link--inline {
  width: 100%;
}

.nav-dropdown-panel .nav-dropdown-link--single:hover,
.nav-dropdown-panel .nav-dropdown-link--single:focus-visible {
  border-color: color-mix(in srgb, var(--page-accent) 40%, var(--border) 60%);
  background: color-mix(in srgb, var(--page-accent-soft) 28%, var(--surface) 72%);
}

.nav-dropdown-title {
  display: block;
  white-space: normal;
  color: var(--text);
  font-size: var(--type-body-sm);
  font-weight: 620;
  line-height: 1.3;
}

.nav-dropdown-note {
  display: none;
  white-space: normal;
  color: var(--text-3);
  font-size: var(--type-small);
  line-height: 1.4;
}

.nav-dropdown-panel .nav-dropdown-sub {
  width: fit-content;
  white-space: nowrap;
  font-size: var(--type-small);
  font-weight: 600;
  color: color-mix(in srgb, var(--page-accent) 68%, var(--text) 32%);
  text-decoration: none;
  border-bottom: 0;
  opacity: 0.95;
}

.nav-dropdown-panel a::after {
  content: none !important;
  display: none !important;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.nav-dropdown-panel .nav-dropdown-sub:hover,
.nav-dropdown-panel .nav-dropdown-sub:focus-visible,
.nav-dropdown-panel .nav-dropdown-link--single:hover,
.nav-dropdown-panel .nav-dropdown-link--single:focus-visible,
.nav-dropdown-item:hover .nav-dropdown-link,
.nav-dropdown-item:focus-within .nav-dropdown-link {
  color: var(--text);
}

.nav-primary .nav-group--primary {
  gap: 3px;
}

.nav-primary .nav-group--split {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, var(--border) 78%, transparent 22%);
}

.nav {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.nav-links {
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: visible;
  overflow-y: visible;
  padding: 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links > a {
  flex: 0 0 auto;
  font-size: var(--type-small);
  padding: 7px 12px;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--type-small);
  font-weight: 500;
  min-height: 40px;
  padding: 7px 12px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  border: 1px solid transparent;
  background: transparent;
  position: relative;
  transform: translateY(0);
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.nav a::after,
.nav button::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent) 70%, transparent 30%);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav a img,
.nav button img {
  margin-right: 0;
}

.nav-link-icon {
  width: clamp(20px, 1.8vw, 26px);
  height: clamp(20px, 1.8vw, 26px);
  opacity: 0.95;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav a span,
.nav button span {
  white-space: nowrap;
}

.nav a .badge {
  margin-left: var(--space-2);
  font-size: 0.65rem;
  padding: 2px 8px;
}

.nav a.active,
.nav a[aria-current='page'],
.nav button.active,
.nav button[aria-current='page'] {
  background: color-mix(in srgb, var(--page-accent-soft) 70%, transparent 30%);
  color: var(--text-1);
  font-weight: 600;
  border-color: color-mix(in srgb, var(--page-accent) 30%, transparent);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--page-accent) 55%, transparent);
  transform: translateY(0);
}

.nav a.active::after,
.nav a[aria-current='page']::after,
.nav button.active::after,
.nav button[aria-current='page']::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav a:hover,
.nav button:hover {
  color: var(--text-1);
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface-2) 75%, transparent 25%);
  transform: none;
}

.nav a:hover::after,
.nav button:hover::after {
  opacity: 0.8;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.header-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch-target-min, 44px);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass) 75%, transparent 25%);
  color: var(--text-2);
  font-size: var(--type-small);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-search-trigger:hover {
  border-color: color-mix(in srgb, var(--page-accent) 56%, var(--border) 44%);
  background: color-mix(in srgb, var(--page-accent-soft) 40%, transparent 60%);
  color: var(--text);
}

.header-search-trigger:focus-visible {
  box-shadow: var(--focus-ring-strong);
}

.header-search-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.header-search-label {
  line-height: 1;
}

.header-actions .btn {
  min-height: 30px;
  padding: 5px 8px;
}

.header-context {
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent 25%);
  background: color-mix(in srgb, var(--surface) 92%, transparent 8%);
}

.header-context.is-hidden {
  display: none;
}

.header-context .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 7px 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

.breadcrumb,
.division-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.breadcrumb.is-hidden {
  display: none;
}

.breadcrumb a,
.division-nav a {
  color: var(--text-2);
  padding: 4px 10px;
  font-size: 0.82rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.breadcrumb a:hover,
.division-nav a:hover {
  color: var(--text-1);
  background: color-mix(in srgb, var(--surface-2) 75%, transparent 25%);
  border-color: var(--border-strong);
}

.division-nav a.active,
.division-nav a[aria-current='page'] {
  color: var(--text-1);
  background: color-mix(in srgb, var(--page-accent-soft) 62%, transparent 38%);
  border-color: color-mix(in srgb, var(--page-accent) 30%, transparent);
}

.division-nav.is-hidden {
  display: none;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
}

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

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: color-mix(in srgb, var(--surface) 90%, transparent 10%);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  padding: var(--space-3);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 30;
}

.menu:not([open]) .menu-panel {
  display: none;
}

.menu-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--type-caption);
  color: var(--text-3);
  margin-bottom: var(--space-1);
}

.menu-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.menu-item:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface-2) 75%, transparent 25%);
}

.header-cta {
  display: none;
}

.nav-toggle,
.nav-close {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass) 75%, transparent 25%);
  color: var(--text);
  padding: 8px 12px;
  min-height: var(--touch-target-min, 44px);
  min-width: var(--touch-target-min, 44px);
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-toggle:hover,
.nav-close:hover {
  border-color: var(--page-accent);
  background: var(--lav-soft);
}

.nav-toggle {
  display: none;
}

.nav-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(380px, 100vw);
  max-width: 100vw;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding:
    clamp(18px, 4vw, 24px)
    max(var(--space-4), env(safe-area-inset-right))
    max(var(--space-6), env(safe-area-inset-bottom))
    max(var(--space-4), env(safe-area-inset-left));
  box-shadow: -16px 0 36px rgba(var(--shadow-rgb), 0.22);
  transform: translateX(100%);
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transition: transform 220ms ease, visibility 220ms ease;
  z-index: 60;
}

.nav-panel[aria-hidden='true'] {
  visibility: hidden;
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.nav-panel-links {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-1);
  min-width: 0;
}

.nav-panel-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--touch-target-min, 44px);
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 62%, transparent 38%);
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent 26%);
  white-space: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.nav-panel-links a span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav-panel-header .brand {
  min-width: 0;
}

.nav-panel-header .brand-wordmark {
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 55;
}

.nav-open .nav-panel,
.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-open .nav-panel {
  transform: translateX(0);
}

body.command-open {
  overflow: hidden;
}

.command-palette-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--overlay-backdrop) 92%, transparent 8%);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 14vh, 120px) 16px 24px;
  z-index: 70;
}

.command-palette-backdrop.is-visible {
  display: flex;
}

.command-palette {
  width: min(640px, 100%);
  max-height: min(72vh, 680px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid color-mix(in srgb, var(--page-accent) 26%, var(--border) 74%);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-2) 6%);
  box-shadow: 0 28px 64px rgba(var(--shadow-rgb), 0.34);
  overflow: hidden;
}

.command-palette-header {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent 28%);
}

.command-palette-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--border) 74%, transparent 26%);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-2) 12%);
  color: var(--text);
  font: inherit;
}

.command-palette-hint {
  margin: 0;
  color: var(--text-3);
  font-size: var(--type-small);
}

.command-palette-results {
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  display: grid;
  gap: 2px;
  overflow: auto;
}

.command-palette-empty {
  margin: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent 28%);
  color: var(--text-3);
  font-size: var(--type-body-sm);
}

.command-palette-item {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-md);
  color: inherit;
  cursor: pointer;
  padding: 10px 12px;
}

.command-palette-item:hover,
.command-palette-item:focus-visible,
.command-palette-item.is-active {
  border-color: color-mix(in srgb, var(--page-accent) 30%, var(--border) 70%);
  background: color-mix(in srgb, var(--page-accent) 14%, transparent);
}

.command-palette-title {
  display: block;
  color: var(--text);
  font-size: var(--type-body-sm);
  font-weight: 600;
}

.command-palette-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--text-3);
  font-size: var(--type-small);
}

.command-palette-section {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--page-accent) 30%, var(--border) 70%);
  background: color-mix(in srgb, var(--page-accent-soft) 28%, transparent 72%);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.command-palette-path {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--text-3) 88%, transparent 12%);
}

.command-palette-link {
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--page-accent) 68%, var(--text) 32%);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.command-palette-meta,
.command-palette-description {
  color: var(--text-3);
  font-size: var(--type-small);
}

.command-palette-description {
  display: block;
  color: var(--text-2);
  font-size: var(--type-small);
}

.theme-toggle {
  white-space: nowrap;
}

.theme-toggle--mobile {
  width: 100%;
  margin-top: var(--space-4);
}

[data-theme='light'] .header.header-scrolled {
  box-shadow: var(--shadow-2);
}

.footer {
  padding: var(--space-9) 0 var(--space-6);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent 8%);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: var(--space-2);
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.footer-group {
  display: grid;
  gap: var(--space-3);
  font-size: 0.95rem;
}

.footer-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-list {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.footer-link-row {
  margin: 0;
}

.footer-group a {
  color: var(--text-2);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--text-1);
  border-color: color-mix(in srgb, var(--page-accent) 45%, transparent);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  font-size: 0.9rem;
}

.footer-bottom-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-version {
  color: var(--text-3);
  border: 1px solid color-mix(in srgb, var(--page-accent) 24%, var(--border) 76%);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.internal-banner {
  margin: var(--space-6) 0 var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--text-1);
  font-weight: 600;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(220px, 1.2fr) minmax(0, 3fr);
  }

  .footer-bottom {
    text-align: left;
  }
}

@media (max-width: 1080px) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .header .brand-logo {
    height: 30px;
  }

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

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

.preview-frame {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  padding: var(--space-6);
  box-shadow: var(--shadow-2);
}

.sidebar {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
}

.sidebar .nav-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--text-2);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
}

.sidebar .nav-item.active,
.sidebar .nav-item:hover {
  background: color-mix(in srgb, var(--page-accent) 15%, transparent);
  color: var(--text-1);
}

.notice {
  background: color-mix(in srgb, var(--page-accent) 14%, transparent);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-2);
  border: 1px solid color-mix(in srgb, var(--page-accent) 20%, transparent);
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  background: var(--surface-1);
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-6);
  display: none;
  z-index: 40;
  box-shadow: var(--shadow-2);
  transform: translateX(24px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-backdrop);
  display: none;
  z-index: 35;
  opacity: 0;
  transition: opacity 180ms ease;
}

.drawer.is-visible,
.overlay.is-visible {
  display: block;
}

.drawer.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.overlay.is-visible {
  opacity: 1;
}

.layout-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-6);
  min-height: 70vh;
}

.layout-triple {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: var(--space-6);
}

.layout-dual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
}

.layout-split > *,
.layout-triple > *,
.layout-dual > * {
  min-width: 0;
}

.pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.pill--policy {
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--status-policy-fg);
  border-color: color-mix(in srgb, var(--color-success) 30%, transparent);
}

.pill--ops {
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--status-ops-fg);
  border-color: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.pill--tech {
  background: color-mix(in srgb, var(--color-danger) 15%, transparent);
  color: var(--status-tech-fg);
  border-color: color-mix(in srgb, var(--color-danger) 30%, transparent);
}

.pill--creative {
  background: color-mix(in srgb, var(--lav) 15%, transparent);
  color: var(--status-creative-fg);
  border-color: color-mix(in srgb, var(--lav) 30%, transparent);
}

.history-item {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item:hover,
.history-item:focus-visible {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--page-accent) 12%, transparent);
}

.history-item.is-active {
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--page-accent) 18%, transparent);
}

.option-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.block-body {
  margin-top: var(--space-3);
}

.block-actions button {
  margin-left: var(--space-2);
}

.tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tab {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--page-accent) 10%, transparent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  color: var(--color-text-2);
  border: none;
  font-family: inherit;
}

.tab.active,
.tab:hover {
  background: var(--accent);
  color: var(--on-primary);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-4) 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-strong);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(var(--blur-1));
  z-index: 50;
  opacity: 0;
  transition: opacity 180ms ease;
}

.modal-backdrop.active,
.modal-backdrop.is-visible {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--border-subtle);
  transform: translateY(8px);
  transition: transform 180ms ease;
}

.modal-backdrop.is-visible .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.modal-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.accordion {
  display: grid;
  gap: var(--space-3);
}

.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2);
  background: var(--color-surface-1);
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  padding: var(--space-4);
  background: transparent;
  border: none;
  color: var(--color-text-1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-2);
  font-weight: 600;
  cursor: pointer;
}

.accordion-content {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-2);
  max-height: 0;
  opacity: 0;
  transform: translateY(-2px);
  overflow: hidden;
  transition: max-height var(--transition-medium), opacity var(--transition-fast), transform var(--transition-fast);
  will-change: max-height, opacity, transform;
}

.accordion-toggle[aria-expanded='true'] + .accordion-content {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
}

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-11);
}

.floating-action {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--surface-overlay);
  color: var(--color-text-2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  backdrop-filter: blur(var(--blur-1));
}

.floating-action:hover {
  color: var(--color-text-1);
  border-color: var(--accent);
}

.hidden {
  display: none;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.error {
  color: var(--color-danger);
  font-size: var(--text-sm);
  min-height: 20px;
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.home-hero {
  isolation: isolate;
}

.home-hero .container {
  min-height: 0;
}

.home-hero-layout {
  display: grid;
  gap: var(--space-4);
  align-items: start;
  grid-template-columns: 1fr;
}

.home-hero-content {
  max-width: min(100%, 66ch);
}

.home-hero-content h1 {
  max-width: 16ch;
}

.home-hero-content .hero-subcopy {
  max-width: 58ch;
}

.home-hero-panel {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: clamp(16px, 1.8vw, 22px);
  border-color: color-mix(in srgb, var(--page-accent) 32%, var(--border) 68%);
  background: color-mix(in srgb, var(--surface) 84%, var(--page-accent-soft) 16%);
  max-width: min(100%, 420px);
}

.home-hero-panel h2 {
  margin-bottom: 0;
}

.home-hero-metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-4);
}

.home-hero-metrics li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}

.home-hero-metrics p {
  margin: 0;
  font-size: var(--type-body-sm);
  color: var(--text-2);
}

.home-metric-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--page-accent) 40%, var(--border) 60%);
  background: color-mix(in srgb, var(--page-accent) 15%, transparent);
  color: var(--text);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1;
}

.home-hero-links {
  margin-top: var(--space-1);
}

.home-section-header {
  max-width: 72ch;
}

.home-suite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.home-suite-card {
  display: grid;
  gap: var(--space-3);
  min-height: 100%;
}

.home-suite-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.home-suite-card .product-icon {
  height: clamp(76px, 6.5vw, 114px);
  max-width: clamp(76px, 6.5vw, 114px);
}

.home-suite-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}

.home-suite-card p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--type-body-sm);
}

.home-card-link {
  margin-top: var(--space-2);
  font-size: var(--type-small);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.home-card-link::after {
  content: " ->";
}

.home-how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.home-how-step {
  display: grid;
  gap: var(--space-3);
  border-color: color-mix(in srgb, var(--page-accent) 26%, var(--border) 74%);
}

.home-step-index {
  margin: 0;
  color: var(--page-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-how-step h3 {
  margin: 0;
}

.home-how-step p {
  margin: 0;
}

.home-trust-band {
  display: grid;
  gap: var(--space-5);
  border-color: color-mix(in srgb, var(--page-accent) 34%, var(--border) 66%);
}

.home-trust-copy {
  display: grid;
  gap: var(--space-3);
}

.home-trust-copy h2,
.home-trust-copy p {
  margin: 0;
}

.home-trust-lead {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 34ch;
}

.home-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.home-trust-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--text-2);
  font-size: var(--type-body-sm);
}

.home-trust-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-radius: 999px;
  flex: 0 0 10px;
  background: color-mix(in srgb, var(--page-accent) 68%, var(--aqua) 32%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--page-accent-soft) 45%, transparent),
    0 0 14px color-mix(in srgb, var(--page-accent) 52%, transparent);
}

.home-final-cta {
  border-color: color-mix(in srgb, var(--page-accent) 34%, var(--border) 66%);
}

@media (min-width: 940px) {
  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: start;
  }

  .home-hero-panel {
    justify-self: end;
    width: 100%;
  }

  .home-trust-band {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }
}

@media (min-width: 720px) {
  .home-suite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1040px) {
  .home-suite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1320px) {
  .home-suite-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section--hero .container {
    min-height: 0;
    align-content: start;
  }

  .hero-content {
    min-height: 0;
  }

  .layout-split {
    grid-template-columns: 1fr;
  }

  .layout-triple {
    grid-template-columns: 1fr;
  }

  .layout-dual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
  }

  .header-main {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .nav {
    gap: var(--space-2);
  }
  .nav-links {
    display: none;
  }

  .nav-dropdown-panel {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-search-label {
    display: none;
  }

  .header-search-trigger {
    min-width: var(--touch-target-min, 44px);
    justify-content: center;
    padding-inline: 10px;
    gap: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: clamp(44px, 11vw, 64px) 0;
  }

  .section-header {
    margin-bottom: var(--space-5);
    max-width: 100%;
  }

  .header-inner {
    padding: var(--space-2) 0;
  }

  .header-main {
    gap: var(--space-2);
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
  }

  .header-context {
    padding-bottom: var(--space-2);
  }

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

  .hero-content h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    max-width: 18ch;
  }

  .hero-content .hero-subcopy {
    font-size: var(--type-body);
  }

  .hero-system-meta {
    width: 100%;
  }

  .hero-system-badge {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-system-chips {
    gap: 6px;
  }

  .hero-system-chip {
    font-size: var(--type-small);
    min-height: 32px;
    padding: 5px 9px;
  }

  .hero-content .inline {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-content .btn {
    width: 100%;
    justify-content: center;
  }

  .home-hero-panel {
    padding: var(--space-4);
  }

  .home-hero-metrics li {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .home-metric-value {
    min-height: 36px;
    min-width: 36px;
    font-size: var(--text-base);
  }

  .global-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .global-cta .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: clamp(16px, 4.8vw, 22px);
  }

  .footer-grid {
    gap: var(--space-5);
  }

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

  .playground-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .playground-time {
    white-space: normal;
  }

  .hub-card-actions .btn,
  .playground-card .hub-card-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .header-cta {
    display: inline-flex;
  }

  .nav-group-label {
    display: none;
  }

  .nav-primary .nav-group-label {
    display: inline-flex;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .section--hero .section-header > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
