/* ==========================================================
   UNVEILED — shared design system
   Edit tokens here; every page inherits them.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --white: #FFFFFF;
  --ink: #242424;
  --gray: #6E6E6E;          /* #777 nudged for AA contrast on off-white */
  --gray-2: #A3A3A3;
  --brown: #65594E;
  --brown-soft: #8A7D71;
  --off: #F8F7F5;
  --beige: #EFE9E1;
  --mint: #D6E6DE;
  --mint-ink: #3F6B5B;
  --line: #E7E4DF;
  --line-2: #D9D5CF;

  --font: 'Inter', 'Pretendard', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 14px;
  --ease: cubic-bezier(.22,.8,.26,1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  opacity: 0; transition: opacity .45s var(--ease);
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: .22s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.section--off { background: var(--off); }
.section--tight { padding: calc(var(--section) * .7) 0; }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brown); display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ''; width: 6px; height: 6px; background: var(--brown); border-radius: 50%; }
.display { font-size: clamp(44px, 7.2vw, 96px); letter-spacing: -0.045em; line-height: .98; font-weight: 600; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); }
.muted { color: var(--gray); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.stack > * + * { margin-top: 18px; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .label { margin-bottom: 24px; }
.section-head .h2 + p { margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--brown { background: var(--brown); color: #fff; }
.btn--brown:hover { background: #4f453c; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--beige); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; text-decoration: none; }
.link-arrow .arr { transition: transform .3s var(--ease); }

.status {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: .04em; white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--active { background: var(--mint); color: var(--mint-ink); }
.status--testing { background: var(--beige); color: var(--brown); }
.status--testing::before { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: .22em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo__mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; overflow: hidden; }
.logo__mark::after { content: ''; position: absolute; inset: 0 0 0 50%; background: var(--brown); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; border-radius: 8px;
}
.nav__link:hover { color: var(--brown); }
.nav__link[aria-current="page"] { color: var(--brown); }
.nav__cta { margin-left: 10px; min-height: 40px; padding: 0 18px; font-size: 14px; }
.chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.dd { position: relative; }
.dd__menu {
  position: absolute; top: calc(100% + 6px); left: 50%; width: 360px; transform: translate(-50%, 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  box-shadow: 0 24px 48px -24px rgba(36,36,36,.18);
}
.dd.is-open .dd__menu, .dd:hover .dd__menu, .dd:focus-within .dd__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd.is-open .chev, .dd:hover .chev { transform: rotate(225deg) translateY(-2px); }
.dd__item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-radius: 10px; text-decoration: none; }
.dd__item:hover { background: var(--off); }
.dd__item strong { font-size: 15px; font-weight: 600; }
.dd__item span { font-size: 13px; color: var(--gray); grid-column: 1; }
.dd__item i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font: 500 11px var(--mono); color: var(--gray-2); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.nav.is-menu .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.is-menu .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mmenu {
  position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; z-index: 99; padding: 24px var(--pad) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; overflow-y: auto;
}
.nav.is-menu + .mmenu { opacity: 1; visibility: visible; transform: none; }
.mmenu a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.mmenu .sub { padding-left: 16px; font-size: 17px; color: var(--gray); }
.mmenu .mono { font-size: 11px; color: var(--gray-2); letter-spacing: .1em; text-transform: uppercase; padding: 28px 0 8px; display: block; }
.mmenu .btn { margin-top: 32px; width: 100%; justify-content: center; font-size: 16px; border: 0; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: block; }
}
@media (min-width: 861px) { .mmenu { display: none; } }

main { padding-top: var(--nav-h); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 14px; color: var(--gray); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gray-2); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; color: var(--ink); }
.footer a:hover { color: var(--brown); }
.footer__brand .logo { margin-bottom: 14px; }
.footer__brand p { color: var(--ink); }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Shared components ---------- */

/* Sub-page hero */
.phero { padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 112px); }
.phero .label { margin-bottom: 32px; }
.phero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.045em; line-height: 1; max-width: 15ch; }
.phero .lead { margin-top: 28px; max-width: 620px; color: var(--gray); }
.phero__meta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.crumb { font: 500 12px var(--mono); color: var(--gray); text-decoration: none; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; }
.crumb:hover { color: var(--ink); }

/* Split two-col */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: 1fr; } }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feat { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.feat:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.feat__n { font: 500 12px var(--mono); color: var(--gray-2); display: flex; justify-content: space-between; align-items: center; }
.feat h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; margin-top: 18px; }
.feat p { color: var(--gray); font-size: 16px; }
.tag-dev { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brown); background: var(--beige); padding: 4px 8px; border-radius: 4px; }
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat, .feat:not(:nth-child(3n+1)) { padding: 28px 20px 32px 0; border-left: 0; }
  .feat:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* Flow (horizontal steps) */
.flow { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); position: relative; }
.flow__step { position: relative; padding-top: 44px; padding-right: 20px; }
.flow__step::before { content: ''; position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.flow__step:last-child::before { right: auto; width: 20px; }
.flow__dot { position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); transition: background .4s, border-color .4s; z-index: 1; }
.flow__dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--brown); transform: scale(0); transition: transform .5s var(--ease); }
.flow.in .flow__dot::after { transform: scale(1); }
.flow.in .flow__step:nth-child(2) .flow__dot::after { transition-delay: .15s; }
.flow.in .flow__step:nth-child(3) .flow__dot::after { transition-delay: .3s; }
.flow.in .flow__step:nth-child(4) .flow__dot::after { transition-delay: .45s; }
.flow.in .flow__step:nth-child(5) .flow__dot::after { transition-delay: .6s; }
.flow__n { font: 500 12px var(--mono); color: var(--gray-2); margin-bottom: 10px; display: block; }
.flow__step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.flow__step p { color: var(--gray); font-size: 15px; max-width: 28ch; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__step { padding: 0 0 36px 44px; }
  .flow__step::before { top: 0; bottom: 0; left: 9px; right: auto; width: 1px; height: auto; }
  .flow__step:last-child::before { display: none; }
}

/* Chain (compact pill flow used in diagrams) */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chain__item { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 500; background: #fff; }
.chain__item--hl { background: var(--ink); color: #fff; border-color: var(--ink); }
.chain__sep { width: 24px; height: 1px; background: var(--line-2); position: relative; }
.chain__sep::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--gray-2); border-right: 1px solid var(--gray-2); transform: rotate(45deg); }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.rm { padding: 32px 32px 0 0; }
.rm + .rm { padding-left: 32px; border-left: 1px solid var(--line); }
.rm__k { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; color: var(--gray); }
.rm__k b { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gray-2); }
.rm--now .rm__k { color: var(--brown); }
.rm--now .rm__k b { background: var(--brown); border-color: var(--brown); box-shadow: 0 0 0 4px var(--beige); }
.rm p { font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.rm:not(.rm--now) p { color: var(--gray); }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } .rm, .rm + .rm { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 150px) 0; }
.cta-band .label { color: #CFC6BD; } .cta-band .label::before { background: #CFC6BD; }
.cta-band h2 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.045em; margin: 28px 0 24px; }
.cta-band p { color: #B9B4AE; max-width: 520px; font-size: 18px; }
.cta-band__row { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-band .mail { font: 500 14px var(--mono); color: #CFC6BD; text-decoration: none; padding: 0 8px; min-height: 44px; display: inline-flex; align-items: center; }
.cta-band .mail:hover { color: #fff; }

/* Concept frame (for non-production UI diagrams) */
.concept { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.concept__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); color: var(--gray); letter-spacing: .06em; text-transform: uppercase; }
.concept__note { font: 500 10.5px var(--mono); color: var(--brown); background: var(--beige); padding: 4px 8px; border-radius: 4px; letter-spacing: .04em; }

/* ---------- Language switch ---------- */
.nav__in { gap: 12px; }
.nav__links { margin-left: auto; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; flex: none; }
.lang button { min-width: 40px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--gray); font: 500 12px var(--mono); letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s; }
.lang button:hover { color: var(--ink); }
.lang button.on { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .lang { margin-left: auto; } }

/* Korean typography */
html[lang="ko"] body { word-break: keep-all; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] .display { letter-spacing: -0.03em; line-height: 1.18; }
html[lang="ko"] .display { line-height: 1.12; }
