body {
  background-color: #f6f7f9;
}

body[data-md-color-scheme="slate"] {
  background-color: #0f1318;
}

body[data-md-color-scheme="slate"] .md-main,
body[data-md-color-scheme="slate"] .md-content,
body[data-md-color-scheme="slate"] .md-content__inner {
  background-color: transparent;
}

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

.hero {
  margin: 0.2rem 0 1.2rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

body[data-md-color-scheme="slate"] .hero {
  background: linear-gradient(180deg, rgba(24, 31, 40, 0.96), rgba(15, 19, 24, 0.96));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-md-color-scheme="slate"] .eyebrow {
  color: #cbd5e1;
}

.hero h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

body[data-md-color-scheme="slate"] .hero h1 {
  color: #f3f4f6;
}

.hero p {
  max-width: 38rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

body[data-md-color-scheme="slate"] .hero p {
  color: rgba(226, 232, 240, 0.88);
}

.hero .md-button {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.6em 1em;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin: 0.95rem 0 1.45rem;
}

.surface-card {
  display: block;
  height: 100%;
  padding: 0.8rem 0.85rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

body[data-md-color-scheme="slate"] .surface-card {
  background: rgba(24, 31, 40, 0.88);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.surface-card:hover,
.surface-card:focus {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body[data-md-color-scheme="slate"] .surface-card:hover,
body[data-md-color-scheme="slate"] .surface-card:focus {
  border-color: rgba(148, 163, 184, 0.24);
}

.surface-card__label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-md-color-scheme="slate"] .surface-card__label {
  color: #cbd5e1;
}

.surface-card h3 {
  margin: 0 0 0.28rem;
  font-size: 0.94rem;
}

body[data-md-color-scheme="slate"] .surface-card h3 {
  color: #f3f4f6;
}

.surface-card p {
  margin: 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.82rem;
  line-height: 1.42;
}

body[data-md-color-scheme="slate"] .surface-card p {
  color: rgba(203, 213, 225, 0.84);
}

.note-panel {
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.95rem;
}

body[data-md-color-scheme="slate"] .note-panel {
  background: rgba(24, 31, 40, 0.82);
  border-color: rgba(148, 163, 184, 0.14);
}

.note-panel > :first-child {
  margin-top: 0;
}

.note-panel > :last-child {
  margin-bottom: 0;
}

.note-panel,
.note-panel li {
  font-size: 0.84rem;
  line-height: 1.45;
}

body[data-md-color-scheme="slate"] .note-panel,
body[data-md-color-scheme="slate"] .note-panel li {
  color: rgba(226, 232, 240, 0.86);
}

.simulation-card {
  max-width: 46rem;
  margin: 1rem auto 1.15rem;
  padding: 0.8rem 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

body[data-md-color-scheme="slate"] .simulation-card {
  background: rgba(24, 31, 40, 0.88);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.simulation-card__header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 0.45rem;
}

.simulation-card__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white;
}

body[data-md-color-scheme="slate"] .simulation-card__image {
  border-color: rgba(148, 163, 184, 0.14);
}

.simulation-card__slider {
  display: block;
  width: 100%;
  margin: 0.65rem 0 0.25rem;
}

.simulation-card__scale {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: lowercase;
}

body[data-md-color-scheme="slate"] .simulation-card__scale {
  color: #cbd5e1;
}

.simulation-card__axis-label {
  margin-top: 0.18rem;
  text-align: center;
  color: #64748b;
  font-size: 0.72rem;
}

body[data-md-color-scheme="slate"] .simulation-card__axis-label {
  color: #cbd5e1;
}

@media screen and (min-width: 60em) and (max-width: 76.2344em) {
  .md-header__button[for="__drawer"],
  .md-nav--primary > .md-nav__title[for="__drawer"] {
    display: none;
  }

  .md-overlay {
    display: none;
  }

  .md-sidebar--primary {
    left: auto;
    right: auto;
    position: sticky;
    top: 2.4rem;
    height: auto;
    transform: none !important;
    background-color: transparent;
    box-shadow: none !important;
    z-index: 2;
  }

  [data-md-toggle="drawer"]:checked ~ .md-container .md-sidebar--primary {
    transform: none;
    box-shadow: none;
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0 0.2rem;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .md-sidebar--secondary {
    display: none !important;
  }

  [dir="ltr"] .md-sidebar--primary:not([hidden]) ~ .md-content > .md-content__inner {
    margin-left: 1rem;
  }

  [dir="rtl"] .md-sidebar--primary:not([hidden]) ~ .md-content > .md-content__inner {
    margin-right: 1rem;
  }
}

@media screen and (max-width: 44.9844em) {
  .hero {
    padding: 0.95rem;
  }

  .hero .md-button {
    width: 100%;
    margin-right: 0;
  }

  .simulation-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}
