:root {
  color-scheme: light;
  font-family: system-ui, "Segoe UI", "Malgun Gothic", sans-serif;
  color: #111b2d;
  background: #fff;
  --text-muted: #465571;
  --blue: #1054cc;
  --blue-hover: #0946b4;
  --wash: #eff4fb;
  --wrap: min(80rem, calc(100% - 6rem));
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 0; }
img { display: block; max-width: 100%; }
a { color: var(--blue-hover); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .12em; }
button { font: inherit; }
:focus-visible { outline: .18rem solid var(--blue); outline-offset: .24rem; }
[hidden] { display: none !important; }

.wrap { width: var(--wrap); margin-inline: auto; }
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .24rem;
  color: inherit;
  font-size: 1.44rem;
  font-weight: 770;
  letter-spacing: -.063em;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.25rem); }
nav a { color: var(--text-muted); font-size: .925rem; font-weight: 610; text-decoration: none; }
nav a:hover { color: var(--blue-hover); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 4.2vw, 4.25rem);
  padding: 2.5rem 0 5rem;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.05rem, 5.25vw, 5.5rem);
  letter-spacing: -.079em;
  line-height: 1.01;
  font-weight: 770;
  text-wrap: balance;
}

:lang(ko) .hero h1 {
  max-width: 14ch;
  font-size: clamp(2.65rem, 4.3vw, 4.65rem);
  letter-spacing: -.082em;
  line-height: 1.17;
  word-break: keep-all;
}

.hero p {
  max-width: 32rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  word-break: keep-all;
}

.action, .download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: .45rem;
  text-align: center;
  text-decoration: none;
  font-weight: 690;
}

.action {
  margin-top: 1.9rem;
  min-height: 3.25rem;
  padding: .72rem 1.2rem;
  background: var(--blue);
  color: #fff;
}

.action:hover { background: var(--blue-hover); }

.product-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: clamp(.75rem, 2vw, 1.25rem);
  overflow: hidden;
  padding: clamp(1rem, 3.5vw, 3.4rem);
  border-radius: 1rem;
  background: #123d99;
  color: #fff;
}

.product-preview::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(124deg, #123d99 0 37%, #1855bf 37% 72%, #2575db 72%);
}

.preview-image { display: block; border-radius: .45rem; }
.preview-image img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  box-shadow: 0 1.15rem 2.4rem #07194155;
}

.product-preview :focus-visible { outline-color: #fff; }
.product-preview figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .9rem;
  min-height: 2.3rem;
  color: #f4f8ff;
  font-size: .875rem;
  font-weight: 530;
  line-height: 1.5;
}

.preview-theme {
  display: flex;
  padding: .13rem;
  gap: .12rem;
  border-radius: .42rem;
  background: #0b296b;
}

.preview-theme button {
  min-height: 2rem;
  padding: .25rem .62rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.preview-theme button[aria-pressed="true"] { background: #fafcff; color: #10274f; }
.preview-theme button[aria-pressed="false"]:hover { background: #184794; }

.download-section, .setup-section {
  display: grid;
  grid-template-columns: minmax(14rem, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 3rem clamp(1.25rem, 4.5vw, 4rem);
  scroll-margin-top: 1rem;
}

.download-section { background: var(--wash); border-radius: 1rem; }
h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); letter-spacing: -.065em; line-height: 1.14; }
.section-intro p, .setup-section p { color: var(--text-muted); font-size: 1.075rem; line-height: 1.65; word-break: keep-all; }
.section-intro p { max-width: 24rem; margin-top: .9rem; }
.section-intro p a, .setup-section div a { font-weight: 630; }
.download-list ul { margin: 0; padding: 0; list-style: none; }
.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  min-height: 4.85rem;
  padding: .75rem 0;
}

.download-list li + li { border-top: .125rem solid #dce6f3; }
.download-list h3 { font-size: 1.15rem; font-weight: 710; letter-spacing: -.026em; line-height: 1.25; }
.download-list p { margin-top: .21rem; color: var(--text-muted); font-size: .9rem; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.download-link {
  padding: .4rem .73rem;
  background: #fff;
  color: #173969;
  font-size: .9rem;
}
.download-link:hover { background: #d9e6f8; }
.release-link { display: inline-block; margin-top: .7rem; font-size: .9rem; font-weight: 620; }

.setup-section { padding-block: 4.5rem; }
.setup-section div a { display: inline-block; margin-top: .8rem; }
.site-footer { min-height: 6rem; box-shadow: 0 -.125rem #eff3f8; }
.site-footer .wordmark { font-size: 1.2rem; }

.archive-page {
  max-width: 49rem;
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}
.archive-page h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -.066em;
  line-height: 1.15;
}
.archive-page h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.archive-page p { margin-top: .75rem; line-height: 1.7; color: var(--text-muted); }
.archive-page section { margin-top: 2.5rem; scroll-margin-top: 1.5rem; }
.archive-page nav { flex-wrap: wrap; gap: .55rem 1.4rem; margin-top: 1.35rem; }
.archive-page nav a { color: var(--blue-hover); text-decoration: underline; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .5rem 1rem;
  background: #fff;
  transform: translateY(-250%);
}
.skip-link:focus { transform: none; }

@media (max-width: 61rem) {
  :root { --wrap: min(80rem, calc(100% - 3rem)); }
  .hero { gap: 1.7rem; padding: 1.75rem 0 3.5rem; }
  .hero h1 { font-size: clamp(2.8rem, 6vw, 4.15rem); }
  :lang(ko) .hero h1 { font-size: clamp(2.5rem, 5.3vw, 3.75rem); }
}

@media (max-width: 47rem) {
  :root { --wrap: min(39rem, calc(100% - 2rem)); }
  .site-header { min-height: 4.2rem; }
  .nav-guide { display: none; }
  .hero, .download-section, .setup-section { grid-template-columns: 1fr; }
  .hero { padding: 1.25rem 0 2.8rem; gap: 1.9rem; }
  .hero h1, :lang(ko) .hero h1 { max-width: 16ch; }
  .hero h1 { font-size: clamp(2.75rem, 9vw, 4.25rem); }
  :lang(ko) .hero h1 { font-size: clamp(2.35rem, 7.6vw, 4rem); }
  .hero p { margin-top: .92rem; }
  .action { margin-top: 1.25rem; }
  .download-section, .setup-section { padding: 1.55rem 1.1rem; gap: 1.15rem; }
  .setup-section { padding-block: 2.55rem; }
  .site-footer { flex-wrap: wrap; min-height: 5rem; padding-block: .6rem; }
  .site-footer nav { flex-wrap: wrap; gap: .6rem 1rem; }
}

@media (max-width: 23rem) {
  .site-header { gap: .45rem; }
  .site-header nav { gap: .58rem; }
  .site-header nav a { font-size: .875rem; }
  .site-header .wordmark { font-size: 1.25rem; }
  .site-header .wordmark img { width: 1.58rem; height: 1.58rem; }
  .download-list li { flex-wrap: wrap; }
  .download-actions { justify-content: flex-start; }
}
