* {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top center, rgba(109, 129, 170, 0.35), transparent 34%),
    linear-gradient(180deg, #4b5a7d 0%, #273655 18%, #18233b 42%, #121c31 100%);
  color: #fff;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}

body::before {
  top: -70px;
  left: -80px;
  background: #7ea4ff;
}

body::after {
  right: -120px;
  bottom: 80px;
  background: #5a79ce;
}

button {
  font: inherit;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.2s ease, opacity 0.16s ease;
}

button,
.guide-card,
.faq-item {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button.is-pressed,
button:active {
  transform: scale(0.97);
  filter: brightness(0.98);
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.page__inner {
  width: 100%;
  max-width: 430px;
}

.topbar {
  padding-top: 10px;
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.topbar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.topbar__button {
  min-width: 74px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(136, 151, 187, 0.56), rgba(85, 98, 129, 0.56));
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.notice {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(123, 139, 173, 0.28), rgba(82, 96, 126, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.notice__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
}

.notice__icon svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

.notice__title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
}

.notice__desc {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(235, 241, 255, 0.72);
}

.hero {
  padding: 34px 8px 10px;
  text-align: center;
}

.hero__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.logo-box {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 36px rgba(6, 12, 24, 0.24);
}

.logo-box__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero__title {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hero__title-name {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.hero__subtitle {
  margin: 12px 0 0;
  font-size: 16px;
  color: rgba(235, 241, 255, 0.82);
}

.hero__meta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(132, 147, 180, 0.26), rgba(80, 96, 127, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.meta-pill svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.86);
}

.meta-pill span {
  font-size: 13px;
  color: rgba(235, 241, 255, 0.7);
}

.meta-pill strong {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.download-btn {
  width: 100%;
  margin-top: 28px;
  padding: 12px;
  border: none;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #eae6de 100%);
  box-shadow: 0 18px 38px rgba(5, 10, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.download-btn::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -38%;
  width: 34%;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  transition: left 0.35s ease, opacity 0.2s ease;
}

.download-btn__inner {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%), linear-gradient(180deg, #3f5378 0%, #202f4b 48%, #16233b 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px rgba(15, 21, 35, 0.26);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.download-btn.is-pressed,
.download-btn:active {
  transform: translateY(2px) scale(0.985);
}

.download-btn.is-pressed::after,
.download-btn:active::after {
  left: 108%;
  opacity: 1;
}

.download-btn.is-pressed .download-btn__inner,
.download-btn:active .download-btn__inner {
  transform: scale(0.992);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 14px rgba(15, 21, 35, 0.22);
}

.hero__tip {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(235, 241, 255, 0.62);
}

.faq {
  margin-top: 22px;
  color: #101726;
}

.faq__title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  color: #eaf2ff;
  text-shadow: 0 4px 18px rgba(10, 18, 35, 0.28);
  letter-spacing: -0.03em;
}

.guide-card,
.faq-card {
  width: 100%;
  border: none;
  background: #f7f7fa;
  border-radius: 24px;
  box-shadow: 0 16px 30px rgba(7, 13, 26, 0.14);
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 22px 20px;
  margin-bottom: 16px;
}

.guide-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef1ff 0%, #dfe4fb 100%);
  color: #6b78a4;
  font-size: 28px;
  font-weight: 800;
  flex: none;
}

.guide-card__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-card__content strong {
  font-size: 19px;
  color: #162136;
}

.guide-card__content small {
  font-size: 14px;
  color: #737e93;
}

.faq-card + .faq-card {
  margin-top: 12px;
}

.faq-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  color: #151e31;
}

.faq-item__arrow {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid #1d2940;
  border-bottom: 2px solid #1d2940;
  transform: rotate(45deg);
  transition: transform 0.24s ease;
}

.faq-item.is-open .faq-item__arrow {
  transform: rotate(225deg);
}

.faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #69758d;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.guide-modal[hidden] {
  display: none;
}

.guide-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, 0.58);
  backdrop-filter: blur(10px);
}

.guide-modal__panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 20px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fd 100%);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
  color: #182135;
}

.guide-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.guide-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  color: #7c86a0;
  letter-spacing: 0.08em;
}

.guide-modal__header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.guide-modal__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #eef2fb;
  color: #4a5775;
  font-size: 24px;
}

.guide-modal__steps {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #5f6d88;
}

.guide-modal__steps li {
  line-height: 1.7;
}

.guide-modal__steps li + li {
  margin-top: 10px;
}

.guide-modal__action {
  width: 100%;
  margin-top: 22px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #263a5b 0%, #142037 100%);
  color: #fff;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#wechat-mask {
  display: none;
}

.wechat-mask-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.wechat-mask-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 85%;
  max-width: 320px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  z-index: 10002;
  overflow: hidden;
  padding: 24px;
}

.wechat-mask-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.wechat-mask-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.wechat-mask-info {
  margin-left: 12px;
}

.wechat-mask-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.wechat-mask-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #999;
}

.wechat-mask-steps {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 16px;
}

.wechat-mask-steps p {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  line-height: 2;
}

.wechat-mask-steps b {
  color: #ff4081;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ff4081;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.wechat-mask-divider {
  position: relative;
  margin: 18px 0;
  text-align: center;
  font-size: 12px;
  color: #ccc;
}

.wechat-mask-divider::before,
.wechat-mask-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background: #e5e5e5;
}

.wechat-mask-divider::before {
  left: 0;
}

.wechat-mask-divider::after {
  right: 0;
}

.wechat-mask-copy {
  position: relative;
  height: 40px;
  background: #f1f6f9;
  border-radius: 20px;
  overflow: hidden;
}

.wechat-mask-copy input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 80px 0 16px;
  font-size: 13px;
  color: #999;
}

.wechat-mask-copy button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 18px;
  border: none;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(90deg, #ff6cab, #ff4081);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.net-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.54);
  backdrop-filter: blur(10px);
}

.net-modal__panel {
  width: min(100%, 320px);
  padding: 32px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  text-align: center;
  color: #182135;
  animation: netModalPop 0.22s ease;
}

.net-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff9a56, #ff6b6b);
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.28);
}

.net-modal__icon svg {
  width: 28px;
  height: 28px;
}

.net-modal__title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
}

.net-modal__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #667085;
}

.net-modal__button {
  width: 100%;
  margin-top: 22px;
  padding: 14px 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(102, 126, 234, 0.28);
}

.net-modal__button:active {
  transform: scale(0.96);
}

.net-modal__footnote {
  margin-top: 14px;
  font-size: 12px;
  color: #98a2b3;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translate(-50%, 24px);
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(11, 17, 28, 0.88);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 40;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes netModalPop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 640px) {
  .page {
    padding: 24px;
  }

  .page__inner {
    max-width: 460px;
  }

  .hero__title {
    font-size: 56px;
  }
}
