/* Shared by the Korean (index.html) and English (en/index.html) pages. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#fafaf9, #0e0f11);
  --surface: light-dark(#ffffff, #16181b);
  --surface-2: light-dark(#f2f2f0, #1d1f23);
  --line: light-dark(#e2e2df, #2a2c31);
  --text: light-dark(#18181b, #ececed);
  --muted: light-dark(#55555d, #a3a3ab);
  --accent: light-dark(#cf3d14, #ff6a3d);
  --accent-soft: light-dark(#fde7df, #3a1a10);
  --on-accent: light-dark(#ffffff, #1b0e09);
  --code-bg: light-dark(#18181b, #1d1f23);
  --code-text: #ececed;
  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
kbd {
  font: 600 0.85em/1 var(--mono);
  padding: 0.25em 0.5em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
}
code { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in oklch, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 17px; }
.brand svg { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 18px; }
.nav .gh { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav .lang { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav .lang:hover { color: var(--text); }
@media (max-width: 720px) { .nav ul { display: none; } .nav-end { margin-inline-start: auto; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 48px; padding-inline: 22px; border-radius: 999px;
  font: 650 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, var(--text)); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

.cmd {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  background: var(--code-bg); color: var(--code-text);
  border-radius: 12px; padding: 6px 6px 6px 16px;
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding-block: 8px; scrollbar-width: none; }
.cmd code::before { content: "$ "; color: #8b8b93; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; padding-inline: 12px; border-radius: 8px; border: 0; cursor: pointer;
  background: #2c2e33; color: var(--code-text); font: 600 14px/1 var(--font);
}
.copy:hover { background: #3a3c42; }
.copy[data-done] { color: #7ee2a8; }
.copy .i-done, .copy[data-done] .i-idle { display: none; }
.copy[data-done] .i-done { display: inline; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 760; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; }
.hero .actions { margin-top: 32px; display: grid; gap: 14px; max-width: 520px; }
.hero .actions .btn { justify-self: start; }
.editor { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 48px light-dark(rgb(60 30 20 / .12), rgb(0 0 0 / .5))); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
.demo { grid-column: 1 / -1; margin: clamp(8px, 2vw, 24px) auto 0; width: 100%; max-width: 960px; }
.demo video {
  display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface-2);
  box-shadow: 0 24px 48px light-dark(rgb(60 30 20 / .14), rgb(0 0 0 / .5));
}
.demo figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 15px; text-wrap: balance; }

/* editor illustration */
.ed-win { fill: var(--surface); stroke: var(--line); }
.ed-bar { fill: var(--surface-2); }
.ed-line { stroke: var(--line); }
.ed-screen { fill: light-dark(#f6f6f4, #22252a); }
.ed-block { fill: light-dark(#e6e6e2, #30333a); }
.ed-block-2 { fill: light-dark(#d9d9d4, #3b3f47); }
.ed-track { fill: var(--surface-2); }
.ed-clip { fill: light-dark(#d4d8de, #39404b); }
.ed-cap { fill: var(--accent-soft); stroke: var(--accent); }
.ed-cap-g { fill: var(--accent); }
.ed-hatch { stroke: var(--accent); }
.ed-cut { fill: color-mix(in oklch, var(--accent) 8%, transparent); stroke: var(--accent); }
.ed-play { fill: var(--text); stroke: var(--text); }
.ed-muted { fill: var(--muted); }
.ed-cursor { fill: var(--text); stroke: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .ed-playhead { animation: sweep 7s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .ed-lens { animation: breathe 3.5s ease-in-out infinite; transform-origin: 400px 150px; transform-box: view-box; }
}
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(380px); } }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* sections */
section { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 60px; }
.sec-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(27px, 3.2vw, 38px); font-weight: 740; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* features bento */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.tile h3 { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.tile h3 .icon { color: var(--accent); width: 22px; height: 22px; }
.tile p { color: var(--muted); }
.tile-zoom { grid-row: span 2; background:
  radial-gradient(120% 90% at 100% 100%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%),
  var(--surface); }
.tile-zoom svg { margin-top: auto; width: 100%; height: auto; }
.tile-cut { background:
  repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in oklch, var(--accent) 9%, transparent) 9px 11px),
  var(--surface); }
.tile-menu { background: var(--surface-2); }
.keys { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 15px; color: var(--muted); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.menu-mock { margin-top: 8px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 14.5px; }
.menu-mock div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 6px; }
.menu-mock .hot { font-weight: 600; }
.menu-mock .hot kbd { font-size: 12px; }
.menu-mock hr { border: 0; border-top: 1px solid var(--line); margin: 3px 6px; }
.sw { width: 30px; height: 18px; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.sw.on { background: var(--accent); }
.sw.on::after { left: 14px; }
.more { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.more li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.more b { font-size: 16px; }
.more span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .tile-zoom { grid-row: auto; }
  .tile { padding: 22px; }
}

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.compare .sec-head { margin-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
thead th.us { color: var(--accent); }
tbody th { font-weight: 600; color: var(--muted); white-space: nowrap; }
tbody tr + tr > * { border-top: 1px solid color-mix(in oklch, var(--line) 60%, transparent); }
td.us { font-weight: 650; background: color-mix(in oklch, var(--accent) 6%, transparent); }
@media (max-width: 880px) { .compare { grid-template-columns: 1fr; } }
@media (max-width: 560px) { table { min-width: 0; font-size: 14.5px; } th, td { padding: 12px 10px; } tbody th { white-space: normal; } }

/* install */
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); display: grid; gap: 14px; align-content: start; }
.path h3 { font-size: 19px; }
.path p { color: var(--muted); }
.path ol { margin: 0; padding-left: 1.3em; color: var(--muted); display: grid; gap: 6px; }
.after { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.note { border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 12px; align-content: start; }
.note h3 { font-size: 17px; }
.note p { color: var(--muted); font-size: 15.5px; }
.note-warn { background: var(--accent-soft); }
.note-warn p { color: var(--text); }
.note-perm { border: 1px dashed var(--line); }
@media (max-width: 820px) { .install, .after { grid-template-columns: 1fr; } .path { padding: 22px; } }

/* faq */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 650; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--muted); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 65ch; }

/* github band */
.gh-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.gh-band h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 720; }
.gh-band p { margin-top: 8px; color: var(--muted); }
.gh-actions { display: flex; flex-wrap: wrap; gap: 12px; }


.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer { padding-block: 28px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot-links { display: flex; gap: 20px; }
