@import url("/fonts/pretendard-1.3.9/pretendardvariable-dynamic-subset.css");

:root {
  --bg: #ffffff;
  --ink: #09090b;
  --ink-mid: #27272a;
  --soft: #52525b;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-strong: #18181b;
  --surface: #fafafa;
  --accent: #2563eb;
  --y: #15803d;
  --y-bg: #dcfce7;
  --b: #b45309;
  --b-bg: #fef3c7;
  --n: #1d4ed8;
  --n-bg: #dbeafe;
  --x: #64748b;
  --x-bg: #f1f5f9;
  --e: #b91c1c;
  --e-bg: #fee2e2;
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent);
}

/* ================= STICKY MINIMAL HEADER ================= */
.top {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top .in {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

.brand .tld {
  color: var(--accent);
  font-weight: 700;
}

.brand:hover {
  color: var(--ink);
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav a:hover,
.nav a.on {
  color: var(--ink);
}

.nav a.nav-cta {
  color: var(--accent);
  font-weight: 700;
}

/* ================= MAIN CONTAINER ================= */
main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 64px 40px 120px;
}

/* ================= EDITORIAL HERO & DIRECTORY ================= */
.hero {
  padding-bottom: 64px;
}

.hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero > p {
  color: var(--soft);
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 48px;
  max-width: 820px;
}

/* Architectural 3-Column Index (No pills, no boxes) */
.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 2px solid var(--line-strong);
  padding-top: 28px;
}

.index-col h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.index-list li {
  border-bottom: 1px solid var(--line);
}

.index-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  transition: padding-left 0.15s ease, color 0.15s ease;
}

.index-link:hover {
  color: var(--accent);
  padding-left: 10px;
}

.index-link-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.index-num {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.index-os {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* ================= BLOG STREAM & EDITORIAL ARTICLES ================= */
.cat {
  scroll-margin-top: 72px;
}

.blog-stream {
  display: flex;
  flex-direction: column;
}

article {
  padding: 88px 0;
  border-top: 2px solid var(--line-strong);
  scroll-margin-top: 72px;
}

.post-meta-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-meta-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.post-idx {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

.post-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 600;
}

.post-links a {
  color: var(--muted);
}

.post-links a:hover {
  color: var(--ink);
}

article h1,
article h2.post-title {
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 0 12px;
  padding-top: 0;
  border-top: 0;
  text-transform: none;
  color: var(--ink);
}

article .lead {
  font-size: 21px;
  font-weight: 500;
  color: var(--soft);
  margin: 0 0 36px;
  line-height: 1.5;
}

/* ================= HERO SCREENSHOT ================= */
figure {
  margin: 0;
}

figure.hero-fig {
  margin: 0 0 44px;
}

figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
}

figure img[src*="musicvideoeditormobile"] {
  max-width: 260px;
  max-height: 540px;
  border-radius: 16px;
}

figure img.svg {
  width: 100%;
  background: #111827;
  padding: 36px 48px;
  max-height: 520px;
  object-fit: contain;
}

figcaption {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
}

/* ================= INTRO PROSE ================= */
.intro-prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 56px;
  max-width: 1080px;
}

.intro-prose p,
article > p {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--ink-mid);
}

/* ================= SECTION HEADINGS ================= */
article h2 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 64px 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

/* ================= 2-COLUMN ARCHITECTURAL FEATURE GRID (NO BOXES) ================= */
article ul.feat-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  row-gap: 36px;
}

article ul.feat-grid li {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feat-title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}

.feat-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--soft);
}

/* ================= 2-COLUMN LARGE SCREENSHOT GALLERY ================= */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.shots figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  background: #111827;
}

.shots figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
}

/* ================= SHORTCUTS & USAGE LIST ================= */
article ul.usage-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  row-gap: 0;
}

article ul.usage-grid li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15.5px;
  color: var(--soft);
}

.kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================= RELEASE HISTORY ================= */
.rel {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rel li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--soft);
}

.rel b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

/* ================= COMPARE TABLE ================= */
.tablewrap {
  overflow-x: auto;
  border-top: 2px solid var(--line-strong);
  margin: 16px 0 48px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-strong);
}

tr:hover td {
  background: var(--surface);
}

th:first-child,
td:first-child {
  min-width: 260px;
  font-weight: 650;
  color: var(--ink);
  padding-left: 4px;
}

td.s {
  white-space: nowrap;
  width: 110px;
}

.st {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
}

.st.y { color: var(--y); background: var(--y-bg); }
.st.b { color: var(--b); background: var(--b-bg); }
.st.n { color: var(--n); background: var(--n-bg); }
.st.x { color: var(--x); background: var(--x-bg); }
.st.e { color: var(--e); background: var(--e-bg); }

td.note2 {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
  min-width: 300px;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

/* ================= LIGHTBOX MODAL ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  background: #111827;
}

.lightbox-cap {
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 500;
}

/* ================= FOOTER ================= */
footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 40px 64px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .top .in,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .index-grid,
  article ul.feat-grid,
  .shots,
  article ul.usage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  article {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  article h1,
  article h2.post-title {
    font-size: clamp(20px, 6.6vw, 32px);
  }
  .index-grid,
  article ul.feat-grid,
  .shots,
  article ul.usage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  article ul.usage-grid li {
    flex-wrap: wrap;
    min-width: 0;
  }
  .kbd {
    white-space: normal;
    max-width: 100%;
    flex-shrink: 1;
  }
  .top .in {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .brand {
    font-size: 18px;
  }
  .nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    font-size: 14px;
    white-space: nowrap;
  }
  .cat,
  article {
    scroll-margin-top: 76px;
  }
}

/* ================= DOWNLOAD STATUS ================= */
.download-soon {
  display: inline-block;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
}

/* ================= EXPANDABLE FULL HELP & RELEASE DRAWERS ================= */
.doc-drawer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-drawer + .doc-drawer {
  margin-top: 0;
  border-top: none;
}

.doc-drawer summary {
  cursor: pointer;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}

.doc-drawer summary::-webkit-details-marker {
  display: none;
}

.doc-drawer summary:hover {
  color: var(--accent);
}

.doc-drawer summary::after {
  content: "+ 펼쳐서 보기";
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.doc-drawer[open] summary::after {
  content: "− 접기";
  color: var(--muted);
}

.doc-drawer-body {
  padding: 16px 0 32px;
  border-top: 1px dashed var(--line);
}

.help-sec {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.help-sec:last-child {
  border-bottom: none;
}

.help-sec h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}

.help-sec h4 {
  font-size: 16.5px;
  font-weight: 750;
  margin: 20px 0 8px;
  color: var(--ink);
}

.help-sec h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--ink-mid);
}

.help-sec p {
  margin: 8px 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--soft);
}

.help-sec ul {
  margin: 8px 0;
  padding-left: 1.3em;
}

.help-sec li {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--soft);
}

.help-sec code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink);
}

.video-embed {
  margin: 16px 0;
  aspect-ratio: 16 / 9;
  max-width: 860px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rel-detail-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rel-detail-item:last-child {
  border-bottom: none;
}

.rel-detail-head {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.rel-detail-head .ver-num {
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 6px;
}

.rel-detail-head .ver-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-right: 8px;
}

.rel-detail-bullets {
  margin: 4px 0 0;
  padding-left: 1.3em;
  font-size: 14.5px;
  color: var(--soft);
  line-height: 1.68;
}

.rel-detail-bullets li {
  margin: 3px 0;
}
