:root {
  --ink: #132d2e;
  --muted: #617071;
  --paper: #f5f6f1;
  --white: #fff;
  --mint: #dcebe6;
  --teal: #287d70;
  --deep: #0b3b3d;
  --gold: #dca968;
  --line: rgba(19, 45, 46, .13);
  --shadow: 0 24px 70px rgba(11, 59, 61, .15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(220, 169, 104, .16), transparent 28rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html:lang(zh-CN) body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:lang(zh-TW) body {
  font-family: "PingFang TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:lang(ja) body {
  font-family: "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:lang(ko) body {
  font-family: "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main > section,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand img,
footer img { border-radius: 12px; box-shadow: 0 8px 24px rgba(11, 59, 61, .18); }

.site-header nav,
footer nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a, footer nav a { color: var(--muted); font-size: 14px; }
.site-header nav a:hover, footer nav a:hover { color: var(--teal); }

.compact-language-picker select {
  max-width: 136px;
  padding: 8px 30px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, .66);
  font: inherit;
  font-size: 13px;
}

.hero {
  min-height: 700px;
  padding: 64px 0 92px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 26px;
  font-size: clamp(54px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -.065em;
  font-weight: 760;
}

h1 span { color: var(--teal); }

.hero-lead {
  max-width: 600px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }

.store-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  color: var(--white);
  background: var(--deep);
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(11, 59, 61, .18);
}

.text-link {
  color: var(--teal);
  font-weight: 700;
}

.text-link span { margin-left: 6px; transition: transform .2s ease; display: inline-block; }
.text-link:hover span { transform: translateX(4px); }

.trust-list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 800; }

.hero-art {
  position: relative;
  max-width: 510px;
  justify-self: end;
}

.hero-art > img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28%;
  box-shadow: var(--shadow);
}

.now-playing {
  position: absolute;
  right: -30px;
  bottom: 40px;
  min-width: 228px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  background: rgba(8, 41, 43, .86);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(7, 40, 42, .25);
  backdrop-filter: blur(18px);
}

.now-playing strong, .now-playing span { display: block; }
.now-playing strong { font-size: 14px; }
.now-playing div > span { color: rgba(255,255,255,.68); font-size: 12px; }

.pulse {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #71d6c3;
  box-shadow: 0 0 0 7px rgba(113, 214, 195, .14);
}

.manifesto {
  padding: 112px 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  border-top: 1px solid var(--line);
}

.section-number { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.manifesto > div { max-width: 900px; }

h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.13;
  letter-spacing: -.052em;
}

.manifesto div p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.soundscapes, .features { padding: 110px 0; }

.section-heading {
  margin-bottom: 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 440px; margin-bottom: 6px; color: var(--muted); }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.scene-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--deep);
  box-shadow: 0 20px 46px rgba(11, 59, 61, .12);
}

.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 31, 33, .88), rgba(4, 31, 33, 0) 62%);
}

.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.scene-card:hover img { transform: scale(1.035); }

.scene-card div { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; color: white; }
.scene-card span { font-size: 12px; color: #83d8c8; font-weight: 800; letter-spacing: .08em; }
.scene-card h3 { margin: 5px 0 2px; font-size: 28px; }
.scene-card p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 270px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid span { color: var(--teal); font-size: 12px; font-weight: 800; }
.feature-grid h3 { margin: 60px 0 10px; font-size: 22px; letter-spacing: -.025em; }
.feature-grid p { color: var(--muted); font-size: 14px; }

.privacy-callout {
  width: min(1180px, calc(100% - 48px));
  margin-top: 90px;
  margin-bottom: 100px;
  padding: 74px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  color: var(--white);
  background: var(--deep);
  border-radius: 30px;
}

.privacy-callout .eyebrow { color: #80d9c8; }
.privacy-callout h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); }
.privacy-callout > div:last-child { align-self: end; }
.privacy-callout > div:last-child p { color: rgba(255,255,255,.7); }
.text-link.light { color: #8be1d0; }

footer {
  min-height: 150px;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 45px;
  border-top: 1px solid var(--line);
}

footer > div { display: flex; align-items: center; gap: 13px; }
footer strong, footer span { display: block; }
footer span { color: var(--muted); font-size: 12px; }
footer > p { margin: 0; color: var(--muted); font-size: 12px; }

.document-main { width: min(900px, calc(100% - 48px)); margin: 56px auto 120px; }
.document-hero { padding: 70px 0 52px; border-bottom: 1px solid var(--line); }
.document-hero h1 { max-width: 800px; font-size: clamp(44px, 7vw, 72px); }
.document-hero p { max-width: 700px; color: var(--muted); font-size: 18px; }

.language-picker {
  position: sticky;
  z-index: 10;
  top: 16px;
  margin: 28px 0 48px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 246, 241, .9);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(18px);
}

.language-picker label { font-size: 13px; font-weight: 700; }
.language-picker select {
  min-width: 190px;
  padding: 8px 34px 8px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}

.legal-section { display: none; }
.legal-section.active { display: block; }
.legal-section h2 { margin: 0 0 34px; font-size: 38px; }
.legal-section h3 { margin: 36px 0 12px; font-size: 19px; }
.legal-section p, .legal-section li { color: #4e6162; }
.legal-section ul { padding-left: 22px; }
.legal-meta {
  margin-top: 46px;
  padding: 22px 24px;
  background: var(--mint);
  border-radius: 16px;
}
.legal-meta p { margin: 4px 0; }
.legal-meta a { color: var(--teal); font-weight: 700; }

.source-directory {
  width: 100%;
  margin-top: 76px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.source-directory-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 310px);
  gap: 34px;
  align-items: end;
}

.source-directory-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -.035em;
}

.source-directory-heading p,
.source-record-note {
  color: var(--muted);
}

.source-search span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}

.source-search input {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
}

.source-record-note {
  margin: 24px 0 30px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sound-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sound-source-card {
  padding: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.sound-source-card h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.sound-source-card p {
  margin: 10px 0;
  color: #4e6162;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sound-source-card .source-id {
  margin-top: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.source-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-actions a {
  padding: 7px 10px;
  color: var(--teal);
  background: var(--mint);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.source-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 36px; }
  .hero-art { width: min(78vw, 500px); justify-self: center; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-card { min-height: 460px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-callout { grid-template-columns: 1fr; padding: 52px; }
  .source-directory-heading { grid-template-columns: 1fr; align-items: start; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, main > section, footer { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 76px; height: auto; padding-block: 12px; flex-wrap: wrap; gap: 10px 14px; }
  .site-header nav { gap: 15px; }
  .site-header nav a:first-child { display: none; }
  .site-header .compact-language-picker { margin-left: auto; }
  .site-header .compact-language-picker + nav,
  .site-header nav:has(+ .compact-language-picker) { flex-basis: 100%; justify-content: flex-end; }
  .hero { gap: 52px; padding-bottom: 70px; }
  h1 { font-size: 50px; }
  .hero-lead { font-size: 17px; }
  .hero-art { width: calc(100% - 36px); }
  .now-playing { right: -14px; bottom: 25px; min-width: 205px; }
  .manifesto { grid-template-columns: 1fr; padding: 76px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; }
  .soundscapes, .features { padding: 76px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-callout { width: calc(100% - 30px); margin-block: 60px; padding: 36px 28px; gap: 34px; }
  footer nav { align-items: flex-start; flex-direction: column; gap: 10px; }
  .document-main { width: calc(100% - 30px); margin-top: 25px; }
  .document-hero { padding-top: 40px; }
  .language-picker { align-items: flex-start; gap: 10px; flex-direction: column; }
  .language-picker select { width: 100%; }
  .sound-source-grid { grid-template-columns: 1fr; }
}

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