:root {
  color-scheme: light;
  --background: #f6f6f4;
  --foreground: #0b0b0b;
  --muted: #555555;
  --subtle: #858585;
  --line: #dedede;
  --line-strong: #c6c6c6;
  --surface: #ffffff;
  --surface-raised: #eeeeec;
  --surface-soft: #f0f0ed;
  --background-band: rgba(0, 0, 0, 0.045);
  --surface-inverse: #050505;
  --foreground-inverse: #ffffff;
  --accent: #111111;
  --accent-strong: #000000;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --accent-line: rgba(0, 0, 0, 0.16);
  --accent-contrast: #ffffff;
  --success: #111111;
  --warning: #555555;
  --grid-line: rgba(0, 0, 0, 0.045);
  --glow-primary: transparent;
  --glow-ambient: transparent;
  --shadow: none;
  --radius: 8px;
  --radius-lg: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  letter-spacing: 0;
}

html[data-i18n-pending="true"] body {
  visibility: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.52;
}

.site-shell::after {
  display: none;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(14px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 12px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 30px;
  height: 30px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  min-width: 68px;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--foreground);
  background: var(--surface-raised);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 132px;
}

.nav-actions .btn {
  min-width: 88px;
}

.nav-actions .btn-primary {
  min-width: 106px;
}

.nav-controls {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  top: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(34px, 1fr));
  align-items: center;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented-control-button,
.theme-toggle {
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  cursor: pointer;
}

.segmented-control-button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.segmented-control-button[aria-pressed="true"],
html[data-lang="en"] .segmented-control-button[data-lang-option="en"],
html[data-lang="zh"] .segmented-control-button[data-lang-option="zh"] {
  background: var(--accent);
  color: var(--accent-contrast);
}

html[data-lang="en"] .segmented-control-button[data-lang-option="zh"],
html[data-lang="zh"] .segmented-control-button[data-lang-option="en"] {
  background: transparent;
  color: var(--muted);
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  transition: color 160ms ease, border 160ms ease, background 160ms ease;
}

.theme-toggle:hover,
.segmented-control-button:hover {
  color: var(--foreground);
  background: var(--surface-raised);
}

.theme-icon {
  display: grid;
  place-items: center;
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: grid;
}

html[data-theme="dark"] .theme-icon-sun {
  display: grid;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.icon-button svg,
.theme-toggle svg,
.btn svg,
.feature-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, border 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.btn-primary {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--accent-contrast);
  box-shadow: none;
}

.btn-primary:hover {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--accent-contrast);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--foreground);
}

.mobile-panel {
  display: none;
}

.snap-main {
  position: relative;
}

.scroll-page {
  position: relative;
  display: grid;
  min-height: auto;
  align-items: center;
  padding: clamp(82px, 12vh, 136px) 0;
  scroll-margin-top: 68px;
}

.gateway-page,
.coding-page {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 22%, transparent) 18%, color-mix(in srgb, var(--surface) 22%, transparent) 82%, transparent);
}

.feature-page {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-raised) 18%, transparent) 20%, color-mix(in srgb, var(--surface-raised) 18%, transparent) 82%, transparent);
}

.hero-page {
  overflow: hidden;
  min-height: calc(100svh - 68px);
  padding: clamp(74px, 10vh, 118px) 0 clamp(68px, 9vh, 108px);
}

.hero-page::before {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-page::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 18%, transparent), transparent);
  opacity: 0.7;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: min(620px, calc(100svh - 190px));
  place-items: center;
}

.wrap.hero-layout {
  width: 100%;
  max-width: none;
}

.hero-copy {
  width: min(100% - 48px, 1280px);
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-layout > * {
  min-width: 0;
  max-width: 100%;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 430px), 0.72fr);
  align-items: center;
  min-width: 0;
  gap: clamp(32px, 7vw, 86px);
}

.page-stack {
  display: grid;
  min-width: 0;
  gap: clamp(28px, 6vh, 52px);
}

.page-copy {
  min-width: 0;
  max-width: 760px;
}

.page-copy.hero-copy {
  width: min(calc(100vw - 48px), 1280px);
  max-width: none;
}

.page-copy-center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 720;
  box-shadow: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--foreground);
  box-shadow: none;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--foreground);
  font-weight: 820;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  width: fit-content;
  max-width: calc(100vw - 48px);
  min-height: auto;
  margin: 0 auto;
  font-size: clamp(44px, 4.9vw, 76px);
  line-height: 0.92;
  text-align: center;
  white-space: nowrap;
}

html[data-lang="zh"] h1 {
  max-width: 900px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 1;
}

h2 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
}

.page-copy-center h2 {
  margin-inline: auto;
}

.page-lead {
  max-width: 680px;
  min-height: 5em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-copy .page-lead {
  margin-inline: auto;
}

.page-copy-center .page-lead {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .btn {
  min-width: 166px;
  min-height: 50px;
  padding: 15px 19px;
  font-size: 15px;
}

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

.inline-actions .btn {
  min-height: 50px;
  padding: 15px 19px;
}

.access-visual {
  display: grid;
  min-width: 0;
  gap: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.endpoint-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: none;
}

.method {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

code {
  max-width: 100%;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.access-steps {
  display: grid;
  gap: 0;
  background: transparent;
}

.access-steps div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.access-steps div:last-child {
  border-bottom: 0;
}

.access-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.access-steps strong {
  min-width: 0;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  overflow: visible;
  border: 0;
  background: transparent;
}

.feature-card {
  --feature-accent: var(--accent);
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.feature-card::before {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  width: auto;
  height: 1px;
  content: "";
  background: var(--line-strong);
  box-shadow: none;
  opacity: 1;
  transition: opacity 200ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-top: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--feature-accent);
}

.feature-card:nth-child(2) {
  --feature-accent: var(--success);
}

.feature-card:nth-child(3) {
  --feature-accent: var(--warning);
}

.feature-card h3 {
  margin: 20px 0 0;
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.35;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.check-list,
.client-strip {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.single-focus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.55;
}

.check-list svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--success);
  flex: 0 0 auto;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.client-logo {
  display: grid;
  width: 100%;
  min-width: 0;
  height: clamp(58px, 7vw, 86px);
  place-items: center;
  background: var(--surface);
  color: var(--foreground);
  opacity: 0.72;
  transition: background 160ms ease, opacity 160ms ease;
}

.client-logo:hover {
  opacity: 1;
  background: var(--surface-raised);
}

.client-logo img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.client-logo-opencode {
  grid-column: span 2;
  justify-items: stretch;
}

.client-logo-opencode img {
  width: min(170px, calc(100% - 18px));
  height: auto;
  justify-self: center;
}

.client-logo-cherry img,
.client-logo-chatbox img,
.client-logo-lobe img,
.client-logo-cursor img,
.client-logo-antigravity img {
  width: 40px;
  height: 40px;
}

.client-logo-vscode img {
  width: 42px;
  height: 42px;
}

.footer {
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-icon-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  transition: transform 160ms ease, border 160ms ease, background 160ms ease, color 160ms ease;
}

.footer-icon-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--foreground);
}

.footer-icon-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot {
    animation: status-pulse 2400ms ease-in-out infinite;
  }

  @keyframes status-pulse {
    0%,
    100% {
      opacity: 0.72;
    }
    50% {
      opacity: 1;
    }
  }

  .scroll-page:not(.hero-page) > .wrap {
    transform: translateY(44px) scale(0.985);
    transition:
      transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  .scroll-page.is-visible > .wrap {
    transform: translateY(0);
  }

  .hero-page h1,
  .hero-page .page-lead,
  .hero-page .hero-actions {
    animation: hero-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--hero-delay, 0ms);
  }

  .hero-page h1 {
    --hero-delay: 80ms;
  }

  .hero-page .page-lead {
    --hero-delay: 160ms;
  }

  .hero-page .hero-actions {
    --hero-delay: 240ms;
  }

  .scroll-page.is-visible .feature-card,
  .scroll-page.is-visible .check-list li,
  .scroll-page.is-visible .client-logo,
  .scroll-page.is-visible .access-steps div {
    animation: item-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(90ms + var(--item-index, 0) * 78ms);
  }

  @keyframes item-rise {
    from {
      transform: translateY(22px);
    }
    to {
      transform: translateY(0);
    }
  }

  @keyframes hero-rise {
    from {
      transform: translateY(18px);
      opacity: 1;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

}

@media (max-width: 1180px) {
  .nav {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .nav-links a {
    min-width: 58px;
    padding-inline: 8px;
  }

  .nav-actions {
    gap: 8px;
    margin-right: 124px;
  }

  .nav-actions .btn {
    min-width: 78px;
    padding-inline: 12px;
  }

  .nav-actions .btn-primary {
    min-width: 98px;
  }
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .icon-button {
    position: fixed;
    top: 13px;
    right: max(14px, env(safe-area-inset-right));
    z-index: 31;
    display: grid;
  }

  .nav-controls {
    right: max(66px, calc(env(safe-area-inset-right) + 66px));
    top: 13px;
  }

  .mobile-panel {
    position: fixed;
    inset: 77px 16px auto;
    z-index: 19;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-panel:target {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 12px;
    border-radius: var(--radius);
    color: var(--foreground);
    font-weight: 720;
  }

  .mobile-panel a:hover {
    background: var(--accent-soft);
  }

  .mobile-panel .mobile-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
  }

  .mobile-panel .btn {
    min-width: 0;
    padding-inline: 10px;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .access-visual,
  .scenario-list {
    width: min(100%, 680px);
    max-width: 100%;
  }

  .scroll-page {
    min-height: auto;
    padding: 72px 0;
  }

  .hero-page {
    min-height: calc(100svh - 68px);
    padding: 72px 0;
  }

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

@media (max-width: 860px) {
  html {
    scroll-padding-top: 68px;
  }

  .wrap {
    width: min(100% - 32px, 880px);
  }

  .scroll-page {
    min-height: auto;
    padding: 64px 0;
  }

  h1 {
    width: 100%;
    min-height: auto;
    max-width: 12.6em;
    font-size: clamp(36px, 6.8vw, 54px);
    line-height: 1.02;
    white-space: normal;
  }

  html[data-lang="zh"] h1 {
    max-width: 11em;
    font-size: clamp(38px, 9vw, 58px);
    line-height: 1;
  }

  h2 {
    font-size: 36px;
    line-height: 1.08;
  }

  .page-lead {
    min-height: auto;
    font-size: 16px;
  }

  .page-copy-center {
    text-align: left;
  }

  .hero-copy {
    text-align: center;
  }

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

  .page-copy-center h2,
  .page-copy-center .page-lead {
    margin-inline: 0;
  }

  .hero-copy .page-lead {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .mobile-panel .btn {
    min-width: 0;
    width: 100%;
  }

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

  .feature-card {
    min-height: 0;
  }

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

  .footer .wrap {
    display: block;
  }

  .footer-links {
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 10px;
  }

  .brand-copy {
    display: none;
  }

  .nav-controls {
    gap: 6px;
  }

  .segmented-control {
    grid-template-columns: repeat(2, minmax(30px, 1fr));
    min-height: 34px;
    padding: 2px;
  }

  .segmented-control-button {
    min-width: 30px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 11px;
  }

  .theme-toggle,
  .icon-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .icon-button {
    top: 17px;
    right: max(10px, env(safe-area-inset-right));
  }

  .nav-controls {
    top: 17px;
    right: max(52px, calc(env(safe-area-inset-right) + 52px));
  }

  h1 {
    min-height: auto;
    max-width: 100%;
    font-size: clamp(28px, 6.4vw, 34px);
    line-height: 1.08;
    white-space: normal;
  }

  html[data-lang="zh"] h1 {
    max-width: 10em;
    font-size: clamp(30px, 8.6vw, 40px);
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions .btn {
    min-height: 48px;
    gap: 7px;
    padding: 13px 12px;
    font-size: 14px;
  }

  .access-steps div {
    display: grid;
    justify-content: stretch;
  }

  .access-steps strong {
    text-align: left;
  }

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

  .client-logo-opencode {
    grid-column: span 2;
  }
}

@media (max-width: 430px) {
  .wrap {
    width: min(100% - 24px, 100%);
  }

  .nav {
    gap: 6px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-mark img {
    width: 27px;
    height: 27px;
  }

  .nav-controls {
    gap: 5px;
  }

  .segmented-control {
    grid-template-columns: repeat(2, 26px);
  }

  .segmented-control-button {
    min-width: 26px;
    padding-inline: 4px;
  }

  h1 {
    min-height: auto;
    max-width: 100%;
    font-size: clamp(26px, 6.2vw, 30px);
    line-height: 1.08;
  }

  html[data-lang="zh"] h1 {
    max-width: 9em;
    font-size: clamp(28px, 7.8vw, 32px);
  }

  h2 {
    font-size: 30px;
  }

  .scroll-page {
    padding: 54px 0;
  }

  .access-steps div {
    padding-block: 16px;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #030303;
  --foreground: #f4f4f1;
  --muted: #a4a4a4;
  --subtle: #6f6f6f;
  --line: #1f1f1f;
  --line-strong: #333333;
  --surface: #09090b;
  --surface-raised: #151517;
  --surface-soft: #111114;
  --background-band: rgba(255, 255, 255, 0.032);
  --surface-inverse: #f4f4f1;
  --foreground-inverse: #030303;
  --accent: #f4f4f1;
  --accent-strong: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-line: rgba(255, 255, 255, 0.16);
  --accent-contrast: #030303;
  --success: #f4f4f1;
  --warning: #a4a4a4;
  --grid-line: rgba(255, 255, 255, 0.045);
  --glow-primary: transparent;
  --glow-ambient: transparent;
  --shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-padding-top: 0 !important;
  }

  .btn:hover,
  .feature-card:hover,
  .footer-icon-link:hover {
    transform: none !important;
  }
}
