:root {
  --bg: #080b14;
  --surface: #111624;
  --surface-2: #161c2e;
  --text: #f6f7ff;
  --muted: #8f98ad;
  --lavender: #aa9cff;
  --cyan: #76e4f7;
  --coral: #ff5a3d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --max: 980px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--lavender), var(--cyan));
  display: grid;
  place-items: center;
  color: #0a0d16;
  font-size: 12px;
  font-weight: 800;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--lavender), var(--cyan));
  color: #0a0d16;
  font-weight: 700;
}

/* ---------- hero ---------- */

.hero {
  padding-block: 84px 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 12% -10%, rgba(170, 156, 255, 0.16), transparent 70%),
    radial-gradient(620px 300px at 92% 0%, rgba(118, 228, 247, 0.12), transparent 70%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--lavender);
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.lede {
  margin: 0;
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--muted);
}

/* ---------- sections ---------- */

section { padding-block: 56px; }
section + section { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 3.4vw, 26px);
  letter-spacing: -0.02em;
  font-weight: 750;
}

h3 {
  margin: 28px 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-note {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.app-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-card:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.app-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  flex: none;
}
.app-card h3 { margin: 0 0 4px; font-size: 19px; }
.app-card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }

.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 10px;
}
.pill.live { color: #0a0d16; background: var(--cyan); border-color: transparent; font-weight: 700; }
.pill.soon { color: var(--lavender); border-color: rgba(170, 156, 255, 0.4); }

/* ---------- lists ---------- */

ul.clean { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
ul.clean li { margin-bottom: 7px; }
ul.clean strong { color: var(--text); font-weight: 650; }

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; margin-top: 14px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--text); font-weight: 650; background: var(--surface-2); }
td { color: var(--muted); }
td strong { color: var(--text); font-weight: 600; }

/* ---------- misc ---------- */

.callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lavender);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 20px;
}
.callout strong { color: var(--text); }

.meta { color: var(--muted); font-size: 14px; margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 44px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer .spacer { margin-left: auto; }

.toc { margin: 0 0 30px; padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 14.5px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }

@media (max-width: 560px) {
  .hero { padding-block: 56px 44px; }
  .app-card { flex-direction: column; }
  .toc { columns: 1; }
  .nav { gap: 12px; width: 100%; margin-left: 0; padding-bottom: 10px; }
}

/* ---------- language switching ---------- */

html[data-lang="ko"] .en,
html[data-lang="en"] .ko { display: none !important; }

/* ---------- store buttons ----------
   출시된 스토어는 <a class="store-btn" href="스토어 주소">, 아직이면 <span class="store-btn soon">.
   출시되면 span 을 a 로 바꾸고 href 만 넣는다. */

.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  line-height: 1.2;
}
.store-btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store-btn small { display: block; font-size: 11px; color: var(--muted); }
.store-btn strong { display: block; font-size: 15px; font-weight: 650; }
a.store-btn:hover { border-color: var(--cyan); background: rgba(118, 228, 247, 0.08); }
.store-btn.soon { opacity: 0.55; cursor: default; }
