:root {
  color-scheme: light;
  color: #19191b;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #19191b;
  --secondary: #505157;
  --muted: #63646b;
  --surface: #f4f4f5;
  --line: #e6e6e8;
  --accent: #2546ac;
  --control-radius: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header { min-height: 80px; border-bottom: 1px solid var(--line); }
.brand, nav, .button, .secondary { display: inline-flex; align-items: center; }
.brand { gap: 8px; min-height: 44px; font-size: 18px; font-weight: 600; }
.brand img { border-radius: 6px; }
nav { gap: 24px; font-size: 14px; }
nav a, .footer > a:last-child { display: inline-flex; align-items: center; min-height: 44px; }
nav a:not(.button), .footer > a:last-child { color: var(--secondary); }
nav a:not(.button):hover, .footer > a:last-child:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button, .secondary {
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.button { background: var(--ink); color: #fff; }
.button:hover { background: #37373c; }
.button.small { min-height: 44px; }
.icon { width: 16px; height: 16px; flex: none; }
.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.secondary:hover { background: var(--surface); border-color: #cdced2; }
@media (prefers-reduced-motion: no-preference) {
  .button:active, .secondary:active { transform: scale(.98); }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  padding-block: 72px 48px;
}
.eyebrow { margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 20px; }
h1 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 500; line-height: 1.06; letter-spacing: -.042em; }
.intro { max-width: 376px; justify-self: end; }
.intro > p:first-child { margin-bottom: 20px; color: var(--secondary); font-size: 18px; line-height: 28px; }
.meta { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }

.showcase { scroll-margin-top: 16px; }
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  padding-bottom: 12px;
}
.preview-controls { display: flex; flex-wrap: wrap; gap: 4px; }
.preview-controls button {
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 160ms var(--ease);
}
.preview-controls button:hover { background: var(--surface); }
.preview-controls button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.demo-label, figcaption { color: var(--muted); font-size: 13px; line-height: 20px; }
.stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1600 / 1085;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
figcaption { margin-top: 12px; }

.features {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: 48px;
  margin-block: 96px;
}
h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 400; line-height: 1.12; letter-spacing: -.032em; }
.feature-list > div {
  display: grid;
  grid-template-columns: minmax(132px, .72fr) minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.feature-list > div:last-child { border-bottom: 1px solid var(--line); }
h3 { font-size: 15px; font-weight: 600; line-height: 24px; }
.feature-list p, .characters p, .download .description { color: var(--secondary); font-size: 15px; line-height: 24px; }
.characters {
  overflow: hidden;
  border-radius: 16px;
  background: #eceef0;
}
.characters > div { padding: 40px 40px 8px; }
.characters p { margin-top: 12px; }
.characters img { width: 100%; height: auto; }
.download { padding-block: 96px; text-align: center; }
.download > img { margin: 0 auto 20px; border-radius: 16px; }
.download > p { max-width: 448px; margin: 12px auto 0; }
.download-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.download .access { color: var(--muted); font-size: 13px; line-height: 20px; }
.footer { border-top: 1px solid var(--line); padding-block: 12px; font-size: 14px; }

:lang(ko) h1 { font-size: clamp(40px, 5.3vw, 72px); line-height: 1.12; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) p { word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero, .features { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-block: 48px 32px; }
  .intro { justify-self: start; max-width: 448px; }
  .features { margin-block: 64px; }
  .feature-list > div { grid-template-columns: minmax(120px, .6fr) minmax(0, 1fr); }
  .characters > div { padding: 24px 24px 8px; }
  .download { padding-block: 64px; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 64px; }
  nav { gap: 12px; }
  nav a:first-child { display: none; }
  .button.small { padding-inline: 12px; }
  h1 { font-size: clamp(36px, 9.8vw, 48px); }
  :lang(ko) h1 { font-size: clamp(32px, 8.8vw, 44px); }
  .intro > p:first-child { font-size: 16px; line-height: 24px; }
  .preview-bar { align-items: flex-start; flex-direction: column-reverse; }
  .preview-controls button { padding-inline: 8px; }
  .stage { border-radius: 12px; }
  .feature-list > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
