:root {
  color-scheme: light dark;
  --bg: #f3f4f1;
  --surface: #e7e9e5;
  --surface-strong: #d8dcd6;
  --text: #1b1d1c;
  --muted: #555b57;
  --line: #bfc5bf;
  --accent: #a33b2d;
  --accent-text: #fffaf6;
  --code: #252826;
  --code-text: #f2f4ef;
  --radius: 14px;
  --shell: min(1240px, calc(100% - 48px));
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171918;
    --surface: #222522;
    --surface-strong: #2d312e;
    --text: #eff1ed;
    --muted: #b6bcb7;
    --line: #424843;
    --accent: #df7864;
    --accent-text: #171918;
    --code: #0f1110;
    --code-text: #eff1ed;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

.site-header { width: var(--shell); height: 72px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 18px; font-weight: 750; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }

.hero, .model-hero { min-height: calc(100dvh - 72px); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr); align-items: center; gap: clamp(40px, 7vw, 112px); padding-block: 64px; }
.hero-copy { max-width: 600px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 11ch; margin-bottom: 24px; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.065em; }
.model-hero h1 { max-width: 11ch; }
.hero-copy > p:not(.eyebrow) { max-width: 42ch; margin-bottom: 32px; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.65; }
.hero-media { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); font-weight: 750; text-decoration: none; white-space: nowrap; transition: transform 160ms ease, filter 160ms ease; }
.button:hover { filter: brightness(0.94); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }

.catalog { padding-block: 104px 128px; }
.section-heading { max-width: 650px; margin-bottom: 56px; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -0.05em; }
.section-heading p, .principles-intro p, .contract-copy p, .availability { color: var(--muted); font-size: 17px; line-height: 1.7; }
.model-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 36px; align-items: center; padding: 42px; border-radius: var(--radius); background: var(--surface); }
.model-index { display: grid; width: 92px; height: 92px; place-items: center; border-radius: var(--radius); background: var(--text); color: var(--bg); font-size: 48px; font-weight: 800; }
.model-meta { display: flex; gap: 20px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.model-copy h3 { margin-bottom: 12px; font-size: 34px; letter-spacing: -0.04em; }
.model-copy p { max-width: 58ch; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.text-link { font-weight: 750; white-space: nowrap; }

.principles { display: grid; grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); gap: clamp(56px, 10vw, 160px); padding-block: 120px; }
.principles-intro { align-self: start; position: sticky; top: 40px; }
.principle-list { margin: 0; }
.principle-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.principle-list > div:first-child { border-top: 1px solid var(--line); }
.principle-list dt { font-weight: 800; }
.principle-list dd { margin: 0; color: var(--muted); line-height: 1.7; }

.status-band { background: var(--surface); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.status-grid > div { padding: 34px 24px; border-right: 1px solid var(--line); }
.status-grid > div:first-child { padding-left: 0; }
.status-grid > div:last-child { border-right: 0; }
.status-grid strong, .status-grid span { display: block; }
.status-grid strong { margin-bottom: 9px; font-size: 14px; }
.status-grid span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.contract { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 8vw, 120px); align-items: center; padding-block: 128px; }
.powered { margin-top: 32px; color: var(--text) !important; font-weight: 800; }
pre { overflow-x: auto; margin: 0; border-radius: var(--radius); background: var(--code); color: var(--code-text); padding: 30px; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.quickstart { padding-block: 112px; }
.code-steps { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; margin-top: 48px; }
.code-steps > div { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.code-steps h3 { font-size: 18px; }
.code-steps pre { padding: 22px; }
.availability { max-width: 65ch; margin-top: 30px; }

.limits { padding-block: 112px 140px; }
.limit-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1.1fr; gap: 18px; }
.limit-grid article { min-height: 210px; padding: 30px; border-radius: var(--radius); background: var(--surface); }
.limit-grid article:nth-child(2) { background: var(--surface-strong); }
.limit-grid article:nth-child(3) { color: var(--accent-text); background: var(--accent); }
.limit-grid h3 { font-size: 20px; }
.limit-grid p { margin-bottom: 0; line-height: 1.65; }

.site-footer { display: flex; min-height: 128px; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin-bottom: 0; }

@media (max-width: 767px) {
  :root { --shell: min(100% - 32px, 1240px); }
  .site-header { height: auto; min-height: 68px; }
  nav { gap: 14px; font-size: 12px; }
  nav a:nth-child(2) { display: none; }
  .hero, .model-hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding-block: 56px 72px; }
  h1 { max-width: 10ch; font-size: clamp(44px, 14vw, 64px); }
  .hero-media { order: -1; }
  .model-row { grid-template-columns: 72px 1fr; padding: 24px; gap: 20px; }
  .model-index { width: 64px; height: 64px; font-size: 34px; }
  .model-meta { flex-direction: column; gap: 4px; }
  .text-link { grid-column: 2; }
  .principles, .contract { grid-template-columns: 1fr; gap: 44px; padding-block: 80px; }
  .principles-intro { position: static; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-grid > div { border-bottom: 1px solid var(--line); }
  .status-grid > div:first-child { padding-left: 24px; }
  .status-grid > div:nth-child(2) { border-right: 0; }
  .code-steps, .limit-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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