:root {
  --bg: #0b0b0f;
  --surface: #15151c;
  --line: #26262f;
  --text: #f4f3ef;
  --muted: #a3a2ab;
  --accent: #ff5a73;
  --accent-ink: #1a0509;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top, main, .bottom { width: min(1120px, 100% - 32px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand-icon { width: 28px; height: 28px; margin: -2px -2px -2px -4px; }
.brand-mark { width: 26px; height: 14px; background: #000; border: 1px solid #333; border-top: 0; border-radius: 0 0 8px 8px; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: 4px; width: 8px; height: 6px; margin-left: -4px; border-radius: 50%; background: var(--accent); }
.top-nav { display: flex; align-items: center; gap: 20px; }
.lang { position: relative; z-index: 5; }
.lang details { border: 0; padding: 0; }
.lang summary {
  display: grid; grid-template-columns: 17px auto 12px; align-items: center; gap: 8px; min-height: 38px;
  padding: 8px 10px; border: 1px solid #ffffff14; border-radius: 9px; background: #ffffff03;
  color: var(--text); font-size: 13px; line-height: 20px; white-space: nowrap; cursor: pointer; list-style: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang-globe { width: 17px; height: 17px; color: var(--muted); }
.lang-chevron { width: 12px; height: 12px; color: var(--muted); transition: transform .16s ease; }
.lang details[open] summary { background: #ffffff07; border-color: #ffffff2b; }
.lang details[open] .lang-chevron { transform: rotate(180deg); }
.lang details:not([open]) .lang-options { display: none; }
.lang-options {
  position: absolute; right: 0; top: calc(100% + 7px); min-width: 164px; padding: 5px;
  background: #1d1d25; border: 1px solid #ffffff24; border-radius: 11px; box-shadow: 0 10px 28px #0005;
}
.lang-options a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px;
  padding: 8px 10px; border-radius: 6px; font-size: 13px; line-height: 20px; text-decoration: none; color: var(--text);
}
.lang-options a[aria-current] { background: #ff5a730f; color: var(--accent); }
.lang-options a[aria-current]::after {
  content: ""; width: 5px; height: 9px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); margin-right: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .lang summary:hover { background: #ffffff07; border-color: #ffffff2b; }
  .lang-options a:hover { background: #ffffff0d; }
}
@media (prefers-reduced-motion: reduce) { .lang summary, .lang-chevron { transition: none; } }
:lang(ko) h1 { letter-spacing: -0.02em; word-break: keep-all; }
:lang(ko) p, :lang(ko) h2, :lang(ko) dd, :lang(ko) summary { word-break: keep-all; }
.top-cta { font-size: 14px; color: var(--muted); text-decoration: none; }
.top-cta:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 48px 0 88px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
h1 { margin: 0; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 20px 0 32px; font-size: 19px; color: var(--muted); max-width: 30em; }

.buy-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.buy-button:hover { transform: translateY(-1px); filter: brightness(1.07); }
.buy-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.buy-button.is-unavailable { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; transform: none; filter: none; }
.price { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Demo stage */
.stage { margin: 0; }
.screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  border: 10px solid #1b1b20; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px #2c2c33;
  background:
    radial-gradient(120% 90% at 15% 110%, #ff7a59 0%, transparent 55%),
    radial-gradient(90% 80% at 95% 100%, #7b5cff 0%, transparent 60%),
    linear-gradient(180deg, #243b6b 0%, #3b2a66 60%, #5a2d5c 100%);
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 24px; display: flex; align-items: center; gap: 16px; padding: 0 14px;
  font-size: 12px; background: rgba(20, 20, 30, .35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.menubar .apple { width: 11px; height: 13px; border-radius: 50% 50% 45% 45%; background: #fff; opacity: .9; }
.menubar-right { margin-left: auto; }
#face { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.now-playing {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px;
  background: rgba(20, 20, 28, .55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.08); font-size: 13px;
}
.now-playing small { display: block; color: var(--muted); }
.art { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #ff5a73, #ffb35a); }

.controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.segmented button, .play {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 9px; cursor: pointer;
}
.segmented button[aria-checked="true"] { background: #2a2a34; color: var(--text); }
.play { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.segmented button:focus-visible, .play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Content */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 88px; }
.features article { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.features h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.requirements, .faq { max-width: 760px; padding-bottom: 72px; }
.requirements h2, .faq h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 20px; }
dl { margin: 0; border-top: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.faq a, .legal a { color: var(--text); }
.legal { padding-top: 24px; }
.legal h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 12px; }
.legal h2 { font-size: 18px; margin: 28px 0 6px; }
.legal p { color: var(--muted); }
.legal .updated { font-size: 13px; margin-top: 32px; }
.bottom { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  dl div { grid-template-columns: 1fr; gap: 2px; }
  .screen { border-width: 6px; }
  .now-playing { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .buy-button { transition: none; }
}

/* Demo transport: play/pause + sound on/off */
.transport { display: flex; gap: 8px; }
.sound { display: inline-flex; align-items: center; gap: 8px; }
.sound-icon { width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z' fill='black'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E"); }
.sound[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.sound[aria-pressed="true"] .sound-icon {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z' fill='black'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
