:root {
  --bg: #0d0d12;
  --bg-elevated: #16161f;
  --surface: #1a1a24;
  --border: rgba(248, 250, 252, 0.08);
  --primary: #ff2ec8;
  --primary-soft: rgba(255, 46, 200, 0.14);
  --violet: #9b3dff;
  --indigo: #3a56f3;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #5ccfff;
  --radius: 16px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 46, 200, 0.2), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(92, 207, 255, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(155, 61, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff2ec8, #9b3dff, #5ccfff);
  box-shadow:
    0 8px 24px rgba(255, 46, 200, 0.35),
    0 4px 16px rgba(92, 207, 255, 0.2);
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(255, 46, 200, 0.3);
}

.brand span {
  font-size: 1.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--text);
}

.hero {
  margin-bottom: 32px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  color: var(--text-secondary);
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 6px;
}

.contact {
  display: grid;
  gap: 12px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.contact-row .label {
  min-width: 72px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-row .value {
  color: var(--text);
  font-weight: 600;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fd1843, #e01150);
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(253, 24, 67, 0.28);
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.links {
  display: grid;
  gap: 10px;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--text);
  border: 1px solid rgba(253, 24, 67, 0.18);
  text-decoration: none;
}

.links a:hover {
  background: rgba(253, 24, 67, 0.22);
}

.links a span {
  color: var(--text-muted);
}

.note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.back {
  margin: 0 0 20px;
}

.back a {
  color: var(--text-secondary);
}

h1 {
  margin: 0 0 20px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* App download / marketing */
.download-page {
  width: min(960px, calc(100% - 40px));
}

.download-page .site-header {
  margin-bottom: 32px;
}

.download-hero {
  margin-bottom: 56px;
  animation: download-fade-up 0.7s ease-out both;
}

.download-banner {
  display: block;
  line-height: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(155, 61, 255, 0.28),
    0 8px 24px rgba(255, 46, 200, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-banner:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.download-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.download-copy {
  margin-top: 36px;
  text-align: center;
}

.download-title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.25;
  background: linear-gradient(105deg, #ff2ec8 0%, #9b3dff 48%, #5ccfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.br-mobile {
  display: none;
}

.download-lead {
  margin: 0 auto 28px;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
}

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 64px;
  margin: 0 auto 18px;
  padding: 12px 20px;
  border-radius: 18px;
  background: linear-gradient(100deg, #ff2ec8 0%, #9b3dff 55%, #5c7cff 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 46, 200, 0.35);
  animation: download-pulse 2.4s ease-in-out 1s infinite;
}

.download-cta[hidden] {
  display: none;
}

.download-cta:hover,
.download-cta:active {
  text-decoration: none;
  filter: brightness(1.06);
}

.download-cta-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.download-cta-store {
  font-size: 0.82rem;
  opacity: 0.88;
}

.download-meta {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.store-badges {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  animation: download-fade-up 0.85s ease-out 0.12s both;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.store-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(255, 46, 200, 0.22);
}

.store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

.store-badge.is-recommended {
  box-shadow:
    0 0 0 2px rgba(255, 46, 200, 0.7),
    0 14px 32px rgba(255, 46, 200, 0.28);
}

.download-features {
  margin-bottom: 16px;
  animation: download-fade-up 0.9s ease-out 0.22s both;
}

.download-features h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feature-card strong {
  color: var(--text);
  font-size: 1rem;
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.download-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 13, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.download-bar.is-visible {
  transform: translateY(0);
}

.download-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.download-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.download-bar-brand .brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.download-bar-brand strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.download-bar-brand span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.download-bar-button {
  flex: none;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff2ec8, #9b3dff);
  color: #fff;
  font-weight: 800;
}

.download-bar-button:hover {
  text-decoration: none;
}

@keyframes download-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-cta,
  .download-hero,
  .store-badges,
  .download-features {
    animation: none;
  }
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

@keyframes download-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 28px);
    padding-top: 32px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-page {
    width: calc(100% - 24px);
    padding-top: 20px;
    padding-bottom: 110px;
  }

  .download-page .site-header {
    margin-bottom: 20px;
  }

  .download-banner {
    border-radius: 18px;
  }

  .download-copy {
    margin-top: 28px;
  }

  .br-mobile {
    display: inline;
  }

  .download-lead {
    font-size: 1rem;
  }

  .store-badge img {
    height: 48px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
