.page-shell:has(> main > .viking-hero) {
  display: flex;
}

.page-shell:has(> main > .viking-hero) > main {
  display: flex;
  flex-direction: column;
}

.viking-hero {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-art {
  position: absolute;
  inset: 0;
  background: url("/images/valheim-low-poly-hero.png") center/cover no-repeat;
  transform: scale(1.015);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 10, 13, 0.97) 0%,
      rgba(4, 10, 13, 0.77) 33%,
      rgba(4, 10, 13, 0.12) 67%
    ),
    linear-gradient(0deg, var(--night) 0%, transparent 22%);
}
.viking-copy {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 3rem));
  margin: auto;
  padding-top: 5rem;
}
.online-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #62d39b;
  box-shadow: 0 0 0 4px rgba(98, 211, 155, 0.15);
}
.pill-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}
.viking-copy > .eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.viking-copy h1 {
  max-width: none;
  margin: 0.5rem 0 1.2rem;
  font-family: Cinzel, serif;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 28px #000;
  white-space: nowrap;
}
.viking-copy h1 em {
  display: block;
  color: var(--ember);
  font-style: normal;
}
.viking-copy > p {
  max-width: 570px;
  color: #c4ceca;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero-actions .btn {
  padding: 0.95rem 1.4rem;
}
.hero-actions .btn span {
  margin-left: 1rem;
}
.viking-copy > .subscription-cta {
  margin: 0.85rem 0 0;
  padding-top: 1rem;
  color: #c4ceca;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}
.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  color: #9caaa5;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-hint span {
  width: 1px;
  height: 3rem;
  margin: 0 auto 0.7rem;
  display: block;
  background: linear-gradient(var(--copper), transparent);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgb(from var(--line) r g b / 16%);
  border: 1px solid rgb(from var(--line) r g b / 16%);
}
.feature-card {
  position: relative;
  min-height: 320px;
  padding: 2.2rem;
  background: #0b1718;
  overflow: hidden;
}
.feature-card.featured {
  background: linear-gradient(150deg, #19352d, #0b1718);
}
.feature-number {
  position: absolute;
  right: 1.4rem;
  top: 1rem;
  color: rgba(255, 255, 255, 0.08);
  font-family: Cinzel, serif;
  font-size: 4rem;
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 2.5rem;
  background: radial-gradient(circle, var(--ember) 0 20%, transparent 22%);
  color: transparent;
  font-size: 0;
}
.feature-card h3 {
  font-family: Cinzel, serif;
  font-size: 1.3rem;
}
.feature-card p {
  color: #98aaa4;
  line-height: 1.7;
  font-size: 0.92rem;
}
.join-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgb(from var(--line) r g b / 16%);
  background: #0d1b1b;
}
.join-strip > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.8rem;
}
.join-strip .online-dot {
  grid-row: 1/3;
}
.join-strip small {
  color: #81928d;
}
@media (max-width: 850px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 240px;
  }
  .join-strip {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .join-strip .btn {
    width: 100%;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 10, 13, 0.94), rgba(4, 10, 13, 0.38)),
      linear-gradient(0deg, var(--night), transparent 35%);
  }
}
@media (max-width: 767px) {
  .viking-copy {
    padding-top: 7rem;
  }
  .viking-copy h1 {
    font-size: clamp(2.2rem, 11vw, 5rem);
  }
  .viking-copy > p {
    max-width: 90%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .scroll-hint {
    display: none;
  }
}
.subscription-cta a {
  font: inherit;
  font-weight: 400;
  text-decoration: none;
}
