:root {
  --sky-1: #dff4ff;
  --sky-2: #bfe8ff;
  --sky-3: #9fd7f5;
  --cloud: rgba(255, 255, 255, 0.72);
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: rgba(255, 255, 255, 0.93);
  --text: #1f3750;
  --subtext: #4b6a84;
  --button: #2d8cff;
  --button-hover: #1d78e8;
  --soft-blue: #eaf6ff;
  --line: rgba(93, 138, 173, 0.16);
  --shadow: 0 20px 50px rgba(78, 131, 171, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, #e9f9ff 100%);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
}

.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: var(--cloud);
  border-radius: 999px;
  filter: blur(2px);
  animation: drift linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
}

.cloud.c1 {
  width: 180px;
  height: 56px;
  top: 11%;
  left: -220px;
  animation-duration: 34s;
}

.cloud.c1::before {
  width: 70px;
  height: 70px;
  left: 24px;
  top: -28px;
}

.cloud.c1::after {
  width: 86px;
  height: 86px;
  right: 22px;
  top: -38px;
}

.cloud.c2 {
  width: 230px;
  height: 70px;
  top: 24%;
  left: -260px;
  animation-duration: 46s;
  animation-delay: -10s;
  opacity: 0.8;
}

.cloud.c2::before {
  width: 88px;
  height: 88px;
  left: 32px;
  top: -34px;
}

.cloud.c2::after {
  width: 102px;
  height: 102px;
  right: 28px;
  top: -44px;
}

.cloud.c3 {
  width: 150px;
  height: 48px;
  top: 39%;
  left: -190px;
  animation-duration: 39s;
  animation-delay: -18s;
  opacity: 0.68;
}

.cloud.c3::before {
  width: 58px;
  height: 58px;
  left: 20px;
  top: -22px;
}

.cloud.c3::after {
  width: 74px;
  height: 74px;
  right: 18px;
  top: -30px;
}

.hill {
  position: fixed;
  left: 50%;
  bottom: -110px;
  transform: translateX(-50%);
  width: 160%;
  height: 290px;
  background: radial-gradient(circle at 50% 20%, #a6deb1 0%, #87c998 48%, #71ba86 100%);
  border-radius: 50% 50% 0 0;
  z-index: 0;
  opacity: 0.95;
}

.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 26px 16px 40px;
}

.page {
  width: min(100%, 560px);
}

.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px 24px;
  text-align: center;
}

.hero-card,
.subpage-card {
  margin-bottom: 16px;
}

.section-card {
  margin-top: 16px;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(78, 131, 171, 0.12);
  padding: 22px 18px;
}

.top-nav {
  text-align: left;
  margin-bottom: 10px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #346287;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(87, 140, 177, 0.12);
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #477196;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(100, 150, 190, 0.12);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  word-break: keep-all;
}

.subtitle {
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--subtext);
  max-width: 360px;
  word-break: keep-all;
}

.phone-frame {
  margin: 26px auto 22px;
  width: 168px;
  height: 320px;
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(180deg, #c8efff 0%, #8dcdf2 100%);
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.7), 0 18px 30px rgba(66, 122, 160, 0.18);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, #eefbff 0%, #dff4ff 100%);
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255,255,255,0.65);
}

.phone-notch {
  width: 72px;
  height: 12px;
  border-radius: 0 0 12px 12px;
  background: rgba(54, 93, 125, 0.18);
  margin: 0 auto;
}

.phone-ui {
  padding: 18px 14px;
  text-align: left;
}

.ui-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #32597d;
}

.ui-box {
  background: rgba(255,255,255,0.82);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(90, 145, 180, 0.12);
}

.ui-line {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c8eb, #d2efff);
  margin-bottom: 7px;
}

.ui-line.short { width: 55%; }
.ui-line.mid { width: 75%; }
.ui-line.long { width: 100%; }

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--button) 0%, #217cf0 100%);
  color: white;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(45, 140, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(45, 140, 255, 0.35);
  background: linear-gradient(180deg, #3896ff 0%, var(--button-hover) 100%);
}

.download-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 22px;
  line-height: 1;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #346287;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(87, 140, 177, 0.12);
}

.full-link {
  width: 100%;
}

.bottom-actions {
  margin-top: 16px;
}

.notice {
  margin-top: 16px;
  font-size: 13px;
  color: #5f7a92;
  line-height: 1.7;
  word-break: keep-all;
}

.section-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
  word-break: keep-all;
}

.section-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--subtext);
  line-height: 1.7;
  text-align: left;
  word-break: keep-all;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step {
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 14px;
  text-align: left;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2d8cff;
  color: white;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  word-break: keep-all;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--subtext);
  line-height: 1.8;
  word-break: keep-all;
}

.mini-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.8;
}

.highlight-box {
  background: rgba(255, 248, 220, 0.8);
  border: 1px solid rgba(227, 190, 90, 0.35);
  border-radius: 18px;
  padding: 15px 14px;
  text-align: left;
  margin-top: 14px;
}

.highlight-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.code-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(84, 131, 171, 0.35);
  color: #2e5678;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

.tip-grid {
  display: grid;
  gap: 12px;
}

.tip {
  text-align: left;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px;
}

.tip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.tip p {
  margin: 0;
  color: var(--subtext);
  line-height: 1.8;
  font-size: 14px;
}

.footer-note {
  margin-top: 18px;
  font-size: 12px;
  color: #7a93aa;
  text-align: center;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100vw + 340px));
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 16px 12px 30px;
  }

  .card,
  .section-card {
    border-radius: 22px;
    padding: 22px 16px;
  }

  .phone-frame {
    width: 148px;
    height: 284px;
    margin: 22px auto 20px;
  }

  .download-btn {
    min-height: 58px;
    font-size: 19px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 20px;
  }
}