/* Home page: hero, tool cards, Twitch live block, quick facts. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 82vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* The Skyborne stands right of centre: keep her in frame on wide screens. */
  background: url('/img/skyborne-bg.webp') 62% 20% / cover no-repeat;
  animation: hero-drift 24s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  to {
    transform: scale(1.04);
  }
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 18% 50%, rgba(8, 26, 31, 0.62) 0%, rgba(8, 26, 31, 0.25) 60%, transparent 100%),
    linear-gradient(90deg, rgba(8, 26, 31, 0.55) 0%, rgba(8, 26, 31, 0.1) 45%, transparent 70%),
    linear-gradient(180deg, rgba(8, 26, 31, 0.35) 0%, transparent 18%, transparent 62%, var(--ink) 100%);
}
.hero-inner {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 48px;
}
.hero-copy {
  width: min(500px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: min(400px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.hero-sub {
  margin: 10px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6);
}
.hero-copy .divider {
  max-width: 380px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* Tool cards */
.tools {
  margin-top: -64px;
  position: relative;
  z-index: 2;
  padding-top: 0;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  text-decoration: none;
  color: var(--parchment);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tool-card:hover {
    transform: translateY(-3px);
    color: var(--parchment);
    box-shadow: var(--shadow), 0 0 36px rgba(127, 220, 236, 0.16);
  }
}
.tool-medal {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--gold-300);
  background: radial-gradient(circle at 50% 35%, var(--teal-600), var(--teal-950) 75%) padding-box,
    var(--gold-edge) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 0 4px rgba(212, 168, 85, 0.12);
}
.tool-medal svg {
  width: 26px;
  height: 26px;
}
.tool-text {
  display: grid;
  gap: 2px;
}
.tool-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-300);
}
.tool-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Live */
.live-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.live-player-wrap {
  position: relative;
  padding: 6px;
  border-radius: 12px;
  background: var(--gold-edge);
  box-shadow: var(--shadow), 0 0 48px rgba(127, 220, 236, 0.12);
}
.live-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: url('/img/hyjal.webp') center / cover, var(--teal-950);
}
.live-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.live-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(8, 26, 31, 0.6);
}
.live-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.live-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.live-copy .divider {
  margin: 14px 0 18px;
  max-width: 240px;
}
.muted {
  color: var(--muted);
}
.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Facts */
.facts {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}
.facts-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}
.facts-list li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  position: relative;
}
.facts-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold-edge);
}
.facts-list strong {
  font-family: var(--font-display);
  color: var(--gold-300);
}
.facts-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .live-grid,
  .facts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  /* Portrait: the Skyborne's face stays visible at the top, copy sits below. */
  .hero {
    min-height: 760px;
    align-items: flex-end;
  }
  .hero-art {
    background-position: 63% top;
  }
  .hero-art::after {
    background: linear-gradient(180deg, rgba(8, 26, 31, 0.05) 0%, rgba(8, 26, 31, 0.1) 30%, rgba(8, 26, 31, 0.75) 55%, var(--ink) 100%);
  }
  .hero-inner {
    justify-content: center;
    padding-bottom: 84px;
  }
  .hero-logo {
    width: min(200px, 56vw);
  }
  .tool-grid,
  .facts-list {
    grid-template-columns: 1fr;
  }
  .facts,
  .live-copy {
    padding: 22px;
  }
}
