:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #17161a;
  --text-2: #55535c;
  --text-3: #85838c;
  --line: #e6e3dc;
  --accent: #4b3fe0;
  --accent-2: #00a88f;
  --accent-soft: #ecebfd;
  --chip: #fff4d6;
  --chip-text: #7a5600;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 22, 26, .04), 0 8px 24px rgba(23, 22, 26, .06);
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f12;
    --surface: #17171c;
    --surface-2: #1e1e25;
    --text: #f2f1f5;
    --text-2: #b4b2bd;
    --text-3: #8a8894;
    --line: #2a2a33;
    --accent: #8f87ff;
    --accent-2: #3fd6bd;
    --accent-soft: #24223f;
    --chip: #3a2e0c;
    --chip-text: #ffd46b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

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

/* Bilingual content: English is the no-JS default. */
html[lang="ko"] [data-lang="en"],
html:not([lang="ko"]) [data-lang="ko"] { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang-toggle {
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.lang-toggle:hover { color: var(--text); border-color: var(--text-3); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 18px; }
h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; }
h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--text-2); max-width: 640px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-3); }

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.2; margin: 0 0 12px; font-weight: 750; }
.section-sub { color: var(--text-2); margin: 0 0 36px; max-width: 640px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Product card */
.product {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow); color: var(--text);
}
.product:hover { text-decoration: none; border-color: var(--text-3); }
.product .app-icon { width: 88px; height: 88px; }
.product h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.product p { margin: 0; color: var(--text-2); }
.product .go { font-weight: 600; color: var(--accent); white-space: nowrap; }

.chip {
  display: inline-block; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-text);
  vertical-align: middle;
}
.chip-soft { background: var(--accent-soft); color: var(--accent); }

/* Grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px;
}

/* Product hero */
.app-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-title .app-icon { width: 72px; height: 72px; }
.app-title strong { font-size: 22px; letter-spacing: -.02em; display: block; line-height: 1.2; }
.app-title span { color: var(--text-3); font-size: 15px; }
.meta { color: var(--text-3); font-size: 14px; margin-top: 18px; }

/* Phone mock */
.phone {
  justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 19;
  border-radius: 44px; padding: 10px; background: #0b0b0e;
  box-shadow: 0 30px 60px rgba(23, 22, 26, .22), inset 0 0 0 2px #2b2b33;
}
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden;
  background: radial-gradient(120% 70% at 30% 20%, #3b3470 0%, #121218 60%), #121218;
  display: flex; flex-direction: column; justify-content: center;
}
.phone .video {
  margin: 0 12px; aspect-ratio: 16 / 9; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2f6f6a, #1e2a4a 55%, #48306b);
}
.phone .video::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 60% at 70% 40%, rgba(255, 220, 160, .35), transparent 70%);
}
.phone .subs { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; z-index: 1; padding: 0 8px; }
.phone .subs div { display: inline-block; font-size: 10.5px; line-height: 1.35; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 6px; border-radius: 4px; margin-top: 2px; }
.phone .subs .tr { color: #ffe08a; }
.phone .ui { padding: 18px 16px 0; color: #e9e8f0; font-size: 11px; }
.phone .bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin: 10px 0 6px; position: relative; }
.phone .bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: #8f87ff; border-radius: 3px; }
.phone .row { display: flex; justify-content: space-between; color: #a9a7b5; }
.phone .langs { display: flex; gap: 6px; margin-top: 14px; }
.phone .langs span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 3px 8px; border-radius: 999px; }
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 999px; background: #000; }

/* Callout */
.callout {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.callout p { margin: 6px 0 0; color: var(--text-2); }
.callout h3 { margin: 0; font-size: 20px; }

/* Long-form docs */
.doc { max-width: 760px; padding: 64px 20px 32px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc .updated { color: var(--text-3); margin: 0 0 36px; font-size: 15px; }
.doc h2 { font-size: 21px; letter-spacing: -.015em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
.summary-box {
  background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px;
}
.summary-box p { margin: 0; color: var(--text); }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; margin-top: 48px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { margin: 2px 0; }
.site-footer a { color: var(--text-2); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .app-hero { grid-template-columns: 1fr; }
  .phone { width: 250px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav .hide-sm { display: none; }
  .nav { gap: 14px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
  .grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: auto 1fr; padding: 22px; gap: 18px; }
  .product .app-icon { width: 64px; height: 64px; }
  .product .go { grid-column: 1 / -1; }
  .callout { flex-direction: column; }
  .doc { padding: 44px 16px 24px; }
}
