.page--home {
  background:
    linear-gradient(
      180deg,
      #fffdf8 0%,
      #fffaf2 100%
    );
}

.home-page {
  display: flex;
  width: min(100%, 930px);
  margin: 0 auto;
  padding: 0 15px 28px;
  flex-direction: column;
  gap: 17px;
}


/* =================================
   오늘의 운명 메인 배너
================================= */

.hero-card {
  position: relative;
  min-height: 566px;
  overflow: hidden;

  border: 1px solid rgba(194, 163, 217, 0.24);
  border-radius: 36px;

  background:
    radial-gradient(
      circle at 42% 57%,
      rgba(255, 249, 208, 0.95) 0%,
      rgba(255, 244, 208, 0.58) 17%,
      transparent 38%
    ),
    radial-gradient(
      circle at 84% 14%,
      rgba(255, 255, 255, 0.86),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #f1e4fb 0%,
      #e8dcf7 48%,
      #f5efd9 100%
    );

  box-shadow:
    0 16px 34px rgba(111, 76, 131, 0.08);

  isolation: isolate;
}

.hero-card::before {
  position: absolute;
  z-index: 0;
  top: -60px;
  left: -40px;

  width: 410px;
  height: 180px;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(255, 255, 255, 0.42) 58%,
      transparent 73%
    );

  content: "";
  pointer-events: none;
}

.hero-card__content {
  position: relative;
  z-index: 5;

  width: 53%;
  padding: 96px 0 54px 70px;
}

.hero-card__welcome {
  margin: 0 0 8px;

  color: #4d341c;
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.hero-card__title {
  margin: 0;

  color: #4c351c;
  font-size: clamp(35px, 5.4vw, 55px);
  font-weight: 900;
  line-height: 1.26;
  letter-spacing: -0.065em;
}

.hero-card__title span {
  color: #7756c8;
}

.hero-card__description {
  margin: 24px 0 0;

  color: #654b33;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: -0.025em;
}

.hero-card__button {
  display: inline-flex;
  align-items: center;

  min-height: 79px;
  margin-top: 29px;
  padding: 0 24px 0 29px;
  gap: 11px;

  border: 2px solid rgba(113, 68, 173, 0.42);
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #bd7ed9,
      #8a54bd
    );

  color: #ffffff;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;

  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    0 11px 20px rgba(126, 75, 163, 0.24);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.hero-card__button:hover {
  transform: translateY(-3px);

  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.46),
    0 16px 26px rgba(126, 75, 163, 0.3);
}

.hero-card__button-star {
  color: #ffe76e;
  font-size: 27px;
}

.hero-card__button-arrow {
  margin-left: 8px;

  font-size: 37px;
  font-weight: 300;
  line-height: 1;
}


/* =================================
   여우와 움직이는 지팡이
================================= */

.hero-visual {
  position: absolute;
  z-index: 2;
  right: -2%;
  bottom: -1%;

  width: 65%;
  height: 95%;

  pointer-events: none;
}

.hero-visual__fox {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: right bottom;

  filter:
    drop-shadow(
      0 18px 22px
      rgba(87, 56, 110, 0.13)
    );
}


/*
  지팡이는 여우 손 위치에 겹쳐집니다.

  손 위치와 다르면 아래 세 값을 조절하세요.
  top / left / width
*/

.hero-visual__wand {
  position: absolute;
  z-index: 5;

  top: 20%;
  left: 14%;

  width: 18%;
  height: auto;

  transform-origin: 50% 91%;

  filter:
    drop-shadow(
      0 5px 7px
      rgba(97, 58, 27, 0.24)
    );

  animation:
    hero-wand-swing
    1.8s
    ease-in-out
    infinite;
}

.hero-visual__wand-glow {
  position: absolute;
  z-index: 4;

  top: 15%;
  left: 17%;

  width: 78px;
  height: 78px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 246, 158, 0.95) 0%,
      rgba(255, 218, 71, 0.48) 34%,
      transparent 72%
    );

  filter: blur(4px);

  animation:
    hero-wand-glow
    1.15s
    ease-in-out
    infinite;
}

.hero-visual__spark {
  position: absolute;
  z-index: 7;

  color: #ffd84c;
  line-height: 1;

  text-shadow:
    0 0 8px rgba(255, 216, 76, 0.95),
    0 0 18px rgba(255, 233, 135, 0.86);

  animation:
    hero-spark-twinkle
    1.3s
    ease-in-out
    infinite;
}

.hero-visual__spark--one {
  top: 14%;
  left: 17%;

  font-size: 31px;
}

.hero-visual__spark--two {
  top: 23%;
  left: 11%;

  font-size: 20px;
  animation-delay: 0.55s;
}


/* 지팡이 손잡이를 중심으로 좌우 회전 */

@keyframes hero-wand-swing {
  0%,
  100% {
    transform:
      rotate(-6deg)
      translateY(0);
  }

  50% {
    transform:
      rotate(8deg)
      translateY(-3px);
  }
}

@keyframes hero-wand-glow {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes hero-spark-twinkle {
  0%,
  100% {
    transform:
      scale(0.7)
      rotate(-12deg);

    opacity: 0.35;
  }

  50% {
    transform:
      scale(1.18)
      rotate(12deg);

    opacity: 1;
  }
}


/* =================================
   큰 메뉴 카드
================================= */

.primary-menu-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;

  min-height: 386px;
  overflow: hidden;
  padding: 31px 37px;

  border: 1px solid rgba(143, 112, 182, 0.18);
  border-radius: 32px;

  box-shadow:
    0 12px 28px rgba(93, 68, 111, 0.07);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;

  isolation: isolate;
}

.feature-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 36px rgba(93, 68, 111, 0.12);
}

.feature-card--fortune {
  background:
    radial-gradient(
      circle at 74% 20%,
      rgba(255, 255, 255, 0.9),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #eee7ff,
      #f9effd
    );
}

.feature-card--counseling {
  background:
    radial-gradient(
      circle at 72% 14%,
      rgba(255, 255, 255, 0.9),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #e4f8f3,
      #f0fcf6
    );
}

.feature-card__content {
  position: relative;
  z-index: 3;
}

.feature-card__title {
  margin: 0;

  color: #7650bf;
  font-size: clamp(25px, 3.8vw, 39px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.055em;
}

.feature-card--counseling
.feature-card__title {
  color: #237f79;
}

.feature-card__description {
  margin: 14px 0 0;

  color: #594a59;
  font-size: clamp(15px, 2.15vw, 20px);
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -0.025em;
}

.feature-card__image {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 73%;

  object-fit: contain;
  object-position: center bottom;
}


/* =================================
   작은 메뉴 카드
================================= */

.secondary-menu-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.mini-feature-card {
  position: relative;

  min-height: 374px;
  overflow: hidden;
  padding: 28px 25px;

  border: 1px solid rgba(194, 145, 110, 0.17);
  border-radius: 31px;

  box-shadow:
    0 11px 26px rgba(106, 77, 54, 0.06);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;

  isolation: isolate;
}

.mini-feature-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 17px 32px rgba(106, 77, 54, 0.11);
}

.mini-feature-card--compatibility {
  background:
    linear-gradient(
      150deg,
      #fff0ef,
      #fff9f4
    );
}

.mini-feature-card--comparison {
  background:
    linear-gradient(
      150deg,
      #f3f7dd,
      #fffdf1
    );
}

.mini-feature-card--personality {
  background:
    linear-gradient(
      150deg,
      #fff4df,
      #fffaf0
    );
}

.mini-feature-card__content {
  position: relative;
  z-index: 3;
}

.mini-feature-card__title {
  margin: 0;

  color: #d64f6a;
  font-size: clamp(21px, 3vw, 33px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.mini-feature-card--comparison
.mini-feature-card__title {
  color: #597c2a;
}

.mini-feature-card--personality
.mini-feature-card__title {
  color: #eb7f27;
}

.mini-feature-card__description {
  margin: 13px 0 0;

  color: #5b493b;
  font-size: clamp(13px, 1.85vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.mini-feature-card__image {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 64%;

  object-fit: contain;
  object-position: center bottom;
}


/* =================================
   원형 화살표
================================= */

.round-arrow {
  position: absolute;
  z-index: 5;
  right: 15px;
  bottom: 15px;

  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;

  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;

  color: #ffffff;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;

  box-shadow:
    0 4px 10px rgba(69, 48, 75, 0.16);
}

.round-arrow--purple {
  background: #9272e6;
}

.round-arrow--mint {
  background: #5fbebc;
}

.round-arrow--pink {
  background: #ff7da2;
}

.round-arrow--green {
  background: #9dcc29;
}

.round-arrow--orange {
  background: #ff9b34;
}


/* =================================
   태블릿 및 모바일
================================= */

@media (max-width: 700px) {
  .home-page {
    padding: 0 8px 18px;
    gap: 9px;
  }

  .hero-card {
    min-height: 425px;
    border-radius: 24px;
  }

  .hero-card__content {
    width: 58%;
    padding: 62px 0 30px 30px;
  }

  .hero-card__welcome {
    margin-bottom: 6px;
    font-size: 24px;
  }

  .hero-card__title {
    font-size: clamp(29px, 7.5vw, 39px);
  }

  .hero-card__description {
    margin-top: 16px;
    font-size: clamp(13px, 3.6vw, 17px);
    line-height: 1.55;
  }

  .hero-card__button {
    min-height: 58px;
    margin-top: 20px;
    padding: 0 16px;
    gap: 7px;
    font-size: clamp(12px, 3.2vw, 16px);
  }

  .hero-card__button-star {
    font-size: 19px;
  }

  .hero-card__button-arrow {
    margin-left: 2px;
    font-size: 27px;
  }

  .hero-visual {
    right: -12%;
    width: 71%;
    height: 88%;
  }

  .hero-visual__wand {
    top: 20%;
    left: 13%;
    width: 18%;
  }

  .hero-visual__wand-glow {
    top: 15%;
    left: 16%;
    width: 54px;
    height: 54px;
  }

  .hero-visual__spark--one {
    top: 14%;
    left: 16%;
    font-size: 23px;
  }

  .hero-visual__spark--two {
    top: 23%;
    left: 10%;
    font-size: 15px;
  }

  .primary-menu-grid {
    gap: 8px;
  }

  .feature-card {
    min-height: 292px;
    padding: 22px 19px;
    border-radius: 23px;
  }

  .feature-card__title {
    font-size: clamp(21px, 5.3vw, 29px);
  }

  .feature-card__description {
    margin-top: 10px;
    font-size: clamp(12px, 3vw, 15px);
  }

  .feature-card__image {
    height: 68%;
  }

  .secondary-menu-grid {
    gap: 7px;
  }

  .mini-feature-card {
    min-height: 281px;
    padding: 20px 14px;
    border-radius: 22px;
  }

  .mini-feature-card__title {
    font-size: clamp(16px, 4.5vw, 23px);
  }

  .mini-feature-card__description {
    margin-top: 8px;
    font-size: clamp(10px, 2.65vw, 13px);
  }

  .mini-feature-card__image {
    height: 59%;
  }

  .round-arrow {
    right: 9px;
    bottom: 9px;

    width: 46px;
    height: 46px;

    border-width: 3px;

    font-size: 27px;
  }
}


/* 움직임 최소화 설정 사용자 배려 */

@media (prefers-reduced-motion: reduce) {
  .hero-visual__wand,
  .hero-visual__wand-glow,
  .hero-visual__spark {
    animation: none;
  }
}