:root {
  --paper: #FBF6EC;
  --paper-soft: #FFFDF7;
  --paper-deep: #F2E9D9;
  --ink: #17140F;
  --ink-soft: #5C5449;
  --line: rgba(23, 20, 15, 0.14);
  --line-strong: rgba(23, 20, 15, 0.28);
  --accent: #C93B23;
  --accent-dark: #A82D18;
  --accent-warm: #FF6F4D;
  --on-accent: #FFF8F3;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;

  --wrap: 1160px;
  --radius: 999px;
  --radius-card: 20px;
  --shadow: 0 28px 70px rgba(23, 20, 15, 0.16);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  align-self: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

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

.brand-sub {
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
}

.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---------- hero ---------- */
.hero {
  padding: 92px 0 84px;
  overflow: hidden;
}

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

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hl {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 7px solid var(--accent);
  line-height: 0.92;
}

.lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- console ---------- */
.console {
  position: relative;
  padding: 30px 30px 24px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-1.1deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.console:hover {
  transform: rotate(0deg);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.console-label {
  color: rgba(251, 246, 236, 0.55);
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-warm);
}

.console-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 64px;
  margin: 26px 0 22px;
}

.wave span {
  flex: 1;
  min-width: 2px;
  height: var(--h, 30px);
  border-radius: 2px;
  transform-origin: center;
}

.wave-hero span {
  background: var(--accent-warm);
}

.console-voice {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.console-sample {
  max-width: 30em;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(251, 246, 236, 0.7);
}

.console-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.play-lg {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.play-lg:hover {
  background: var(--accent-dark);
  transform: scale(1.04);
}

.play-lg .icon-stop {
  display: none;
}

.console.is-playing .play-lg .icon-play {
  display: none;
}

.console.is-playing .play-lg .icon-stop {
  display: block;
}

.console.is-loading .play-lg .icon-play,
.console.is-loading .play-lg .icon-stop {
  display: none;
}

.console.is-loading .play-lg::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--on-accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: voice-spin 0.8s linear infinite;
}

.console-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: rgba(251, 246, 236, 0.75);
}

.console-hint {
  font-size: 12px;
  color: rgba(251, 246, 236, 0.45);
}

.console-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(251, 246, 236, 0.14);
  font-size: 11px;
  color: rgba(251, 246, 236, 0.45);
}

/* ---------- proof ---------- */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  padding: 38px 24px;
  border-left: 1px solid var(--line);
}

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

.num {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.num small {
  font-size: 20px;
  margin-left: 2px;
  color: var(--ink-soft);
}

.unit {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.proof-item p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- sections ---------- */
.section {
  padding: 112px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-note {
  max-width: 30em;
  justify-self: end;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- voices ---------- */
.voice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.tabs {
  display: flex;
  gap: 26px;
}

.tab {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.18s ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.tab.is-active {
  color: var(--ink);
  font-weight: 600;
}

.tab.is-active::after {
  transform: scaleX(1);
}

.custom-try {
  position: relative;
  display: flex;
  align-items: center;
  width: min(420px, 100%);
}

.custom-try input {
  width: 100%;
  height: 44px;
  padding: 0 82px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.custom-try input::placeholder {
  color: #928A7C;
}

.custom-try input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 59, 35, 0.12);
}

.custom-count {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.voice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  padding-top: 10px;
}

.voice-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}

.voice-no {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  color: #8B8375;
  font-variant-numeric: tabular-nums;
}

.voice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.voice-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.voice-badge {
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.voice-sample {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: #8B8375;
}

.voice-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.play-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.play-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.play-btn .icon-stop {
  display: none;
}

.play-btn.is-playing {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.play-btn.is-playing .icon-play {
  display: none;
}

.play-btn.is-playing .icon-stop {
  display: block;
}

.play-btn.is-loading {
  border-color: var(--accent);
  color: var(--accent);
  cursor: progress;
}

.play-btn.is-loading .icon-play,
.play-btn.is-loading .icon-stop {
  display: none;
}

.play-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: voice-spin 0.8s linear infinite;
}

@keyframes voice-spin {
  to {
    transform: rotate(360deg);
  }
}

.voice-dur {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voices-foot {
  margin-top: 26px;
  font-size: 12px;
  color: #8B8375;
}

.voices-empty {
  padding: 28px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- playing animation ---------- */
.svg-wave {
  width: 100%;
}

.wave span {
  animation: none;
}

.is-playing .wave span {
  animation: bar-pulse 0.85s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 22ms);
}

@keyframes bar-pulse {
  from {
    transform: scaleY(0.42);
  }
  to {
    transform: scaleY(1.06);
  }
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.steps li {
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.step-no {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.steps h3 {
  margin-top: 12px;
  font-size: 26px;
}

.steps p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- scenes ---------- */
.scene-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}

.scene-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.scene-list li:hover {
  background: var(--paper-deep);
}

.scene-no {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: #8B8375;
}

.scene-list h3 {
  font-size: 20px;
}

.scene-list p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.scene-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.plan {
  position: relative;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  display: flex;
  flex-direction: column;
}

.plan-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.plan-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.plan h3 {
  font-size: 22px;
}

.plan-price {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-price .cur {
  font-size: 22px;
  vertical-align: super;
  margin-right: 2px;
}

.plan-price .period {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-left: 8px;
}

.plan-featured .period,
.plan-featured .plan-desc,
.plan-featured .plan li {
  color: rgba(251, 246, 236, 0.72);
}

.plan-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.plan ul {
  margin: 26px 0 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.plan-featured ul {
  border-top-color: rgba(251, 246, 236, 0.18);
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.plan li::before {
  content: "—";
  color: var(--accent);
}

.plan .btn {
  margin-top: auto;
}

.plan-featured .btn-ghost {
  border-color: rgba(251, 246, 236, 0.35);
  color: var(--paper);
}

/* ---------- final cta ---------- */
.final-cta {
  padding: 120px 0;
  background: var(--ink);
  color: var(--paper);
}

.final-cta .eyebrow {
  color: rgba(251, 246, 236, 0.55);
}

.final-cta h2 {
  margin-top: 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.final-cta .hero-actions {
  margin-top: 36px;
}

.final-cta .btn-ghost {
  border-color: rgba(251, 246, 236, 0.35);
  color: var(--paper);
}

.final-cta .btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}

.footer-desc {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  gap: 72px;
}

.footer-nav h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-nav a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.85;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(23, 20, 15, 0.25);
  transform: translate(-50%, 140%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.toast.is-show {
  transform: translate(-50%, 0);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 40px;
  }

  .voice-list,
  .scene-list {
    column-gap: 40px;
  }
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .console {
    transform: none;
    max-width: 560px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-note {
    justify-self: start;
  }

  .voice-list,
  .scene-list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 56px;
  }

  .final-cta {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .header-inner {
    min-height: 64px;
    gap: 16px;
  }

  .brand-sub {
    display: none;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .lead {
    font-size: 16px;
  }

  .console {
    padding: 24px 20px 18px;
  }

  .console-voice {
    font-size: 22px;
  }

  .voice-toolbar {
    align-items: flex-start;
  }

  .tabs {
    gap: 18px;
    flex-wrap: wrap;
  }

  .tab {
    font-size: 14px;
  }

  .voice-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .voice-name {
    font-size: 18px;
  }

  .plan {
    padding: 28px 24px;
  }

  .footer-nav {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
