:root {
  --bg: #0a0f12;
  --panel: rgba(14, 20, 24, 0.82);
  --panel-solid: #10171b;
  --border: rgba(180, 220, 208, 0.14);
  --border-strong: rgba(110, 231, 183, 0.35);
  --green: #6ee7b7;
  --text: #eef4f1;
  --muted: #9fb0a9;
  --radius: 18px;
  --nav-h: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: #06110d;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--green);
  color: #06110d;
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Navigation ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 2.5vw, 28px);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--green);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text span {
  color: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 22px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link--discord {
  padding: 8px 4px;
}

.nav-link--discord .discord-icon {
  color: #8f9bff;
}

.discord-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}

/* ---------- Ambient background ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 12, 0.92), rgba(6, 10, 12, 0.54) 52%, rgba(6, 10, 12, 0.72)),
    linear-gradient(180deg, rgba(6, 10, 12, 0.35), transparent 30%, rgba(6, 10, 12, 0.72));
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -40%;
  height: 100%;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(640px) rotateX(66deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent 92%);
  opacity: 0.5;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1s ease, transform 1s ease;
  contain: layout paint style;
  will-change: opacity;
}

body[data-scene="logo"] .scene--logo,
body[data-scene="creeper"] .scene--creeper,
body[data-scene="world"] .scene--world,
body[data-scene="steve"] .scene--steve,
body[data-scene="portal"] .scene--portal,
body[data-scene="enderman"] .scene--enderman,
body[data-scene="village"] .scene--village,
body[data-scene="netherite"] .scene--netherite,
body[data-scene="redstone"] .scene--redstone {
  opacity: 1;
  transform: scale(1);
}

.scene--logo {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 35%, rgba(74, 150, 118, 0.14), transparent 45%);
}

.logo-mark {
  width: clamp(160px, 24vw, 320px);
  color: rgba(110, 231, 183, 0.1);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.floating-cube {
  position: absolute;
  width: clamp(36px, 5vw, 70px);
  aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.24), rgba(40, 90, 72, 0.3));
  box-shadow: inset -10px -10px 0 rgba(0, 0, 0, 0.16);
  animation: float 12s ease-in-out infinite;
  opacity: 0.5;
}

.cube-one { top: 24%; left: 14%; transform: rotate(-12deg); }
.cube-two { top: 68%; right: 16%; transform: rotate(9deg); animation-delay: -4s; }
.cube-three { top: 18%; right: 30%; width: 28px; transform: rotate(16deg); animation-delay: -7s; }

.scene--creeper {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 62% 42%, rgba(95, 143, 56, 0.14), transparent 48%);
}

.creeper-art {
  width: clamp(180px, 30vw, 380px);
  opacity: 0.55;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6));
  animation: float 11s ease-in-out infinite;
}

.scene--world {
  background: linear-gradient(180deg, #16263a 0%, #254a4d 48%, #0d1712 100%);
}

.world-sun {
  position: absolute;
  top: 14%;
  right: 17%;
  width: clamp(60px, 8vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f0cf87;
  box-shadow: 0 0 70px rgba(240, 207, 135, 0.35);
  opacity: 0.7;
}

.world-cloud {
  position: absolute;
  height: 26px;
  border-radius: 3px;
  background: rgba(230, 240, 238, 0.32);
  box-shadow: 28px -14px 0 rgba(230, 240, 238, 0.32), 58px 0 0 rgba(230, 240, 238, 0.32);
  animation: drift 26s linear infinite;
}

.cloud-one { top: 22%; left: 13%; width: 60px; }
.cloud-two { top: 33%; right: 22%; width: 44px; animation-delay: -13s; }

.world-hills {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 19%;
  height: 40%;
  background: linear-gradient(180deg, #2b5232, #152619);
  clip-path: polygon(0 100%, 0 62%, 12% 45%, 22% 60%, 36% 25%, 51% 58%, 67% 32%, 82% 56%, 100% 30%, 100% 100%);
  opacity: 0.7;
}

.world-ground {
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background:
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(0, 0, 0, 0.14) 54px 58px),
    linear-gradient(180deg, #4e7d36 0 14%, #6a4a34 14% 100%);
  border-top: 5px solid #5f9a42;
}

.scene--steve {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(110, 231, 183, 0.13), transparent 48%);
}

.steve-glow {
  position: absolute;
  width: clamp(240px, 36vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.12), transparent 70%);
}

.steve-art {
  width: auto;
  height: clamp(260px, 42vh, 430px);
  max-width: 70%;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
  animation: float 11s ease-in-out infinite;
}

.scene--portal {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(130, 64, 190, 0.16), transparent 45%);
}

.portal-frame {
  position: absolute;
  top: 47%;
  left: 50%;
  width: clamp(150px, 22vw, 290px);
  aspect-ratio: 0.75;
  transform: translate(-50%, -50%);
  border: 12px solid #17121d;
  border-radius: 18px 18px 6px 6px;
  background: #1c1026;
  box-shadow: 0 0 0 6px #2b2035, 0 0 70px rgba(150, 80, 220, 0.35);
  overflow: hidden;
  opacity: 0.75;
}

.portal-core {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 20px),
    linear-gradient(180deg, #5b2396, #a444c9 45%, #35146b);
  animation: portal 5s ease-in-out infinite;
}

.portal-sparks {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(210, 170, 255, 0.5) 2px, transparent 3px),
    radial-gradient(circle, rgba(210, 170, 255, 0.35) 2px, transparent 3px);
  background-size: 150px 150px, 220px 220px;
  animation: drift 22s linear infinite;
  opacity: 0.45;
}

.scene--photo {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.scene--enderman { background-image: url("assets/scene-enderman.webp"); }
.scene--village { background-image: url("assets/scene-village.webp"); }
.scene--netherite { background-image: url("assets/scene-netherite.webp"); }

.scene--redstone {
  background: radial-gradient(circle at 70% 30%, rgba(190, 60, 60, 0.12), transparent 44%);
}

.redstone-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -35%;
  height: 100%;
  background-image:
    linear-gradient(rgba(200, 80, 80, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 80, 80, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(620px) rotateX(64deg);
  transform-origin: bottom center;
}

.redstone-line {
  position: absolute;
  height: 8px;
  border-radius: 2px;
  background: #4a181b;
  opacity: 0.8;
}

.redstone-line i {
  position: absolute;
  top: -3px;
  left: -5%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 20px 6px rgba(255, 90, 90, 0.4);
  animation: signal 4s linear infinite;
}

.line-one { top: 31%; left: -10%; width: 70%; transform: rotate(-12deg); }
.line-two { bottom: 27%; right: -10%; width: 60%; transform: rotate(8deg); }
.line-two i { animation-delay: -1.3s; }
.line-three { top: 55%; left: 18%; width: 58%; }
.line-three i { animation-delay: -2.6s; }

.redstone-lamp {
  position: absolute;
  width: 34px;
  aspect-ratio: 1;
  border: 5px solid #23282b;
  border-radius: 6px;
  background: #3a1618;
  animation: lamp 4s ease-in-out infinite;
}

.lamp-one { top: 28%; right: 17%; }
.lamp-two { bottom: 24%; left: 13%; animation-delay: -2s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 240px 0, -240px 0; }
}

@keyframes portal {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes signal {
  from { left: -5%; }
  to { left: 100%; }
}

@keyframes lamp {
  0%, 42% { background: #3a1618; box-shadow: none; }
  50%, 80% { background: #f0c77b; box-shadow: 0 0 34px rgba(240, 199, 123, 0.5); }
  100% { background: #3a1618; box-shadow: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) clamp(18px, 5vw, 56px) 72px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-title span {
  color: var(--green);
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.see-product {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.see-product span {
  color: var(--green);
}

.see-product:hover {
  color: var(--green);
  border-color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--green);
  color: #06110d;
}

.button--primary:hover {
  background: #8cf0c8;
}

.button--ghost {
  border-color: var(--border);
  background: rgba(10, 15, 18, 0.6);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--green);
}

/* ---------- Product ---------- */

.products {
  position: relative;
  z-index: 2;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 32px) 100px;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.section-heading {
  margin-bottom: 28px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 19, 23, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  border-right: 1px solid var(--border);
  background: radial-gradient(circle at 50% 42%, rgba(110, 231, 183, 0.12), transparent 55%), #0d1518;
}

.art-character {
  display: block;
  width: auto;
  height: 330px;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.5));
}

.price-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 1px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 13, 16, 0.82);
}

.price-badge small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-badge strong {
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.product-body {
  padding: clamp(26px, 4vw, 44px);
}

.product-topline {
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.feature-list span {
  color: var(--green);
  line-height: 1.5;
}

.feature-list .play-icon {
  color: #e8c77b;
  font-size: 0.68rem;
  line-height: 1.8;
}

.feature-list em {
  color: var(--muted);
  font-style: normal;
}

.product-actions {
  margin-top: 28px;
}

/* ---------- Checkout ---------- */

.checkout-page {
  background: #0a0f12;
}

.checkout-main {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 22px) clamp(14px, 4vw, 28px) 20px;
}

.checkout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-head h1 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.back-link {
  color: var(--muted);
  font-size: 0.78rem;
}

.back-link:hover {
  color: var(--green);
}

.checkout-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(14, 20, 24, 0.8);
  font-size: 0.8rem;
}

.checkout-summary span {
  color: var(--muted);
}

.checkout-summary strong {
  margin-left: auto;
  color: var(--green);
  font-size: 0.95rem;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pay-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14, 20, 24, 0.8);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-card:hover {
  border-color: var(--green);
  background: rgba(18, 27, 30, 0.95);
}

.pay-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.pay-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pay-text {
  min-width: 0;
}

.pay-text strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-arrow {
  color: var(--muted);
  font-size: 1rem;
}

.pay-card:hover .pay-arrow {
  color: var(--green);
}

.checkout-footer {
  padding: 0 clamp(14px, 4vw, 28px) 18px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.checkout-footer p {
  margin: 0;
}

/* ---------- Footer / utility ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 13, 0.88);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-brand {
  color: var(--text);
  font-weight: 800;
}

.footer p {
  margin: 0;
  max-width: 56ch;
}

.footer-link {
  color: var(--green);
  font-weight: 700;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10, 15, 18, 0.9);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--green);
  color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  :root {
    --nav-h: 52px;
  }

  .topbar-inner {
    gap: 12px;
  }

  .brand-text {
    font-size: 0.88rem;
  }

  .nav {
    gap: 10px;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-art {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .art-character {
    height: 240px;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }

  .checkout-main {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-text {
    font-size: 0.8rem;
  }

  .nav {
    gap: 8px;
  }

  .nav-link {
    font-size: 0.76rem;
    gap: 5px;
  }

  .discord-icon {
    width: 14px;
    height: 14px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .payment-options {
    gap: 6px;
  }

  .pay-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    min-height: 52px;
    padding: 7px 10px;
  }

  .pay-icon {
    width: 30px;
    height: 30px;
  }

  .pay-text strong {
    font-size: 0.92rem;
  }

  .pay-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
