:root {
  --home-accent: #0f8f84;
  --home-accent-deep: #0b5f68;
  --home-highlight: #f4b400;
  --home-surface: linear-gradient(135deg, rgba(15, 143, 132, 0.16), rgba(244, 180, 0, 0.12));
  --home-border: rgba(15, 95, 104, 0.14);
  --home-shadow: 0 24px 60px rgba(8, 33, 41, 0.12);
}

.md-content .md-content__inner {
  margin-top: 0;
}

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

.md-main__inner {
  margin-top: 0;
}

.hero,
.category-grid,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 3.5rem 1.4rem 2.4rem;
  margin: 0 0 1.75rem;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(244, 180, 0, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(15, 143, 132, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 248, 0.94));
  box-shadow: var(--home-shadow);
  overflow: hidden;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  top: -90px;
  right: -50px;
  background: rgba(15, 143, 132, 0.1);
}

.hero::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -50px;
  background: rgba(244, 180, 0, 0.14);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 95, 104, 0.12);
  color: var(--home-accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(20, 30, 35, 0.84);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.5rem 0 1.75rem;
  flex-wrap: wrap;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.hero-button-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--home-accent), var(--home-accent-deep));
  box-shadow: 0 16px 30px rgba(15, 95, 104, 0.22);
}

.hero-button-secondary {
  color: var(--home-accent-deep) !important;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 95, 104, 0.14);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 95, 104, 0.08);
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  color: var(--home-accent-deep);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(20, 30, 35, 0.65);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0.9rem 0 2rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 200px;
  padding: 1.2rem 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 95, 104, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 250, 0.92)),
    #fff;
  color: var(--md-default-fg-color) !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(8, 33, 41, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 143, 132, 0.35);
  box-shadow: 0 22px 36px rgba(8, 33, 41, 0.14);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  background: rgba(15, 143, 132, 0.1);
  font-size: 1.25rem;
  line-height: 1;
}

.card-title {
  margin: 0 0 0.7rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.card-description {
  margin-bottom: 1rem;
  color: rgba(20, 30, 35, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 143, 132, 0.1);
  color: var(--home-accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.md-typeset h2 {
  margin-top: 0.4rem;
}

.md-typeset h3 {
  margin: 2rem 0 0.5rem;
  color: var(--home-accent-deep);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-footer {
  margin: 0.5rem 0 2rem;
  text-align: center;
  color: rgba(20, 30, 35, 0.58);
  font-size: 0.9rem;
}

[data-md-color-scheme="slate"] {
  --home-border: rgba(146, 231, 222, 0.12);
  --home-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

[data-md-color-scheme="slate"] .hero {
  background:
    radial-gradient(circle at top left, rgba(244, 180, 0, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(77, 214, 200, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(20, 29, 35, 0.98), rgba(14, 19, 24, 0.98));
}

[data-md-color-scheme="slate"] .hero-kicker,
[data-md-color-scheme="slate"] .stat,
[data-md-color-scheme="slate"] .hero-button-secondary,
[data-md-color-scheme="slate"] .category-card {
  background-color: rgba(21, 29, 35, 0.82);
  border-color: rgba(146, 231, 222, 0.12);
}

[data-md-color-scheme="slate"] .hero p,
[data-md-color-scheme="slate"] .card-description,
[data-md-color-scheme="slate"] .site-footer,
[data-md-color-scheme="slate"] .stat-label {
  color: rgba(232, 240, 242, 0.74);
}

[data-md-color-scheme="slate"] .hero-kicker,
[data-md-color-scheme="slate"] .stat-number,
[data-md-color-scheme="slate"] .hero-button-secondary,
[data-md-color-scheme="slate"] .md-typeset h3 {
  color: #8de2d8 !important;
}

[data-md-color-scheme="slate"] .card-icon {
  background: rgba(141, 226, 216, 0.12);
}

[data-md-color-scheme="slate"] .card-badge {
  background: rgba(141, 226, 216, 0.14);
  color: #8de2d8;
}

@media screen and (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 700px) {
  .hero {
    padding: 2.4rem 1rem 1.6rem;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
    min-width: 0;
  }

  .category-card {
    min-height: 0;
  }
}
