

:root {
  color-scheme: light dark;

  --bg: #f4f6f1;
  --surface: #fbfcf8;
  --surface-2: #e9ece5;
  --ink: #141914;
  --body: #2c332c;
  --muted: #596153;
  --line: #d8ddd3;
  --line-strong: #c1c8bb;
  --control-line: #7b8474;
  --accent: #1c5b42;
  --accent-ink: #164a35;
  --accent-soft: #e2ece3;
  --code-bg: #191d1a;
  --code-ink: #ecebe4;
  --code-muted: #a7aea3;
  --code-line: #333b34;
  --code-ok: #a9e5c4;
  --btn-bg: #141914;
  --btn-bg-hover: #252d26;
  --btn-ink: #f4f6f1;
  --btn-ghost-hover: #e9ece5;
  --focus: #1c5b42;

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e110f;
    --surface: #161a17;
    --surface-2: #1b201c;
    --ink: #eceae2;
    --body: #c9ccc3;
    --muted: #9aa096;
    --line: #2a302b;
    --line-strong: #3a423b;
    --control-line: #626c63;
    --accent: #93d9b4;
    --accent-ink: #a8e6c3;
    --accent-soft: #1c2b23;
    --code-bg: #090b0a;
    --code-ink: #e8e7df;
    --code-muted: #93998f;
    --code-line: #242b25;
    --btn-bg: #eceae2;
    --btn-bg-hover: #ffffff;
    --btn-ink: #10130f;
    --btn-ghost-hover: #1b201c;
    --focus: #93d9b4;
  }

  .shot img {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--line-strong) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-strong);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}


.site-header {
  padding: 11px 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span {
  overflow-wrap: anywhere;
}

.brand-mark {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-mark-accent {
  fill: var(--accent);
}

.header-nav {
  min-width: 0;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--ink);
}


.hero {
  padding: 64px 0 104px;
}

.wordmark {
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.wordmark::after {
  content: "";
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.04em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.06em;
}

.pitch {
  max-width: 22ch;
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.install {
  max-width: 800px;
  margin-top: 40px;
  border: 1px solid var(--code-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--code-bg);
}

.install-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  border-bottom: 1px solid var(--code-line);
}

.install-label {
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 78px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--code-ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy:hover {
  background: var(--code-line);
}

.copy:focus-visible {
  outline-color: var(--code-ink);
}

.copy[data-copied="true"] {
  color: var(--code-ok);
}

.install pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: var(--code-muted) transparent;
}

.install code {
  color: var(--code-ink);
  font-size: inherit;
  white-space: pre;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.cta-note {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
}

.btn-secondary {
  border: 1px solid var(--control-line);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--btn-ghost-hover);
  color: var(--ink);
}


.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  align-items: baseline;
  column-gap: 48px;
  row-gap: 16px;
  margin-bottom: 44px;
}

.section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-lede {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.75;
}


.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.card-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-top: 22px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card code {
  color: var(--ink);
  font-size: 0.9em;
}


.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  column-gap: 48px;
  align-items: start;
  padding: 36px 36px 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.flow-main {
  min-width: 0;
  max-width: 720px;
}

.tier {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
}

.tier-label {
  padding-top: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: right;
}

.nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.node {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.node code,
.node small {
  overflow-wrap: anywhere;
}

.node code {
  color: inherit;
  font-size: 0.8125rem;
}

.node-gateway {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 18px;
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.node-gateway code {
  font-size: 0.875rem;
  font-weight: 600;
}

.node-gateway small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.nodes-sessions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.node-session {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 10px 14px;
}

.node-session small {
  color: var(--muted);
  font-size: 0.75rem;
}

.edge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 14px 107px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.edge::before {
  content: "";
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.flow figcaption {
  padding: 2px 0 0 28px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.shot {
  margin: 56px 0 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(20, 25, 20, 0.1), 0 2px 6px rgba(20, 25, 20, 0.06);
}


.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-num {
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.step-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.step-body > p {
  max-width: 64ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.code-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  margin-top: 18px;
}

.code-caption {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.code-stack pre {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--code-line);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--code-muted) transparent;
}

.code-stack code {
  color: var(--code-ink);
  font-size: inherit;
  white-space: pre;
}


.fork-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  column-gap: 48px;
  align-items: start;
}

.prose {
  max-width: 64ch;
}

.prose p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.prose p + p {
  margin-top: 12px;
}

.prose code {
  color: var(--ink);
}


.site-footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-year {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}


@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  .section h2 {
    max-width: 20ch;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .flow figcaption {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fork-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    padding: 11px 0;
  }

  .copy {
    min-height: 44px;
  }

  .hero {
    padding: 44px 0 64px;
  }

  .pitch {
    margin-top: 22px;
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .install {
    margin-top: 32px;
  }

  .shot {
    margin-top: 36px;
  }

  .shot img {
    width: auto;
    max-width: 100%;
    max-height: 72vh;
    margin: 0 auto;
    border-radius: var(--radius-md);
  }

  .install pre {
    padding: 14px 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 22px 22px 24px;
  }

  .flow {
    padding: 22px 20px;
  }

  .tier {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .tier-label {
    padding-top: 0;
    text-align: left;
  }

  .edge {
    margin-left: 0;
  }

  .nodes-sessions {
    grid-template-columns: minmax(0, 1fr);
  }

  .node {
    font-size: 0.875rem;
  }

  .node-session {
    padding: 9px 12px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    padding: 26px 0;
  }

  .step-num {
    padding-top: 0;
  }

  .code-stack {
    margin-top: 14px;
  }

  .footer-inner {
    gap: 10px 20px;
  }

  .footer-year {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
