:root {
  color-scheme: light;
  --ink: #141218;
  --muted: #686271;
  --paper: #f7f5fa;
  --card: #ffffff;
  --line: #e7e1eb;
  --purple: #a98bdf;
  --purple-dark: #6f51a8;
  --black: #0d0c10;
  --white: #ffffff;
  --max: 1120px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bba0eb; outline-offset: 4px; border-radius: 4px; }
body [data-lang="en"] { display: none; }
html[data-lang="en"] [data-lang="ko"] { display: none; }
html[data-lang="en"] [data-lang="en"] { display: revert; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #111; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand { width: 158px; display: inline-flex; }
.site-header .brand img { width: 100%; height: auto; display: block; }
.site-header.dark .brand img { filter: invert(1) brightness(1.8); }
.nav-wrap { display: flex; align-items: center; gap: 22px; }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; }
.site-header.dark .main-nav { color: rgba(255,255,255,.78); }
.main-nav a:hover { color: var(--purple); }
.language-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid rgba(128,112,146,.28); border-radius: 999px; background: rgba(255,255,255,.06); }
.language-switch button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; color: inherit; background: transparent; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
html:not([data-lang="en"]) [data-set-lang="ko"], html[data-lang="ko"] [data-set-lang="ko"], html[data-lang="en"] [data-set-lang="en"] { color: #17131e; background: #fff; }
.site-header:not(.dark) .language-switch { background: #fff; }
.site-header:not(.dark) .language-switch button { color: var(--muted); }
.site-header:not(.dark) .language-switch button[aria-pressed="true"] { color: var(--ink); background: #eee8f6; }

.dark-stage { overflow: hidden; color: white; background: radial-gradient(circle at 72% 26%, rgba(169,139,223,.24), transparent 28rem), var(--black); }
.hero { min-height: 690px; padding: 72px 0 86px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .74fr); align-items: center; gap: 76px; }
.eyebrow, .kicker { margin: 0 0 20px; color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(46px, 7vw, 84px); line-height: .98; letter-spacing: -.065em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { margin-top: 10px; color: var(--purple); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin: 28px 0 0; color: rgba(255,255,255,.67); font-size: clamp(16px, 2vw, 20px); line-height: 1.75; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 800; }
.button.primary { color: #161019; background: var(--purple); }
.button.secondary { color: white; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.store-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.app-store { width: 148px; display: inline-flex; }
.app-store img { width: 100%; height: auto; display: block; }
.play-coming { min-width: 148px; padding: 8px 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; color: rgba(255,255,255,.9); }
.play-coming small { color: rgba(255,255,255,.48); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.play-coming strong { margin-top: 2px; font-size: 13px; }
.device-wrap { position: relative; min-height: 540px; display: grid; place-items: center; }
.device-glow { position: absolute; width: 390px; height: 390px; border-radius: 50%; background: rgba(169,139,223,.18); filter: blur(40px); }
.device { position: relative; width: min(286px, 70vw); padding: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 42px; background: #070708; box-shadow: 0 35px 80px rgba(0,0,0,.52); transform: rotate(2deg); }
.device img { width: 100%; display: block; border-radius: 32px; }

.section { padding: 96px 0; }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: end; }
.section-heading h2, .page-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.055em; }
.section-heading p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.feature-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { min-height: 205px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature-card .number { color: var(--purple-dark); font: 800 10px/1 monospace; letter-spacing: .12em; }
.feature-card h3 { margin: auto 0 10px; font-size: 19px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-card.wide { grid-column: span 2; background: #17141c; color: white; border-color: #17141c; }
.feature-card.wide p { color: rgba(255,255,255,.6); }
.guide-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 32px; border-radius: 28px; color: white; background: linear-gradient(135deg, #34274a, #17141c 72%); }
.guide-callout h2 { margin: 7px 0 8px; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.04em; }
.guide-callout p { margin: 0; color: rgba(255,255,255,.62); line-height: 1.65; }

.inner-page { min-height: 100vh; }
.page-header { border-bottom: 1px solid var(--line); background: rgba(247,245,250,.94); }
.page-hero { padding: 74px 0 54px; }
.page-hero p:last-child { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.breadcrumbs { padding-top: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.content { padding: 0 0 96px; }
.toc { margin-bottom: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.toc strong { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .08em; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; }
.toc li { margin: 8px 0; break-inside: avoid; color: var(--muted); font-size: 13px; }
.toc a:hover { color: var(--purple-dark); }
.guide-list { display: grid; gap: 14px; }
.guide-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: white; scroll-margin-top: 20px; }
.guide-card h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.03em; }
.guide-card > p { margin: 0; color: var(--muted); line-height: 1.7; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; line-height: 1.55; }
.steps li::before { content: counter(step); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--purple-dark); background: #eee8f7; font-size: 12px; font-weight: 850; }
.notice { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--purple); color: #513d70; background: #f0eafa; font-size: 13px; line-height: 1.6; }

.effective-date { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.effective-date span { color: var(--purple-dark); font-weight: 800; }
.policy-list { border-top: 1px solid var(--line); }
.policy-item { padding: 29px 0; display: grid; grid-template-columns: 48px 230px 1fr; gap: 22px; border-bottom: 1px solid var(--line); }
.policy-item > span { color: var(--purple-dark); font: 800 10px/1 monospace; }
.policy-item h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.policy-body { color: var(--muted); font-size: 14px; line-height: 1.8; }
.policy-body p { margin: 0 0 12px; }
.policy-body p:last-child { margin-bottom: 0; }
.policy-body ul { margin: 6px 0 14px; padding-left: 20px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 8px; }
.policy-links a { padding: 8px 12px; border: 1px solid #d9cdec; border-radius: 999px; color: var(--purple-dark); font-size: 12px; font-weight: 750; }
.discogs-card, .support-card { margin-top: 28px; padding: 24px; border-radius: 20px; background: #eeeaf2; }
.discogs-card p, .support-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.support-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.support-card { margin: 0; background: white; border: 1px solid var(--line); }
.support-card h2 { margin: 0 0 10px; font-size: 22px; }
.support-card a { color: var(--purple-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.support-links { display: grid; gap: 10px; }
.support-links a { padding: 14px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }

.site-footer { padding: 38px 0 34px; color: white; background: var(--black); }
.footer-top { min-height: 58px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-logo { width: 142px; filter: invert(1) brightness(1.8); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 750; }
.footer-bottom { padding-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.source-notice { display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,.44); font-size: 10px; line-height: 1.5; }
.source-notice b, .source-notice a { color: rgba(255,255,255,.75); }
.youtube-attribution { width: fit-content; margin-top: 7px; display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72) !important; }
.youtube-mark { padding: 5px 7px; display: inline-flex; border-radius: 4px; background: #fff; }
.youtube-mark img { width: 98px; height: auto; display: block; }
.copyright { margin: 0; color: rgba(255,255,255,.4); font-size: 10px; white-space: nowrap; }

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 30px; color: white; text-align: center; background: var(--black); }
.not-found img { width: 170px; filter: invert(1) brightness(1.8); }
.not-found h1 { margin: 30px 0 8px; font-size: clamp(54px, 13vw, 110px); letter-spacing: -.07em; }
.not-found p { margin: 0 0 24px; color: rgba(255,255,255,.62); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .device-wrap { min-height: 480px; }
  .device { width: min(260px, 68vw); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .policy-item { grid-template-columns: 42px 180px 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 32px, var(--max)); }
  .site-header { padding: 14px 0; align-items: flex-start; }
  .site-header .brand { width: 134px; margin-top: 7px; }
  .nav-wrap { flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
  .main-nav { max-width: 265px; flex-wrap: wrap; justify-content: flex-end; gap: 8px 13px; font-size: 11px; }
  .hero { min-height: 0; padding: 56px 0 68px; }
  .hero h1 { font-size: clamp(40px, 13vw, 61px); }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .device-wrap { min-height: 430px; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: auto; }
  .guide-callout { grid-template-columns: 1fr; }
  .page-hero { padding: 52px 0 42px; }
  .toc ol { columns: 1; }
  .policy-item { grid-template-columns: 32px 1fr; gap: 12px; }
  .policy-item h2 { grid-column: 2; }
  .policy-body { grid-column: 2; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 28px); }
  .site-header .brand { width: 118px; }
  .main-nav { max-width: 235px; }
  .language-switch button { padding: 0 8px; }
  .hero h1 { font-size: 39px; }
  .hero-actions .button { width: 100%; }
  .store-row { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 36px; }
  .guide-card, .support-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
