:root {
  --bg: #fbf8fd;
  --surface: #ffffff;
  --surface-2: #f3eef8;
  --text: #1c1a22;
  --muted: #615c6b;
  --primary: #6d4dff;
  --primary-deep: #5838f0;
  --primary-soft: #efe9ff;
  --primary-text: #6846f5;
  --line: rgba(28, 26, 34, 0.08);
  --shadow: 0 12px 40px rgba(88, 56, 180, 0.1);
  --radius: 28px;
  --max: 1120px;
  --font: "Outfit", system-ui, sans-serif;
  color-scheme: light;
}

html.dark {
  --bg: #131218;
  --surface: #1e1c26;
  --surface-2: #282533;
  --text: #f6f2fb;
  --muted: #b7b0c4;
  --primary: #cbbdff;
  --primary-deep: #b6a4ff;
  --primary-soft: #322b4a;
  --primary-text: #d4c8ff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(520px 360px at -8% 8%, rgba(109, 77, 255, 0.16), transparent 70%),
    radial-gradient(480px 420px at 110% 18%, rgba(176, 140, 255, 0.18), transparent 68%),
    radial-gradient(420px 320px at -10% 72%, rgba(109, 77, 255, 0.1), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 12px; }
noscript nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 12px 16px 0;
}
noscript nav a { color: var(--primary-text); font-weight: 600; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(980px, 100%);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.brand .material-symbols-outlined { color: var(--primary-text); }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a[aria-current="page"],
.nav-links a:hover {
  background: var(--primary-soft);
  color: var(--primary-text);
}
.nav-download {
  margin-left: 6px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--primary-soft);
  color: var(--primary-text);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 8px 20px rgba(109, 77, 255, 0.28);
}
.btn-primary:hover { background: var(--primary-deep); }
html.dark .btn-primary { color: #1c1433 !important; }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-text); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 54px auto 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.88rem;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary-text);
}
.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.chip strong { color: var(--text); font-weight: 700; }

.stage-art {
  position: relative;
  display: grid;
  place-items: center;
}
.stage-art img,
.hero-shot {
  width: auto;
  max-width: min(100%, 280px);
  max-height: 580px;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(60, 30, 120, 0.22);
}
.shot-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px auto 28px;
}
.shot-row img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(60, 30, 120, 0.16);
}
.shot-phone,
.shot-tablet {
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(60, 30, 120, 0.22);
}
.shot-phone { width: min(100%, 300px); }
.shot-tablet { display: none; width: min(100%, 820px); }
[data-showcase].is-tablet .shot-phone { display: none; }
[data-showcase].is-tablet .shot-tablet { display: block; }
.phone-wrap { position: relative; }
.float-card {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.float-note { top: 28px; right: -8px; }
.float-volume { left: -154px; bottom: 72px; }
.float-card small { display: block; color: var(--muted); font-weight: 500; }
.bubble {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-text);
}

.device {
  width: 270px;
  background: #221c33;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(70, 40, 140, 0.22);
  color: white;
}
.bezel {
  background: linear-gradient(180deg, #2a2340, #171322);
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  padding: 18px 16px 16px;
}
.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.art {
  height: 180px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 30%, #ffd0ef, transparent 40%),
    radial-gradient(circle at 70% 60%, #8d7bff, transparent 42%),
    linear-gradient(145deg, #ff7ac8, #6d4dff 55%, #2a1d66);
}
.track-title { margin-top: 16px; font-weight: 700; font-size: 1.15rem; }
.track-sub { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.progress {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.progress span { display: block; width: 42%; height: 100%; background: #cbbdff; }
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 8px 8px;
}
.play {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: white;
  color: #2a1d66;
  display: grid;
  place-items: center;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 72px auto;
}
.section h2 {
  text-align: center;
  color: var(--primary-text);
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}
.section-intro {
  text-align: center;
  color: var(--muted);
  margin: 10px auto 28px;
  max-width: 38rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.feature .bubble { margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

.device-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 8px;
}
.device-switch button,
.filters button {
  border: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.device-switch button.is-on,
.filters button.is-on {
  background: var(--primary);
  color: white;
}
html.dark .device-switch button.is-on,
html.dark .filters button.is-on { color: #1c1433; }

.showcase-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  min-height: 460px;
}
.kicker {
  color: var(--primary-text);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.showcase-copy h3 {
  margin: 8px 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.showcase-copy p { color: var(--muted); }
.view-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.88rem;
}
[data-slide] { display: none; }
[data-slide].is-active { display: contents; }
.showcase-visual { display: flex; justify-content: center; }
.arrows {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.arrows button, .dot {
  border: 0;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}
.arrows button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 28%, var(--surface-2));
  padding: 0;
}
.dot.is-on { width: 26px; background: var(--primary); }

.mock {
  width: 280px;
  min-height: 460px;
  border-radius: 32px;
  background: #1b1630;
  color: white;
  padding: 18px 16px;
  box-shadow: 0 24px 60px rgba(60, 30, 120, 0.2);
  overflow: hidden;
}
.is-tablet .mock {
  width: min(680px, 100%);
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.pane { display: none; }
.is-tablet .pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 12px;
}
.row, .result, .lyric, .setting {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cover, .swatch {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
  background: linear-gradient(135deg, #ff8ad4, #6d4dff);
}
.swatch.b { background: linear-gradient(135deg, #7ee0ff, #6d4dff); }
.swatch.c { background: linear-gradient(135deg, #ffe08a, #ff7a9a); }
.swatch.d { background: linear-gradient(135deg, #b8ff9a, #3ecf8e); }
.grow { flex: 1; }
.muted { color: rgba(255,255,255,0.62); font-size: 0.82rem; }
.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.album {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 8px;
  font-size: 0.82rem;
}
.album .art { height: 78px; margin-bottom: 8px; }
.lyric { justify-content: space-between; padding: 7px 0; color: rgba(255,255,255,0.55); }
.lyric.on { color: white; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 18px; }
.bars span {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #e4dbff, #6d4dff);
}
.searchbar, .setting {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 12px;
}
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 16px;
  border-radius: 28px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.news-card img,
.article-banner,
.update-row img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.news-card img {
  height: 148px;
  border-radius: 18px;
}
.article-banner {
  height: auto;
  border-radius: 24px;
  margin: 8px 0 20px;
}
.news-card .flag {
  color: var(--primary-text);
  font-weight: 700;
}
.news-card time { color: var(--muted); font-size: 0.88rem; }
.news-card h3 { margin: 6px 0; letter-spacing: -0.02em; font-size: 1.08rem; }
.news-card p { color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 26px; }

.footer {
  width: min(1180px, calc(100% - 24px));
  margin: 20px auto 24px;
  background: color-mix(in srgb, var(--surface-2) 80%, var(--bg));
  border-radius: 36px;
  padding: 36px 32px 18px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-bottom: 12px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.footer a:hover { color: var(--primary-text); }
.footer-brand p { color: var(--muted); margin: 12px 0 16px; max-width: 26rem; }
.theme-switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.theme-btn {
  border: 0;
  background: var(--surface);
  width: 64px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.copyright {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.copyright a { color: var(--muted); }

.page {
  width: min(860px, calc(100% - 40px));
  margin: 48px auto 72px;
}
.page.wide { width: min(var(--max), calc(100% - 40px)); }
.page h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.page .lede { margin-bottom: 28px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel + .panel, .stack-gap > * + * { margin-top: 14px; }
.steps { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.steps li + li { margin-top: 6px; }
.meta { color: var(--muted); margin-bottom: 8px; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}
.search:focus { border-color: var(--primary); }
.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 10px;
  font-size: 1.25rem;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  margin-top: 8px;
}
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin-top: 8px; }

.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; }
label span { font-size: 0.92rem; }
input, select, textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
}
textarea { min-height: 140px; resize: vertical; }
.article h1 { margin-bottom: 8px; }
.article .body { margin-top: 18px; display: grid; gap: 12px; }
.article .body p, .article .body li { color: var(--muted); }
.article .body h2 { scroll-margin-top: 96px; }
.article .body ul, .article .body ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 6px; }
.article .body li ul, .article .body li ol { margin-top: 6px; }
.article .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.article .toc a { font-weight: 600; }
.update-list { display: grid; gap: 12px; }
.update-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
}
.update-row img {
  height: 112px;
  border-radius: 14px;
}
.update-row h2 { font-size: 1.15rem; letter-spacing: -0.02em; }
.update-row p { color: var(--muted); margin-top: 4px; }
.update-row time { color: var(--primary-text); font-weight: 700; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 70%, white);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero, .showcase-layout, .feature-grid, .news-grid, .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stage-art { min-height: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { border-radius: 24px; flex-wrap: wrap; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 4px 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-download { margin: 4px 0 0; text-align: center; }
  .hero, .showcase-layout, .feature-grid, .news-grid, .footer-inner, .update-row {
    grid-template-columns: 1fr;
  }
  .stage-art { min-height: 0; }
  .shot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-phone { width: min(100%, 260px); }
  .is-tablet .mock { grid-template-columns: 1fr; min-height: 0; }
  .page, .section, .hero { width: min(100% - 28px, var(--max)); }
}

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