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

:root {
  --kui-bg: #f4efe7;
  --kui-surface: rgba(255, 255, 255, 0.72);
  --kui-surface-strong: rgba(10, 23, 41, 0.88);
  --kui-surface-dark: rgba(7, 16, 31, 0.9);
  --kui-border: rgba(18, 32, 53, 0.12);
  --kui-border-strong: rgba(255, 255, 255, 0.16);
  --kui-ink: #13233b;
  --kui-muted: #58667c;
  --kui-accent: #ff6b2c;
  --kui-accent-soft: #ffd8c7;
  --kui-signal: #0f8b8d;
  --kui-signal-soft: rgba(15, 139, 141, 0.14);
  --kui-grid: rgba(19, 35, 59, 0.06);
  --kui-header-bg: rgba(244, 239, 231, 0.9);
  --kui-header-fg: #13233b;
  --kui-header-muted: rgba(19, 35, 59, 0.64);
  --kui-header-surface: rgba(19, 35, 59, 0.08);
  --kui-header-surface-strong: rgba(19, 35, 59, 0.14);
  --kui-glow: radial-gradient(circle at 20% 20%, rgba(255, 107, 44, 0.28), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(15, 139, 141, 0.18), transparent 38%),
    linear-gradient(135deg, #081321 0%, #122744 45%, #19385f 100%);
  --kui-panel-shadow: 0 1.25rem 2.5rem rgba(18, 32, 53, 0.12);
  --md-primary-fg-color: #13233b;
  --md-primary-fg-color--light: #214268;
  --md-primary-fg-color--dark: #081321;
  --md-accent-fg-color: #ff6b2c;
}

body {
  position: relative;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--kui-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(244, 239, 231, 0.92)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--kui-grid) calc(100% - 1px)),
    linear-gradient(transparent 0, transparent calc(100% - 1px), var(--kui-grid) calc(100% - 1px));
  background-size: auto, 72px 72px, 72px 72px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 107, 44, 0.08), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(15, 139, 141, 0.08), transparent 20%);
  z-index: 0;
}

.md-header,
.md-tabs {
  background: var(--kui-header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(19, 35, 59, 0.08);
  color: var(--kui-header-fg);
}

.md-header__title,
.md-tabs__link,
.md-nav__title,
.md-nav__link,
.md-ellipsis {
  font-family: "Sora", sans-serif;
}

.md-header__button,
.md-header__title,
.md-header__topic,
.md-tabs__link,
.md-source,
.md-source__repository,
.md-search__icon,
.md-search__input {
  color: var(--kui-header-fg);
}

.md-tabs__link {
  opacity: 0.82;
}

.md-tabs__link:is(:hover, :focus-visible),
.md-tabs__link--active {
  color: var(--kui-header-fg);
  opacity: 1;
}

.md-search__form {
  background: var(--kui-header-surface);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.md-search__form:is(:hover, :focus-within) {
  background: var(--kui-header-surface-strong);
  box-shadow: inset 0 0 0 1px rgba(19, 35, 59, 0.08);
}

.md-search__input::placeholder,
.md-source__facts,
.md-source__facts * {
  color: var(--kui-header-muted);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

.md-typeset code,
.md-typeset pre code {
  font-family: "IBM Plex Mono", monospace;
}

.md-typeset a {
  color: #b84b16;
}

.md-typeset .md-button {
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.md-typeset .md-button--primary {
  background: linear-gradient(135deg, #ff6b2c 0%, #ff9156 100%);
  border: none;
  color: #fff;
}

.md-typeset .md-button--primary:hover {
  background: linear-gradient(135deg, #e95a1d 0%, #ff8242 100%);
}

.md-main__inner {
  position: relative;
  z-index: 1;
}

.landing-page {
  margin-inline: calc(50% - 50vw + 1rem);
  padding-inline: clamp(1rem, 4vw, 4rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-shell {
  position: relative;
  margin-top: 0.5rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 2rem;
  background: var(--kui-glow);
  color: #f8fafc;
  box-shadow: 0 2rem 5rem rgba(8, 19, 33, 0.22);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-kicker,
.section-label {
  margin: 0 0 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.8);
}

.hero-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: #fff;
}

.md-typeset .hero-title {
  color: #fff;
}

.hero-lead {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.86);
}

.hero-copy {
  align-self: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: rgba(248, 250, 252, 0.92);
}

.hero-route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.route-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.9);
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.route-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

.hero-panel {
  padding: 1rem;
  border: 1px solid var(--kui-border-strong);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.hero-panel img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.2rem 2.5rem rgba(8, 19, 33, 0.35);
}

.hero-caption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.8);
}

.hero-terminal {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  background: rgba(6, 14, 29, 0.82);
  box-shadow: 0 1.2rem 2.5rem rgba(8, 19, 33, 0.32);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: rgba(248, 250, 252, 0.78);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-terminal pre {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #f8fafc;
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
}

.hero-terminal code {
  color: inherit;
}

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

.hero-meta {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-meta span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.56);
}

.hero-meta strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  color: #fff;
}

.home-section {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.section-label {
  color: var(--kui-signal);
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-copy {
  max-width: 52rem;
  margin-top: 0.85rem;
  color: var(--kui-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-label--light {
  color: rgba(151, 228, 229, 0.9);
}

.section-title--light,
.section-copy--light {
  color: rgba(248, 250, 252, 0.96);
}

.md-typeset .section-title--light {
  color: rgba(248, 250, 252, 0.96);
}

.section-copy--light {
  color: rgba(235, 241, 248, 0.82);
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.lane-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid var(--kui-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(255, 107, 44, 0.05), transparent 40%);
  box-shadow: var(--kui-panel-shadow);
}

.lane-card--accent {
  background:
    linear-gradient(180deg, rgba(255, 250, 247, 0.92), rgba(255, 247, 242, 0.78)),
    linear-gradient(135deg, rgba(255, 107, 44, 0.12), transparent 58%);
  border-color: rgba(255, 107, 44, 0.18);
}

.lane-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(19, 35, 59, 0.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e3b12;
}

.lane-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.lane-card p {
  margin: 0;
  color: var(--kui-muted);
  line-height: 1.68;
}

.lane-links {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.lane-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.band-shell {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 107, 44, 0.18), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(15, 139, 141, 0.16), transparent 20%),
    linear-gradient(135deg, #091426 0%, #132744 52%, #0d2138 100%);
  box-shadow: 0 1.8rem 3.5rem rgba(8, 19, 33, 0.18);
}

.band-shell::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.band-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.band-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.band-pill {
  display: inline-flex;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: rgba(248, 250, 252, 0.86);
}

.command-card {
  padding: 1.1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 12, 24, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.command-label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.62);
}

.command-card pre {
  margin: 0;
  color: #f8fafc;
  font-size: 0.84rem;
  line-height: 1.72;
  overflow-x: auto;
  background: transparent;
}

.command-card code {
  color: inherit;
}

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

.value-card,
.signal-card {
  position: relative;
  display: block;
  padding: 1.35rem;
  border: 1px solid var(--kui-border);
  border-radius: 1.25rem;
  background: var(--kui-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1rem 2rem rgba(18, 32, 53, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.value-card:hover,
.signal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 44, 0.3);
  box-shadow: 0 1.25rem 2.5rem rgba(18, 32, 53, 0.12);
}

.card-tag {
  display: inline-flex;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  background: var(--kui-accent-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a3c10;
}

.value-card h3,
.signal-card h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.12rem;
}

.value-card p,
.signal-card p {
  margin: 0;
  color: var(--kui-muted);
  line-height: 1.65;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

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

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

.signal-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3c10;
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.ops-stat {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 139, 141, 0.08);
  border: 1px solid rgba(15, 139, 141, 0.16);
}

.ops-stat span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d6d70;
}

.ops-stat strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  color: var(--kui-ink);
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-top: clamp(2.8rem, 6vw, 4.6rem);
  padding: 1.5rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(19, 35, 59, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 85% 18%, rgba(255, 107, 44, 0.08), transparent 24%);
  box-shadow: 0 1.2rem 2.2rem rgba(18, 32, 53, 0.08);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.md-typeset table:not([class]) {
  border: 1px solid var(--kui-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(18, 32, 53, 0.06);
}

.md-typeset table:not([class]) th {
  background: rgba(19, 35, 59, 0.06);
  font-family: "Sora", sans-serif;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 1rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .hero-meta-grid,
  .lane-grid,
  .band-grid,
  .card-grid,
  .signal-grid,
  .signal-grid--wide,
  .ops-strip,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .landing-page {
    margin-inline: calc(50% - 50vw + 0.65rem);
    padding-inline: 0.65rem;
  }

  .hero-shell {
    padding: 1.4rem;
    border-radius: 1.5rem;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}
