:root {
  --lb-ink: #17231f;
  --lb-muted: #66716b;
  --lb-line: #e3e9e4;
  --lb-paper: #f7f9f6;
  --lb-green: #b6f36c;
  --lb-deep: #1f3029;
}

html {
  scroll-behavior: smooth;
}

@media screen and (min-width: 76.25em) {
  .md-grid {
    max-width: 90rem;
  }
}

body,
input {
  font-family: Inter, "Aptos", "Segoe UI", system-ui, sans-serif;
}

.md-header {
  background: rgba(255, 255, 255, 0.96);
  color: var(--lb-ink);
  border-bottom: 1px solid var(--lb-line);
  box-shadow: none;
}

.md-header__title,
.md-tabs__link,
.md-search__icon,
.md-header__button {
  color: var(--lb-ink);
}

.md-header__topic:first-child {
  font-weight: 750;
  letter-spacing: -0.035em;
}

.md-source__facts {
  display: none;
}

.md-tabs {
  background: white;
  color: var(--lb-ink);
  border-bottom: 1px solid var(--lb-line);
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #317242;
}

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

.md-content {
  min-width: 0;
}

.md-typeset {
  color: var(--lb-ink);
  font-size: 0.79rem;
  line-height: 1.75;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--lb-ink);
  font-weight: 720;
  letter-spacing: -0.04em;
}

.md-typeset h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.md-typeset code {
  border-radius: 0.3rem;
}

.md-typeset pre > code {
  font-size: 0.72rem;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--lb-line);
  border-radius: 0.7rem;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--lb-paper);
}

.md-sidebar__scrollwrap {
  scrollbar-width: thin;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-copy h1 {
  margin: 1.15rem 0 1.1rem;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.hero-copy h1 span,
.home-section h2 span {
  color: #64816c;
}

.eyebrow,
.feature-index {
  margin: 0;
  color: #55715d;
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-lede,
.section-lede {
  max-width: 37rem;
  color: #596760;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.38rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--lb-deep);
  color: white !important;
}

.button-primary:hover {
  background: #31463b;
}

.button-secondary {
  border-color: #d8e0da;
  background: white;
  color: var(--lb-ink) !important;
}

.button-secondary:hover {
  border-color: #9db7a2;
  background: #f5f8f4;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.55rem;
  color: var(--lb-muted);
  font-size: 0.68rem;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #77b85a;
  box-shadow: 0 0 0 3px #e9f4e2;
}

.code-card {
  overflow: hidden;
  border: 1px solid #35463d;
  border-radius: 0.75rem;
  background: #17221d;
  box-shadow: 0 1.4rem 3.6rem rgba(31, 48, 41, 0.16);
  color: #e8efe9;
}

.code-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-bottom: 1px solid #34423a;
  color: #a7b4ab;
  font-size: 0.64rem;
}

.window-dots {
  display: flex;
  gap: 0.28rem;
}

.window-dots i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #748279;
}

.window-dots i:first-child {
  background: #dc8478;
}

.window-dots i:nth-child(2) {
  background: #e6bd69;
}

.window-dots i:nth-child(3) {
  background: #8fbd7d;
}

.code-language {
  margin-left: auto;
  color: #8da095;
  font-size: 0.58rem;
  font-weight: 700;
}

.code-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.4rem 1.2rem;
  background: transparent !important;
  color: #dce8de;
  font: 0.73rem/1.8 "Cascadia Code", Consolas, monospace;
  tab-size: 4;
}

.code-card code {
  background: transparent !important;
  color: inherit;
}

.code-muted {
  color: #9cb59f;
}

.code-string {
  color: #c4ed88;
}

.code-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid #34423a;
  color: #a7b4ab;
  font-size: 0.56rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--lb-line);
  border-bottom: 1px solid var(--lb-line);
}

.trust-strip div {
  display: grid;
  gap: 0.18rem;
}

.trust-strip strong {
  color: var(--lb-ink);
  font-size: 0.7rem;
}

.trust-strip span {
  color: var(--lb-muted);
  font-size: 0.64rem;
}

.home-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.home-section h2,
.boundary-panel h2,
.home-bottom h2 {
  margin: 0.55rem 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.06em;
  line-height: 1.12;
}

.section-lede {
  max-width: 43rem;
  font-size: 0.9rem;
}

.feature-grid,
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.feature-card,
.connect-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--lb-line);
  border-radius: 0.55rem;
  background: white;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover,
.connect-card:hover {
  transform: translateY(-3px);
  border-color: #a9c0ad;
  box-shadow: 0 0.75rem 1.7rem rgba(31, 48, 41, 0.07);
}

.feature-card h3,
.connect-card h2 {
  margin: 1rem 0 0.35rem;
  color: var(--lb-ink);
  font-size: 1.08rem;
  letter-spacing: -0.035em;
}

.feature-card p,
.connect-card p {
  margin: 0 0 1.2rem;
  color: var(--lb-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.feature-link {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  color: #326b43;
  font-size: 0.69rem;
  font-weight: 700;
}

.boundary-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: 0.7rem;
  background: #edf3ec;
}

.boundary-panel h2 {
  margin-bottom: 0;
}

.boundary-panel > div:last-child {
  align-self: center;
}

.boundary-panel p:not(.eyebrow) {
  color: #536258;
  font-size: 0.8rem;
  line-height: 1.8;
}

.text-link {
  color: #326b43 !important;
  font-size: 0.72rem;
  font-weight: 700;
}

.home-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.home-bottom p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--lb-muted);
  font-size: 0.8rem;
}

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

.connect-card h2 {
  margin-top: 0.65rem;
  font-size: 1.25rem;
}

.lb-footer {
  display: block;
  padding: 0 max(1rem, calc((100vw - 76rem) / 2));
  background: #17231e;
  color: #d9e2dc;
}

.lb-footer-main {
  display: grid;
  grid-template-columns: minmax(15rem, 1.45fr) repeat(3, minmax(9rem, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.lb-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f4f8f4 !important;
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none !important;
}

.lb-footer-brand img {
  display: block;
  border-radius: 0.55rem;
}

.lb-footer-intro p {
  margin: 1rem 0;
  color: #b2c0b6;
  font-size: 0.75rem;
  line-height: 1.8;
}

.lb-footer-license {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid #405046;
  border-radius: 99px;
  color: #c6d6c8;
  font-size: 0.62rem;
}

.lb-footer-nav {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
}

.lb-footer-nav h2 {
  margin: 0 0 0.5rem;
  color: #f2f6f2;
  font-size: 0.73rem;
  font-weight: 720;
  letter-spacing: 0.015em;
}

.lb-footer-nav a {
  color: #b2c0b6 !important;
  font-size: 0.68rem;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 150ms ease;
}

.lb-footer-nav a:hover {
  color: #c3f18b !important;
}

.lb-footer-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
  color: #9bab9f;
  font-size: 0.65rem;
}

.lb-footer-coming-soon span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #c3f18b;
  box-shadow: 0 0 0 3px rgba(195, 241, 139, 0.1);
}

.lb-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.2rem;
  border-top: 1px solid #35443b;
  color: #9bab9f;
  font-size: 0.61rem;
}

@media screen and (max-width: 1250px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }

  .hero-copy {
    max-width: 48rem;
  }

  .code-card {
    max-width: 42rem;
  }

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

@media screen and (max-width: 600px) {
  .md-main__inner {
    margin-top: 0.5rem;
  }

  .md-content__inner {
    padding: 0 0.85rem 1rem;
  }

  .hero {
    gap: 1.5rem;
    padding: 2rem 0 2.4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .hero-lede {
    font-size: 0.91rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }

  .code-card pre {
    padding: 1rem 0.85rem;
    font-size: 0.65rem;
  }

  .code-card-foot {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem 0.8rem;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.6rem;
  }

  .feature-grid,
  .connect-grid,
  .boundary-panel {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 3rem 0;
  }

  .boundary-panel {
    gap: 0.5rem;
    padding: 1.2rem;
  }

  .home-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem 0;
  }

  .lb-footer {
    padding: 0 1rem;
  }

  .lb-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.1rem;
    padding: 2rem 0;
  }

  .lb-footer-intro {
    grid-column: 1 / -1;
  }

  .lb-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
