:root {
  --bg: #eef4e9;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #173122;
  --muted: #5a6e61;
  --line: rgba(23, 49, 34, 0.1);
  --accent: #5ab53e;
  --accent-strong: #287a35;
  --accent-soft: #dff0d4;
  --shadow: 0 32px 80px rgba(27, 44, 33, 0.13);
  --shadow-soft: 0 8px 32px rgba(27, 44, 33, 0.07);
  --shadow-card: 0 2px 8px rgba(27, 44, 33, 0.06), 0 12px 32px rgba(27, 44, 33, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1100px, calc(100vw - 64px));
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --sans: "Sora", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(105, 191, 72, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 8%, rgba(120, 195, 95, 0.13) 0%, transparent 55%),
    linear-gradient(180deg, #f4faf0 0%, #eef4e9 50%, #e8efe3 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ── Background decoration ── */
.page-orb,
.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-orb {
  filter: blur(100px);
  opacity: 0.7;
}

.orb-one {
  top: -180px;
  left: -160px;
  width: 480px;
  height: 480px;
  background: rgba(105, 191, 72, 0.2);
}

.orb-two {
  top: 200px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: rgba(45, 130, 55, 0.14);
}

.page-grid {
  background-image:
    linear-gradient(rgba(23, 49, 34, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 49, 34, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 65%);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(246, 251, 243, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(27, 44, 33, 0.08), 0 1px 4px rgba(27, 44, 33, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(90, 181, 62, 0.3);
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.lang-button {
  appearance: none;
  border: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.lang-button.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 200ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(145deg, #4fa83b, #6dc44e);
  box-shadow: 0 4px 14px rgba(79, 168, 59, 0.32), 0 1px 3px rgba(0,0,0,0.08);
}

.button.primary:hover {
  box-shadow: 0 8px 24px rgba(79, 168, 59, 0.4), 0 2px 6px rgba(0,0,0,0.1);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.96);
}

.button.compact {
  padding: 9px 15px;
  font-size: 0.88rem;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  padding: 38px 0 16px;
  align-items: start;
}

.hero-copy {
  max-width: 410px;
  padding-top: 8px;
}

.eyebrow,
.section-eyebrow,
.feature-tag,
.trust-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.eyebrow::before,
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.hero h1,
.section-heading h2,
.privacy-copy h2,
.download-copy h2 {
  margin: 0;
  font-size: clamp(1.85rem, 2.85vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-heading h2,
.privacy-copy h2,
.download-copy h2 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.03;
}

.hero h1 {
  max-width: none;
}

.hero-body,
.section-heading p:last-child,
.privacy-copy p:last-child,
.download-copy p:last-child {
  margin: 18px 0 0;
  max-width: 39ch;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  max-width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 49, 34, 0.08);
}

.meta-chip {
  min-width: 0;
  padding: 0 12px 0 0;
  border-right: 1px solid rgba(23, 49, 34, 0.08);
  background: none;
}

.meta-chip:last-child {
  padding-right: 0;
  border-right: 0;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.meta-value {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

/* ── Hero visual ── */
.hero-visual {
  position: relative;
  max-width: 600px;
  margin-left: auto;
}

.shot-frame {
  position: relative;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 49, 34, 0.08);
  box-shadow: 0 14px 36px rgba(27, 44, 33, 0.06);
  overflow: hidden;
}

.hero-shot {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(23, 49, 34, 0.07);
  display: block;
}

/* ── Section spacing ── */
.trust,
.features,
.workflow,
.privacy,
.download,
.faq,
.voices {
  padding: 72px 0;
}

/* ── Trust ── */
.trust-card,
.use-case-panel,
.download-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

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

.trust-item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 49, 34, 0.07);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.trust-item:hover {
  box-shadow: 0 6px 20px rgba(27, 44, 33, 0.09);
  transform: translateY(-2px);
}

.trust-item strong,
.feature-card h3,
.workflow-step h3,
.use-case-copy h3,
.voice-card h3 {
  display: block;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.trust-item span,
.feature-card p:not(.feature-tag),
.workflow-step p,
.use-case-copy p,
.faq-item p,
.voice-detail {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.93rem;
}

/* ── Section heading ── */
.section-heading {
  max-width: 680px;
  display: grid;
  gap: 6px;
  margin-bottom: 36px;
}

/* ── Features ── */
.features {
  padding-top: 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
  align-items: stretch;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 280px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.88) 0%, rgba(248,253,245,0.75) 100%);
  box-shadow: var(--shadow-card);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(27,44,33,0.07), 0 20px 48px rgba(27,44,33,0.1);
}

.feature-tag {
  margin-bottom: 12px;
  font-size: 0.72rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.feature-list span,
.use-case-list span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 49, 34, 0.08);
  font-size: 0.87rem;
  color: var(--text);
}

/* ── Workflow ── */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.workflow-step {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.workflow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(27,44,33,0.06), 0 16px 40px rgba(27,44,33,0.09);
}

.workflow-number,
.download-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.workflow-step h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.keycap {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(23, 49, 34, 0.08);
  font-family: var(--mono);
  font-size: 0.9em;
  border: 1px solid rgba(23, 49, 34, 0.1);
}

/* ── Use case ── */
.use-case-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-top: 24px;
}

.use-case-list {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

/* ── Privacy ── */
.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.privacy-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #1b3222 0%, #1f4028 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 24px 64px rgba(23,49,34,0.25);
}

.privacy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.privacy-row:first-child {
  padding-top: 0;
}

.privacy-label {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.privacy-row strong {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

/* ── Download ── */
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.download-steps {
  display: grid;
  gap: 12px;
}

.download-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 49, 34, 0.07);
  font-size: 0.9rem;
}

.download-actions {
  margin-top: 20px;
}

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.faq-item {
  padding: 0 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}

.faq-item[open] {
  box-shadow: 0 4px 12px rgba(27,44,33,0.08), 0 16px 40px rgba(27,44,33,0.08);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  gap: 16px;
  user-select: none;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  position: relative;
  transition: background 180ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-strong);
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
}

.faq-icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 10px;
}

details[open] .faq-icon {
  transform: rotate(45deg);
  background: rgba(90, 181, 62, 0.2);
}

.faq-item p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.76;
  font-size: 0.94rem;
}

/* ── Voices ── */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.voice-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.88) 0%, rgba(248,253,245,0.72) 100%);
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.voice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(27,44,33,0.07), 0 18px 44px rgba(27,44,33,0.1);
}

.voice-kind {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(90, 181, 62, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.voice-quote {
  margin: 12px 0 0;
  font-size: 1.04rem;
  line-height: 1.62;
  letter-spacing: -0.025em;
}

/* ── Footer ── */
.site-footer {
  padding: 20px 0 52px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 49, 34, 0.09);
}

.footer-brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

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

.footer-links a {
  transition: color 150ms ease;
}

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

/* ── Chinese typography tweaks ── */
html[lang="zh-Hans"] .hero h1,
html[lang="zh-Hans"] .section-heading h2,
html[lang="zh-Hans"] .privacy-copy h2,
html[lang="zh-Hans"] .download-copy h2 {
  letter-spacing: -0.03em;
  line-height: 1.05;
}

html[lang="zh-Hans"] .hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .button,
  .site-nav a::after,
  .faq-icon {
    transition: none;
  }

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

  .shot-frame {
    transform: none;
  }
}

/* ── Responsive: 1080px ── */
@media (max-width: 1080px) {
  .hero,
  .privacy-layout,
  .download-card,
  .use-case-panel {
    grid-template-columns: 1fr;
  }

  .shot-frame {
    max-width: 640px;
    margin: 0 auto;
  }

  .trust-grid,
  .workflow-grid,
  .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 30px;
    gap: 34px;
  }
}

/* ── Responsive: 820px ── */
@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .header-row {
    grid-template-columns: 1fr;
    border-radius: 28px;
    gap: 16px;
  }

  .site-nav,
  .header-actions {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.6rem);
    max-width: none;
  }

  .trust-grid,
  .workflow-grid,
  .voice-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

  .trust,
  .features,
  .workflow,
  .privacy,
  .download,
  .faq,
  .voices {
    padding: 52px 0;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ── Responsive: 560px ── */
@media (max-width: 560px) {
  :root {
    --shell: min(100vw - 24px, 1180px);
  }

  .button,
  .hero-actions .button,
  .download-actions .button {
    width: 100%;
    justify-content: center;
  }

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

  .meta-chip {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 49, 34, 0.08);
  }

  .meta-chip:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .faq-item summary {
    font-size: 0.96rem;
  }
}
