:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --ink: #161616;
  --ink-soft: #4c4f55;
  --muted: #737780;
  --line: #ddd8ca;
  --green: #148f61;
  --blue: #2457d6;
  --coral: #e65f3f;
  --yellow: #f2b84b;
  --shadow: 0 24px 70px rgba(22, 22, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "HarmonyOS Sans SC",
    "HarmonyOS Sans",
    "HarmonyOS Sans TC",
    "HarmonyOS Sans Naskh Arabic",
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 78px);
  background: rgba(247, 247, 242, 0.92);
  border-bottom: 1px solid rgba(221, 216, 202, 0.7);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-download,
.hero-actions,
.hero-meta,
.quick-strip,
.signal-row,
.term-row,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  justify-content: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--green);
}

.header-download,
.primary-button,
.secondary-button {
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 750;
}

.header-download {
  justify-self: end;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 112px clamp(18px, 5vw, 78px) 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 22, 22, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}

.desktop-window {
  position: absolute;
  right: clamp(16px, 6vw, 96px);
  top: 136px;
  width: min(700px, 46vw);
  min-width: 500px;
  background: var(--surface);
  border: 1px solid rgba(22, 22, 22, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: var(--yellow);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 8px;
  color: var(--ink-soft);
  font-weight: 650;
}

.window-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 420px;
}

.side-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #f0efe6;
}

.side-rail i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.dictation-panel {
  padding: 34px;
}

.signal-row {
  gap: 18px;
}

.pulse-stack {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 54px;
  padding: 0 14px;
  border-radius: 8px;
  background: #111;
}

.pulse-stack span {
  width: 6px;
  border-radius: 6px;
  background: #63e7a8;
}

.pulse-stack span:nth-child(1) {
  height: 20px;
}

.pulse-stack span:nth-child(2) {
  height: 38px;
}

.pulse-stack span:nth-child(3) {
  height: 28px;
}

.pulse-stack span:nth-child(4) {
  height: 44px;
}

.signal-row small,
.floating-card span,
.download-card span,
.download-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.signal-row strong {
  display: block;
  margin-top: 2px;
  font-size: 21px;
}

.spoken {
  margin: 34px 0 14px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.7;
}

.output-box {
  padding: 22px;
  border: 1px solid #cbd6ff;
  border-radius: 8px;
  background: #eef3ff;
  color: #1c3273;
  font-size: 19px;
  line-height: 1.65;
}

.term-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.term-row b {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fbfaf5;
  font-size: 13px;
}

.floating-card {
  position: absolute;
  width: 226px;
  padding: 16px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(22, 22, 22, 0.12);
  backdrop-filter: blur(12px);
}

.floating-card strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.card-top {
  right: min(48vw, 620px);
  top: 176px;
}

.card-bottom {
  right: min(8vw, 120px);
  top: 590px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(560px, 48vw);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(50px, 7.3vw, 104px);
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.hero-subtitle,
.section-heading p,
.app-copy p,
.privacy-panel p {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 610px;
  margin: 28px 0 0;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  padding: 0 22px;
  font-size: 15px;
}

.primary-button {
  color: #fff;
  background: var(--ink);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-meta {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.quick-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px clamp(18px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  background: #111;
}

.quick-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 96px clamp(18px, 5vw, 78px);
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p {
  margin: 20px 0 0;
}

.compare-grid,
.feature-grid,
.download-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

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

.compare-card,
.feature-grid article,
.download-card,
.privacy-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.compare-card {
  padding: 30px;
}

.compare-card p {
  min-height: 94px;
  margin: 22px 0;
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1.55;
}

.compare-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.compare-card.strong {
  border-color: #93d8bb;
  background: #edf8f2;
}

.feature-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
  min-height: 260px;
  padding: 26px;
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  margin-bottom: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.feature-grid p,
.faq-list p,
.site-footer p {
  color: var(--ink-soft);
}

.feature-grid p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

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

.app-copy {
  max-width: 640px;
}

.app-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.app-matrix span {
  min-height: 82px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 780;
}

.privacy-section {
  padding-top: 0;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 42px;
  background: #161616;
  color: #fff;
}

.privacy-panel .eyebrow {
  color: #63e7a8;
}

.privacy-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

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

.download-card {
  min-height: 186px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: #93d8bb;
  box-shadow: 0 16px 44px rgba(22, 22, 22, 0.09);
}

.download-card strong {
  display: block;
  margin: 16px 0 38px;
  font-size: 27px;
}

.primary-download-card {
  background: #edf8f2;
  border-color: #93d8bb;
}

.faq-section {
  padding-top: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(900px, 100%);
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 760;
}

.faq-list p {
  margin: 14px 0 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 78px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 14px;
}

.footer-links {
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
}

.site-footer > span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: block;
  }

  .site-nav,
  .header-download {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(22, 22, 22, 0.12);
  }

  .site-nav.is-open a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-copy {
    width: min(680px, 100%);
  }

  .hero-scene {
    position: relative;
    height: 520px;
    margin: 40px -18px -20px;
  }

  .desktop-window {
    left: 18px;
    right: 18px;
    top: 36px;
    width: auto;
    min-width: 0;
  }

  .card-top,
  .card-bottom {
    display: none;
  }

  .compare-grid,
  .feature-grid,
  .app-section,
  .privacy-panel,
  .download-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 70px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-subtitle,
  .section-heading p,
  .app-copy p,
  .privacy-panel p {
    font-size: 16px;
  }

  .hero-scene {
    height: 470px;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .side-rail {
    display: none;
  }

  .dictation-panel {
    padding: 22px;
  }

  .spoken {
    font-size: 16px;
  }

  .output-box {
    font-size: 16px;
  }

  .quick-strip {
    justify-content: flex-start;
  }

  .compare-card,
  .privacy-panel {
    padding: 24px;
  }

  .compare-card p {
    min-height: 0;
    font-size: 19px;
  }

  .app-matrix {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
  }
}
