:root {
  --color-bg: #000;
  --color-panel: #131516;
  --color-text: #fff;
  --color-muted: #767980;
  --color-gold: #f59505;
  --color-orange: #eb6944;
  --container: 1200px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 320px;
  background: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.3;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  background: url("../assets/images/banner.png") center top no-repeat;
  background-size: 100% auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 126px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 84%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 96px);
  min-height: 540px;
  padding-block: 56px 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-width: 0;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hero-prize {
  width: min(38vw, 470px);
  max-width: 100%;
}

.hero-prize img {
  width: 100%;
  height: auto;
  flex: 0 1 auto;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 412px);
  min-height: 54px;
  padding: 13px 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f56d05 0%, #ffb341 85%);
  box-shadow:
    0 16px 36px rgba(245, 149, 5, 0.54),
    inset 1 -2px 14px rgba(255, 255, 255, 0.66);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}

.hero-visual {
  position: relative;
  flex: 0 1 560px;
  min-width: 280px;
  aspect-ratio: 1;
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(54vw, 720px);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.hero-banner-h5 {
  display: none;
}

@media (max-width: 768px) {
  .hero-banner-h5 {
    display: block;
    width: 100%;
    height: auto;
    max-width: 324px;
    margin: 0 auto;
  }
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(18px);
}

.hero-glow-main {
  inset: 12% 1% 11% -17%;
  transform: rotate(-30deg);
  background: radial-gradient(ellipse at center, rgba(245, 149, 5, 0.5), rgba(0, 0, 0, 0) 72%);
}

.hero-glow-side {
  inset: 11% 2% 19% 24%;
  transform: rotate(-10deg);
  background: radial-gradient(ellipse at center, rgba(245, 149, 5, 0.42), rgba(0, 0, 0, 0) 66%);
}

.section {
  padding-block: clamp(56px, 7vw, 80px);
  background: #000;
}

.section-title {
  max-width: 1020px;
  margin: 0 auto;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.mobile-title {
  display: none;
}

.steps-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}

.step-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 268px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  border-radius: 12px;
  background: var(--color-panel);
  text-align: center;
}

.step-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.step-card h3 {
  max-width: 300px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.step-card p {
  max-width: 312px;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* .step-arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-right: 2px solid rgba(255, 255, 255, 0.22);
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  transform: rotate(-45deg);
} */
.step-arrow {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  opacity: 0.42;
  align-self: center;
}
.step-arrow::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #767980;
  transform: translateY(-50%);
}

.step-arrow::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 16px;

  border-top: 2px solid #767980;
  border-right: 2px solid #767980;

  transform: translateY(-50%) rotate(45deg);
}

.rewards-title span {
  color: var(--color-gold);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.reward-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  padding: 24px 22px;
  border: 1px solid rgba(142, 142, 146, 0.3);
  border-radius: 12px;
  text-align: center;
  isolation: isolate;
}

.reward-card::before,
.reward-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.reward-card::before {
  background: radial-gradient(circle at 50% 91%, var(--card-accent), #000 74%);
}

.reward-card::after {
  opacity: 0.12;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.2), transparent 42%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px);
}

.reward-card-silver {
  --card-accent: #636366;
  box-shadow: inset 0 -13px 33px rgba(188, 188, 199, 0.25);
}

.reward-card-gold {
  --card-accent: #915400;
  border-color: rgba(245, 149, 5, 0.3);
  box-shadow: inset 0 -13px 33px rgba(255, 226, 183, 0.25);
}

.reward-card-copper {
  --card-accent: #a1462d;
  border-color: rgba(161, 70, 45, 0.3);
  box-shadow: inset 0 -13px 33px rgba(255, 145, 114, 0.25);
}

.reward-card h3 {
  min-height: calc(1em * 1.3 * 3);
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reward-card-gold h3 {
  color: var(--color-gold);
}

.reward-card-copper h3 {
  color: var(--color-orange);
}

.reward-card > img,
.reward-image-stack {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.reward-image-stack {
  position: relative;
  display: block;
}

.reward-image-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reward-card p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 14px;
  border-top: 1px solid rgba(245, 149, 5, 0.2);
  border-bottom: 1px solid rgba(245, 149, 5, 0.2);
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.reward-card-gold p,
.reward-card-copper p {
  background: rgba(245, 149, 5, 0.1);
}

.reward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 41px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #0b0c0e;
  font-size: 16px;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 4px 4px rgba(255, 255, 255, 0.25);
  overflow-wrap: anywhere;
}

.reward-button-light {
  background: #fff;
}

.reward-button-gold {
  background: var(--color-gold);
}

.reward-button-copper {
  background: var(--color-orange);
}

.download-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 96px);
  margin-top: 42px;
  min-height: 570px;
}

.download-content {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.download-content h3 {
  margin: 0;
  font-family: Switzer, Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-code {
  width: 180px;
  height: 180px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 180px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

.store-button span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  font-family: Switzer, Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.store-button small {
  font-size: 9px;
  font-weight: 400;
}

.phone-preview {
  flex: 0 1 502px;
  width: min(42vw, 502px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    min-height: 528px;
    background: none;
  }

  .hero-inner {
    display: block;
    width: 100%;
    min-height: 528px;
    padding-block: 0;
    text-align: center;
  }

  .hero-content {
    position: relative;
    align-items: center;
    flex-basis: auto;
    gap: 12px;
    padding-top: 268px;
    padding-inline: 16px;
  }

  .hero h1 {
    max-width: 300px;
    font-size: 24px;
  }

  .hero-visual {
    position: absolute;
    inset-inline: 0;
    top: 0;
    width: 100%;
    height: 243px;
    min-width: 0;
    aspect-ratio: auto;
  }

  .hero-visual img {
    width: 100%;
    height: 226px;
    margin-top: 9px;
  }

  .primary-button {
    min-width: 0;
    min-height: 48px;
    margin-top: 20px;
    padding: 10px 24px;
  }

  .section {
    padding-block: 24px;
  }

  .section-title {
    max-width: 340px;
  }

  .steps-list {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
  }

  .step-arrow {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    opacity: 0.42;
  }

  .step-arrow::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 2px;
    height: 18px;
    background: #767980;
    transform: translateY(-50%);
  }

  .step-arrow::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 50%;
    width: 16px;
    height: 16px;

    border-top: 2px solid #767980;
    border-right: 2px solid #767980;

    transform: translateY(-50%) rotate(135deg);
  }

  .step-card {
    width: min(100%, 340px);
    min-height: 236px;
    padding: 24px 20px;
  }

  .reward-grid {
    grid-template-columns: 1fr;
    max-width: 337px;
    margin-inline: auto;
    margin-top: 20px;
    gap: 16px;
  }

  .reward-card {
    min-height: 379px;
    padding: 24px 22px;
  }
  .reward-card h3 {
    min-height: calc(1em * 1.3 * 3);
  }

  .download-layout {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    min-height: 0;
    text-align: center;
  }

  .download-content {
    align-items: center;
    flex-basis: auto;
    width: 100%;
  }

  .download-content h3,
  .download-content .qr-code,
  .download-layout .phone-preview {
    display: none;
  }

  .download-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .phone-preview {
    width: min(72vw, 360px);
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-prize {
    width: 173px;
  }

  .section-title {
    font-size: 28px;
  }

  .download-actions {
    flex-direction: column;
    gap: 18px;
    position: fixed;
    bottom: 0;
    background: var(--color-panel);
    width: 100%;
    padding: 16px 0;
    z-index: 1;
  }

  .download-content h3 {
    font-size: 16px;
  }

  .store-buttons {
    align-items: center;
    gap: 18px;
    flex-direction: row;
  }

  .store-button {
    min-width: auto;
  }

  .phone-preview {
    width: min(68vw, 255px);
    margin-top: -70px;
  }
}

@media (max-width: 910px) and (min-width: 768px) {
  .reward-card h3 {
    min-height: calc(1em * 1.3 * 4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
