:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #090d14;
  --card: #0e141e;
  --card-alt: #151e2b;
  --text: #f4f7fb;
  --muted: #8390a5;
  --primary: #4a8dff;
  --primary-soft: rgba(74, 141, 255, 0.18);
  --reward: #e7c46a;
  --line: #202b3a;
  --line-strong: #3a4b63;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); }
button, a { font: inherit; }
img { display: block; max-width: 100%; }

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(74, 141, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 141, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
}

.hero {
  position: relative;
  min-height: min(760px, 100svh);
  padding: max(72px, env(safe-area-inset-top)) 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 10% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(620px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 141, 255, 0.22), rgba(74, 141, 255, 0.04) 45%, transparent 70%);
  filter: blur(12px);
}

.brand-mark {
  width: 124px;
  height: 124px;
  padding: 6px;
  margin-bottom: 26px;
  border: 1px solid rgba(125, 172, 255, 0.48);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(74, 141, 255, 0.18), rgba(74, 141, 255, 0.02));
  box-shadow: 0 22px 70px rgba(42, 98, 210, 0.28), inset 0 1px rgba(255,255,255,.16);
}

.brand-mark img, .download-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.eyebrow { margin: 0 0 12px; color: #7daddf; font-size: .76rem; font-weight: 800; letter-spacing: .19em; }
h1 { margin: 0; font-size: clamp(3rem, 15vw, 5.6rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy { margin: 22px 0 0; color: var(--muted); font-size: clamp(1.04rem, 4.4vw, 1.28rem); line-height: 1.7; }
.hero-copy strong { color: var(--text); font-weight: 650; }
.hero-link { margin-top: 36px; padding: 13px 19px; color: #bdd5ff; font-size: .9rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(14,20,30,.72); }

.steps-section { max-width: 1040px; margin: 0 auto; padding: 96px 20px 116px; }
.section-heading { margin-bottom: 42px; }
.section-heading h2, .download-section h2 { margin: 0; font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading > p:last-child, .download-section > p { margin: 15px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.steps-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }

.step-card {
  position: relative;
  min-height: 435px;
  padding: 18px;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(155deg, rgba(21,30,43,.96), rgba(9,13,20,.96));
  box-shadow: 0 22px 70px rgba(0,0,0,.2);
  overflow: hidden;
}

.step-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 110px; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.step-visual { min-height: 250px; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(circle at 50% 48%, rgba(74,141,255,.13), transparent 62%); overflow: hidden; }
.step-visual img { width: 100%; height: 100%; max-height: 290px; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(0,0,0,.28)); }
.app-install-visual { position: relative; }
.app-install-visual img { position: relative; width: 146px; height: 146px; border-radius: 34px; object-fit: cover; box-shadow: 0 24px 60px rgba(42,98,210,.35); }
.visual-halo { position: absolute; width: 240px; aspect-ratio: 1; border: 1px solid rgba(74,141,255,.22); border-radius: 50%; box-shadow: 0 0 0 34px rgba(74,141,255,.035), 0 0 0 68px rgba(74,141,255,.02); }
.step-copy { padding: 18px 6px 8px; }
.step-number { display: inline-flex; margin-bottom: 10px; color: var(--primary); font-size: .82rem; font-weight: 850; letter-spacing: .15em; }
.step-copy h3 { margin: 0; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.035em; }
.step-copy p { margin: 11px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.download-section {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 70px;
  padding: 72px 22px;
  text-align: center;
  border: 1px solid rgba(74,141,255,.28);
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(19,38,71,.96), rgba(8,13,22,.98) 58%);
  overflow: hidden;
  isolation: isolate;
}
.download-glow { position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; left: 50%; top: -300px; transform: translateX(-50%); border-radius: 50%; background: rgba(74,141,255,.36); filter: blur(70px); }
.download-logo { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 20px; box-shadow: 0 16px 42px rgba(0,0,0,.3); }
.store-buttons { max-width: 520px; margin: 34px auto 0; display: grid; gap: 12px; }
.store-button {
  width: 100%; min-height: 66px; padding: 10px 22px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--text); text-align: left; text-decoration: none;
  border: 1px solid rgba(244,247,251,.16); border-radius: 17px;
  background: #05070b; cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.store-button:hover, .store-button:focus-visible { transform: translateY(-2px); border-color: rgba(74,141,255,.8); background: #0b1220; outline: none; }
.store-button small, .store-button strong { display: block; }
.store-button small { color: #aeb7c6; font-size: .63rem; letter-spacing: .07em; }
.store-button strong { margin-top: 1px; font-size: 1.16rem; line-height: 1.1; }
.store-icon { width: 30px; color: var(--text); font-size: 1.5rem; text-align: center; }
.android-icon { color: #7fc9ff; }
.apple-icon { color: #f4f7fb; font-size: 1.7rem; }
.store-note { min-height: 24px; margin-top: 14px !important; color: #bdd5ff !important; font-size: .88rem !important; }

footer { min-height: 92px; padding: 24px max(22px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 10px; color: #aeb7c6; border-top: 1px solid var(--line); }
footer img { border-radius: 8px; }
.footer-copy { margin-left: auto; color: #657188; font-size: .78rem; }

@media (min-width: 720px) {
  .steps-section { padding-inline: 32px; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .store-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-section { padding-inline: 54px; }
}

@media (min-width: 1060px) {
  .section-heading { text-align: center; }
  .steps-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-card { min-height: 460px; }
  .step-visual { min-height: 235px; }
  .step-visual img { max-height: 240px; }
  .step-copy h3 { font-size: 1.38rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-button { transition: none; }
}
