body.home-page {
  --bg: #f4f1ea;
  --bg-accent: #e7e1d7;
  --card: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --link: #0f766e;
  --link-hover: #0b5d57;
  overflow-x: hidden;
}

.home-page .home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
  padding: 34px 20px 78px;
  background: linear-gradient(135deg, #111827 0%, #243447 56%, #0f766e 100%);
  box-shadow: none;
}

.home-page.site-menu-open .home-hero {
  overflow: visible;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  content: "";
  pointer-events: none;
  transform: rotate(18deg);
}

.home-hero::before {
  width: 290px;
  height: 290px;
  left: -145px;
  bottom: -70px;
}

.home-hero::after {
  width: 370px;
  height: 370px;
  right: -190px;
  top: 30px;
}

.home-page .home-hero nav,
.home-hero-content {
  position: relative;
  z-index: 1;
}

.home-page .home-hero nav.site-nav {
  z-index: 100;
}

.home-page .brand a {
  color: inherit;
  text-decoration: none;
}

.home-hero-content {
  max-width: 1040px;
  margin: 52px auto 0;
}

.home-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-page .home-hero h1 {
  max-width: 1020px;
  margin: 0 auto 18px;
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home-page .home-hero-content > p:not(.home-kicker) {
  max-width: 690px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.home-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 11px 20px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.home-hero-actions a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.home-primary-action {
  background: #f4b942;
  color: #172033 !important;
}

.home-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.home-hero-tiles {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
}

.home-hero-tiles span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24);
  font-size: 1.08rem;
  font-weight: 900;
}

.home-hero-tiles span:nth-child(2),
.home-hero-tiles span:nth-child(5) {
  background: #f5d76e;
}

.home-hero-tiles span:nth-child(3) {
  background: #a8d5ba;
}

.home-new-banner {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #0f766e, #115e59);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.home-new-inner {
  display: flex;
  align-items: stretch;
  max-width: 1160px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-new-label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  padding-right: 28px;
}

.home-new-label span {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-new-label strong {
  font-size: 1rem;
}

.home-new-links {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-new-links a {
  position: relative;
  display: grid;
  align-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 44px 13px 24px;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s ease;
}

.home-new-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.home-new-links span {
  font-weight: 850;
}

.home-new-links small {
  color: rgba(255, 255, 255, 0.78);
}

.home-new-links b {
  position: absolute;
  right: 20px;
  top: 50%;
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.home-page .home-main {
  max-width: 1160px;
  margin: 52px auto 72px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 28px;
  margin-top: 18px;
}

.home-section-heading:first-child {
  margin-top: 0;
}

.home-section-heading h2 {
  margin: 3px 0 0;
  color: #172033;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.home-section-heading p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.home-section-kicker {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-page .home-main > .card {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.home-page .home-main > .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.home-daily-card,
.home-explainer,
.home-methodology,
.home-feature-list {
  grid-column: 1 / -1;
}

.home-daily-card {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 62%, #e7f5f1 100%);
}

.home-daily-card .result-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

.home-daily-card .result-list li {
  display: flex;
  min-height: 86px;
  align-items: center;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.home-daily-card .result-list li::before {
  display: none;
}

.home-daily-card .result-list a {
  color: #172033;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.home-daily-card .result-list li:hover a {
  color: #0f766e;
}

.home-finder-heading,
.home-browse-heading {
  margin-top: 34px;
}

.home-solver-panel {
  border-top: 5px solid #0f766e !important;
}

.home-results-panel {
  border-top: 5px solid #f4b942 !important;
}

.home-page .mode-picker {
  background: #f7faf9;
}

.home-page .mode-button:hover {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.12);
}

.home-page .cta {
  background: #0f766e;
  border-color: #0b5d57;
}

.home-page .cta:hover {
  background: #0b5d57;
}

.home-explainer {
  column-gap: 34px;
}

.home-methodology {
  margin: -6px 4px 0;
  text-align: center;
}

.home-feature-list .result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.home-browse-card {
  min-height: 100%;
}

.home-browse-card:nth-of-type(3n + 1) {
  border-top: 4px solid #7857a6 !important;
}

.home-browse-card:nth-of-type(3n + 2) {
  border-top: 4px solid #2463a9 !important;
}

.home-browse-card:nth-of-type(3n) {
  border-top: 4px solid #c97732 !important;
}

@media (max-width: 900px) {
  .home-new-inner,
  .home-section-heading {
    display: block;
  }

  .home-new-label {
    min-height: 62px;
    padding-right: 0;
  }

  .home-new-links {
    margin: 0 -20px;
  }

  .home-new-links a:first-child {
    border-left: 0;
  }

  .home-section-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .home-daily-card .result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-page .home-hero {
    padding-bottom: 58px;
  }

  .home-hero-content {
    margin-top: 36px;
  }

  .home-page .home-main {
    margin-top: 38px;
    grid-template-columns: 1fr;
  }

  .home-new-links,
  .home-feature-list .result-list {
    grid-template-columns: 1fr;
  }

  .home-new-links a {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
    padding-left: 20px;
  }

  .home-daily-card .result-list {
    grid-template-columns: 1fr;
  }

  .home-daily-card .result-list li {
    min-height: 0;
  }

  .home-hero-tiles span {
    width: 36px;
    height: 36px;
  }
}
