@font-face { font-family: 'Space Grotesk'; src: url('fonts/SpaceGrotesk.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
/* Pretendard loads only on the Korean page, where html:lang(ko) puts it first. */
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Regular.subset.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Medium.subset.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-SemiBold.subset.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --bg: #171c18; --panel: #222a23; --deep: #101610; --text: #eeeae0;
  --muted: #b0bdab; --line: #46513f; --green: #b4f676; --amber: #efbc72;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark; font-family: 'Space Grotesk', sans-serif;
  background: var(--bg); color: var(--text); scroll-behavior: smooth; scroll-padding-top: 2rem;
}
* { box-sizing: border-box; scrollbar-color: var(--line) var(--bg); }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
::selection { background: var(--green); color: var(--deep); }
code, pre, kbd { font-family: var(--mono); }
pre { margin: 0; }
svg { display: block; }
button svg, .button svg, .nav-install svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
p { line-height: 1.65; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.08; margin-bottom: 1.6rem; }
.wrap { width: min(1264px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--green); color: var(--deep); padding: 12px; z-index: 5; }
.skip-link:focus { top: 10px; }
.masthead { display: flex; align-items: center; justify-content: space-between; height: 106px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 27px; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.version { font: 11px var(--mono); letter-spacing: 0; color: var(--muted); border: 1px solid var(--line); padding: 4px 6px; margin-left: 5px; }
.masthead nav { display: flex; gap: 32px; align-items: center; font-size: 14px; }
.masthead nav a { text-decoration: none; white-space: nowrap; }
.masthead nav a:hover { color: var(--green); }
.nav-lang { color: var(--muted); }
.nav-install { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--green); padding-block: 7px; }
.nav-install svg { width: 15px; height: 15px; }

/* Real terminal pixels get the full width beneath the headline and invitation. */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px 8%; padding-block: 64px 88px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 4.4vw, 4.25rem); line-height: 1.06; margin: 0; }
.hero h1 em { font-style: normal; color: var(--green); }
.lede { font-size: 23px; line-height: 1.5; margin-bottom: 17px; }
.intro { font-size: 16px; color: var(--muted); max-width: 38ch; margin-bottom: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 19px; border: 1px solid transparent; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s ease-out, color .18s ease-out; white-space: nowrap; }
.primary { background: var(--green); color: var(--deep); }
.primary:hover { background: #d0ffac; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 22px; font-size: 11px; color: var(--muted); }
.hero-facts span + span::before { content: '·'; padding-right: 14px; color: var(--green); }
.hero-install { display: flex; width: fit-content; max-width: 100%; align-items: stretch; margin-top: 18px; border: 1px solid #596b49; background: #232e20; }
.hero-install code { font-size: 13px; color: var(--text); padding: 10px 14px; min-width: 0; overflow-wrap: anywhere; }
.hero-install .copy-icon { display: inline-flex; align-items: center; padding: 0 11px; border-left: 1px solid #596b49; color: var(--green); transition: background .18s ease-out, color .18s ease-out; }
.hero-install .copy-icon:hover { background: var(--panel); color: var(--text); }
.hero-install .copy-icon:focus-visible { outline-offset: -4px; }
.gallery { grid-column: 1 / -1; min-width: 0; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.gallery-toolbar > p { font-size: 18px; margin: 0; }
.gallery-controls, .gallery-selectors { display: flex; align-items: center; gap: 4px; }
.gallery-controls { gap: 16px; }
.gallery-controls button { min-height: 44px; padding: 10px 13px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.gallery-controls button:hover { color: var(--text); background: var(--panel); }
.gallery-selectors button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); }
#gallery-rotation { display: flex; align-items: center; gap: 7px; border-color: var(--line); }
#gallery-rotation svg { width: 16px; height: 16px; }
.gallery-stage { position: relative; aspect-ratio: 2 / 1; background: #1e1e2e; border: 1px solid #585b70; border-radius: 7px; box-shadow: 0 20px 50px #05090550; overflow: hidden; }
.gallery-slide { position: absolute; inset: 0; margin: 0; }
.gallery-slide a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.gallery-slide a:focus-visible { outline-offset: -5px; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 19px; font-size: 14px; }
.gallery-caption p { margin: 0; }
.gallery-caption a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 44px; }
.gallery-caption svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.gallery-note { color: var(--muted); font-size: 12px; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* A three-step lifecycle, then practical commands and source installation. */
.idea { border-top: 1px solid var(--line); padding-top: 78px; padding-bottom: 80px; }
.idea-title { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: start; margin-bottom: 36px; }
.idea-title p { max-width: 47ch; color: var(--muted); font-size: 17px; margin-top: 4px; }
.lifecycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.lifecycle-step { border-top: 1px solid var(--line); padding-top: 24px; }
.lifecycle-step code { display: inline-block; font-size: 15px; color: var(--green); margin-bottom: 24px; }
.lifecycle-step h3 { font-weight: 500; font-size: 24px; letter-spacing: -.025em; margin-bottom: 12px; }
.lifecycle-step p { font-size: 14px; color: var(--muted); max-width: 33ch; margin-bottom: 0; }
.architecture { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 55px; border: 1px solid var(--line); padding: 27px 24px 20px; gap: 16px; font: 11px var(--mono); color: var(--muted); }
.architecture strong { font-weight: 400; color: var(--green); border: 1px solid #6f8d55; padding: 10px 15px; white-space: nowrap; }
.connector { height: 1px; background: var(--line); width: 70px; }
.architecture p { flex-basis: 100%; font-family: 'Space Grotesk', sans-serif; text-align: center; font-size: 12px; margin: 0; }
.tmux-feature, .media-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 36px; }
.tmux-feature h3, .media-feature h3 { font-size: 26px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 18px; }
.tmux-feature p, .media-feature p { font-size: 14px; color: var(--muted); max-width: 48ch; }
.tmux-guide, .feature-guide { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 14px; }
.tmux-guide:hover, .feature-guide:hover { color: var(--text); }
.media-keyboard { margin: 0; align-self: center; min-width: 0; }
.media-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 380px; }
.media-keys > div { display: grid; gap: 12px; text-align: center; }
.media-keys kbd { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 12px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--deep); color: var(--muted); font: 12px var(--mono); }
.media-keys svg { width: 32px; height: 24px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; }
.media-keys span { font-size: 13px; }
.media-keyboard figcaption { margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tmux-example { min-width: 0; }
.tmux-example figure { margin: 0 0 24px; }
.tmux-status { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--deep); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.tmux-pane { color: var(--muted); flex-shrink: 0; }
.tmux-track { color: var(--green); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tmux-time { margin-left: auto; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tmux-example figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tmux-example > p { font-size: 13px; }
.tmux-example pre { font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.tmux-example-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.commands { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; border-top: 1px solid var(--line); padding-top: 85px; padding-bottom: 85px; }
.commands-copy p { font-size: 16px; color: var(--muted); max-width: 39ch; }
.commands-copy .aside { font-size: 13px; margin-top: 32px; color: #c3d4b6; max-width: 34ch; }
.command-sheet { border-top: 1px solid #7c9865; min-width: 0; }
.sheet-heading { display: flex; justify-content: space-between; font: 9px var(--mono); color: var(--muted); letter-spacing: .08em; padding: 16px 0; }
.command-row { display: grid; grid-template-columns: 1.2fr 1fr 24px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 16px 0; }
.command-row code { font-size: 13px; color: var(--green); }
.command-row > span { font-size: 11px; color: var(--muted); }
.copy-icon { padding: 2px; background: none; border: 0; color: var(--muted); }
.copy-icon:hover { color: var(--green); }
.copy-icon svg { width: 18px; height: 18px; }
.json-example { background: var(--deep); padding: 20px 22px; margin-top: 22px; border: 1px solid #303d2c; }
.json-example > code { font-size: 12px; color: var(--green); }
.json-example pre { font-size: 11px; line-height: 1.75; color: #ecdfbc; margin-top: 20px; white-space: pre-wrap; }
.json-example pre span { color: #bdcbb3; }
.json-example pre b { color: var(--green); font-weight: 400; }
.json-example small { display: block; margin-top: 14px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; border-top: 1px solid var(--line); padding-top: 80px; padding-bottom: 90px; }
.install > div > p { font-size: 16px; color: var(--muted); }
.install .requirements { font-size: 12px; line-height: 1.8; margin-top: 27px; }
.install-options { display: grid; gap: 18px; min-width: 0; }
.install-code { background: #232e20; border: 1px solid #596b49; padding: 24px 26px; min-width: 0; }
.install-heading { display: flex; justify-content: space-between; align-items: center; font: 9px var(--mono); color: #bfd4ae; gap: 15px; letter-spacing: .05em; }
.copy-text { border: 0; background: none; color: var(--green); font-size: 11px; padding: 5px 0; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.install-code > p { font-size: 12px; color: var(--muted); margin-top: 23px; }
.install-code pre { font-size: 12px; line-height: 1.9; overflow: auto; padding: 2px; }
.comment { color: #a8ba99; }
.install-code .install-foot { font-size: 11px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; margin-bottom: 0; }
.install-foot kbd { color: var(--green); border: 1px solid #60754f; padding: 1px 5px; }
.footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 30px; color: var(--muted); gap: 20px; }
.footer .brand { color: var(--text); font-size: 23px; }
.footer p { margin: 0; font-size: 12px; }
.footer > span { font-size: 10px; }
.copy-feedback { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--deep); font-size: 13px; padding: 12px 20px; border-radius: 3px; box-shadow: 0 5px 25px #0005; z-index: 10; }
.copy-feedback:empty { display: none; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); } .hero { column-gap: 5%; padding-top: 48px; }
  .hero h1 { font-size: 4.3vw; } .lede { font-size: 20px; }
  .gallery-toolbar { flex-wrap: wrap; gap: 10px; }
  .lifecycle { gap: 30px; } .command-row { grid-template-columns: 1fr 24px; } .command-row > span { display: none; } .commands, .install { gap: 7%; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); } .masthead { height: 80px; } .masthead nav { gap: 16px; font-size: 12px; }
  .masthead nav > a:not(.nav-install):not(.nav-lang) { display: none; } .brand { font-size: 25px; } .version { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 56px; }
  .hero h1 { font-size: clamp(2.3rem, 7.6vw, 3.2rem); line-height: 1.06; }
  .hero .lede { font-size: 19px; } .intro { max-width: 40ch; font-size: 15px; margin-bottom: 24px; }
  .hero-facts { gap: 10px; } .hero-facts span + span::before { padding-right: 5px; }
  .gallery { margin-top: 10px; }
  .gallery-toolbar { display: block; margin-bottom: 12px; }
  .gallery-toolbar > p { font-size: 19px; margin-bottom: 12px; }
  .gallery-controls { justify-content: space-between; gap: 6px; }
  .gallery-selectors { gap: 0; flex: 1; }
  .gallery-controls button { font-size: 12px; padding: 8px; }
  #gallery-rotation { padding: 10px; } #gallery-rotation span { display: none; }
  .gallery-stage { border-radius: 4px; }
  .gallery-caption { display: block; font-size: 13px; margin-top: 13px; }
  .gallery-caption p { min-height: 3.3em; }
  .gallery-note { font-size: 11px; line-height: 1.7; max-width: 44ch; }
  .idea { padding-top: 50px; padding-bottom: 50px; } .idea-title { grid-template-columns: 1fr; gap: 0; margin-bottom: 30px; } .idea-title p { font-size: 15px; }
  .lifecycle { grid-template-columns: 1fr; gap: 25px; } .lifecycle-step { display: grid; grid-template-columns: 105px 1fr; column-gap: 20px; padding-top: 20px; }
  .lifecycle-step code { grid-column: 1; grid-row: 1 / span 2; margin: 5px 0 0; font-size: 14px; }
  .lifecycle-step h3 { font-size: 22px; grid-column: 2; margin-bottom: 8px; } .lifecycle-step p { font-size: 13px; max-width: none; }
  .architecture { padding: 20px 10px; gap: 8px; font-size: 8px; margin-top: 35px; } .architecture strong { padding: 9px 7px; font-size: 8px; }
  .connector { width: 15px; } .architecture p { font-size: 11px; margin-top: 7px; }
  .tmux-feature, .media-feature { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; padding-top: 28px; }
  .tmux-feature h3, .media-feature h3 { font-size: 24px; }
  .tmux-status { gap: 8px; padding: 12px; font-size: 11px; }
  .commands, .install { grid-template-columns: 1fr; gap: 26px; padding-block: 50px; }
  .commands-copy p { font-size: 15px; max-width: 45ch; } .commands-copy .aside { margin-top: 20px; max-width: 45ch; }
  .command-row { grid-template-columns: 1.2fr 1fr 24px; } .command-row > span { display: inline; font-size: 11px; } .command-row code { font-size: 12px; }
  .install-code { padding: 23px 20px; } .footer { flex-wrap: wrap; gap: 15px; padding-block: 25px; }
  .footer > span { flex-basis: 100%; padding-left: 36px; } .footer p { font-size: 11px; } .footer .brand { font-size: 21px; }
  h2 { font-size: 2.2rem; } .install .requirements { margin-top: 20px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); } .hero h1 { font-size: 2.2rem; } .hero-install code { font-size: 12px; padding: 9px 10px; }
  .gallery-controls button { padding-inline: 6px; font-size: 11px; }
  .hero-facts { gap: 7px; font-size: 10px; }
  .architecture { gap: 6px; } .connector { width: 9px; } .command-row > span { font-size: 10px; } .command-row { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.sheet-heading, .command-row > span, .json-example small, .install-heading { font-size: 11px; }
.copy-text { min-height: 44px; }

/* Long agent commands wrap while their copy controls remain reachable. */
.command-row { grid-template-columns: minmax(0, 1fr) 24px; }
.command-row code { grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.command-row > span { display: inline; grid-column: 1; }
.command-row .copy-icon { grid-column: 2; grid-row: 1 / span 2; }

/* Korean page: Pretendard carries Hangul and Latin together; only the wordmark keeps Space Grotesk. */
html:lang(ko) { font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Space Grotesk', sans-serif; word-break: keep-all; --mono: ui-monospace, SFMono-Regular, Consolas, 'Pretendard', monospace; }
html:lang(ko) .brand { font-family: 'Space Grotesk', sans-serif; }
html:lang(ko) .architecture p { font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif; }
html:lang(ko) h1, html:lang(ko) h2 { letter-spacing: -.02em; line-height: 1.2; }
html:lang(ko) h3 { letter-spacing: -.01em; line-height: 1.3; }
