:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-elev: #ffffff;
  --ink: #0f1115;
  --ink-2: #444a57;
  --ink-3: #687080;
  --line: #e5e7ec;
  --brand: #3b4ef5;
  --brand-hover: #2f40d9;
  --brand-ink: #ffffff;
  --brand-soft: #eef0ff;
  --live: #d9411f;
  --ok: #0f8f60;
  --shadow: 0 1px 2px rgba(16, 18, 24, .04), 0 12px 32px rgba(16, 18, 24, .07);
  --radius: 16px;
  --max: 1120px;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f14;
    --bg-soft: #13161e;
    --bg-elev: #171a23;
    --ink: #eef0f5;
    --ink-2: #b6bbc6;
    --ink-3: #8a91a0;
    --line: #262a35;
    --brand: #7b88ff;
    --brand-hover: #9aa4ff;
    --brand-ink: #0d0f14;
    --brand-soft: #1b1f3b;
    --live: #ff7a5c;
    --ok: #3ccf98;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 언어 전환: data-l 이 붙은 요소만 언어별로 보인다 */
:root[data-lang="ko"] [data-l="en"] { display: none !important; }
:root:not([data-lang="ko"]) [data-l="ko"] { display: none !important; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--ink); font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.lang button {
  border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 600;
  min-width: 40px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink); cursor: pointer; place-items: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mnav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px 16px 16px;
}
.mnav[hidden] { display: none; }
.mnav a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; text-decoration: none; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mnav a.is-active { color: var(--brand); }
.mnav .btn { margin-top: 14px; width: 100%; border-bottom: 0; justify-content: center; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 650; font-size: 15px; font-family: inherit;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg-elev); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.17; letter-spacing: -.035em; font-weight: 780; margin: 0 0 22px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-elev); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.pf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.pf-dot.is-on { background: var(--ok); }
.pf-state { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }

/* Job card (illustration) */
.job {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 20px; display: grid; grid-template-columns: 1fr 150px; gap: 20px;
}
.job-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.job-title { font-weight: 700; font-size: 15px; }
.job-sub { font-size: 13px; color: var(--ink-3); }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--live); background: color-mix(in srgb, var(--live) 11%, transparent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.stage { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.stage.is-live { background: var(--bg-soft); }
.stage-name { font-weight: 600; }
.stage-meta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.ic-done { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.ic-live { border: 2px solid var(--live); }
.ic-live::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.ic-wait { border: 2px solid var(--line); }
.ic svg { width: 12px; height: 12px; }
.stage.is-wait .stage-name { color: var(--ink-3); font-weight: 500; }

.phone {
  aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; position: relative; align-self: center;
  background: #0e1020; border: 5px solid #1d2030; box-shadow: 0 10px 24px rgba(16, 18, 40, .25);
  container-type: inline-size;
}
.phone-art { position: absolute; inset: 0; opacity: .9; background:
    radial-gradient(120% 70% at 20% 30%, #5b6cff 0%, transparent 55%),
    radial-gradient(90% 60% at 85% 70%, #ff7a5c 0%, transparent 60%),
    linear-gradient(180deg, #1a1d3a, #0e1020); }
.phone-art::after { content: ""; position: absolute; left: 22%; right: 22%; top: 38%; height: 26%; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.phone-title { position: absolute; top: 10%; left: 8%; right: 8%; color: #fff; font-weight: 800; font-size: 13px; font-size: 9.6cqw; line-height: 1.25; text-align: center; letter-spacing: -.02em; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.phone-title .hl { color: #ffd84d; }
.phone-cap { position: absolute; bottom: 15%; left: 8%; right: 8%; color: #fff; font-weight: 700; font-size: 11px; font-size: 7.6cqw; line-height: 1.3; text-align: center; background: rgba(0, 0, 0, .55); padding: 5px 6px; border-radius: 6px; }
.phone-bar { position: absolute; bottom: 6%; left: 8%; right: 8%; display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; }
.phone-bar i { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.phone-bar i.on { background: #fff; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Sections */
section { scroll-margin-top: calc(var(--header-h) + 8px); }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.tight-top { padding-top: 0; }
.kicker { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .02em; margin: 0 0 12px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.25; letter-spacing: -.03em; font-weight: 760; margin: 0 0 16px; }
.section-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 40em; margin: 0; }
.head { margin-bottom: 48px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.step-no { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.step h3 { margin: 10px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

.claude { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.claude .section-lead { margin-bottom: 28px; }
.next { border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: var(--brand-soft); border-radius: var(--radius); padding: 18px 20px; font-size: 15px; }
.next strong { color: var(--brand); display: block; font-size: 13px; letter-spacing: .02em; margin-bottom: 4px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.role-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.role-ic svg { width: 20px; height: 20px; }
.role h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.role p { margin: 0; color: var(--ink-2); font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.principle p { margin: 0; color: var(--ink-2); font-size: 15px; }

.company { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.facts { margin: 0; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.facts a { color: var(--brand); text-decoration: none; }
.facts a:hover { text-decoration: underline; }

/* Contact */
.contact { background: var(--brand); color: var(--brand-ink); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; }
.contact h2 { margin: 0 0 8px; color: inherit; }
.contact p { margin: 0; opacity: .88; max-width: 34em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-invert { background: var(--brand-ink); color: var(--brand); }
.btn-invert:hover { opacity: .92; }
.btn-outline-invert { border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent); color: var(--brand-ink); background: transparent; }
.btn-outline-invert:hover { border-color: var(--brand-ink); }
.copy .when-copied { display: none; }
.copy.is-copied .when-idle { display: none; }
.copy.is-copied .when-copied { display: inline; }

/* Footer */
.footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 13.5px; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 10px; }
.footer .row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer strong { color: var(--ink-2); font-weight: 650; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legal { font-weight: 650; }

/* Document pages (privacy, 404) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 12px; }
.doc .meta { color: var(--ink-3); margin: 0 0 40px; font-size: 15px; }
.doc h2 { font-size: 1.25rem; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.doc th { background: var(--bg-soft); font-weight: 650; color: var(--ink); width: 30%; }
.doc a:not(.btn) { color: var(--brand); }
.notfound { min-height: calc(100vh - var(--header-h) - 160px); display: grid; align-content: center; }
.notfound .code { font-size: 14px; font-weight: 700; color: var(--brand); margin: 0 0 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .claude, .company { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav, .header .btn-sm { display: none; }
  .menu-btn { display: grid; width: 42px; height: 42px; }
  .lang button { min-height: 36px; min-width: 44px; }
}
@media (min-width: 761px) {
  .mnav { display: none !important; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header .wrap { gap: 12px; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .section.tight-top { padding-top: 0; }
  .head { margin-bottom: 32px; }
  .steps, .roles { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr 118px; gap: 14px; padding: 16px; }
  .stage { grid-template-columns: 20px 1fr; padding: 8px 6px; }
  .stage-meta { display: none; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .contact { padding: 32px 22px; border-radius: 20px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .doc { padding: 40px 0 72px; }
  .doc th, .doc td { display: block; width: 100%; }
  .doc th { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip::before, .ic-live::after { animation: none; }
  .btn { transition: none; }
}
