:root {
  color-scheme: light;
  --mza-color-primary: #2c5c92;
  --mza-color-primary-dark: #214770;
  --mza-color-primary-light: #e5eef8;
  --mza-color-accent: #b46a35;
  --mza-color-signal-deep: #7a4624;
  --mza-color-bg-light: #f4f6f8;
  --mza-color-bg-dark: #0f1b29;
  --mza-color-surface-light: #ffffff;
  --mza-color-surface-dark: #172535;
  --mza-color-text-muted: #64748b;
  --mza-font-display: "Merriweather", serif;
  --mza-font-body: "Source Sans 3", sans-serif;
  --mza-font-mono: "IBM Plex Mono", monospace;
  --mza-shadow-panel: 0 14px 30px -24px rgba(15, 23, 42, 0.28);
  --mza-shadow-hover: 0 8px 18px -12px rgba(44, 92, 146, 0.42);
  --mza-radius-sm: 0.5rem;
  --mza-radius-md: 0.75rem;
  --mza-radius-lg: 1rem;
}

.mza-theme {
  font-family: var(--mza-font-body);
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #f6f8fb 0%, var(--mza-color-bg-light) 52%, var(--mza-color-bg-light) 100%);
}

.mza-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(900px 500px at 50% -12%, rgba(44, 92, 146, 0.1), transparent 70%);
}

.mza-theme::after {
  content: none;
}

.dark .mza-theme {
  background: linear-gradient(180deg, #122235 0%, var(--mza-color-bg-dark) 50%, var(--mza-color-bg-dark) 100%);
}

.dark .mza-theme::before {
  background: radial-gradient(900px 500px at 50% -12%, rgba(148, 182, 219, 0.14), transparent 70%);
}

@keyframes mza-rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.page-reveal,
.mza-reveal {
  animation: mza-rise-in 0.45s ease-out both;
}

.page-reveal-delay,
.mza-reveal-delay {
  animation: mza-rise-in 0.45s ease-out both;
  animation-delay: 0.03s;
}

.hero-panel,
.mza-panel {
  box-shadow: var(--mza-shadow-panel);
}

.cta-btn,
.mza-btn {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:not(:disabled):hover,
.mza-btn:not(:disabled):hover {
  box-shadow: var(--mza-shadow-hover);
}

.cta-btn:focus-visible,
.mza-focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mza-color-primary);
}

.mza-surface-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--mza-radius-md);
  background: var(--mza-color-surface-light);
}

.dark .mza-surface-card {
  border-color: rgba(229, 238, 248, 0.2);
  background: rgba(23, 37, 53, 0.95);
}

.mza-muted-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--mza-radius-md);
  background: #f8fafc;
}

.dark .mza-muted-card {
  border-color: rgba(229, 238, 248, 0.2);
  background: rgba(15, 27, 41, 0.56);
}

.mza-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid rgba(44, 92, 146, 0.2);
  background: rgba(44, 92, 146, 0.05);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mza-color-primary);
}

.mza-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mza-color-text-muted);
}

.mza-title {
  font-family: var(--mza-font-display);
  color: var(--mza-color-primary);
}

.mza-body-text {
  color: #334155;
}

.dark .mza-body-text {
  color: #cbd5e1;
}

.mza-callout-warning {
  border: 1px solid rgba(252, 211, 77, 0.55);
  border-radius: var(--mza-radius-sm);
  background: #fefce8;
  padding: 0.75rem;
}

.dark .mza-callout-warning {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.22);
}

.mza-divider {
  height: 1px;
  width: 100%;
  background: #e2e8f0;
}

.dark .mza-divider {
  background: rgba(229, 238, 248, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page-reveal,
  .page-reveal-delay,
  .mza-reveal,
  .mza-reveal-delay {
    animation: none !important;
  }

  .cta-btn:not(:disabled):hover,
  .mza-btn:not(:disabled):hover {
    transform: none;
    box-shadow: none;
  }
}
