:root {
  --bg: #f5f6f7;
  --fg: #14161a;
  --muted: #6c727c;
  --faint: #9aa0a8;
  --line: #e6e8ea;
  --line-strong: #d6d9dd;
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.10);
  --card: #ffffff;
  --panel: #f8f9fa;
  --shadow: 0 1px 2px rgba(16, 18, 26, 0.04), 0 10px 30px -18px rgba(16, 18, 26, 0.22);
  --shadow-lift: 0 1px 2px rgba(16, 18, 26, 0.05), 0 18px 40px -20px rgba(16, 18, 26, 0.28);
  --maxw: 620px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --fg: #e9eaec;
    --muted: #969ca4;
    --faint: #71767e;
    --line: #22252a;
    --line-strong: #32363d;
    --accent: #7aa2ff;
    --accent-soft: rgba(122, 162, 255, 0.14);
    --card: #14161a;
    --panel: #101216;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); }
main a:not(.btn):not(.back) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

svg { flex: none; }

/* one staggered reveal on load — nothing else moves on its own */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.langbar, header, section, footer {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.langbar { animation-delay: 0.02s; }
header    { animation-delay: 0.06s; }
section:nth-of-type(1) { animation-delay: 0.12s; }
section:nth-of-type(2) { animation-delay: 0.18s; }
section:nth-of-type(3) { animation-delay: 0.24s; }
footer    { animation-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* language toggle */
.langbar {
  display: flex;
  justify-content: flex-end;
  padding-top: 26px;
}
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] {
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow);
}

/* language visibility */
[data-lang="ko"] [lang="en"],
[data-lang="en"] [lang="ko"] { display: none; }

/* header */
header { padding: 44px 0 8px; }
header h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 0 0 8px;
}
header .tagline {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* sections */
main { padding: 16px 0 64px; }
section { margin-top: 44px; }
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

/* app card — one card per app; legal links live inside each card */
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.card + .card { margin-top: 12px; }
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card .meta {
  font-size: 13px;
  color: var(--faint);
  margin: 3px 0 14px;
  line-height: 1.3;
}
.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}
.card .links {
  display: flex;
  gap: 18px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.card .links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s;
}
.card .links a:hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 15px;
  border-radius: 11px;
  transition: filter 0.16s, transform 0.16s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover { filter: none; background: var(--panel); }
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.btn:active { transform: none; filter: brightness(0.95); }

/* contact row */
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.row svg { color: var(--faint); }

/* legal pages */
.legal { max-width: 100%; }
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 32px 0 6px;
}
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 4px; }
.legal .updated {
  color: var(--faint);
  font-size: 14px;
  margin: 0;
}
.legal .info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.9;
  box-shadow: var(--shadow);
}
.legal .info div { color: var(--muted); }
.legal .info b { color: var(--fg); font-weight: 600; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 40px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s;
}
.back:hover { color: var(--fg); }
.back svg { transition: transform 0.16s; }
.back:hover svg { transform: translateX(-2px); }

/* footer — app-agnostic (this is a shared site) */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 44px;
  font-size: 13.5px;
  color: var(--faint);
}
