:root {
  --n01: #3369FF; --n02: #2B58D6; --n03: #2348AD; --n04: #1B3785; --n05: #12265C; --n06: #0A1533;
  --ink: #111A2E; --text: #263045; --muted: #5A6377;
  --line: #D8DEEA; --soft: #F4F6FB; --panel: #E8EEFC; --white: #FFFFFF;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 17px/1.8 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--n02); text-underline-offset: 3px; }
a:hover { color: var(--n04); }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; margin-right: auto; }
.brand img { height: 22px; width: auto; }
.gnb { display: flex; gap: 26px; font-size: 15px; }
.gnb a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.gnb a:hover, .gnb a[aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; padding: 12px 16px; border-radius: 6px; background: var(--n02); color: var(--white); border: 1px solid var(--n02); }
.btn:hover { background: var(--n04); border-color: var(--n04); color: var(--white); }
@media (max-width: 720px) {
  .gnb { order: 3; width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 2px; }
}

/* article head */
.post-head { background: var(--soft) radial-gradient(circle, #CDD5E6 1px, transparent 1.2px) 0 0 / 22px 22px; border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumb li + li::before { content: "›"; margin-right: 8px; color: #9AA3B5; }
.post-head h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.3; margin: 0 0 14px; }
.byline { font-size: 14px; color: var(--muted); margin: 0; }

/* article body */
.post-body { padding-top: 36px; padding-bottom: 24px; }
.post-body > p:first-child { font-size: 18.5px; color: var(--ink); }
.post-body p { margin: 0 0 16px; }
.post-body h2 { font-size: clamp(22px, 2.8vw, 27px); line-height: 1.4; margin: 48px 0 12px; }
.post-body h3 { font-size: 19px; line-height: 1.45; margin: 30px 0 8px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 1.3em; }
.post-body li { margin-bottom: 6px; }
.post-body li::marker { color: var(--n02); }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px 6px; margin: 8px 0 24px; }
.toc p { font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.note { background: var(--soft); border-left: 4px solid var(--n02); border-radius: 0 6px 6px 0; padding: 14px 18px; margin: 22px 0; font-size: 15.5px; }
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 8px 0 22px; border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--soft); color: var(--ink); white-space: nowrap; }
tbody th { color: var(--ink); font-weight: 600; }
figure { margin: 28px 0; }
figure img { border: 1px solid var(--line); border-radius: 8px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; }
.related p { font-weight: 600; color: var(--ink); margin-bottom: 8px; }

/* call to action */
.cta { background: var(--n06); color: #C9D3EA; margin-top: 56px; }
.cta .wrap { padding-top: 48px; padding-bottom: 52px; }
.cta h2 { color: var(--white); font-size: clamp(22px, 3vw, 30px); line-height: 1.35; margin: 0 0 10px; }
.cta p { margin: 0 0 22px; }
.cta .btn { background: var(--n01); border-color: var(--n01); }
.cta .btn:hover { background: var(--white); border-color: var(--white); color: var(--n06); }

/* section index */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list a { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; text-decoration: none; color: var(--text); }
.list a:hover { border-color: var(--n02); }
.list strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* landing pages: home, section pages, company */
.label { display: inline-block; margin: 0; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--ink); padding: 7px 10px; border-radius: 3px; }
.mono { font-family: var(--mono); }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0; }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.hero, .page-hero { background: var(--soft) radial-gradient(circle, #CDD5E6 1px, transparent 1.2px) 0 0 / 22px 22px; border-bottom: 1px solid var(--line); }
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-text { text-align: center; max-width: 880px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 58px); line-height: 1.25; margin: 22px 0; }
.hero h1 em { font-style: normal; color: var(--n02); }
.hero .lead { margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.hero-art { margin-top: 48px; padding-bottom: 8px; }
.hero-art svg { display: block; width: 100%; height: auto; }
.art-tall { display: none !important; }
.page-hero { padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.25; margin: 18px 0 14px; }
.sec { padding: 96px 0; }
.sec.soft { background: var(--soft); }
.page-hero + .sec { padding-top: 56px; }
.sec + .post-body > h2:first-child { margin-top: 0; }
.head { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.head h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; margin: 18px 0 12px; }
.head p:not(.label) { color: var(--muted); margin: 0; }
.sub { font-size: clamp(22px, 2.8vw, 27px); line-height: 1.4; margin: 56px 0 18px; }
.wrap > .sub:first-child { margin-top: 0; }
.more-line { text-align: center; margin: 28px 0 0; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px; margin-bottom: 16px; }
.tabs[hidden] { display: none; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; background: none; border: 0; border-radius: 4px; padding: 14px 8px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--n02); }
.panel { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.panel[hidden] { display: none; }
.panel .art { display: grid; place-items: center; padding: 32px; min-height: 380px; background-color: var(--panel); background-image: linear-gradient(#D4DDF5 1px, transparent 1px), linear-gradient(90deg, #D4DDF5 1px, transparent 1px); background-size: 40px 40px; }
.panel .art svg { width: 100%; max-width: 440px; height: auto; }
.panel .copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 44px 40px; background: #FAFBFD; }
.panel h2, .panel h3 { font-size: 27px; line-height: 1.35; margin: 0; }
.panel p { color: var(--muted); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.7; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; flex: 0 0 18px; height: 18px; margin-top: 4px; border: 1.5px solid var(--n02); border-radius: 3px; color: var(--n02); font-size: 12px; font-weight: 700; line-height: 15px; text-align: center; }
.more { align-self: flex-start; font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

.cards, .tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.tiles { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.card svg { display: block; width: 100%; height: 96px; margin-bottom: 18px; }
.card h3 { font-size: 19px; line-height: 1.45; margin: 0 0 8px; }
.card p:not(.tag) { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.tiles a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--text); text-decoration: none; }
.tiles a:hover { border-color: var(--n02); }
.tiles strong { color: var(--ink); font-size: 19px; line-height: 1.45; }
.tiles span:last-child { color: var(--muted); font-size: 15px; line-height: 1.7; }
.tag { font: 600 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--n02); margin: 0; }
.card .tag { margin-bottom: 6px; }
.tiles time { font: 500 13px/1.4 var(--mono); color: var(--muted); }

.sec.dark { background: var(--n06); color: #AAB3C8; }
.dark .head h2 { color: var(--white); }
.dark .head p:not(.label) { color: #AAB3C8; }
.dark .label { background: var(--n02); }
.dark a { color: #9DB7FF; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { border-top: 2px solid var(--n01); padding-top: 20px; counter-increment: s; }
.steps li::before { content: "0" counter(s); font: 600 12px/1 var(--mono); letter-spacing: .08em; color: #8FA9F0; }
.steps h3 { color: var(--white); font-size: 19px; line-height: 1.45; margin: 12px 0 8px; }
.steps p { font-size: 15px; line-height: 1.7; margin: 0; }
.scope { font-size: 15px; margin: 36px 0 0; }

@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel .art { min-height: 0; padding: 24px; }
  .panel .copy { padding: 28px 22px; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .sec { padding: 72px 0; }
}
@media (max-width: 600px) {
  .cards, .steps, .tiles { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .lead { font-size: 16px; }
  .art-wide { display: none !important; }
  .art-tall { display: block !important; max-width: 420px; margin: 0 auto; }
  .tabs button { font-size: 14px; padding: 12px 4px; }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-footer img { height: 18px; width: auto; margin-bottom: 12px; }
.site-footer p { margin: 0 0 10px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.foot-nav p { color: var(--ink); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* motion: the base rules keep every drawing complete and still; the media block adds movement */
.pulse { visibility: hidden; }
.ripple { opacity: 0; }
.tabs { position: relative; }
.tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transform: translateX(calc(var(--i, 0) * (100% + 4px))); }
.tabs button { position: relative; }
.steps li { position: relative; }
.more::after { display: inline-block; }
.btn { transition: background-color .2s, border-color .2s, color .2s; }
.card, .tiles a { transition: border-color .25s, box-shadow .3s, transform .3s; }
.card:hover { border-color: #B9C5DE; box-shadow: 0 12px 28px rgba(17, 26, 46, .08); }
.tiles a:hover { box-shadow: 0 12px 28px rgba(17, 26, 46, .08); }

@media (prefers-reduced-motion: no-preference) {
  /* first screen: plays on load, no script needed */
  .hero .label, .hero h1, .hero .lead, .hero .actions, .page-hero .label, .page-hero h1, .page-hero .lead { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero h1, .page-hero h1 { animation-delay: .08s; }
  .hero .lead, .page-hero .lead { animation-delay: .16s; }
  .hero .actions { animation-delay: .24s; }
  .hero-art .fade { animation: fade .8s ease .2s backwards; }
  .hero-art .node { animation: node-in .7s cubic-bezier(.2, .7, .2, 1) var(--d) backwards; }
  .hero-art .node.out { animation-name: node-in-r; }
  .hero-art .core { transform-box: fill-box; transform-origin: center; animation: core-in .8s cubic-bezier(.2, .7, .2, 1) var(--d) backwards; }
  .hero-art .spin { animation: spin 7s linear infinite; }
  .hero-art .hit { transform-box: fill-box; transform-origin: center; animation: fade .4s ease 1.8s backwards, hit 3.6s ease-out var(--d) infinite; }
  .hero-art .draw, .in .draw { stroke-dasharray: 100; animation: draw 1s ease var(--d, 0s) backwards; }
  .hero-art .pulse, .in .pulse { visibility: visible; stroke-dasharray: 12 100; animation: flow-in 3.6s linear var(--d) infinite backwards; }
  .hero-art .pulse.out, .in .pulse.out { animation-name: flow-out; }
  .hero-art .ripple, .in .ripple { transform-box: fill-box; transform-origin: center; animation: ripple 3.6s ease-out var(--r, 2.3s) infinite backwards; }

  /* blocks below the first screen: site.js adds .wait, then .in when they scroll into view */
  .wait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .wait.in { opacity: 1; transform: none; }
  .in .pop { transform-box: fill-box; transform-origin: center; animation: pop .55s cubic-bezier(.2, .8, .3, 1.2) var(--d, 0s) backwards; }
  .in .turn { transform-box: fill-box; transform-origin: center; animation: turn 3.6s ease-in-out 1s infinite; }
  .in .march { animation: march 8s linear infinite; }
  .in .blink { transform-box: fill-box; transform-origin: center; animation: blink 3.6s ease var(--d) infinite; }
  .in .wave { animation: wave 1.2s linear infinite; }
  .in .wave.fast { animation: wave-fast .9s linear infinite; }
  .in .glow { animation: glow 2.4s ease-in-out infinite; }
  .tabs::before { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
  .tabs ~ .panel:not([hidden]) { animation: panel-in .45s ease; }
  .steps li::after { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: #9DB7FF; transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .25s; }
  .steps li.in::after { transform: none; }

  /* hover */
  .btn:active { transform: translateY(1px); }
  .more::after { transition: transform .2s; }
  .more:hover::after { transform: translateX(4px); }
  .card:hover, .tiles a:hover { transform: translateY(-4px); }
  .card:hover .draw { animation-name: draw-again; }
  .lean-l, .lean-r, .knob { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .card:hover .lean-l { transform: translateX(5px); }
  .card:hover .lean-r { transform: translateX(-5px); }
  .card:hover .knob { transform: translateX(14px); }
  .card:hover .march-h { animation: march 6s linear infinite; }
  .card:hover .blink-h { transform-box: fill-box; transform-origin: center; animation: blink 1.2s ease var(--d) infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes node-in { from { opacity: 0; transform: translateX(-14px); } }
@keyframes node-in-r { from { opacity: 0; transform: translateX(14px); } }
@keyframes core-in { from { opacity: 0; transform: scale(.8); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes draw-again { from { stroke-dashoffset: 100; } }
@keyframes spin { to { stroke-dashoffset: -100; } }
@keyframes flow-in { 0% { stroke-dashoffset: 12; } 45%, 100% { stroke-dashoffset: -100; } }
@keyframes flow-out { 0%, 50% { stroke-dashoffset: 12; } 95%, 100% { stroke-dashoffset: -100; } }
@keyframes ripple { 0%, 40% { opacity: 0; transform: scale(1); } 46% { opacity: .55; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hit { 0%, 88%, 100% { transform: scale(1); } 94% { transform: scale(1.9); } }
@keyframes turn { 0%, 30% { transform: rotate(0); } 50%, 100% { transform: rotate(90deg); } }
@keyframes march { to { stroke-dashoffset: -96; } }
@keyframes blink { 0%, 30%, 100% { opacity: 1; transform: scale(1); } 15% { opacity: .35; transform: scale(1.6); } }
@keyframes wave { to { transform: translateX(-44px); } }
@keyframes wave-fast { to { transform: translateX(-32px); } }
@keyframes glow { 50% { stroke: #2B58D6; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
