.spi-home-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 84px;
  color: #0f172a;
}

.spi-home-hero {
  margin-bottom: 34px;
}

.spi-home-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.spi-home-hero__copy,
.spi-home-hero__panel,
.spi-home-category-card,
.spi-home-review-card,
.spi-home-note__box,
.spi-home-empty-state {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.spi-home-hero__copy {
  position: relative;
  padding: 64px 64px 60px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spi-home-hero__copy::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16) 0%, rgba(20, 184, 166, 0) 70%);
  pointer-events: none;
}

.spi-home-hero__eyebrow,
.spi-home-section-heading__eyebrow,
.spi-home-note__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
}

.spi-home-hero__title {
  margin: 0;
  max-width: none;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.spi-home-hero__desc {
  margin: 24px 0 0;
  max-width: 920px;
  font-size: 20px;
  line-height: 1.8;
  color: #475569;
}

.spi-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.spi-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.spi-home-btn:hover {
  transform: translateY(-2px);
}

.spi-home-btn--primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.spi-home-btn--primary:hover {
  color: #ffffff;
  background: #0f766e;
}

.spi-home-btn--ghost {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.78);
}

.spi-home-btn--ghost:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.spi-home-hero__panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, #0f172a 0%, #162033 100%);
  color: #e2e8f0;
}

.spi-home-hero__metric {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spi-home-hero__metric-value {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.spi-home-hero__metric-label {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
}

.spi-home-categories,
.spi-home-latest,
.spi-home-note {
  margin-top: 42px;
}

.spi-home-section-heading h2,
.spi-home-note__box h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.spi-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.spi-home-category-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.spi-home-category-card:hover,
.spi-home-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.11);
}

.spi-home-category-card__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  font-size: 24px;
  background: #f1f5f9;
}

.spi-home-category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.spi-home-category-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.spi-home-latest__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.spi-home-latest__view-all {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.spi-home-latest__view-all:hover,
.spi-home-review-card__title a:hover {
  color: #0f766e;
}

.spi-home-latest__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.spi-home-review-card {
  padding: 24px 24px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.spi-home-review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
}

.spi-home-review-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spi-home-review-card__title {
  margin: 14px 0 12px;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.spi-home-review-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.spi-home-review-card__excerpt {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.spi-home-note__box,
.spi-home-empty-state {
  padding: 34px 32px;
}

.spi-home-note__box p:last-child,
.spi-home-empty-state p {
  margin-bottom: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

@media (max-width: 1040px) {
  .spi-home-hero__shell,
  .spi-home-categories__grid,
  .spi-home-latest__list {
    grid-template-columns: 1fr;
  }

  .spi-home-hero__copy {
    min-height: 0;
    padding: 48px 36px;
  }
}

@media (max-width: 921px) {
  .spi-home-page {
    padding: 20px 16px 64px;
  }

  .spi-home-category-card,
  .spi-home-review-card,
  .spi-home-note__box,
  .spi-home-empty-state,
  .spi-home-hero__panel {
    padding: 22px;
  }

  .spi-home-latest__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .spi-home-hero__copy {
    padding: 34px 22px;
  }

  .spi-home-hero__title {
    font-size: 42px;
  }

  .spi-home-hero__desc {
    font-size: 17px;
  }

  .spi-home-review-card__title,
  .spi-home-category-card h3 {
    font-size: 22px;
  }
}
