/* Landing / Teaser Page — Messy Stacked Deck Styles */

.landing-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-gold);
  overflow-x: hidden;
}

/* Header */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  width: 100%;
  position: relative;
  z-index: 50;
}

.brand-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 48px;
  width: auto;
}

.enter-site-btn {
  font-family: var(--font-cta);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.enter-site-btn:hover {
  background-color: #000;
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.enter-site-btn .arrow-icon {
  transition: transform 0.2s ease;
}

.enter-site-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Central Stage */
.stage-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.5rem 3.5rem;
  position: relative;
}

/* ----------------------------------------------------
   Stacked Card Deck (Physical Messy Realism)
---------------------------------------------------- */
.deck-wrapper {
  position: relative;
  width: 100%;
  max-width: 370px;
  aspect-ratio: 5 / 7.2;
  perspective: 1000px;
  margin-bottom: 2.8rem;
  -webkit-user-select: none;
  user-select: none;
}

.deck-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 6px solid #141211;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38), 0 6px 14px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  background-color: #24211f;
  touch-action: pan-y;
  transform-origin: 50% 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
  -webkit-user-select: none;
  user-select: none;
}

/* Top Card in Deck */
.deck-card.is-top {
  cursor: grab;
  z-index: 10;
  opacity: 1;
}

.deck-card.is-top:active,
.deck-card.is-dragging {
  cursor: grabbing !important;
  transition: none !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 12px 24px rgba(0, 0, 0, 0.35) !important;
  z-index: 25 !important;
}

/* Underlying Messy Physical Layers */
.deck-card.is-layer-1 {
  z-index: 9;
  transform: translate3d(5px, 8px, 0) rotate(3.2deg) scale(0.985);
  opacity: 0.96;
  pointer-events: none;
}

.deck-card.is-layer-2 {
  z-index: 8;
  transform: translate3d(-6px, 16px, 0) rotate(-3.5deg) scale(0.97);
  opacity: 0.90;
  pointer-events: none;
}

.deck-card.is-layer-3 {
  z-index: 7;
  transform: translate3d(4px, 24px, 0) rotate(2.4deg) scale(0.95);
  opacity: 0.82;
  pointer-events: none;
}

.deck-card.is-layer-4 {
  z-index: 6;
  transform: translate3d(-4px, 30px, 0) rotate(-1.8deg) scale(0.93);
  opacity: 0.70;
  pointer-events: none;
}

.deck-card.is-hidden {
  z-index: 1;
  transform: translate3d(0, 36px, 0) rotate(0deg) scale(0.90);
  opacity: 0;
  pointer-events: none;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Card Discard Animations (Throw left or right) */
.deck-card.fly-left {
  transition: transform 0.38s cubic-bezier(0.2, 0.85, 0.4, 1), opacity 0.32s ease !important;
  transform: translate3d(-160%, 15px, 0) rotate(-28deg) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.deck-card.fly-right {
  transition: transform 0.38s cubic-bezier(0.2, 0.85, 0.4, 1), opacity 0.32s ease !important;
  transform: translate3d(160%, 15px, 0) rotate(28deg) !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ----------------------------------------------------
   CTA Container & Button (Elevated Above Cards)
---------------------------------------------------- */
.cta-container {
  position: relative;
  z-index: 40;
  margin-top: 0.5rem;
}

.btn-next-card {
  font-family: var(--font-cta);
  position: relative;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-next-card:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-next-card:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .landing-header {
    padding: 1.2rem 1.5rem;
  }
  .brand-logo-img {
    height: 38px;
  }
  .enter-site-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .deck-wrapper {
    max-width: 300px;
    margin-bottom: 2.2rem;
  }
  .btn-next-card {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
