*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #fff7ed;
  background: #8b1a1a;
}

.page {
  min-height: 100vh;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: visible;
}

.page__bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page__bg-title,
.page__bg-body,
.page__bg-end {
  position: absolute;
  left: 0;
  right: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.page__bg-title {
  top: 0;
  background-image: url("./assets/background_title.webp");
}

.page__bg-body {
  background-image: url("./assets/background_body.webp");
  background-repeat: repeat-y;
}

.page__bg-end {
  bottom: 0;
  background-image: url("./assets/background_end.webp");
  background-position: center bottom;
}

.decor-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.decor-top-spacer {
  height: 168px;
  width: 100%;
}

.decor {
  position: absolute;
  border: none;
  border-radius: 16px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.decor--wide {
  width: 195px;
  aspect-ratio: 418 / 257;
  left: 145px;
  top: 32px;
  background-image: url("./assets/decor/decor-top-wide.PNG");
}

.decor--tall {
  width: 88px;
  aspect-ratio: 300 / 452;
  left: 34px;
  top: 26px;
  background-image: url("./assets/decor/decor-top-tall.PNG");
}

.decor--bottom {
  width: 180px;
  aspect-ratio: 356 / 219;
  left: 100px;
  top: 717px;
  background-image: url("./assets/decor/decor-bottom-wide.PNG");
}

.waterfall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 5;
}

.card {
  margin: 0;
  width: min(100%, 360px);
  padding: 20px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.card--tall {
  min-height: 220px;
}

.card--short {
  min-height: 160px;
}

.card__icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.card__desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #f6c453;
  color: #7a1c1c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.card__action--ghost {
  background: transparent;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 420px) {
  .page {
    padding: 24px 16px 32px;
  }
}
