@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --surface: #ffffff;
  --ink: #141311;
  --ink-2: #3b3833;
  --muted: #76716a;
  --line: #e3dfd5;
  --accent: #d2491c;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 19, 17, .04), 0 8px 24px rgba(20, 19, 17, .06);
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --bg-2: #181715; --surface: #1c1b19; --ink: #f1eee7; --ink-2: #d6d1c7; --muted: #9b958a;
    --line: #2c2a26; --accent: #ef6a3a; --accent-ink: #140b06; --accent-soft: #3a1f14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--sans); cursor: pointer; }
.lang:hover { color: var(--ink); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ── hero ── */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 24px 0 20px; max-width: 14ch; }
.hero h1 .serif { color: var(--accent); font-size: 1.08em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 20px 22px; }
.fact b { display: block; font-size: 15px; margin-bottom: 2px; }
.fact span { color: var(--muted); font-size: 14px; }

/* hero visual: agent board */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.board-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.board-head .live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.board-head .live i { width: 7px; height: 7px; border-radius: 50%; background: #2fa65a; box-shadow: 0 0 0 3px rgba(47, 166, 90, .18); }
.agent { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; }
.agent + .agent { border-top: 1px dashed var(--line); border-radius: 0; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.agent .who { font-weight: 600; font-size: 14.5px; }
.agent .what { font-size: 13px; color: var(--muted); }
.tag { font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: rgba(47, 166, 90, .12); color: #23804a; }
.tag.run { background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: dark) { .tag.ok { color: #6fd39a; } }

/* ── sections ── */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0; max-width: 20ch; }
.section-head p { color: var(--ink-2); max-width: 46ch; margin: 0; }

/* products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, box-shadow .2s; }
.product:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); }
.product-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.price small { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-right: 4px; }
.product h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0; line-height: 1.3; }
.product p { margin: 0; color: var(--ink-2); font-size: 15px; }
.includes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.includes li { display: flex; gap: 8px; }
.includes li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='%23d2491c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-style: italic; font-size: 36px; line-height: 1; color: var(--accent); display: block; margin-bottom: 18px; }
.step h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* services */
.services { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.service-list { display: grid; gap: 12px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.service h3 { margin: 0 0 4px; font-size: 17px; }
.service p { margin: 0; color: var(--muted); font-size: 14.5px; }
.cta-card { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.cta-card h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.cta-card p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin: 12px 0 0; }
.cta-card .btn-primary { background: var(--accent); color: var(--accent-ink); align-self: flex-start; }
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.process li { display: flex; gap: 12px; align-items: baseline; color: color-mix(in srgb, var(--bg) 85%, transparent); }
.process li b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; color: var(--accent); min-width: 18px; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-item { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trust-item h3 { margin: 12px 0 6px; font-size: 17px; }
.trust-item p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.trust-item a { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; margin-top: 12px; }

/* faq */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--ink-2); max-width: 70ch; }

/* footer */
footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot .about { color: var(--muted); font-size: 14px; max-width: 38ch; margin-top: 12px; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* policy pages */
.doc { max-width: 760px; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; max-width: none; }
.doc p, .doc li { color: var(--ink-2); }
.doc .summary-ko { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; font-size: 15px; }
.back { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.back:hover { color: var(--ink); }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero-grid, .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  .products, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .product { padding: 22px; }
  .service { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 28px; }
}

/* ── fixes: Korean line breaking, overflow, compact nav ── */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] .serif { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 1em; }
html[lang="ko"] .hero h1 { max-width: 12em; letter-spacing: -0.04em; line-height: 1.12; }
.hero-grid > *, .services > *, .products > *, .steps > *, .trust > *, .foot > * { min-width: 0; }
body { overflow-x: hidden; }
.brand, .btn, .lang, .price, .tag { white-space: nowrap; }
@media (max-width: 720px) {
  .nav .wrap { height: 56px; }
  .nav .btn-sm { display: none; }
  .brand { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .agent { grid-template-columns: 32px 1fr; }
  .agent .tag { grid-column: 2; justify-self: start; }
  .avatar { width: 32px; height: 32px; }
  .product-top { flex-wrap: wrap; }
  .legal { flex-direction: column; }
  .foot { grid-template-columns: 1fr; }
}
