/* ==========================================================================
   THEME-3D.CSS - COMPACT, HIGH-PERFORMANCE 3D MINECRAFT THEME
   ========================================================================== */

.h3, .h3 *, .h3 *::before, .h3 *::after { box-sizing: border-box; }

.h3 {
  --void: #050506;
  --void-2: #0b0b0e;
  --ink: #f0f4ff;
  --dim: rgba(232, 236, 245, .55);
  --line: rgba(255, 255, 255, .08);
  --hot: #ffd6a0;
  position: relative;
  background: var(--void);
  color: var(--ink);
  overflow-x: hidden;
}

.h3::before {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 45% at 50% 8%, rgba(255, 214, 160, .09), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(88, 101, 242, .05), transparent 72%),
    var(--void);
  pointer-events: none;
}

/* Typography */
.h3-kicker {
  display: block;
  font-size: 12px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--hot); margin-bottom: 18px;
}

.h3-display {
  font-size: clamp(42px, 6.8vw, 96px);
  line-height: .95; letter-spacing: -.045em; font-weight: 900; margin: 0 0 22px;
  text-wrap: balance;
}

.h3-display em {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff, #ffd6a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h3-lede {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55; color: var(--dim); max-width: 46ch; margin: 0 auto 28px;
  text-wrap: balance;
}

.h3-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.h3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 800; text-decoration: none;
  color: #050506; background: var(--hot); border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.h3-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 214, 160, .35);
  background: #ffe0b2;
}
.h3-btn.ghost {
  background: transparent; color: var(--ink); border-color: rgba(255, 255, 255, .26);
}
.h3-btn.ghost:hover {
  background: rgba(255, 255, 255, .08); box-shadow: 0 12px 30px rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, .6);
}

/* 3D Cubes */
.h3-cube {
  position: relative; transform-style: preserve-3d; will-change: transform;
}
.h3-cube i {
  position: absolute; inset: 0; display: block;
  background-size: 100% 100%; image-rendering: pixelated;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45);
}
.h3-cube i.up { filter: brightness(1.3) contrast(1.02); }
.h3-cube i.dn { filter: brightness(.4); }
.h3-cube i.lf { filter: brightness(.72); }
.h3-cube i.rt { filter: brightness(.88); }
.h3-cube i.bk { filter: brightness(.6); }

/* Ambient Bloom Glow */
.h3-bloom {
  position: absolute; left: 50%; top: 50%; width: 440px; height: 440px;
  margin: -220px 0 0 -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 160, .18), rgba(255, 170, 70, .04) 45%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero Stage with Tight Hitbox Zoom */
.h3-hero {
  position: relative; min-height: 94vh;
  display: grid; grid-template-rows: 1fr auto;
  justify-items: center; align-content: center;
  text-align: center; gap: 10px; padding: 70px 24px 50px;
  perspective: 1600px;
}
.h3-hero-inner { position: relative; z-index: 2; }
.h3-hero-stage {
  position: relative; width: 100%; min-height: 28vh;
  display: grid; place-items: center; perspective: 1400px; z-index: 1;
}
.h3-cube-wrap {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
  padding: 10px;
  border-radius: 16px;
}
.h3-cube-wrap:active { cursor: grabbing; }

/* Tight Hitbox Zoom only on the cube wrapper itself */
.h3-cube-wrap:hover {
  transform: scale(1.12);
}
.h3-hero-stage:has(.h3-cube-wrap:hover) .h3-bloom {
  opacity: 1;
  transform: scale(1.18);
  background: radial-gradient(circle, rgba(255, 214, 160, .32), rgba(255, 160, 60, .1) 50%, transparent 72%);
}

.h3-chips {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px; color: var(--dim); font-size: 13px;
}
.h3-chips > div > b {
  display: block; color: var(--ink); font-size: 24px; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 2px;
}

.h3-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(232, 236, 245, .4);
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.h3-scroll:hover {
  color: var(--hot);
  transform: translateX(-50%) translateY(-2px);
}

/* Feature Sections - Compact, Close Together, Balanced Headings */
.h3-beat {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.h3-pin {
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: center; gap: 50px; max-width: 1200px;
  margin: 0 auto; padding: 0 24px;
}
.h3-copy { position: relative; z-index: 3; }
.h3-copy h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 900;
  text-wrap: balance;
}
.h3-copy p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6; color: var(--dim); max-width: 44ch; margin: 0 0 24px;
}
.h3-price {
  display: flex; align-items: baseline; gap: 12px;
}
.h3-price b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--hot); }
.h3-price span { font-size: 13px; color: var(--dim); }

.h3-scene {
  position: relative; height: 380px; display: grid; place-items: center;
  perspective: 1500px; transform-style: preserve-3d;
}
.h3-scene .h3-cube { cursor: grab; }
.h3-scene .h3-cube:active { cursor: grabbing; }

/* Sections */
.h3-sec { padding: 90px 0 20px; }
.h3-sec h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02; letter-spacing: -.04em; margin: 0 0 14px; font-weight: 900;
  text-wrap: balance;
}
.h3-sec .h3-sub {
  color: var(--dim); font-size: 17px; line-height: 1.55; max-width: 50ch; margin: 0 0 40px;
}

/* Orbit Finale */
.h3-close { text-align: center; padding: 100px 24px 120px; position: relative; }
.h3-close .h3-display { font-size: clamp(36px, 6vw, 84px); text-wrap: balance; }
.h3-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.h3-final {
  position: relative; height: 320px; margin: 0 auto 24px;
  perspective: 1200px; transform-style: preserve-3d;
}
.h3-orbit { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.h3-arm { position: absolute; transform-style: preserve-3d; cursor: grab; }
.h3-arm:active { cursor: grabbing; }

/* Responsive */
@media(max-width: 1000px) {
  .h3-hero { padding-top: 60px; }
  .h3-pin { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .h3-copy p { margin-left: auto; margin-right: auto; }
  .h3-price { justify-content: center; }
  .feature-tags { justify-content: center; }
  .h3-scene { height: 300px; }
  .h3-beat { padding: 60px 0; }
  .h3-final { height: 260px; }
}

@media(max-width: 620px) {
  .h3-wrap, .h3-pin { padding-left: 18px; padding-right: 18px; }
  .h3-chips { gap: 18px; }
  .h3-final { height: 210px; }
  .h3-scene { height: 260px; }
  .h3-copy h2 { font-size: clamp(28px, 8.4vw, 40px); margin-bottom: 10px; }
}
