*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #e8edf5;
  background: #0b1220;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  overflow: hidden;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(99, 102, 241, 0.2), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(14, 165, 233, 0.15), transparent 45%),
    linear-gradient(165deg, #0b1220 0%, #111827 45%, #0f172a 100%);
  z-index: 0;
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.icon-wrap svg {
  width: 36px;
  height: 36px;
}

.card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.card .subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  color: #94a3b8;
}

.alert-error {
  display: block;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: left;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 12px;
}

.btn-download {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 0.95rem 1.5rem !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  color: #fff !important;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
  filter: brightness(1.05);
}

.btn-download:active {
  transform: translateY(0);
}

.hint {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #e2e8f0;
}

@media (max-width: 480px) {
  .card {
    padding: 2rem 1.25rem 1.75rem;
    border-radius: 16px;
  }

  .card h1 {
    font-size: 1.3125rem;
  }
}
