/* ============================================
   SERPENTS WAY — Homepage Styles
   ============================================ */

/* ── Oracle Hero ── */
.hero--oracle {
  --hero-bg-image: url("/images/ui/background.webp");
  position: relative;
  min-height: 100svh;
  padding: clamp(6.5rem, 12vw, 8.5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  background-color: #060807;
  background-image:
    radial-gradient(circle at 50% 16%, rgba(56, 176, 0, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(4, 6, 5, 0.24) 0%, rgba(4, 6, 5, 0.06) 34%, rgba(4, 6, 5, 0.22) 100%),
    var(--hero-bg-image);
  background-repeat: no-repeat;
  background-position: center top, center top, center top;
  background-size: auto, auto, cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.88) 0%, rgba(5, 7, 6, 0.34) 18%, rgba(5, 7, 6, 0.18) 46%, rgba(5, 7, 6, 0.72) 100%),
    radial-gradient(circle at center 30%, rgba(11, 15, 13, 0.04), rgba(11, 15, 13, 0.82) 80%);
  pointer-events: none;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 36%, rgba(143, 255, 210, 0.16), transparent 22%),
    radial-gradient(circle at 50% 76%, rgba(255, 208, 96, 0.18), transparent 20%),
    radial-gradient(circle at 20% 12%, rgba(56, 176, 0, 0.1), transparent 16%),
    radial-gradient(circle at 80% 12%, rgba(56, 176, 0, 0.08), transparent 14%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.hero__heading {
  width: min(100%, 44rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  margin-inline: auto;
}

.hero__subtitle {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: rgba(244, 214, 123, 0.92);
}

.hero__title {
  margin-bottom: 0.75rem;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.12em;
  color: #f7df9c;
  text-shadow:
    0 0 12px rgba(255, 220, 128, 0.18),
    0 0 28px rgba(56, 176, 0, 0.08);
}

.hero__ritual-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 1.7vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(244, 214, 123, 0.82);
}

.hero__ritual-line span {
  color: rgba(143, 255, 210, 0.72);
}

.hero__desc {
  max-width: 40rem;
  margin: 0 auto;
  font-size: clamp(1rem, 1.9vw, 1.16rem);
  line-height: 1.75;
  color: rgba(248, 249, 250, 0.8);
  text-wrap: balance;
}

.hero__draw {
  width: min(100%, 54rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-self: center;
  margin-inline: auto;
  text-align: center;
}

.hero__card-slot {
  position: relative;
  width: min(100%, 46rem);
  min-height: clamp(18rem, 52vw, 34rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-inline: auto;
}

.hero__card-slot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(26rem, 70vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(143, 255, 210, 0.18) 0%, rgba(143, 255, 210, 0.06) 26%, transparent 64%);
  filter: blur(12px);
  pointer-events: none;
}

.hero__card-slot::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 214, 123, 0.42), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.hero__deck-image {
  position: relative;
  z-index: 2;
  width: min(100%, 38rem);
  height: auto;
  margin-inline: auto;
  filter:
    drop-shadow(0 8px 28px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 38px rgba(143, 255, 210, 0.14));
  animation: hero-deck-float 8s ease-in-out infinite;
}

.hero__card-slot .tarot-card {
  width: clamp(11rem, 28vw, 18rem);
  height: clamp(16.5rem, 42vw, 27rem);
  cursor: pointer;
  z-index: 2;
}

.hero__card-slot .tarot-card__name {
  font-size: 0.7rem;
}

.hero__card-slot .tarot-card__numeral {
  margin-bottom: 0.65rem;
}

.oracle-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 18rem);
  min-height: 4.5rem;
  padding: 0.9rem 2.6rem;
  font-family: var(--font-heading);
  font-size: clamp(0.86rem, 1.8vw, 1.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5df9a;
  line-height: 1;
  background: url("/images/ui/text-box-frame.svg") center / 100% 100% no-repeat;
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(56, 176, 0, 0.12));
  transition:
    transform var(--transition-base),
    filter var(--transition-base),
    color var(--transition-fast);
  isolation: isolate;
}

.oracle-button::before {
  content: "";
  position: absolute;
  inset: 22% 10%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 255, 210, 0.12), transparent 68%);
  opacity: 0.5;
  z-index: -1;
  transition: opacity var(--transition-base);
}

.oracle-button:hover {
  transform: translateY(-2px) scale(1.01);
  color: #fff4c7;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 26px rgba(56, 176, 0, 0.2));
}

.oracle-button:hover::before {
  opacity: 0.82;
}

.oracle-button:disabled {
  opacity: 0.82;
  cursor: wait;
  transform: none;
}

.oracle-button--hero {
  min-width: min(100%, 22rem);
  min-height: 5rem;
  font-size: clamp(0.98rem, 2vw, 1.24rem);
}

.oracle-button--secondary {
  min-width: min(100%, 19rem);
  min-height: 4.6rem;
  margin-top: 0.5rem;
}

.oracle-button--inline {
  min-width: min(100%, 16rem);
  min-height: 4rem;
  font-size: 0.82rem;
}

.hero__interpretation {
  width: min(100%, 42rem);
  align-self: center;
  margin-inline: auto;
}

.daily-reading {
  padding: 1.5rem 1.5rem 1.85rem;
  border: 1px solid rgba(244, 214, 123, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(8, 10, 9, 0.58), rgba(8, 10, 9, 0.8)),
    radial-gradient(circle at top, rgba(56, 176, 0, 0.16), transparent 55%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 244, 199, 0.05);
}

.daily-reading__eyebrow {
  margin-bottom: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(244, 214, 123, 0.78);
}

.daily-reading h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.daily-reading p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(248, 249, 250, 0.76);
}

.hero__browse {
  width: min(100%, 72rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(244, 214, 123, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(7, 9, 8, 0.58), rgba(7, 9, 8, 0.8)),
    radial-gradient(circle at top, rgba(143, 255, 210, 0.08), transparent 44%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 244, 199, 0.05);
  align-self: center;
  margin-inline: auto;
}

.hero__browse-overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 214, 123, 0.9);
}

.hero__browse-overline::before,
.hero__browse-overline::after {
  content: "";
  width: min(18vw, 5.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 214, 123, 0.58), transparent);
}

.hero__browse-title {
  margin-bottom: 1.3rem;
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248, 249, 250, 0.76);
}

/* ── Featured Cards ── */
.featured-cards {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.featured-cards--oracle {
  overflow-x: auto;
  padding: 0.45rem 0.35rem 1rem;
  justify-content: flex-start;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 214, 123, 0.3) transparent;
}

.featured-cards--oracle::-webkit-scrollbar {
  height: 8px;
}

.featured-cards--oracle::-webkit-scrollbar-thumb {
  background: rgba(244, 214, 123, 0.24);
  border-radius: 999px;
}

.featured-card-link {
  flex: 0 0 auto;
  width: clamp(7.7rem, 24vw, 10rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  transition: transform var(--transition-base);
  scroll-snap-align: center;
}

.featured-card-link:hover {
  transform: translateY(-8px);
}

.featured-card-link .tarot-card {
  width: clamp(7.7rem, 24vw, 10rem);
  height: clamp(11.55rem, 36vw, 15rem);
}

.featured-card-label {
  display: inline-block;
  max-width: 11rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 249, 250, 0.72);
  transition: color var(--transition-fast);
  text-align: center;
}

.featured-card-link:hover .featured-card-label {
  color: rgba(255, 244, 199, 0.94);
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  counter-reset: step;
}

.step {
  text-align: center;
  padding: var(--space-2xl);
}

.step__number {
  display: block;
  margin-bottom: var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  color: var(--color-accent-dim);
  letter-spacing: var(--letter-spacing-ultra);
}

.step h4 {
  margin-bottom: var(--space-md);
}

@keyframes hero-deck-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 960px) {
  .hero--oracle {
    --hero-bg-image: url("/images/ui/background-desktop.webp");
    background-position: center center, center center, center top;
  }

  .hero__content {
    gap: 2rem;
  }

  .hero__browse {
    padding-inline: clamp(1.8rem, 4vw, 3rem);
  }

  .featured-cards--oracle {
    justify-content: center;
    overflow: visible;
  }
}

@media (max-width: 959px) {
  .hero--oracle {
    padding-top: 6.5rem;
  }

  .hero__title {
    letter-spacing: 0.08em;
  }

  .hero__browse {
    width: calc(100% + 0.5rem);
    margin-inline: -0.25rem;
  }
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
  }

  .hero__ritual-line {
    gap: 0.55rem;
    letter-spacing: 0.14em;
  }

  .hero__desc {
    max-width: 32rem;
    font-size: 0.98rem;
  }

  .hero__card-slot {
    min-height: 17rem;
  }

  .hero__deck-image {
    width: min(100%, 30rem);
  }

  .oracle-button--hero {
    width: min(100%, 18rem);
  }

  .hero__browse-overline {
    font-size: 0.82rem;
    gap: 0.7rem;
  }

  .hero__browse-title {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
  }
}

@media (max-width: 560px) {
  .hero--oracle {
    padding-top: 5.75rem;
    padding-bottom: 3.5rem;
  }

  .hero__content {
    gap: 1.35rem;
  }

  .hero__subtitle {
    margin-bottom: 0.8rem;
  }

  .hero__browse {
    padding: 1.15rem 0.9rem 1.35rem;
    border-radius: 24px;
  }

  .featured-card-link {
    width: 7.5rem;
  }

  .featured-card-link .tarot-card {
    width: 7.5rem;
    height: 11.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__deck-image,
  .featured-card-link,
  .oracle-button {
    animation: none;
    transition: none;
  }
}
