:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --ink: #1f2a2a;
  --muted: #5b6766;
  --primary: #0f3d3e;
  --primary-ink: #ffffff;
  --gold: #c8962e;
  --gold-soft: #f3e4c2;
  --line: #e7dfd0;
  --hero-a: #fff6e3;
  --hero-b: #e8f0ee;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111817;
    --surface: #18211f;
    --ink: #eef1ef;
    --muted: #a8b3b1;
    --primary: #8fc7c4;
    --primary-ink: #0b1d1d;
    --gold: #e0b45a;
    --gold-soft: #3a3020;
    --line: #2a3533;
    --hero-a: #1d1e17;
    --hero-b: #132322;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
.lang-zh, .lang-ja { --serif: var(--sans); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { border-radius: 8px; }
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem;
}
.langs summary::-webkit-details-marker { display: none; }
.langs nav {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / .12);
}
.langs nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.langs nav a:hover { background: var(--gold-soft); }
.langs nav a[aria-current] { font-weight: 700; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 75% 30%, var(--gold-soft), transparent 55%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding-top: 56px; padding-bottom: 56px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); color: var(--primary); margin-bottom: .3em; }
.tagline { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.hero-icon { width: 100%; max-width: 320px; justify-self: center; border-radius: 22%; box-shadow: 0 24px 60px rgb(15 61 62 / .25); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 180px;
  padding: 10px 18px; border-radius: 12px; text-decoration: none;
  background: #000; color: #fff; font-size: 1.15rem; font-weight: 600; line-height: 1.1;
}
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: .7rem; font-weight: 400; opacity: .85; }
.store:hover { background: #222; }
.web-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  color: var(--primary); font-weight: 600; text-underline-offset: 3px;
}

/* Narration status + samples */
.narration { padding-top: 40px; padding-bottom: 8px; }
.now { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.45rem); margin: 0 0 4px; }
.soon { color: var(--muted); margin: 0 0 24px; }
.samples h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }
.note { color: var(--muted); font-weight: 400; }
.sample-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sample {
  margin: 0; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
}
.sample figcaption { font-weight: 600; margin-bottom: 6px; }
.sample audio { width: 100%; }

/* Features */
.section-title { margin-top: 56px; }
.features {
  list-style: none; padding: 0; margin: 0 0 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature svg {
  width: 36px; height: 36px; padding: 7px; border-radius: 10px; margin-bottom: 10px;
  background: var(--gold-soft); color: var(--primary);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

/* Open source */
.open { background: #0f3d3e; color: #fff; padding: 56px 0; }
.open .kicker { color: #e8c06a; }
.open-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.open p { opacity: .92; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold); margin: 0 0 8px; opacity: 1 !important; }
.lang-zh .kicker, .lang-ja .kicker { letter-spacing: .05em; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; font-size: .95rem;
}
.links a:hover { background: rgb(255 255 255 / .1); }

/* Call to action */
.cta { text-align: center; padding-top: 64px; padding-bottom: 64px; max-width: 760px; }
.cta p { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; }
  .hero-icon { order: -1; max-width: 120px; justify-self: start; }
  .open-grid { grid-template-columns: 1fr; gap: 40px; }
  .store { flex: 1 1 160px; }
}
