:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #edf4f8;
  --text: #142033;
  --muted: #5f6b7a;
  --line: #d8e1ea;
  --brand: #006bb6;
  --brand-dark: #004a88;
  --green: #15964f;
  --orange: #f05a28;
  --shadow: 0 18px 44px rgba(20, 32, 51, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 800;
}

code {
  font-family: Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(216, 225, 234, 0.84);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand img {
  width: 158px;
  height: auto;
}

.brand span {
  color: var(--brand);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
  background: #eaf4fc;
  outline: none;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.header-action {
  min-width: 132px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
}

.header-action:hover,
.header-action:focus-visible,
.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-dark);
  outline: 3px solid rgba(0, 107, 182, 0.2);
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 640px;
  height: calc(84svh - 76px);
  max-height: 820px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 86px max(22px, calc((100vw - 1180px) / 2));
  background: #eef6fb;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 247, 251, 0.86);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1.12;
}

h1 span {
  display: block;
}

#download-title span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.hero-copy,
.section-copy {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 28px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 176px;
  max-width: 100%;
  padding: 0 22px;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(0, 107, 182, 0.24);
}

.button.secondary {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #9bc7e8;
  background: #f4faff;
  outline: 3px solid rgba(0, 107, 182, 0.16);
  outline-offset: 2px;
}

.section,
.download-panel {
  padding: 76px max(22px, calc((100vw - 1180px) / 2));
}

.download-panel {
  background: #fff;
}

.section.muted {
  background: var(--surface-soft);
}

.section-inner {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.download-grid,
.server-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.file-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.file-table div {
  min-width: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.file-table div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.file-table div:last-child,
.file-table div:nth-last-child(2) {
  border-bottom: 0;
}

.file-table dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.file-table dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.file-table .hash {
  font-size: 13px;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 204px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.steps p,
.resource-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.resource-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 184px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.resource-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.resource-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef3f7;
}

.resource-card.support img {
  object-fit: contain;
  padding: 22px;
}

.resource-card div {
  padding: 22px;
}

.resource-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.download-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-feature-list li {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.08);
}

.download-feature-list strong {
  color: var(--text);
}

.download-feature-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.config-snippet {
  margin: 0;
  overflow: auto;
  padding: 24px;
  border: 1px solid #1f2a37;
  border-radius: 8px;
  color: #e5f2ff;
  background: #111827;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px max(22px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  color: var(--brand);
  font-weight: 900;
}

.top-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(0, 107, 182, 0.26);
  cursor: pointer;
  font-weight: 900;
}

.top-button.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .download-grid,
  .server-grid,
  .steps,
  .resource-grid,
  .resource-card,
  .resource-card.featured {
    grid-template-columns: 1fr;
  }

  .resource-card img {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand img {
    width: 132px;
  }

  .brand span {
    font-size: 14px;
  }

  .header-action {
    display: none;
  }

  .hero,
  .section,
  .download-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 560px;
    height: calc(82svh - 68px);
    max-height: 640px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-inner,
  .section-inner {
    width: 100%;
    max-width: 358px;
    margin-left: 0;
    margin-right: auto;
  }

  .file-table {
    grid-template-columns: 1fr;
  }

  .file-table div,
  .file-table div:nth-child(odd) {
    border-right: 0;
  }

  .file-table div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    display: block;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
