:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-subtle: #fbfbfd;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #fa2d48;
  --accent-hover: #e0203a;
  --accent-tint: rgba(250, 45, 72, 0.1);
  --link: #0066cc;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-device: 0 36px 90px -24px rgba(0, 0, 0, 0.24), 0 12px 32px -12px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 28px 64px -16px rgba(0, 0, 0, 0.36), 0 8px 20px -6px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 12px 32px -16px rgba(0, 0, 0, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #161617;
  --surface: #1d1d1f;
  --surface-subtle: #141416;
  --nav-bg: rgba(22, 22, 23, 0.82);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --accent: #fa2d48;
  --accent-hover: #ff425b;
  --accent-tint: rgba(250, 45, 72, 0.16);
  --link: #2997ff;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);
  --shadow-device: 0 40px 100px -20px rgba(0, 0, 0, 0.72), 0 14px 36px -10px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 32px 72px -12px rgba(0, 0, 0, 0.82);
  --shadow-card: 0 16px 40px -18px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: rgba(250, 45, 72, 0.2);
  color: var(--text);
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Custom thin scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(134, 134, 139, 0.35);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(134, 134, 139, 0.55);
}

/* Header / Apple Frosted Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  max-width: 1160px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-alt);
  border-color: var(--border-strong);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Containers & Sections */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 112px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.section-heading p {
  margin: 0 auto;
  max-width: 580px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Hero Section */
.hero {
  padding: 64px 0 88px;
  background: var(--bg);
}

.hero-copy {
  max-width: 960px;
  margin: 0 auto 48px;
  text-align: center;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.034em;
  font-weight: 700;
  text-wrap: balance;
  color: var(--text);
}

.hero-title-muted {
  color: var(--text-secondary);
}

.hero-subtitle {
  margin: 0 auto 32px;
  max-width: 640px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-secondary);
  text-wrap: balance;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: scale(0.985);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--link);
  transition: opacity 0.18s ease;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dual-Device Hero Composition */
.hero-stage {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 36px;
}

.device-mac {
  width: 87%;
  border-radius: 18px;
  background: #141416;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-device);
}

:root[data-theme="dark"] .device-mac {
  border-color: rgba(255, 255, 255, 0.16);
}

.device-mac img {
  width: 100%;
  border-radius: 10px;
}

.device-harmony-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27.5%;
  min-width: 220px;
  border-radius: 26px;
  background: #0c0c0e;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-float);
}

.device-harmony-float img {
  width: 100%;
  border-radius: 18px;
}

/* Spec Hairline Strip */
.spec-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.spec-item {
  padding: 4px 24px;
  border-right: 1px solid var(--border);
}

.spec-item:first-child {
  padding-left: 0;
}

.spec-item:last-child {
  border-right: none;
  padding-right: 0;
}

.spec-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.spec-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Dark Acoustics Studio Showcase (Always Obsidian Dark like Apple Pro sections) */
.studio-band {
  background: #000000;
  color: #f5f5f7;
  padding: 120px 0;
}

.studio-band .section-heading h2 {
  color: #f5f5f7;
}

.studio-band .section-heading p {
  color: #a1a1a6;
}

.studio-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto 56px;
}

.studio-tabs-wrap {
  display: flex;
  justify-content: center;
}

.studio-tab {
  border: none;
  background: transparent;
  color: #a1a1a6;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.studio-tab:hover {
  color: #ffffff;
}

.studio-tab.is-active {
  background: #ffffff;
  color: #1d1d1f;
}

.studio-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}

.studio-device-wrap {
  display: flex;
  justify-content: center;
}

.studio-tablet {
  position: relative;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 875 / 1400;
  border-radius: 32px;
  background: #141416;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 96px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.studio-screen-stack {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0a0c;
}

.studio-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.studio-screen.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.studio-panel {
  display: none;
}

.studio-panel.is-active {
  display: block;
}

.studio-panel h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #f5f5f7;
}

.studio-panel-lead {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.65;
  color: #a1a1a6;
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.lang-pills span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.studio-points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-points strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 3px;
}

.studio-points span {
  display: block;
  font-size: 14px;
  color: #a1a1a6;
  line-height: 1.55;
}

.point-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Asymmetric Apple Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-dark {
  background: #111113;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.1);
}

.bento-dark p {
  color: #a1a1a6;
}

.bento-tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 700;
}

.bento-tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.bento-media {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bento-media img {
  width: 100%;
  display: block;
}

.bento-media-mac {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left bottom;
}

.bento-routes {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 14px;
}

.route-row strong {
  font-weight: 600;
  color: var(--text);
}

.route-row span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.cache-visual {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.cache-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.cache-head strong {
  color: var(--text);
}

.cache-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  overflow: hidden;
}

.cache-buffer {
  position: absolute;
  inset: 0 auto 0 0;
  width: 92%;
  border-radius: 999px;
  background: rgba(250, 45, 72, 0.34);
}

.cache-played {
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  border-radius: 999px;
  background: var(--accent);
}

.cache-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.cache-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.swatch-play { background: var(--accent); }
.swatch-buf { background: rgba(250, 45, 72, 0.38); }
.swatch-track { background: var(--border-strong); }

.bento-mini-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-cell {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.mini-cell strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.mini-cell span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Dual-Platform Download Cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.platform-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-tint);
  color: var(--accent);
}

.platform-badge-neutral {
  background: var(--border);
  color: var(--text-secondary);
}

.platform-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.platform-card > div > p {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.platform-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.platform-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.platform-list li span {
  color: var(--text-secondary);
  text-align: right;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Quick Start Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 72px;
}

.step-card {
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.step-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-plus {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 740px;
}

/* Feedback Section */
.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.feedback-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.feedback-intro p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feedback-note {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feedback-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.field-group {
  margin-bottom: 20px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.field-label-row .field-label {
  margin-bottom: 0;
}

.field-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.chip-btn:hover {
  color: var(--text);
}

.chip-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.field-input,
.field-textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color 0.16s ease;
}

.field-textarea {
  min-height: 132px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-status {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.form-status.is-ok {
  color: #1d9a4a;
}

.form-status.is-err {
  color: var(--accent);
}

/* Sponsor / Tip Author Section */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.sponsor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.sponsor-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.sponsor-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.sponsor-head span {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
}

.sponsor-qr-frame {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1.06;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.sponsor-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.sponsor-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.sponsor-footnote {
  margin: 32px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.site-footer-plain {
  background: var(--bg);
}

.footer-top {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal Pages (privacy.html & terms.html) */
.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-shell h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.legal-updated {
  margin: 0 0 36px;
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 40px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-card ul {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.legal-card strong {
  color: var(--text);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .nav-links .hide-md {
    display: none;
  }
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .spec-item {
    padding: 0;
    border-right: none;
  }
  .studio-stage {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-7,
  .bento-span-5 {
    grid-column: auto;
  }
  .platform-grid,
  .steps-grid,
  .feedback-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container,
  .nav-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 44px 0 56px;
  }
  .section,
  .studio-band {
    padding: 68px 0;
  }
  .studio-tabs {
    border-radius: 18px;
    padding: 4px;
    gap: 4px;
  }
  .studio-tab {
    padding: 7px 12px;
    font-size: 13px;
  }
  .studio-tablet {
    max-width: 300px;
    border-radius: 26px;
    padding: 8px;
  }
  .hero-stage {
    padding-bottom: 0;
    display: grid;
    gap: 20px;
  }
  .device-mac {
    width: 100%;
    padding: 6px;
    border-radius: 14px;
  }
  .device-harmony-float {
    position: static;
    width: 72%;
    min-width: 0;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 7px;
  }
  .bento-tile,
  .platform-card,
  .feedback-card,
  .legal-card {
    padding: 22px;
  }
  .bento-mini-grid {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- International site: language switcher ---------- */
.lang-switch {
  position: relative;
}

.lang-toggle {
  height: 30px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  color: var(--text);
  background: var(--bg-alt);
  border-color: var(--border-strong);
}

.lang-toggle svg {
  flex-shrink: 0;
}

.lang-chevron {
  opacity: 0.7;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-card), 0 18px 40px -20px rgba(0, 0, 0, 0.35);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--bg-alt);
  outline: none;
}

.lang-option[aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
}

.lang-option[aria-selected="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Two donation cards (PayPal, Alipay) */
.sponsor-grid.sponsor-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
}

@media (max-width: 1180px) {
  .nav-links .hide-lg {
    display: none;
  }
}

@media (max-width: 960px) {
  .sponsor-grid.sponsor-grid-2 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 520px) {
  .lang-current,
  .lang-chevron {
    display: none;
  }
  .lang-toggle {
    width: 30px;
    padding: 0;
    justify-content: center;
  }
}
