:root {
  color-scheme: dark;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f0e8;
  background: #11100e;
  font-synthesis: none;
  --surface: #1b1916;
  --surface-strong: #24211d;
  --line: #38332c;
  --muted: #b4aa9b;
  --accent: #ff8a3d;
  --accent-soft: #3a2418;
  --content: 760px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #11100e; }
body { min-height: 100%; margin: 0; background: radial-gradient(circle at 50% -10%, #2d2119 0, #11100e 42%); }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent); text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #ffd1b2; outline-offset: 3px; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.brand { position: relative; display: inline-block; color: #f4f0e8; font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: -.035em; }
.brand::before { content: "C"; position: absolute; inset: 0 auto auto 0; color: var(--accent); pointer-events: none; }
.language { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 14px; background: #151310; }
.language button { min-height: 48px; padding: 0 15px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
.language button[aria-pressed="true"] { color: #21130a; background: var(--accent); font-weight: 750; }
nav { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
nav a[aria-current="page"] { color: #fff; background: var(--surface-strong); }

main { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 78px 0 96px; }
article { overflow-wrap: anywhere; }
[data-lang="ko"] [data-lang-content="en"], [data-lang="ko"] [data-lang-label="en"],
[data-lang="en"] [data-lang-content="ko"], [data-lang="en"] [data-lang-label="ko"] { display: none !important; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(42px, 8vw, 76px); line-height: 1.03; letter-spacing: -.055em; text-wrap: balance; }
.lede { margin: 30px 0 0; color: #d4ccbf; font-size: clamp(19px, 3vw, 24px); line-height: 1.65; }
h2 { margin: 64px 0 18px; font-size: 26px; letter-spacing: -.025em; }
p, li { font-size: 17px; line-height: 1.8; }
p { color: #d7cfc2; }
ul { padding-left: 24px; }
ol { padding-left: 26px; }
li + li { margin-top: 10px; }
.faq { margin: 0; }
.faq dt { margin-top: 26px; color: #f4f0e8; font-size: 18px; font-weight: 750; line-height: 1.5; }
.faq dd { margin: 8px 0 0; color: #d7cfc2; font-size: 17px; line-height: 1.8; }
.document-updated { margin: 0 0 24px; color: var(--muted); font-size: 13px; letter-spacing: .03em; }
.document-updated span { margin-right: 6px; text-transform: uppercase; }
.notice, .warning { margin: 36px 0; padding: 22px 24px; border: 1px solid #6a4028; border-radius: 18px; background: var(--accent-soft); color: #f4ddce; font-size: 17px; line-height: 1.7; }
.warning { border-color: #665737; background: #292316; }
.download-panel { margin: 48px 0 20px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, var(--surface-strong), var(--surface)); }
.download-panel h2 { margin-top: 0; }
.install-options { margin: 24px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.install-option { min-width: 0; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); }
.install-option span { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.install-option strong { margin-top: 7px; color: #f4f0e8; font-size: 21px; }
.install-option p { margin: 10px 0 20px; color: #d7cfc2; }
.install-option .primary-action, .install-option .secondary-action { margin-top: auto; }
.download-actions { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.primary-action, .secondary-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; font-weight: 750; text-decoration: none; }
.primary-action { color: #21130a; background: var(--accent); }
.secondary-action { border: 1px solid #6c5b4b; color: #f4f0e8; background: var(--surface-strong); }
.advanced-details { margin: 28px 0; padding: 0 20px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.advanced-details summary { min-height: 48px; display: flex; align-items: center; color: #f4f0e8; font-weight: 750; cursor: pointer; }
.advanced-details p { color: #d7cfc2; }
code { padding: .15em .35em; border-radius: 6px; background: #0c0b09; color: #f4ddce; font: .9em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.card-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { min-height: 140px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--surface-strong), var(--surface)); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); border-color: #6c5b4b; }
.card span { color: var(--muted); font-size: 14px; }
.card strong { font-size: 19px; line-height: 1.4; }
.notices { margin-top: 32px; padding: 22px; max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #0c0b09; color: #d5cdbf; font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.copyright { margin-right: auto; font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }

@media (max-width: 640px) {
  .site-header { width: min(100% - 28px, 1120px); padding-top: 14px; gap: 12px; }
  .brand { max-width: 170px; line-height: 1.15; }
  .language button { padding: 0 11px; }
  main { width: min(100% - 32px, var(--content)); padding: 54px 0 72px; }
  h1 { font-size: clamp(38px, 12vw, 56px); }
  h2 { margin-top: 52px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 118px; }
  .download-panel { padding: 22px 18px; }
  .install-options { grid-template-columns: 1fr; }
  .download-actions { flex-direction: column; }
  .primary-action, .secondary-action { width: 100%; }
  footer { width: min(100% - 32px, 1120px); align-items: flex-start; flex-direction: column; }
  .copyright { margin-right: 0; }
}

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