:root {
  --anbt-cyan: oklch(0.72 0.16 225);
  --anbt-cyan-deep: oklch(0.48 0.15 235);
  --anbt-pink: oklch(0.67 0.22 358);
  --anbt-ink: oklch(0.92 0.015 245);
  --anbt-muted: oklch(0.74 0.04 245);
  --anbt-line: oklch(0.68 0.05 232 / 0.24);
  --anbt-panel: oklch(0.20 0.02 250 / 0.78);
  --anbt-panel-quiet: oklch(0.16 0.018 250 / 0.72);
}

[data-md-color-scheme="default"] {
  --anbt-ink: oklch(0.26 0.025 245);
  --anbt-muted: oklch(0.48 0.035 245);
  --anbt-line: oklch(0.58 0.07 232 / 0.22);
  --anbt-panel: oklch(0.98 0.01 232 / 0.95);
  --anbt-panel-quiet: oklch(0.94 0.015 232 / 0.88);
}

.md-header,
.md-tabs {
  background: linear-gradient(90deg, oklch(0.62 0.15 218), oklch(0.72 0.15 200));
}

.md-header__title {
  font-weight: 720;
}

.md-main__inner {
  margin-top: 1.4rem;
}

.md-content__inner {
  max-width: 72rem;
}

.md-content__inner > h1:first-child {
  display: none;
}

.anbt-home {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.anbt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.52fr);
  gap: clamp(1.1rem, 4vw, 2.5rem);
  align-items: stretch;
  padding: clamp(1.15rem, 4vw, 2.45rem);
  border: 1px solid var(--anbt-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 0%, oklch(0.58 0.13 225 / 0.18), transparent 34%),
    linear-gradient(135deg, var(--anbt-panel), var(--anbt-panel-quiet));
  box-shadow: 0 22px 70px oklch(0.08 0.02 255 / 0.24);
}

.anbt-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.anbt-kicker,
.anbt-step {
  margin: 0;
  color: var(--anbt-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.anbt-hero h1 {
  margin: 0.28rem 0 0.7rem;
  color: var(--anbt-ink);
  font-size: clamp(2.35rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.anbt-lead {
  max-width: 31rem;
  margin: 0;
  color: var(--anbt-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.16rem);
  line-height: 1.72;
}

.anbt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.1rem, 3vw, 2rem);
}

.anbt-actions .md-button {
  border-radius: 6px;
  font-weight: 720;
}

.anbt-quick-panel {
  align-self: center;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid var(--anbt-line);
  border-radius: 8px;
  background: oklch(0.13 0.016 250 / 0.82);
}

.anbt-panel-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--anbt-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.anbt-panel-head img {
  width: 32px;
  height: 32px;
}

.anbt-quick-panel a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.35rem 0;
  border-top: 1px solid oklch(0.70 0.05 232 / 0.16);
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.anbt-quick-panel a:hover {
  transform: translateX(4px);
}

.anbt-quick-panel a span {
  color: var(--anbt-cyan);
  font-weight: 760;
}

.anbt-quick-panel a strong {
  overflow: hidden;
  color: var(--anbt-ink);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anbt-quick-panel a em {
  grid-column: 2;
  margin-top: -0.15rem;
  color: var(--anbt-muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.anbt-version-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--anbt-line);
  border-radius: 8px;
  background: var(--anbt-panel-quiet);
}

.anbt-version-rail p {
  margin: 0;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--anbt-line);
}

.anbt-version-rail p:last-child {
  border-right: 0;
}

.anbt-version-rail strong,
.anbt-version-rail span {
  display: block;
}

.anbt-version-rail strong {
  margin-bottom: 0.3rem;
  color: var(--anbt-ink);
}

.anbt-version-rail span {
  color: var(--anbt-muted);
}

.anbt-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--anbt-line);
  border-radius: 8px;
  background: var(--anbt-line);
}

.anbt-paths article {
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: var(--anbt-panel-quiet);
}

.anbt-paths h2,
.anbt-map h2 {
  margin: 0.25rem 0 0.65rem;
  color: var(--anbt-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.72rem);
  line-height: 1.18;
}

.anbt-paths p:not(.anbt-step) {
  min-height: 4.8rem;
  color: var(--anbt-muted);
  line-height: 1.68;
}

.anbt-paths a {
  font-weight: 760;
}

.anbt-map {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.anbt-map table {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.anbt-map th {
  color: var(--anbt-ink);
}

@media (max-width: 980px) {
  .anbt-hero,
  .anbt-map {
    grid-template-columns: 1fr;
  }

  .anbt-version-rail,
  .anbt-paths {
    grid-template-columns: 1fr;
  }

  .anbt-version-rail p {
    border-right: 0;
    border-bottom: 1px solid var(--anbt-line);
  }

  .anbt-version-rail p:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .anbt-quick-panel a {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.65rem 0;
  }

  .anbt-quick-panel a strong,
  .anbt-quick-panel a em {
    grid-column: auto;
  }

  .anbt-quick-panel a strong {
    white-space: normal;
  }

  .anbt-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.3rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .anbt-hero,
  .anbt-version-rail,
  .anbt-paths,
  .anbt-map {
    animation: anbt-enter 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .anbt-version-rail {
    animation-delay: 60ms;
  }

  .anbt-paths {
    animation-delay: 110ms;
  }

  .anbt-map {
    animation-delay: 160ms;
  }
}

@keyframes anbt-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
