:root {
  color-scheme: dark;
  --ground: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #ededed;
  --text-soft: #c8c8c8;
  --muted: #888888;
  --invert: #ffffff;
  --invert-text: #000000;
  --focus: #ededed;
  --mesh-cyan: #0070f3;
  --mesh-magenta: #ff0080;
  --mesh-amber: #f5a623;
  --warranty: #00f0d4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --measure: 68ch;
  --content: 1120px;
  --font: "Inter Tight", sans-serif;
  --font-zh: "Noto Sans TC", "Inter Tight", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --ground: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #ececee;
  --hairline: rgba(0, 0, 0, 0.08);
  --text: #0a0a0a;
  --text-soft: #2a2a2a;
  --muted: #5c5c5c;
  --invert: #0a0a0a;
  --invert-text: #ffffff;
  --focus: #0a0a0a;
  --warranty: #008f82;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--ground);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  text-wrap: pretty;
  min-height: 100vh;
}

:lang(zh-Hant) body {
  font-family: var(--font-zh);
}

html:not([lang="en"]) [lang="en"],
html[lang="en"] [lang="zh-Hant"] {
  display: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--invert);
  color: var(--invert-text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--ground) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}

.masthead.on-hero {
  --text: #ededed;
  --muted: #8a8a8a;
  --hairline: rgba(255, 255, 255, 0.12);
  --ground: #000000;
  --invert: #ffffff;
  --invert-text: #000000;
  --focus: #ededed;
  color: #ededed;
  background: color-mix(in oklab, #000 62%, transparent);
}

.masthead-inner {
  width: min(calc(100% - 48px), 1920px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 40px;
}

.brand img {
  height: 36px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
}

.logo-light {
  display: none;
}

[data-theme="light"] .masthead:not(.on-hero) .logo-light {
  display: block;
}

[data-theme="light"] .masthead:not(.on-hero) .logo-dark {
  display: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 200ms var(--ease);
  white-space: nowrap;
}

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

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.theme-toggle,
.nav-menu,
.lang-toggle {
  height: 36px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.theme-toggle,
.nav-menu {
  width: 36px;
}

.lang-toggle {
  min-width: 44px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.theme-toggle:hover,
.nav-menu:hover,
.lang-toggle:hover {
  border-color: color-mix(in oklab, var(--text) 25%, transparent);
}

.theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

.nav-menu {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease),
    border-color 200ms var(--ease), color 200ms var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-solid {
  background: var(--invert);
  color: var(--invert-text);
}

.btn-solid:hover {
  background: color-mix(in oklab, var(--invert) 88%, var(--text));
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: color-mix(in oklab, var(--text) 30%, transparent);
}

.btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
}

.hero {
  width: min(100%, 1920px);
  margin-inline: auto;
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: auto -10% -30% auto;
  width: 70%;
  height: 80%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 70% 50%, color-mix(in oklab, var(--mesh-cyan) 28%, transparent), transparent 70%),
    radial-gradient(closest-side at 92% 62%, color-mix(in oklab, var(--mesh-amber) 22%, transparent), transparent 68%),
    radial-gradient(closest-side at 80% 40%, color-mix(in oklab, var(--mesh-magenta) 14%, transparent), transparent 60%);
  filter: blur(40px);
  opacity: 0.55;
  animation: mesh-drift 18s var(--ease) infinite alternate;
}

.hero-copy {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 120px 0 72px;
  max-width: 680px;
  margin-left: max(24px, calc((100% - min(100%, var(--content))) / 2));
  color: #ededed;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 48ch;
  color: #c8c8c8;
  font-size: 17px;
}

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

.hero .btn-solid {
  background: #fff;
  color: #000;
}

.hero .btn-ghost {
  color: #ededed;
  border-color: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  margin: 16px 0 0;
  max-width: var(--measure);
  color: var(--text-soft);
  font-size: 18px;
}

.impact-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 52ch);
  gap: 48px 64px;
  align-items: end;
}

.stat-hero {
  margin: 0;
}

.stat-hero .num {
  display: block;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 600;
}

.stat-hero .cap {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: 28ch;
}

.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 64px;
}

.evidence article {
  background: var(--surface);
  padding: 28px 24px;
}

.evidence h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.evidence p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.cite {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.need {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.need-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.need-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.need-list .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.need-list strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.need-list li > div > span {
  color: var(--muted);
  font-size: 14px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color 200ms var(--ease);
}

.plan::after {
  content: "";
  position: absolute;
  inset: auto 10% -40% 10%;
  height: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--mesh-cyan) 18%, transparent), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease);
}

.plan:hover {
  border-color: color-mix(in oklab, var(--text) 22%, transparent);
}

.plan:hover::after {
  opacity: 1;
}

.plan.featured {
  background: var(--surface-2);
}

.plan-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.plan h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.plan .blurb {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  min-height: 3.2em;
}

.price {
  margin: 28px 0 0;
  font-size: 48px;
  letter-spacing: -0.06em;
  font-weight: 600;
  line-height: 1;
}

.features {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.features li {
  padding-left: 16px;
  position: relative;
}

.features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--text);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.warranty {
  margin-top: auto;
  padding: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--warranty);
}

.plan .btn {
  margin-top: 20px;
  width: 100%;
}

.rate-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px 64px;
  align-items: center;
}

.certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.certs article {
  background: var(--surface);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.certs img,
.certs .cert-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: #0a0a0a;
  border-radius: 8px;
  padding: 6px;
}

.certs abbr {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-weight: 500;
}

.certs p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.contact {
  text-align: left;
}

.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--hairline);
}

.timeline li {
  position: relative;
}

.timeline-index {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--ground);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.timeline h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 28ch;
}

.contact-panel {
  margin-top: 40px;
  padding: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.contact-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.faq-list {
  margin: 48px 0 0;
  border-top: 1px solid var(--hairline);
}

.faq-list details {
  border-bottom: 1px solid var(--hairline);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--mono);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: var(--measure);
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--ground);
    border-bottom: 1px solid var(--hairline);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-menu {
    display: grid;
  }
}

@media (max-width: 980px) {
  .impact-head,
  .need,
  .plans,
  .experience,
  .evidence,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 16px;
    padding-bottom: 24px;
  }

  .timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 1px;
    background: var(--hairline);
  }

  .timeline-index {
    margin-bottom: 0;
    grid-row: 1 / span 2;
  }

  .need-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-copy {
    margin-left: auto;
    margin-right: auto;
    padding: 96px 0 56px;
  }

  .contact-panel {
    padding: 24px;
  }

  .plan .blurb {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .wrap,
  .masthead-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .section {
    padding: 72px 0;
  }

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

  .price {
    font-size: 40px;
  }

  .nav-end .btn {
    padding: 0 10px;
  }
}

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

  .hero-mesh,
  .btn,
  .plan,
  .plan::after,
  .nav-links a {
    animation: none;
    transition: none;
  }
}

@keyframes mesh-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 2%, 0) scale(1.06);
  }
}
