/*
 * ASTERSEA 배포 사이트 데모 — 스타일
 * 수치는 원본 Framer 사이트(1440px 화면)에서 잰 값이다.
 * 구간: 1200 이상 = 원본 그대로 / 810~1199 = 좌우 48 / 810 미만 = 한 단, 좌우 24
 */

:root {
  --bg: #020505;
  --card: #0B1518;
  --fg: #E6F0EE;
  --muted: #91A6A8;
  --mint: #92DED0;
  --line: #1C2D31;
  --line-soft: rgba(146, 222, 208, .14);
  --error: #F2A49A;
  --warn: #E8CF8E;

  --f-logo: 'Michroma', 'Switzer', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  /* 한글은 시스템 대체 글꼴 — 원본처럼 이름을 적지 않고 브라우저가 고르게 둔다 */
  --f-sans: 'Switzer', sans-serif;

  --gutter: 48px;
  --header-h: 80px;
  --page-top: 96px;
}

@media (max-width: 809.98px) {
  :root {
    --gutter: 24px;
    --header-h: 72px;
    --page-top: 64px;
  }
}

/* ── 바탕 ─────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
}

/* 원본(Framer)과 같은 줄바꿈: 문단은 pretty, 줄 넘침은 단어 중간에서도 허용 */
p, li, h2, h3, h4 {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 2px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(1080px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.view {
  flex: 1 0 auto; /* 내용이 짧아도 푸터가 화면 바닥에 붙는다 (ABOUT) */
}

/* ── 공통 글자 ────────────────────────────────────────── */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 1.8px;
  color: var(--mint);
  text-wrap: wrap;
}

.body,
.lead {
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.28px;
  color: var(--muted);
}

.h-28,
.h-30,
.h-32 {
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--fg);
}

.h-28 { font-size: 28px; }
.h-30 { font-size: 30px; }
.h-32 { font-size: 32px; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
}

.bullets li {
  position: relative;
  padding-left: 16px;
}

.bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
}

/* ── 헤더 ─────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--bg);
  box-shadow: inset 0 -1px 0 var(--line); /* 원본처럼 선이 높이 80 안에 들어간다 */
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--f-logo);
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 2px;
  color: var(--fg);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a,
.mnav-links a {
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.nav a {
  font-size: 11px;
  line-height: 16.5px;
}

.nav a:hover,
.nav a[aria-current="page"],
.mnav-links a:hover,
.mnav-links a[aria-current="page"] {
  color: var(--fg);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-btn svg {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  overflow: visible;
}

.menu-btn .bar {
  transform-origin: 10px 10px;
  transition: transform .3s ease, opacity .2s ease;
}

.is-open .menu-btn .bar-1 { transform: translateY(4.5px) rotate(45deg); }
.is-open .menu-btn .bar-2 { opacity: 0; }
.is-open .menu-btn .bar-3 { transform: translateY(-4.5px) rotate(-45deg); }

/* 모바일 메뉴: 높이를 0fr → 1fr 로 펼친다 */
.mnav {
  display: none;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.mnav-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear .35s;
}

.is-open .mnav {
  grid-template-rows: 1fr;
}

.is-open .mnav-inner {
  visibility: visible;
  transition-delay: 0s;
}

.mnav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 30px;
}

.mnav-links a {
  font-size: 16px;
  line-height: 24px;
  align-self: flex-start;
}

/* ── 푸터 ─────────────────────────────────────────────── */

.site-footer {
  box-shadow: inset 0 1px 0 var(--line);
  padding: 48px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  column-gap: 48px;
}

.footer-logo {
  font-family: var(--f-logo);
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 2px;
  color: var(--fg);
}

.footer-brand .eyebrow {
  margin-top: 12px;
}

.footer-contact {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 23.1px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 16px;
  align-content: start;
}

.footer-links a {
  justify-self: start;
  font-size: 14px;
  line-height: 23.1px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-mark {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 20.4px;
  letter-spacing: -0.24px;
  color: var(--muted);
}

.footer-upload {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 1px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-contact:hover,
.footer-links a:hover,
.footer-links a[aria-current="page"],
.footer-upload:hover,
.footer-upload[aria-current="page"] {
  color: var(--fg);
}

/* ── 서브페이지 머리 ──────────────────────────────────── */

.page {
  padding-top: var(--page-top);
  padding-bottom: 96px;
}

.page-title {
  margin-top: 24px;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: var(--fg);
  text-wrap: balance;
}

.page-head .lead {
  margin-top: 24px;
}

/* ── HOME ─────────────────────────────────────────────── */

.hero {
  height: 514px;
  display: flex;
  justify-content: center; /* 화면보다 넓으면 양쪽이 고르게 잘린다 */
  overflow: hidden;
}

.hero img {
  flex: none;
  width: 678px;
  height: 514px;
  object-fit: cover;
}

.intro {
  padding: 96px 0 124px;
  text-align: center;
  background: radial-gradient(50% 50% at 50% 60%, rgba(146, 222, 208, .08) 0%, rgba(2, 5, 5, 0) 65%);
}

.intro-title {
  margin-top: 24px;
  font-family: var(--f-logo);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 16px;
  color: var(--fg);
}

.intro-sub {
  max-width: 620px;
  margin: 32px auto 0;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--fg);
  text-wrap: balance;
}

.intro-desc {
  margin-top: 32px;
}

.features {
  padding: 64px 0 96px;
}

.features-cols {
  margin-top: 32px;
}

.features-cols .body {
  margin-top: 16px;
}

/* ── DOWNLOAD ─────────────────────────────────────────── */

.dl-releases {
  margin-top: 48px;
}

.dl-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft); /* 선이 안쪽 치수를 바꾸지 않게 */
  border-radius: 4px;
  padding: 32px 24px;
}

.dl-version {
  margin-top: 12px;
  font-size: 30px;
  line-height: 39px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--fg);
  min-height: 39px;
}

.dl-desc {
  margin-top: 12px;
}

.platforms {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 23.1px;
  text-align: left;
  text-decoration: none; /* live 에서는 <a> 링크라 밑줄을 없애 버튼과 같게 */
  cursor: pointer;
  transition: color .2s ease;
}

.plat:hover:not(:disabled) {
  color: var(--fg);
}

.plat:disabled {
  cursor: default;
}

.plat.is-busy {
  cursor: progress;
}

.plat .ico {
  flex: none;
  fill: currentColor;
}

.plat-size {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 20.4px;
  letter-spacing: -0.24px;
  color: var(--muted);
}

.dl-cards.is-loading .dl-version {
  color: transparent;
}

.dl-archive {
  margin-top: 48px;
}

.archive-list {
  margin-top: 16px;
}

.archive-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  box-shadow: inset 0 -1px 0 var(--line-soft);
}

.archive-version {
  flex: 0 0 160px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: .5px;
  color: var(--fg);
}

.archive-plats {
  flex: 1;
  display: flex;
  gap: 32px;
}

.archive-plats .plat {
  width: auto;
}

.archive-plats .plat-size {
  margin-left: 4px;
}

/* 설치 안내 */
.guide {
  margin-top: 388px;
  scroll-margin-top: 48px;
}

.guide .h-32 {
  margin-top: 16px;
}

.guide-lead {
  margin-top: 16px;
}

.guide-cols {
  margin-top: 40px;
}

.g-col {
  font-size: 14px;
  line-height: 23.8px;
  letter-spacing: 0;
}

.g-h3 {
  margin-top: 24px;
  font-size: 20px;
  line-height: 34px;
  font-weight: 500;
  color: var(--fg);
}

.g-file {
  margin-top: 24px;
}

.g-file + .g-h3 {
  margin-top: 24px;
}

.bullets + .g-h3 {
  margin-top: 24px;
}

.g-fname {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 20.4px;
  color: var(--fg);
}

.g-fdesc {
  display: block;
}

/* ── UPDATES ──────────────────────────────────────────── */

.up-versions {
  margin-top: 48px;
}

.ver-block + .ver-block,
.july + .ver-block {
  margin-top: 96px;
}

.ver-title {
  line-height: 39px;
}

.ver-cols {
  margin-top: 32px;
}

.note {
  margin-top: 24px;
}

.note-title {
  font-size: 18px;
  line-height: 25.2px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--fg);
}

.note .body {
  margin-top: 12px;
}

.july {
  margin-top: 40px;
}

.july-title {
  font-size: 22px;
  line-height: 30.8px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--fg);
}

.july-cols {
  margin-top: 24px;
}

.july strong {
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 15.4px;
  letter-spacing: .7px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow .2s ease, background-color .2s ease, color .2s ease, opacity .2s ease;
}

.btn:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px rgba(146, 222, 208, .45);
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ico-line {
  flex: none;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-guide {
  margin-top: 24px;
}

.presets {
  margin-top: 112px;
}

.presets .h-32 {
  margin-top: 16px;
}

.presets-lead {
  margin-top: 16px;
}

.presets-sub {
  margin-top: 32px;
}

.preset-list {
  margin-top: 32px;
}

.preset {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 24px 16px;
  box-shadow: inset 0 -1px 0 var(--line-soft);
}

.preset-num {
  align-self: start;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 20.4px;
  letter-spacing: -0.24px;
  color: var(--muted);
}

.preset-name {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: .5px;
  color: var(--fg);
}

.preset-en,
.preset-ko {
  margin-top: 12px;
}

/* 접힘 메뉴 */
.acc {
  margin-top: 32px;
  box-shadow: inset 0 1px 0 var(--line-soft);
}

.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.3px;
  text-align: left;
  cursor: pointer;
}

.acc-chevron {
  transition: transform .35s ease;
}

.acc-btn[aria-expanded="true"] .acc-chevron {
  transform: rotate(180deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s ease;
}

.acc-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear .45s;
}

.acc.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc.is-open .acc-inner {
  visibility: visible;
  transition-delay: 0s;
}

.acc-inner .preset {
  box-shadow: none;
}

.page-updates {
  padding-bottom: 64px;
}

/* ── ABOUT ────────────────────────────────────────────── */

.about-cols {
  margin-top: 48px;
}

.about-title {
  margin-top: 24px;
}

.about-col .body {
  margin-top: 16px;
}

/* ── UPLOAD ───────────────────────────────────────────── */

.up-note {
  margin-top: 12px;
}

.up-form {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 24px;
}

.span-2 {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field-label {
  display: block;
}

.input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  transition: border-color .2s ease;
}

.input::placeholder {
  color: rgba(145, 166, 168, .55);
}

.input:hover:not(:disabled) {
  border-color: #2A4248;
}

.input:focus {
  border-color: var(--mint);
}

.input:focus-visible {
  outline-offset: 2px;
}

.input[aria-invalid="true"] {
  border-color: var(--error);
}

.input:disabled {
  opacity: .55;
}

.notes-input {
  height: auto;
  min-height: 168px;
  padding: 12px 14px;
  resize: vertical;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0;
}

.field-msg {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.1px;
}

.field-msg.is-error,
.form-msg {
  color: var(--error);
}

.field-msg.is-warn {
  color: var(--warn);
}

.field-help {
  margin-top: -12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

.field-help code {
  font-family: var(--f-mono);
  color: var(--fg);
}

.form-msg {
  font-size: 13px;
  line-height: 20px;
}

.form-msg:empty {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  background: var(--mint);
  box-shadow: none;
  color: var(--bg);
}

.btn-primary:hover:not(:disabled) {
  background: #ADE9DE;
  box-shadow: none;
}

.btn-danger {
  color: var(--error);
  box-shadow: inset 0 0 0 1px rgba(242, 164, 154, .4);
}

.btn-danger:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px rgba(242, 164, 154, .8);
}

.link-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: .7px;
  cursor: pointer;
  transition: color .2s ease;
}

.link-btn:hover:not(:disabled) {
  color: var(--fg);
}

.link-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.link-danger:hover:not(:disabled) {
  color: var(--error);
}

/* 파일 칸 */
.drop {
  margin-top: 12px;
  min-height: 96px;
  display: flex;
  border: 1px dashed rgba(146, 222, 208, .28);
  border-radius: 4px;
  transition: border-color .2s ease, background-color .2s ease;
}

.drop.is-over {
  border-color: var(--mint);
  background: rgba(146, 222, 208, .05);
}

.drop.is-error {
  border-color: var(--error);
}

.drop-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  transition: color .2s ease;
}

.drop-empty:hover {
  color: var(--fg);
}

.drop-empty[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

.drop-cta u {
  color: var(--fg);
  text-underline-offset: 3px;
}

.drop-hint {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .7px;
  color: var(--muted);
}

.drop-file {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.drop-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--fg);
}

.drop-size {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
}

/* 진행 막대 · 완료 */
.up-progress,
.up-done {
  margin-top: 24px;
}

.prog-list {
  margin: 8px 0 24px;
}

.prog-row {
  margin-top: 16px;
}

.prog-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0;
}

.prog-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
}

.prog-pct {
  color: var(--fg);
}

.prog-rate {
  min-width: 84px;
  text-align: right;
  color: var(--muted);
}

.prog-bar {
  height: 2px;
  margin-top: 8px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.prog-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
}

.up-done .h-30 {
  margin-top: 12px;
}

.up-done .body {
  margin-top: 12px;
}

.up-done .form-actions {
  margin-top: 24px;
}

/* 릴리스 표 */
.releases {
  margin-top: 96px;
}

.rel-table-wrap {
  margin-top: 16px;
}

.rel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.rel-table th {
  padding: 0 16px 12px 0;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 1.8px;
  color: var(--muted);
  box-shadow: inset 0 -1px 0 var(--line-soft);
}

.rel-table td {
  padding: 16px 16px 16px 0;
  vertical-align: middle;
  box-shadow: inset 0 -1px 0 var(--line-soft);
}

.rel-table .rel-version {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--fg);
}

.rel-actions {
  text-align: right;
  padding-right: 0 !important;
}

.rel-fname {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.rel-fsize {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
}

.rel-none {
  color: rgba(145, 166, 168, .5);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.4px;
  box-shadow: inset 0 0 0 1px currentColor;
}

.badge-latest { color: var(--mint); }
.badge-previous { color: var(--fg); }
.badge-archive { color: var(--muted); opacity: .8; }

.rel-foot {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rel-hint {
  font-size: 12px;
  line-height: 18px;
}

/* ── 토스트 · 확인 창 ─────────────────────────────────── */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 4px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 12px 32px rgba(0, 0, 0, .5);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  animation: toast-in .3s ease both;
  pointer-events: auto;
}

.toast::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  transform: translateY(-1px);
}

.toast.is-leaving {
  animation: toast-out .3s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

.modal {
  width: min(440px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 24px 64px rgba(0, 0, 0, .6);
  color: var(--muted);
}

.modal::backdrop {
  background: rgba(2, 5, 5, .72);
}

.modal-inner {
  padding: 32px 24px 24px;
}

.modal-title {
  margin-top: 12px;
  font-size: 22px;
  line-height: 30.8px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--fg);
}

.modal-text {
  margin-top: 12px;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── 스크롤 등장 효과 ─────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* ── 810~1199 ─────────────────────────────────────────── */

@media (max-width: 1199.98px) {
  .page-title {
    font-size: 38px;
  }

  .intro {
    padding-top: 80px;
  }

  .intro-title {
    font-size: 48px;
    letter-spacing: 12px;
  }
}

/* ── 810 미만: 한 단, 좌우 24 ─────────────────────────── */

@media (max-width: 809.98px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mnav {
    display: grid;
  }

  .cols,
  .dl-cards,
  .footer-top,
  .up-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    padding: 40px 0;
  }

  .footer-links {
    margin-top: 32px;
  }

  .page-title {
    font-size: 34px;
  }

  .page {
    padding-bottom: 64px;
  }

  .page-about {
    padding-bottom: 96px; /* ABOUT 은 모든 폭에서 본문 아래 96 */
  }

  .intro {
    padding: 64px 0 161px;
  }

  .intro-title {
    font-size: 27px;
    letter-spacing: 5px;
  }

  .intro-sub {
    font-size: 20px;
  }

  .features {
    padding: 49px 0 64px;
  }

  .card {
    padding: 24px;
  }

  .features-cols > div + div {
    margin-top: 32px;
  }

  .dl-releases {
    margin-top: 40px;
  }

  .guide {
    margin-top: 130px;
  }

  .guide-cols > div + div {
    margin-top: 48px;
  }

  .ver-cols > div + div,
  .about-cols > section + section {
    margin-top: 40px;
  }

  .july-cols > div + div {
    margin-top: 24px;
  }

  .up-versions {
    margin-top: 40px;
  }

  .ver-block + .ver-block,
  .july + .ver-block {
    margin-top: 64px;
  }

  .h-30.ver-title {
    font-size: 26px;
    line-height: 34px;
  }

  .presets {
    margin-top: 88px;
  }

  .presets .h-32 {
    font-size: 28px;
  }

  .preset {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .acc-btn {
    padding: 24px 16px;
  }

  .archive-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .archive-version {
    flex: none;
  }

  .archive-plats {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .archive-plats .plat {
    width: 100%;
  }

  .archive-plats .plat-size {
    margin-left: auto;
  }

  /* 릴리스 표 → 카드처럼 쌓기 */
  .rel-table thead {
    display: none;
  }

  .rel-table,
  .rel-table tbody,
  .rel-table tr,
  .rel-table td {
    display: block;
  }

  .rel-table tr {
    position: relative;
    padding: 16px 0;
    box-shadow: inset 0 -1px 0 var(--line-soft);
  }

  .rel-table td {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    box-shadow: none;
  }

  .rel-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 72px;
    font-family: var(--f-mono);
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 1.8px;
    color: var(--muted);
  }

  .rel-table td > span:not(.badge) {
    min-width: 0;
  }

  .rel-actions {
    position: absolute;
    top: 16px;
    right: 0;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}
