:root {
  color-scheme: light;
  --ink: #13211f;
  --muted: #5c6a66;
  --line: #dce7e3;
  --paper: #ffffff;
  --soft: #f4faf7;
  --soft-strong: #e6f5ef;
  --brand: #0f766e;
  --brand-deep: #0b4f49;
  --accent: #c7353a;
  --accent-soft: #fde8e8;
  --warning: #8a5a00;
  --warning-soft: #fff5d8;
  --shadow: 0 18px 50px rgba(14, 49, 44, 0.12);
  font-family: "Inter", "Noto Sans TC", "Noto Sans HK", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
}

.brand-subtitle {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--brand-deep);
  text-decoration: none;
}

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

.button,
button {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.button-primary:hover {
  background: var(--brand-deep);
}

.button-secondary {
  color: var(--brand-deep);
  background: var(--soft-strong);
}

.button-ghost {
  color: var(--brand-deep);
  background: transparent;
  border: 1px solid var(--line);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(15, 118, 110, 0.14), transparent 28%),
    linear-gradient(180deg, #f7fcfa 0%, #ffffff 78%);
}

.hero-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 48px;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--brand-deep);
  background: var(--soft-strong);
  font-size: 13px;
  font-weight: 750;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede,
.page-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--brand);
  vertical-align: 1px;
}

.app-mockup {
  border-radius: 18px;
  padding: 12px;
  background: #0f2420;
  box-shadow: var(--shadow);
}

.mock-window {
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}

.mock-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #edf5f2;
  border-bottom: 1px solid var(--line);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b8c9c3;
}

.mock-body {
  padding: 22px;
}

.mock-recording {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
}

.wave i {
  width: 5px;
  border-radius: 999px;
  background: var(--brand);
}

.wave i:nth-child(1) { height: 18px; }
.wave i:nth-child(2) { height: 30px; }
.wave i:nth-child(3) { height: 40px; }
.wave i:nth-child(4) { height: 24px; }
.wave i:nth-child(5) { height: 34px; }
.wave i:nth-child(6) { height: 16px; }

.mock-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.mock-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.mock-panel p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--soft);
}

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

.section-heading h2,
.page-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p,
.page-section p {
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.example {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 18px;
}

.quote-box {
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.quote-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-deep);
}

.quote-box p {
  margin: 0;
}

.page-hero {
  padding: 62px 0 44px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-section {
  padding: 44px 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-table th,
.info-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 220px;
  color: var(--muted);
  font-weight: 700;
  background: var(--soft);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.checksum {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.notice {
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #f1d58c;
  color: var(--warning);
  background: var(--warning-soft);
}

.notice p {
  margin: 0;
  color: inherit;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.release-item {
  border-left: 4px solid var(--brand);
  padding: 20px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(19, 33, 31, 0.06);
}

.release-item h2 {
  margin-top: 0;
}

.release-item ul,
.content-list {
  padding-left: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
}

pre {
  overflow-x: auto;
  border-radius: 8px;
  padding: 18px;
  color: #f7fffc;
  background: #12322d;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-footer {
  margin-top: auto;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .example,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 44px;
  }

  .app-mockup {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .section-inner,
  .footer-inner,
  .hero-grid {
    width: min(100% - 24px, 1120px);
  }

  .header-actions,
  .hero-actions,
  .action-row {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
