:root {
  --md-text-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: "Cascadia Code", Consolas, monospace;
  --md-primary-fg-color: #0021a1;
  --md-primary-fg-color--dark: #001568;
  --md-accent-fg-color: #ea3981;
  --docs-yellow: #ffc700;
  --docs-hero-start: #0a0f2e;
  --docs-hero-end: #0021a1;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #080c24;
  --md-default-fg-color: #f5f6ff;
  --md-default-fg-color--light: #bec6ef;
  --md-default-fg-color--lighter: #8b96c7;
}

.md-header {
  background: linear-gradient(135deg, var(--docs-hero-start) 0%, var(--docs-hero-end) 70%, #421456 100%);
}

.md-main {
  background:
    radial-gradient(circle at top right, rgba(234, 57, 129, 0.10), transparent 28%),
    radial-gradient(circle at left top, rgba(255, 199, 0, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(0, 33, 161, 0.04), transparent 20rem);
}

.hero {
  margin: 1.5rem 0 2rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--docs-hero-start), var(--docs-hero-end) 70%, #4b174f);
  color: white;
  box-shadow: 0 30px 60px rgba(10, 15, 46, 0.22);
}

.hero h1,
.hero .md-typeset h1 { color: white; margin: 0 0 0.5rem; }
.hero p { color: rgba(255, 255, 255, 0.93); }
.hero .eyebrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.hero .hero-meta { margin-top: 1rem; max-width: 58rem; }
.hero .md-button { margin: 0.4rem 0.5rem 0 0; border-radius: 0.5rem; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .md-button--primary { background: var(--docs-yellow); border-color: var(--docs-yellow); color: #0a0f2e; }

.md-typeset .grid.cards > ul > li {
  border-radius: 1rem;
  border: 1px solid rgba(0, 33, 161, 0.14);
  box-shadow: 0 12px 28px rgba(10, 15, 46, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.md-typeset .grid.cards > ul > li:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(10, 15, 46, 0.10); }
.md-typeset .grid.cards .twemoji { color: var(--md-accent-fg-color); }
.md-typeset .mermaid { overflow-x: auto; padding: 0.75rem; border-radius: 0.75rem; background: rgba(0, 33, 161, 0.04); }
.md-typeset table:not([class]) { border-radius: 0.75rem; overflow: hidden; }
.md-typeset table:not([class]) th { white-space: nowrap; }
.md-typeset code { border-radius: 0.35rem; }

@media (max-width: 600px) {
  .hero { padding: 1.35rem; border-radius: 1rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero .eyebrow { font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .grid.cards > ul > li,
  .md-typeset .grid.cards > ul > li:hover { transition: none; transform: none; }
}
