:root {
  color-scheme: light;
  --paper: #faf8f2;
  --paper-soft: #f3f0e9;
  --paper-strong: #ffffff;
  --ink: #111111;
  --muted: #696763;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --teal: #08796d;
  --teal-dark: #034f47;
  --mint: #dff3ec;
  --blue-soft: #dfe7ff;
  --amber: #e8ad45;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(66, 105, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 70%, rgba(8, 121, 109, 0.16), transparent 32%),
    linear-gradient(180deg, #f7f8fb 0%, #faf8f2 58%, #f4f0e8 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 26px;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  letter-spacing: 0;
}

.site-nav {
  justify-self: center;
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(30, 45, 74, 0.07);
}

.site-nav a,
.account-trigger {
  border-radius: 999px;
  color: var(--muted);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a,
.site-nav .account-trigger {
  padding: 8px 14px;
}

.site-nav a:hover,
.site-nav .account-trigger:hover {
  color: var(--ink);
  background: var(--mint);
}

.account-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 26px 82px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: min(760px, calc(100vh - 96px));
  padding: 70px 0 56px;
  text-align: center;
}

.native-hero {
  grid-template-columns: minmax(500px, 0.96fr) minmax(420px, 1.04fr);
  gap: 54px;
  place-items: center stretch;
  min-height: min(700px, calc(100vh - 92px));
  padding: 58px 0 42px;
  text-align: left;
}

.hero-copy {
  min-width: 0;
  width: 100%;
  padding-left: clamp(0px, 2vw, 24px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 960px;
  margin: 0 auto 22px;
  font-size: clamp(76px, 13vw, 184px);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: 0;
}

.native-hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(50px, 5vw, 68px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.native-hero h1 span {
  display: block;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.56;
  font-weight: 750;
}

.native-hero .hero-text {
  width: 100%;
  max-width: 560px;
  margin: 0;
  font-size: clamp(18px, 1.75vw, 23px);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.hero-actions,
.download-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.native-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(21, 20, 15, 0.12);
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.button.primary:hover {
  background: #056f60;
}

.button.quiet {
  background: rgba(255, 253, 247, 0.72);
}

.button.subtle {
  color: var(--muted);
  background: transparent;
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.hero-meta {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  width: 100%;
}

.native-hero .hero-meta {
  justify-content: flex-start;
}

.hero-meta span {
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.native-stage {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 440px;
  overflow: hidden;
}

.native-stage::before {
  content: "";
  position: absolute;
  inset: 12% -4% -6% 8%;
  z-index: 0;
  border-radius: 42px;
  background:
    radial-gradient(circle at 24% 20%, rgba(66, 105, 255, 0.2), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(8, 121, 109, 0.22), transparent 42%);
  filter: blur(4px);
}

.mac-window {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 430px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 32px 88px rgba(31, 47, 70, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.window-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-dots i:nth-child(2) {
  background: #febc2e;
}

.window-dots i:nth-child(3) {
  background: #28c840;
}

.typing-lines {
  display: grid;
  gap: 16px;
  padding: 14px 22px;
}

.typing-lines span {
  display: block;
  height: 15px;
  border-radius: 999px;
  background: #e9edf2;
}

.typing-lines span:nth-child(1) {
  width: 74%;
}

.typing-lines span:nth-child(2) {
  width: 88%;
}

.typing-lines span:nth-child(3) {
  width: 60%;
}

.typing-lines span:nth-child(4) {
  width: 76%;
}

.dictation-card {
  position: absolute;
  right: 36px;
  bottom: 34px;
  width: min(280px, calc(100% - 72px));
  padding: 20px;
  color: white;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.dictation-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dictation-card .fn-key {
  display: grid;
  place-items: center;
  width: 56px;
  height: 46px;
  color: var(--ink);
  background: white;
  border-radius: 9px;
  font-size: 22px;
  font-weight: 950;
}

.dictation-card strong {
  font-size: 19px;
}

.dictation-card .waveform {
  margin-top: 18px;
}

.dictation-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 760;
}

.speed-board {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.1fr) minmax(0, 0.82fr);
  gap: 14px;
  align-items: stretch;
  margin: 8px auto 42px;
}

.speed-board article {
  min-height: 220px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.speed-board article > span,
.voice-demo span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.speed-board strong {
  display: block;
  max-width: 360px;
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.05;
  font-weight: 950;
}

.speed-board p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.voice-demo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: var(--ink) !important;
  color: white;
}

.voice-demo strong {
  color: white;
}

.voice-demo .waveform {
  margin-top: 18px;
}

.works-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 42px;
  padding: 38px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.works-band > *,
.app-grid {
  min-width: 0;
}

.works-band.compact {
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1fr);
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(31, 47, 70, 0.08);
}

.works-band.compact h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(32px, 3.4vw, 50px);
  overflow-wrap: anywhere;
}

.works-band p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.app-grid span {
  display: grid;
  place-items: center;
  min-height: 68px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
}

.works-band.compact .app-grid span {
  min-height: 54px;
  border-radius: 14px;
}

.fn-key {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 70px;
  height: 58px;
  background: white;
  color: var(--ink);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 950;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
}

.waveform i {
  display: block;
  width: 8px;
  height: 24px;
  background: var(--mint);
  border-radius: 999px;
  animation: wave 1.1s ease-in-out infinite;
}

.waveform i:nth-child(2) { height: 38px; animation-delay: 80ms; }
.waveform i:nth-child(3) { height: 28px; animation-delay: 160ms; }
.waveform i:nth-child(4) { height: 44px; animation-delay: 240ms; }
.waveform i:nth-child(5) { height: 31px; animation-delay: 320ms; }
.waveform i:nth-child(6) { height: 36px; animation-delay: 400ms; }
.waveform i:nth-child(7) { height: 22px; animation-delay: 480ms; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.72); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.download-band,
.section-block {
  margin-top: 42px;
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}

.download-band .eyebrow,
.download-band p {
  color: rgba(255, 255, 255, 0.72);
}

.download-band h2 {
  color: white;
}

.download-actions {
  justify-content: flex-end;
  max-width: 330px;
}

.download-actions p,
.form-note,
.card-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.download-actions p {
  color: rgba(255, 255, 255, 0.64);
}

.section-block {
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-heading p,
.price-card li,
.release-item p {
  color: var(--muted);
  line-height: 1.58;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.price-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-card.pro {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(223, 243, 236, 0.86)),
    radial-gradient(circle at 92% 0, rgba(232, 173, 69, 0.2), transparent 32%);
  border-color: rgba(8, 121, 109, 0.34);
}

.plan-label {
  display: inline-block;
  padding: 6px 9px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.price {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1;
  font-weight: 950;
}

.price small {
  color: var(--muted);
  font-size: 16px;
}

ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0 0 22px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.release-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.release-item time {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 950;
}

.release-item strong {
  display: block;
  margin-bottom: 4px;
}

.account-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 17, 17, 0.22);
  backdrop-filter: blur(3px);
}

.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(440px, calc(100vw - 24px));
  height: 100vh;
  padding: 28px;
  overflow-y: auto;
  background: var(--paper-strong);
  border-left: 1px solid var(--line);
  box-shadow: -22px 0 60px rgba(17, 17, 17, 0.18);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.account-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.drawer-head h2 {
  font-size: 28px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--paper);
  border-radius: 8px;
}

.tab {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.tab.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.08);
}

.auth-form,
.account-state {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 121, 109, 0.14);
}

.identity-row,
.inline-edit,
.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-size: 21px;
  font-weight: 950;
}

.identity-row strong,
.identity-row span {
  display: block;
}

.identity-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inline-edit input {
  min-width: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-row div {
  padding: 14px;
  background: rgba(243, 240, 233, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  margin-bottom: 3px;
  font-size: 22px;
}

.metric-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 26px 46px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--ink);
}

.legal-page {
  max-width: 860px;
}

.legal-page h1 {
  white-space: normal;
}

.legal-page section {
  margin-top: 22px;
  padding: 24px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-page h2 {
  font-size: 28px;
}

.legal-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 650;
}

.legal-page a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-address {
  color: var(--teal-dark);
  font-weight: 850;
}

.support-line {
  margin-bottom: 8px;
  font-size: 24px !important;
}

.legal-meta {
  color: var(--muted);
  font-weight: 800;
}

.is-error {
  color: #b3261e;
}

.is-ok {
  color: var(--teal);
}

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

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
  }

  main {
    padding-inline: 18px;
  }

  .hero,
  .native-hero,
  .download-band,
  .price-grid,
  .speed-board,
  .works-band {
    grid-template-columns: 1fr;
  }

  .works-band.compact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .native-hero {
    gap: 34px;
    padding-top: 42px;
    text-align: left;
  }

  h1 {
    font-size: clamp(68px, 18vw, 112px);
  }

  .native-hero h1 {
    max-width: 680px;
    font-size: clamp(42px, 9.5vw, 66px);
    line-height: 1.06;
  }

  .native-stage {
    min-height: 390px;
  }

  .mac-window {
    min-height: 380px;
  }

  .download-actions {
    justify-content: flex-start;
    max-width: none;
  }

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

  .release-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .site-nav a {
    padding-inline: 11px;
  }

  main {
    padding-inline: 14px;
  }

  .hero-text {
    font-size: 20px;
  }

  .native-hero {
    padding-top: 30px;
  }

  .hero-copy {
    max-width: 342px;
  }

  .native-hero h1 {
    max-width: 342px;
    font-size: clamp(40px, 11.2vw, 48px);
  }

  .native-hero .hero-text {
    max-width: 342px;
    font-size: 18px;
  }

  .hero-meta {
    max-width: 330px;
    margin-inline: 0;
  }

  .hero-actions,
  .account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .account-actions .button {
    width: 100%;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

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

  .dictation-card {
    left: 18px;
    right: auto;
    bottom: 22px;
    width: 300px;
  }

  .native-stage {
    max-width: 362px;
  }

  .mac-window {
    width: 100%;
  }

  .works-band.compact {
    padding: 24px;
    max-width: 362px;
  }

  .works-band.compact h2 {
    font-size: 34px;
  }
}
