:root {
  --app-bg: #f7f7f5;
  --toolbar-bg: #ecede8;
  --panel-bg: #f1f2ee;
  --surface: #fbfbf8;
  --surface-strong: #ffffff;
  --surface-muted: #ecefea;
  --border: #e2e4de;
  --border-strong: #d4d8d0;
  --text: #1f1f1c;
  --muted: #686d63;
  --faint: #8a8f86;
  --accent: #10a37f;
  --accent-hover: #0e8f70;
  --accent-soft: #e7f5f1;
  --violet: #863bff;
  --cyan: #47bfff;
  --grid-line: rgba(236, 237, 232, 0.72);
  --header-bg: rgba(251, 251, 248, 0.86);
  --hover-bg: rgba(31, 31, 28, 0.05);
  --soft-fill: rgba(31, 31, 28, 0.06);
  --faint-fill: rgba(31, 31, 28, 0.04);
  --hero-glow: rgba(16, 163, 127, 0.12);
  --hero-end: rgba(241, 242, 238, 0.94);
  --shadow-soft: 0 22px 60px rgba(31, 31, 28, 0.1);
  --shadow-tight: 0 1px 2px rgba(31, 31, 28, 0.08);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  color: var(--text);
  background: var(--app-bg);
  font-family:
    "Avenir Next",
    "SF Pro Text",
    "PingFang SC",
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root[data-theme='dark'] {
  --app-bg: #1f1f1c;
  --toolbar-bg: #2f302c;
  --panel-bg: #282925;
  --surface: #252623;
  --surface-strong: #30312d;
  --surface-muted: #383a34;
  --border: #3e413a;
  --border-strong: #51554b;
  --text: #f4f4ef;
  --muted: #b7bbae;
  --faint: #8f9488;
  --accent: #20bf95;
  --accent-hover: #32d4a8;
  --accent-soft: rgba(32, 191, 149, 0.18);
  --grid-line: rgba(244, 244, 239, 0.055);
  --header-bg: rgba(37, 38, 35, 0.86);
  --hover-bg: rgba(244, 244, 239, 0.07);
  --soft-fill: rgba(244, 244, 239, 0.08);
  --faint-fill: rgba(244, 244, 239, 0.045);
  --hero-glow: rgba(32, 191, 149, 0.12);
  --hero-end: rgba(40, 41, 37, 0.94);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.34);
  --shadow-tight: 0 1px 2px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px),
    var(--app-bg);
  background-size: 96px 96px;
}

body::selection {
  background: var(--accent-soft);
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 14px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: var(--radius-lg);
  background: var(--header-bg);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-link,
.header-actions,
.titlebar-links,
.preference-toggles,
.hero-actions,
.segmented,
.swatches,
.site-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  font-weight: 700;
}

.brand-link img {
  width: 34px;
  height: 34px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: 0 12px 24px rgba(16, 163, 127, 0.14);
}

.header-actions {
  gap: 10px;
  min-width: 0;
}

.titlebar-links {
  flex: 0 0 auto;
  gap: 6px;
  min-width: 0;
}

.preference-toggles {
  flex: 0 0 auto;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.preference-button {
  appearance: none;
  position: relative;
  width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.language-toggle {
  min-width: 34px;
}

.theme-toggle {
  min-width: 34px;
}

.preference-icon {
  display: none;
}

.preference-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.preference-icon .han-icon {
  fill: currentColor;
  stroke: none;
}

.preference-button[data-state='system'] [data-state-icon='system'],
.preference-button[data-state='en'] [data-state-icon='en'],
.preference-button[data-state='zh'] [data-state-icon='zh'],
.preference-button[data-state='light'] [data-state-icon='light'],
.preference-button[data-state='dark'] [data-state-icon='dark'] {
  display: grid;
  place-items: center;
}

.preference-button[data-state='system'] {
  background: color-mix(in srgb, var(--surface) 64%, transparent);
}

.preference-button[data-state='en'],
.preference-button[data-state='zh'],
.preference-button[data-state='light'],
.preference-button[data-state='dark'] {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow-tight);
}

.preference-button:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.preference-button:focus-visible,
.icon-action:focus-visible,
.primary-action:focus-visible,
.text-action:focus-visible,
.setting-row a:focus-visible,
.side-directory a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 3px;
}

.side-directory {
  position: fixed;
  z-index: 19;
  top: 50%;
  right: 24px;
  width: 132px;
  transform: translateY(-50%);
  display: grid;
  gap: 14px;
  padding: 14px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 48%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--header-bg) 42%, transparent);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(18px);
}

.side-directory a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.side-directory a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.46;
}

.side-directory a:hover {
  color: var(--text);
  background: var(--hover-bg);
}

.side-directory a:active,
.preference-button:active,
.icon-action:active,
.primary-action:active,
.text-action:active,
.setting-row a:active {
  transform: scale(0.97);
}

.hero-section {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 132px max(24px, calc((100vw - 1120px) / 2)) 116px;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 84% 30%, var(--hero-glow), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--app-bg) 80%, transparent), var(--hero-end));
}

.hero-product-stage {
  position: absolute;
  inset: 94px -140px auto auto;
  z-index: -1;
  width: min(900px, 66vw);
  height: 610px;
  perspective: 1800px;
  pointer-events: none;
}

.stage-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 178px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(18px);
}

.service-badge {
  top: 68px;
  left: 22px;
}

.release-badge {
  right: 90px;
  bottom: 44px;
}

.stage-badge strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.stage-badge small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
}

.desktop-window {
  height: 100%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-strong) 86%, transparent);
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow:
    var(--shadow-soft),
    0 80px 160px color-mix(in srgb, var(--text) 12%, transparent);
  transform: rotateX(3deg) rotateY(-11deg) rotateZ(1deg);
  transform-origin: center;
  animation: window-enter 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.window-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 18px;
  background: color-mix(in srgb, var(--app-bg) 96%, var(--surface-strong));
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d6d9d2;
}

.traffic-lights span:first-child {
  background: #ed786f;
}

.traffic-lights span:nth-child(2) {
  background: #e8bd58;
}

.traffic-lights span:nth-child(3) {
  background: #69bf73;
}

.window-titlebar-brand {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.window-titlebar-brand img {
  width: 15px;
  height: 15px;
}

.window-titlebar-brand strong {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.preview-titlebar-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.preview-icon-segment {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--border) 56%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
}

.preview-icon-segment span {
  width: 21px;
  height: 19px;
  border-radius: 999px;
  background: transparent;
}

.preview-icon-segment .selected {
  background: var(--surface-strong);
  box-shadow: var(--shadow-tight);
}

.launcher-preview {
  height: calc(100% - 38px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: var(--app-bg);
}

.preview-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 64%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 96%, var(--app-bg));
  box-shadow: var(--shadow-tight);
}

.preview-status-group,
.preview-release-group,
.preview-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-status-pill,
.preview-release-group span,
.preview-release-action,
.preview-card-actions span,
.preview-server-row em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface));
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-status-pill.live,
.preview-server-row.selected em {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
}

.preview-status-pill.live::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.preview-release-group {
  min-width: 0;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--border) 58%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 64%, transparent);
}

.preview-release-action {
  border: 0;
  background: transparent;
}

.preview-launch-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.48fr);
  gap: 10px;
}

.preview-card {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 97%, var(--app-bg));
  box-shadow: var(--shadow-tight);
}

.preview-service-card {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.preview-theme-card {
  grid-template-rows: auto repeat(3, auto);
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-card-head p {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-card-head i,
.preview-card-actions i {
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
}

.preview-inline-note {
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-muted));
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.preview-search {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--border) 66%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
  color: color-mix(in srgb, var(--muted) 78%, transparent);
  font-size: 0.82rem;
}

.preview-server-list,
.preview-side {
  min-height: 0;
  display: grid;
  gap: 6px;
}

.preview-server-list {
  align-content: start;
}

.preview-server-row,
.preview-theme-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 66%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
}

.preview-server-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.preview-server-row.selected,
.preview-theme-row.selected {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
}

.preview-server-row div,
.preview-theme-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.preview-server-row strong,
.preview-theme-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-server-row span,
.preview-theme-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-side {
  grid-template-rows: minmax(0, 1fr) auto;
}

.preview-theme-row {
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 7px 10px;
}

.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent),
    0 0 0 3px color-mix(in srgb, var(--surface) 70%, transparent);
}

.theme-swatch.original {
  background: #ffd701;
}

.theme-swatch.accent {
  background: var(--accent);
}

.theme-swatch.graphite {
  background: #717771;
}

.preview-launch-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 74%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 88%, #ffffff),
      var(--accent)
    );
  color: #f9faf8;
  font-size: 0.94rem;
  font-weight: 760;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 10%, transparent),
    0 18px 38px -22px color-mix(in srgb, var(--accent) 80%, transparent);
}

.hero-copy {
  width: min(610px, 100%);
  max-width: 610px;
  display: grid;
  gap: 22px;
  animation: copy-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.icon-action {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 54%, transparent);
  color: var(--muted);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.icon-action:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
}

.icon-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-action img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.eyebrow,
.signal-strip span,
.feature-index {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 100%;
  font-family:
    "Avenir Next",
    "SF Pro Display",
    "PingFang SC",
    sans-serif;
  font-size: 4.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
  white-space: pre-line;
}

:root[data-lang='zh'] .hero-copy h1 {
  max-width: 100%;
  font-size: clamp(3.25rem, 5.6vw, 4.25rem);
  line-height: 1.05;
}

.hero-lede {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-points span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.primary-action,
.text-action,
.setting-row a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-action {
  padding: 0 18px;
  border: 1px solid rgba(14, 143, 112, 0.55);
  background: var(--accent);
  color: #f9faf8;
  box-shadow: 0 18px 34px rgba(16, 163, 127, 0.18);
}

.primary-action:hover {
  background: var(--accent-hover);
}

.text-action {
  padding: 0 4px;
  color: var(--text);
}

.text-action:hover,
.setting-row a:hover {
  color: var(--accent-hover);
}

.signal-strip,
.section-band,
.control-section,
.release-band,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.signal-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: -72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
  box-shadow: var(--shadow-soft);
}

.signal-strip div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.signal-strip strong {
  max-width: 20ch;
  font-size: 1.03rem;
  line-height: 1.32;
}

.section-band {
  display: grid;
  gap: 42px;
  padding: 104px 0 84px;
}

.section-heading {
  max-width: 760px;
  display: grid;
  gap: 14px;
}

.section-heading h2,
.control-copy h2,
.release-band h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.08fr 0.92fr;
  gap: 18px;
  align-items: start;
}

.feature-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}

.feature-grid article:nth-child(2) {
  margin-top: 44px;
  background: var(--surface-strong);
}

.feature-grid article:nth-child(3) {
  margin-top: 18px;
}

.feature-grid h3 {
  font-size: 1.24rem;
  line-height: 1.24;
}

.feature-grid p,
.control-copy p,
.preview-content span,
.site-footer,
.setting-row span {
  color: var(--muted);
}

.feature-grid p {
  line-height: 1.58;
}

.control-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  padding: 84px 0;
  border-top: 1px solid var(--border);
}

.control-copy {
  display: grid;
  gap: 16px;
}

.settings-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: var(--toolbar-bg);
  border-right: 1px solid var(--border);
}

.preview-sidebar span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.preview-sidebar .active {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow-tight);
}

.preview-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.preview-title-row,
.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.preview-title-row {
  margin-bottom: 12px;
}

.preview-title-row h3 {
  font-size: 1.32rem;
}

.preview-title-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 700;
}

.setting-row {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.setting-row div:first-child {
  display: grid;
  gap: 4px;
}

.setting-row strong {
  font-size: 1rem;
}

.segmented {
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.segmented span {
  width: 34px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
}

.segmented .selected {
  background: var(--surface-strong);
  box-shadow: var(--shadow-tight);
}

.swatches {
  gap: 8px;
}

.swatches span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
}

.swatches span:first-child {
  background: var(--accent);
}

.swatches span:nth-child(2) {
  background: var(--violet);
}

.swatches span:nth-child(3) {
  background: var(--cyan);
}

.setting-row a {
  color: var(--accent);
  font-size: 0.92rem;
}

.release-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-tight);
}

.release-copy {
  display: grid;
  gap: 10px;
}

.release-copy p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.56;
}

.release-copy code {
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: 0.86rem/1.4 "SF Mono", "Menlo", "Consolas", monospace;
  white-space: nowrap;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.release-band h2 {
  max-width: 760px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0 48px;
  font-size: 0.92rem;
}

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

.footer-links a {
  color: var(--text);
  font-weight: 700;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-links a:hover {
  color: var(--accent-hover);
}

.footer-links a:active {
  transform: scale(0.97);
}

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

@keyframes window-enter {
  from {
    opacity: 0;
    transform: translateX(40px) rotateX(4deg) rotateY(-8deg) rotateZ(1deg);
  }
  to {
    opacity: 1;
    transform: rotateX(3deg) rotateY(-11deg) rotateZ(1deg);
  }
}

@media (max-width: 1360px) {
  .side-directory {
    width: 44px;
    padding: 14px 6px;
  }

  .side-directory a {
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
  }

  .side-directory a::before {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 1020px) {
  .side-directory {
    display: none;
  }

  .hero-section {
    min-height: 920px;
    align-items: start;
    padding: 132px 24px 116px;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: 3.5rem;
  }

  .hero-product-stage {
    inset: auto -160px 34px auto;
    width: 860px;
    max-width: 108vw;
    height: 540px;
  }

  .service-badge {
    left: 48px;
  }

  .release-badge {
    right: 156px;
  }

  .preview-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .feature-grid article,
  .feature-grid article:nth-child(2),
  .feature-grid article:nth-child(3) {
    min-height: auto;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 9px 8px 10px;
  }

  .side-directory {
    display: none;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .brand-link {
    flex: 0 0 auto;
  }

  .brand-link span {
    display: none;
  }

  .titlebar-links {
    gap: 4px;
  }

  .icon-action {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
  }

  .icon-action svg {
    width: 17px;
    height: 17px;
  }

  .preference-toggles {
    width: auto;
    justify-content: flex-end;
    gap: 4px;
    padding-left: 0;
    border-left: 0;
  }

  .preference-button {
    width: 30px;
    min-height: 30px;
    padding: 0;
  }

  .language-toggle {
    min-width: 30px;
  }

  .theme-toggle {
    min-width: 30px;
  }

  .preference-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero-section {
    min-height: 930px;
    padding: 108px 20px 96px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(100vw - 40px);
    min-width: 0;
    gap: 18px;
  }

  .hero-lede {
    max-width: 30ch;
  }

  .hero-actions {
    width: calc(100vw - 40px);
    max-width: 335px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 2.85rem;
    line-height: 1.02;
  }

  :root[data-lang='zh'] .hero-copy h1 {
    max-width: 100%;
    font-size: 2.85rem;
    line-height: 1.08;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .primary-action,
  .text-action {
    width: 100%;
  }

  .hero-product-stage {
    right: -220px;
    bottom: 6px;
    width: 540px;
    height: 260px;
  }

  .stage-badge {
    min-width: 138px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }

  .stage-badge strong {
    font-size: 0.78rem;
  }

  .stage-badge small {
    font-size: 0.68rem;
  }

  .service-badge {
    top: 32px;
    left: 58px;
  }

  .release-badge {
    right: 88px;
    bottom: 22px;
  }

  .desktop-window {
    border-radius: 22px;
    transform: rotateX(2deg) rotateY(-10deg) rotateZ(1deg);
  }

  .window-bar {
    min-height: 30px;
    padding: 0 10px 0 14px;
  }

  .traffic-lights span {
    width: 9px;
    height: 9px;
  }

  .window-titlebar-brand img,
  .preview-titlebar-controls {
    display: none;
  }

  .window-titlebar-brand strong {
    font-size: 0.72rem;
  }

  .launcher-preview {
    height: calc(100% - 30px);
    gap: 6px;
    padding: 8px;
  }

  .preview-meta-row {
    gap: 5px;
    padding: 6px 8px;
    border-radius: var(--radius-md);
  }

  .preview-status-pill,
  .preview-release-group span,
  .preview-release-action,
  .preview-card-actions span,
  .preview-server-row em {
    min-height: 18px;
    padding: 3px 6px;
    font-size: 0.52rem;
  }

  .preview-release-group {
    padding: 2px;
  }

  .preview-launch-layout {
    gap: 6px;
  }

  .preview-card {
    gap: 5px;
    padding: 7px;
    border-radius: var(--radius-md);
  }

  .preview-card-head p {
    font-size: 0.58rem;
  }

  .preview-card-head i,
  .preview-card-actions i {
    width: 20px;
    height: 20px;
  }

  .preview-inline-note,
  .preview-server-row:nth-child(3),
  .preview-theme-row:nth-child(4) {
    display: none;
  }

  .preview-search {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.64rem;
  }

  .preview-server-row,
  .preview-theme-row {
    gap: 7px;
    padding: 5px 7px;
    border-radius: var(--radius-sm);
  }

  .preview-server-row strong,
  .preview-theme-row strong {
    font-size: 0.68rem;
  }

  .preview-server-row span,
  .preview-theme-row small {
    font-size: 0.58rem;
  }

  .theme-swatch {
    width: 17px;
    height: 17px;
  }

  .preview-launch-button {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 0.72rem;
  }

  .signal-strip,
  .section-band,
  .control-section,
  .release-band,
  .site-footer {
    width: calc(100% - 32px);
  }

  .signal-strip {
    grid-template-columns: 1fr;
    margin-top: -54px;
  }

  .signal-strip div {
    min-height: 108px;
  }

  .section-band,
  .control-section {
    padding: 68px 0;
  }

  .section-heading h2,
  .control-copy h2,
  .release-band h2 {
    font-size: 2rem;
  }

  .settings-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .preview-sidebar span {
    justify-content: center;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .preview-title-row,
  .setting-row,
  .release-band {
    grid-template-columns: 1fr;
  }

  .release-band {
    padding: 24px;
  }

  .release-actions {
    justify-content: stretch;
  }

  .release-actions .primary-action,
  .release-actions .text-action {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-link span {
    max-width: 9ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header {
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-section {
    min-height: 930px;
  }

  .hero-product-stage {
    right: -226px;
    bottom: 6px;
  }

  .preview-content,
  .feature-grid article {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 1ms;
    transition-duration: 1ms;
  }
}
