/* ===== INDEX: MERGED LAYER COMPOSITE HERO ===== */

.hero-world {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  isolation: isolate;
  background: #9a7ec4;
  line-height: 0;
}

/* Full merged scene — native resolution, no CSS layer gaps */
.hero-composite-img,
.hero-foreground-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  filter: none;
  transform: none;
  opacity: 1;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  vertical-align: top;
}

.hero-composite-img {
  position: relative;
  z-index: 1;
}

/* Foreground cliff/cave — overlaps waterfall edges (matches merge_hero_layers.py) */
.hero-foreground-img {
  position: absolute;
  left: 0;
  top: 77.02%;
  z-index: 9;
}

/*
 * Waterfall — single animated PNG, natural aspect ratio, full height visible.
 * Asset: 147×562px. Aligned to surface pool → ravine (composite analysis).
 */
.hero-waterfall-img {
  position: absolute;
  left: 56%;
  top: 56.8%;
  transform: translateX(-50%);
  width: 7.2%;
  height: auto;
  max-height: none;
  z-index: 8;
  pointer-events: none;
  image-rendering: auto;
}

.minecraft-hero-content {
  position: absolute;
  top: clamp(110px, calc(var(--nav-h) + var(--announce-h) + 3vh), 180px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 40px));
  text-align: center;
  z-index: 12;
  pointer-events: none;
  line-height: normal;
}

.minecraft-hero-content a {
  pointer-events: auto;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 3px rgba(43, 25, 58, 0.4);
}

.minecraft-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  text-shadow:
    0 3px 0 rgba(43, 25, 58, 0.65),
    0 6px 14px rgba(20, 10, 30, 0.3);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.hero-petal {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #f4a8c8;
  opacity: 0.28;
  border-radius: 1px;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0%   { transform: translateY(-10px); opacity: 0; }
  10%  { opacity: 0.28; }
  100% { transform: translateY(50vh); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-waterfall-img {
    left: 55.5%;
    top: 56.2%;
    width: 9%;
  }

  .minecraft-hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-petal { display: none; }
}

/* Content sections below hero */
.bedrock-intro {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .bedrock-intro { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

.bedrock-intro-img {
  width: 100%;
  border: 2px solid var(--mc-border);
  display: block;
  border-radius: 0;
}

.bedrock-intro-panel {
  padding: 2rem;
}

@media (min-width: 768px) {
  .bedrock-intro-panel { padding: 2.5rem; }
}

.use-block-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .use-block-grid { grid-template-columns: repeat(3, 1fr); }
}

.use-block {
  background: #1c1e1b;
  border: 2px solid #333830;
  padding: 1.25rem;
  min-height: 100px;
}

.use-block.span-2 { grid-column: span 2; }

.final-cta {
  background: linear-gradient(180deg, #1a1c19 0%, #121411 100%);
  border-top: 2px solid var(--mc-border);
  text-align: center;
  padding: 5rem 1rem;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin: 0 0 1rem;
}
