/* ============================================================
   Aria v0.8.7 — Official Product Site Stylesheet
   Studio Obsidian Dark (Default) & Porcelain Light Mode
   ============================================================ */

:root {
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --bg: #09090d;
  --surface: #111118;
  --surface-elevated: #181822;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f3f2f8;
  --muted: #9895aa;
  --subtle: #6e6b80;
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --btn-ink: #0f0d17;
  --shadow-frame: 0 24px 64px rgba(0, 0, 0, 0.52);
}

html[data-theme="light"] {
  --bg: #f8f8fb;
  --surface: #ffffff;
  --surface-elevated: #f2f1f7;
  --line: #e7e6f0;
  --line-strong: #d4d1e3;
  --ink: #16161c;
  --muted: #5c5a6a;
  --subtle: #828092;
  --accent: #765cd1;
  --accent-soft: rgba(118, 92, 209, 0.1);
  --btn-ink: #ffffff;
  --shadow-frame: 0 20px 52px rgba(32, 28, 64, 0.09);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--bg);
}

html.is-macos body {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  overflow-x: clip;
}

/* ---------- Classic Minimalist Boot Splash & Entrance ---------- */
html.is-booting,
html.is-booting body {
  overflow: hidden;
}

.aria-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.46s ease, visibility 0.46s ease;
}

.aria-splash[hidden] {
  display: none;
}

.aria-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  animation: splashFadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.42s ease, opacity 0.42s ease;
}

.aria-splash.is-leaving .splash-core {
  transform: scale(0.98);
  opacity: 0;
}

.splash-logo {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] .splash-logo {
  box-shadow: 0 12px 28px rgba(48, 36, 102, 0.14);
}

.splash-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.splash-progress {
  width: 148px;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

html[data-theme="light"] .splash-progress {
  background: rgba(22, 22, 28, 0.1);
}

.splash-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}

html.is-booting .hero-stage {
  opacity: 0;
  transform: translateY(14px);
}

html.is-entered .hero-stage {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1), transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12em 0.42em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-ink);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

html[data-theme="dark"] .ico-moon { display: none; }
html[data-theme="light"] .ico-sun { display: none; }

/* ---------- Header ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="light"] .site-nav {
  background: rgba(248, 248, 251, 0.88);
}

.nav-inner {
  width: min(1140px, 92vw);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-ver {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--subtle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu-btn {
  display: none;
}

.mobile-drawer {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  padding: 12px 4vw 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.mobile-drawer a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 4.5vw, 58px) 0 clamp(60px, 6.5vw, 88px);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-20%);
  width: min(920px, 95vw);
  height: 520px;
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(167, 139, 250, 0.14) 0%,
    rgba(126, 182, 255, 0.08) 42%,
    transparent 74%
  );
  filter: blur(44px);
  pointer-events: none;
  opacity: 0.9;
}

html[data-theme="light"] .hero-ambient {
  background: radial-gradient(
    ellipse at 50% 42%,
    rgba(118, 92, 209, 0.11) 0%,
    rgba(126, 182, 255, 0.08) 45%,
    transparent 74%
  );
  opacity: 0.72;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.hero-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.15;
  font-weight: 700;
}

.hero-title-accent {
  background: linear-gradient(120deg, #93c5fd 0%, #a78bfa 55%, #e5a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .hero-title-accent {
  background: linear-gradient(120deg, #4f6ef7 0%, #765cd1 60%, #9b51c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-mobile-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 8px;
  transition: color 0.18s ease;
}

.hero-mobile-link:hover {
  color: var(--accent);
}

.hero-sources-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* Hero Pure-Monochrome Mascot */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.hero-mascot-img {
  width: min(100%, 430px);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.38));
  transition: opacity 0.18s ease;
}

.hero-mascot-img.is-swapping {
  opacity: 0.5;
}

html[data-theme="light"] .hero-mascot-img {
  filter: drop-shadow(0 14px 28px rgba(48, 36, 102, 0.12));
}

/* Opening Metrics Ribbon */
.opening-ribbon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ribbon-cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ribbon-cell:last-child {
  border-right: 0;
}

.ribbon-cell strong {
  font-size: 15px;
  font-weight: 600;
}

.ribbon-cell span {
  font-size: 12.5px;
  color: var(--muted);
}

/* Showcase */
.showcase-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(32px, 4vw, 44px);
}

.showcase-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.seg-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.seg-btn {
  padding: 5px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.showcase-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

.screen-frame {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}

.real-screen {
  width: 100%;
  height: auto;
  transition: opacity 0.18s ease;
}

.real-screen.is-swapping {
  opacity: 0.45;
}

.showcase-caption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Content Sections ---------- */
.section {
  padding: clamp(56px, 6.5vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}

.section-head p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 42em;
}

/* Section 1: Sources */
.sources-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.source-table {
  border-top: 1px solid var(--line);
}

.source-table li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.st-icon {
  padding-top: 3px;
}

.source-table strong {
  display: block;
  font-size: 15px;
}

.source-table p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.sources-preview {
  display: grid;
  gap: 12px;
}

.preview-toggle {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Sections 2 & 3: Audio & Listen Together */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.feature-split.is-reversed {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.spec-list {
  border-top: 1px solid var(--line);
}

.spec-list > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  font-size: 15px;
  font-weight: 600;
}

.spec-list dd {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Section 4: Spec Matrix */
.spec-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.spec-cell {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.spec-cell:last-child {
  border-right: 0;
}

.spec-cell h3 {
  font-size: 15.5px;
}

.spec-cell p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Section 5: Download & FAQ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.18s ease;
}

a.dl-card:hover {
  border-color: var(--accent);
}

.dl-card.is-recommended {
  border-color: var(--accent);
}

.dl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dl-top strong {
  font-size: 16px;
}

.dl-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.dl-card code {
  width: fit-content;
}

.dl-card p {
  font-size: 13.5px;
  color: var(--muted);
}

.dl-link,
.dl-sublinks {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.dl-sublinks {
  display: flex;
  gap: 14px;
}

.dl-sublinks a:hover {
  text-decoration: underline;
}

.faq-list {
  margin-top: 34px;
  max-width: 780px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 17px;
  color: var(--subtle);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding-bottom: 15px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Footer & Sponsor Dialog ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-copy {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent);
}

.sponsor-dialog {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  max-width: min(500px, 92vw);
  width: 100%;
}

.sponsor-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.sponsor-box {
  padding: 20px;
}

.sponsor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sponsor-note {
  font-size: 13.5px;
  color: var(--muted);
}

.sponsor-qrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.sponsor-qrs figure {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  text-align: center;
}

.sponsor-qrs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.sponsor-qrs figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-stage,
  .sources-grid,
  .feature-split,
  .feature-split.is-reversed,
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .hero-mascot-img {
    width: min(100%, 330px);
  }
  .opening-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ribbon-cell:nth-child(2) {
    border-right: 0;
  }
  .ribbon-cell:nth-child(1),
  .ribbon-cell:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .feature-split.is-reversed .spec-list {
    order: 2;
  }
  .spec-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec-cell:nth-child(2) {
    border-right: 0;
  }
  .spec-cell:nth-child(1),
  .spec-cell:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-dl-btn {
    display: none;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
  .opening-ribbon,
  .spec-matrix {
    grid-template-columns: 1fr;
  }
  .ribbon-cell,
  .spec-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ribbon-cell:last-child,
  .spec-cell:last-child {
    border-bottom: 0;
  }
  .sponsor-qrs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-core {
    animation: none;
  }
  .aria-splash,
  .splash-core,
  html.is-entered .hero-stage {
    transition-duration: 0.2s;
  }
}
