/* =========================================================================
   The CraftingTable — Home page styles
   ========================================================================= */

/* ------------------------------ Hero ----------------------------------- */
/* Split hero: brand + CTAs on the left, a glass product showcase on the right.
   Two-tone Minecraft wordmark (green + gold) and textured stone / wood buttons. */
.hero {
  --mc-green: #6cbf3f;
  --mc-green-dark: #2f6b1c;
  --mc-gold: #e0a73e;
  --mc-gold-dark: #8a5a16;
  --hero-extrude: rgba(0, 0, 0, 0.6);
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 92px 24px;
}

.hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* ---- Two-tone Minecraft wordmark ---- */
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 1vw, 12px);
  margin: 22px 0;
}

.hero__kicker {
  font-family: 'Press Start 2P', var(--font-sans);
  font-size: clamp(12px, 1.6vw, 18px);
  letter-spacing: 0.16em;
  color: #f4f4f4;
  text-shadow: 3px 3px 0 var(--hero-extrude);
}

.hero__word {
  font-family: 'Press Start 2P', var(--font-sans);
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.02;
  white-space: nowrap;
}

/* Outline + dark bottom face + hard offset = chunky 3D Minecraft block logo */
.hero__word-a {
  color: var(--mc-green);
  text-shadow:
    1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000,
    0 4px 0 var(--mc-green-dark),
    4px 7px 0 var(--hero-extrude),
    6px 10px 16px rgba(0, 0, 0, 0.5);
}
.hero__word-b {
  color: var(--mc-gold);
  text-shadow:
    1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000,
    0 4px 0 var(--mc-gold-dark),
    4px 7px 0 var(--hero-extrude),
    6px 10px 16px rgba(0, 0, 0, 0.5);
}

.hero__tagline {
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 600;
  color: #eef0f2;
  max-width: 460px;
  margin: 0;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

/* ---- CTAs: textured Minecraft GUI buttons ---- */
.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.mc-btn {
  font-family: 'Press Start 2P', var(--font-sans);
  font-size: clamp(11px, 1.2vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 18px 26px;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.55);
  cursor: pointer;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.32),
    inset -2px -3px 0 rgba(0, 0, 0, 0.4),
    0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.mc-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.38),
    inset -2px -3px 0 rgba(0, 0, 0, 0.45),
    0 14px 30px rgba(0, 0, 0, 0.5);
}
.mc-btn:active { transform: translateY(0); filter: brightness(0.96); }

.mc-btn--stone { background: linear-gradient(180deg, #b6b6b6, #8a8a8a 55%, #6f6f6f); }
.mc-btn--wood {
  background: linear-gradient(180deg, #a9763f, #835729 55%, #654019);
  color: #ffe9c7;
}

/* ---- Stats ---- */
.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 50px;
}
.hero__stats strong {
  display: block;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero__stats span {
  font-size: clamp(13px, 1.2vw, 15px);
  color: rgba(255, 255, 255, 0.78);
}

/* ====== Right: frosted-glass scrollable product showcase ====== */
.hero__showcase {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
  height: clamp(420px, 62vh, 560px);
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: saturate(150%) blur(30px);
  backdrop-filter: saturate(150%) blur(30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

/* The scroller: snappy vertical scroll-snap, hidden scrollbar, soft edge fade.
   data-lenis-prevent (in the markup) lets it scroll natively past Lenis. */
.hshow {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 2px;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge */
}
.hshow::-webkit-scrollbar { width: 0; height: 0; display: none; }  /* WebKit */

.hshow__card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hshow__card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.hshow__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 70%);
  overflow: hidden;
}
.hshow__media img {
  width: 72%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s var(--ease);
}
.hshow__card:hover .hshow__media img { transform: scale(1.06); }

.hshow__info { padding: 14px 16px 16px; }
.hshow__info h3 {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.hshow__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hshow__price {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 800;
  color: #fff;
}
.hshow__stars {
  color: var(--mc-gold);
  letter-spacing: 1.5px;
  font-size: 15px;
}

/* ------------------------------- Responsive ---------------------------- */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 104px 24px 80px;
  }
  .hero__showcase {
    justify-self: stretch;
    width: 100%;
    max-width: 460px;
    height: clamp(380px, 52vh, 480px);
  }
}

@media (max-width: 600px) {
  .hero__grid { padding: 96px 20px 72px; gap: 44px; }
  .hero__word { font-size: clamp(22px, 8.5vw, 38px); white-space: normal; }
  .hero__stats { gap: 18px; }
  .hero__stats strong { font-size: clamp(26px, 8vw, 34px); }
  .hero__showcase { height: clamp(360px, 64vh, 440px); }
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid var(--earth);
  border-radius: 14px;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll-dot 1.6s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  100% {
    opacity: 0;
  }
}

/* --------------------------- Alt sections ------------------------------ */
.section--alt {
  background: linear-gradient(180deg, var(--cream), var(--bg));
}

/* "Browse the full collection" row under a grid */
.section__more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* ---------------------------- How It Works ----------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(150%) blur(30px);
  backdrop-filter: saturate(150%) blur(30px);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover {
  transform: translateY(-6px);
}

.step__num {
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary);
  opacity: 0.55;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------- Why grid -------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.why-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--cream);
  border-radius: 16px;
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------- Custom band ------------------------------- */
.custom-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.custom-band__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--cream), var(--sand));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.custom-band__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 6%;
}

.custom-band__copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 14px 0 16px;
}

.custom-band__copy p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.ticks {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}

/* ----------------------------- Reviews --------------------------------- */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.review__stars {
  color: #d8dade;
  letter-spacing: 3px;
}

.review__text {
  font-size: 16px;
  line-height: 1.65;
  flex: 1;
}

.review__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.review__who strong {
  display: block;
  font-size: 15px;
}

.review__who span {
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------- FAQ ----------------------------------- */
.faq {
  max-width: 800px;
}

.faq__list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.faq-item__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-item.open .faq-item__a {
  max-height: 220px;
}

.faq-item__a p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ----------------------------- Closing --------------------------------- */
.closing {
  padding: 100px 0;
}

.closing__inner {
  background: var(--warm-dark);
  color: var(--foreground);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
}

.closing__inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.closing__inner p {
  color: var(--earth);
  font-size: 18px;
  margin-bottom: 28px;
}

.closing__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.closing__inner .btn--ghost {
  --btn-fg: var(--foreground);
  border-color: rgba(255, 255, 255, 0.25);
}

.closing__inner .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------- Responsive -------------------------------- */
@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-band {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero__stats {
    gap: 22px;
  }
  .hero__stats strong {
    font-size: 22px;
  }
}
