.home-first-viewport {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.home-hero {
  background: linear-gradient(135deg, #fff 0%, #fff6e8 100%);
  border: 1px solid #ecd6b2;
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(72, 45, 8, 0.08);
  animation: heroFadeIn 520ms ease-out;
}

.home-hero .section-title {
  margin: 0;
  color: #1e1e2b;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  position: relative;
  display: inline-block;
}

.home-hero .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 72%;
  height: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #cc7a07 0%, #f2b24f 100%);
  opacity: 0.45;
}

.home-hero::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -36px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 160, 6, 0.2) 0%, rgba(249, 160, 6, 0) 70%);
  pointer-events: none;
}

.home-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.home-eyebrow {
  margin: 0 0 0.45rem;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b96b00;
  text-transform: uppercase;
}

.home-stage-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5c48f;
  background: #fef6e8;
  color: #85510b;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-value-note {
  margin: 0.9rem 0 0;
  padding: 0.72rem 0.82rem;
  border-left: 4px solid #d18308;
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.85);
  color: #2f2f3d;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: noteSlideUp 560ms ease-out;
}

.home-categories {
  margin-top: 1.35rem;
}

.categories-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.category-card {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.category-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.category-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #d18308;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.category-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  background: #fff3de;
  color: var(--mana-orange);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.category-card p {
  margin: 0;
  color: #4a4a57;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noteSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-first-viewport {
    min-height: auto;
    align-items: stretch;
  }

  .home-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
