:root {
  --bg: #f6f5f2;
  --bg-soft: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --text: #0f1720;
  --text-soft: rgba(15, 23, 32, 0.68);
  --mint: #8ccab3;
  --mint-strong: #5aa88a;
  --sky: #dcebf6;
  --sand: #eee3cf;
  --coral: #f0c1ae;
  --shadow: 0 32px 80px rgba(31, 41, 55, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbfaf8 0%, #f6f5f2 22%, #f6f5f2 100%);
  font-family: "Manrope", sans-serif;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

code,
pre code {
  font-family: "IBM Plex Mono", monospace;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-left {
  top: -120px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: rgba(140, 202, 179, 0.38);
}

.ambient-right {
  top: 120px;
  right: -160px;
  width: 440px;
  height: 440px;
  background: rgba(220, 235, 246, 0.72);
}

.site-header,
.hero,
.metrics-strip,
.story-block,
.ai-usecases,
.feature-stack,
.capability-grid,
.install-section,
.faq-section,
.cta-section,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  backdrop-filter: blur(16px);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}

.brand-icon,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(31, 41, 55, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy span,
.footer-brand p,
.footer-meta,
.metrics-strip p,
.story-copy p,
.feature-copy p,
.capability-card p,
.faq-grid p,
.cta-section > p,
.hero-lead,
.hero-notes li {
  color: var(--text-soft);
}

.brand-copy span {
  font-size: 0.84rem;
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.04);
}

.site-nav a,
.header-cta,
.button,
.feature-label,
.eyebrow,
.pill,
.clip-app,
.clip-time {
  font-family: "IBM Plex Mono", monospace;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.site-nav a:hover {
  background: rgba(15, 23, 32, 0.04);
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 124px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(31, 41, 55, 0.05);
  font-size: 0.82rem;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.04);
}

.lang-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.lang-button.is-active {
  background: var(--text);
  color: #f8fbff;
}

.hero {
  padding: 40px 0 44px;
  text-align: center;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow,
.feature-label {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-strong);
}

.hero-headline,
.story-copy h2,
.section-heading h2,
.cta-section h2,
.feature-copy h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-headline,
.story-copy h2,
.section-heading h2,
.cta-section h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.95;
}

.hero-headline {
  position: relative;
  left: 50%;
  display: grid;
  gap: 0.06em;
  width: fit-content;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: 22px;
  padding-bottom: 28px;
  font-size: clamp(3.4rem, 6.8vw, 5.9rem);
  justify-items: center;
  transform: translateX(-50%);
}

.hero-headline span {
  display: block;
  width: max-content;
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
}

html[lang="zh-CN"] .hero-headline {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.hero-lead {
  max-width: 64ch;
  margin: 24px auto 0;
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #f8fbff;
  box-shadow: 0 20px 36px rgba(15, 23, 32, 0.14);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
}

.hero-notes li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.tool-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stage {
  position: relative;
  max-width: 1220px;
  margin: 52px auto 0;
  padding: 12px 0 0;
}

.device-shell {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.device {
  position: relative;
  display: block;
  min-height: 620px;
  overflow: hidden;
  border: 14px solid #12161d;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 225, 126, 0.94), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(255, 141, 54, 0.72), transparent 28%),
    radial-gradient(circle at 24% 66%, rgba(255, 174, 79, 0.32), transparent 26%),
    linear-gradient(135deg, #ff9825 0%, #ffba44 34%, #ff9a24 58%, #f8791f 100%);
  box-shadow:
    0 42px 90px rgba(31, 41, 55, 0.14),
    0 16px 30px rgba(31, 41, 55, 0.08);
}

.device-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 170px;
  height: 26px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  background: #12161d;
  transform: translateX(-50%);
}

.device-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.device-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.device-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 0 36px;
  color: rgba(255, 249, 240, 0.94);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.device-menu-app {
  font-weight: 700;
}

.device-menu-time {
  margin-left: auto;
}

.device-content {
  position: relative;
  min-height: 560px;
  padding: 86px 32px 24px;
}

.compose-window {
  width: min(100%, 770px);
  margin: 0 auto;
  padding: 18px 22px 150px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 60px rgba(55, 39, 18, 0.16);
}

.compose-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compose-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f39d38;
}

.compose-dot:nth-child(2) {
  background: #f5c64a;
}

.compose-dot:nth-child(3) {
  background: #64be66;
}

.compose-toolbar-spacer {
  flex: 1;
}

.compose-tool {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(214, 220, 229, 0.86);
}

.compose-meta {
  margin-top: 22px;
}

.compose-label {
  color: #8f96a3;
  font-size: 0.84rem;
}

.compose-recipient {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #344052;
}

.device-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.device-toolbar strong {
  font-size: 1.18rem;
  color: #1c2431;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(166, 226, 202, 0.76);
  color: #23694f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-editor {
  display: block;
}

.editor-card {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.editor-card-secondary {
  display: none;
}

.editor-label {
  color: #697282;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.editor-lines span {
  display: block;
  min-height: 46px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 33, 48, 0.08);
  color: #253040;
}

.context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.context-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.82);
  color: #5e6067;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
}

.context-tags span:first-child {
  background: rgba(216, 205, 189, 0.92);
}

.clipboard-pop {
  position: absolute;
  left: 84px;
  bottom: 158px;
  width: 230px;
  padding: 16px;
  border: 3px solid #53c95d;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 40px rgba(32, 30, 24, 0.18);
}

.clipboard-pop::after {
  content: "+";
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #53c95d;
  color: #ffffff;
  font-weight: 700;
}

.clipboard-pop-label {
  color: #ffffff;
  background: #53c95d;
  margin: -16px -16px 14px;
  padding: 10px 14px;
  border-radius: 18px 18px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clipboard-pop strong {
  display: block;
  color: #1f2530;
  font-size: 1rem;
  line-height: 1.4;
}

.clipboard-pop p {
  margin: 8px 0 0;
  color: #667180;
  line-height: 1.6;
}

.clipboard-tray {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(26, 29, 35, 0.08);
  border-radius: 24px;
  background: rgba(255, 247, 239, 0.88);
  box-shadow: 0 24px 50px rgba(50, 38, 20, 0.18);
  backdrop-filter: blur(18px);
}

.clip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
}

.device-base {
  position: relative;
  width: calc(100% - 120px);
  height: 74px;
  margin: -10px auto 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #cfd5dd 0%, #bec5cf 100%);
  box-shadow:
    0 16px 42px rgba(31, 41, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.device-lip {
  width: calc(100% - 280px);
  height: 18px;
  margin: -4px auto 0;
  border-radius: 0 0 16px 16px;
  background: #b4bbc4;
}

.clip-preview,
.device-float,
.visual-window,
.search-shell,
.group-board,
.cli-window,
.capability-card,
.install-card,
.faq-grid article,
.cta-section,
.story-block {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.clip-preview {
  min-height: 188px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.clip-preview-active {
  background:
    linear-gradient(135deg, rgba(220, 235, 246, 0.75), rgba(255, 255, 255, 0.96));
}

.clip-preview-blue {
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.92), rgba(244, 248, 252, 0.98));
}

.clip-preview-amber {
  background: linear-gradient(180deg, rgba(255, 244, 228, 0.92), rgba(255, 249, 241, 0.98));
}

.clip-preview-mint {
  background: linear-gradient(180deg, rgba(232, 248, 239, 0.92), rgba(247, 251, 248, 0.98));
}

.clip-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.clip-app,
.clip-time {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.clip-preview strong {
  display: block;
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.35;
}

.clip-preview:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 38px rgba(31, 41, 55, 0.12);
}

.clip-preview p,
.feature-copy p,
.capability-card p,
.faq-grid p,
.story-copy p,
.cta-section > p {
  margin: 10px 0 0;
  line-height: 1.8;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 56px;
}

.metrics-strip article {
  padding: 24px;
  border-top: 1px solid var(--line-strong);
}

.metrics-strip strong {
  display: block;
  font-size: 1rem;
}

.metrics-strip p {
  margin: 10px 0 0;
  line-height: 1.8;
}

.story-block {
  padding: 54px 56px;
  border-radius: var(--radius-xl);
}

.story-copy {
  max-width: 760px;
}

.story-copy h2,
.section-heading h2,
.cta-section h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.ai-usecases {
  padding: 48px 0 4px;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.usecase-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.usecase-card h3 {
  max-width: 15ch;
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.usecase-card p:last-child {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.feature-stack {
  display: grid;
  gap: 26px;
  padding: 32px 0 20px;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: center;
}

.feature-panel-reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
}

.feature-panel-reverse .feature-copy {
  order: 2;
}

.feature-panel-reverse .feature-visual {
  order: 1;
}

.feature-copy {
  padding: 22px 6px;
}

.feature-copy h3,
.capability-card h3,
.install-card h3,
.faq-grid h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.feature-visual {
  min-height: 360px;
  padding: 18px;
}

.visual-window,
.search-shell,
.group-board,
.cli-window {
  height: 100%;
  border-radius: 30px;
}

.feature-visual-history .visual-window {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.94));
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: calc(100% - 24px);
  margin-top: 18px;
}

.history-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: rgba(246, 245, 242, 0.82);
}

.history-card span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.history-card strong {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.5;
}

.history-card.featured {
  background:
    linear-gradient(135deg, rgba(140, 202, 179, 0.34), rgba(255, 255, 255, 0.96));
}

.search-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.94));
}

.search-input,
.search-result {
  padding: 18px;
  border-radius: 20px;
  background: rgba(249, 250, 251, 0.92);
}

.search-input {
  color: rgba(15, 23, 32, 0.48);
}

.search-result span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.search-result strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
}

.search-result.strong {
  background:
    linear-gradient(135deg, rgba(220, 235, 246, 0.9), rgba(255, 255, 255, 0.96));
}

.group-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 244, 0.96));
}

.group-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-chip.green,
.dot.green {
  background: rgba(140, 202, 179, 0.34);
}

.group-chip.sand,
.dot.sand {
  background: rgba(238, 227, 207, 0.64);
}

.group-chip.coral,
.dot.coral {
  background: rgba(240, 193, 174, 0.62);
}

.group-list {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.group-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 249, 250, 0.86);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.group-row strong,
.group-row em {
  font-style: normal;
}

.group-row em {
  color: var(--text-soft);
}

.cli-window {
  display: grid;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 251, 0.94));
}

.capability-grid,
.install-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 32px 0 12px;
}

.capability-card,
.install-card,
.faq-grid article {
  padding: 24px;
  border-radius: 28px;
}

.capability-card h3,
.install-card h3,
.faq-grid h3 {
  max-width: 14ch;
  font-size: 1.42rem;
}

.install-section,
.faq-section {
  padding: 56px 0 0;
}

.section-heading {
  max-width: 740px;
}

.install-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.install-card pre {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 20px;
  background: #eef4f7;
  color: #173143;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.cta-section {
  margin-top: 56px;
  margin-bottom: 24px;
  padding: 54px 24px;
  border-radius: 40px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(220, 235, 246, 0.74), rgba(255, 255, 255, 0.92));
}

.cta-section h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta-section > p {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: var(--text-soft);
}

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

.footer-meta {
  text-align: right;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    justify-self: start;
  }

  .header-actions {
    justify-self: start;
  }

  .hero-stage {
    max-width: 1120px;
  }

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

  .clipboard-tray {
    left: 220px;
    right: 24px;
  }

  .feature-panel,
  .feature-panel-reverse,
  .usecase-grid,
  .capability-grid,
  .install-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-panel-reverse .feature-copy,
  .feature-panel-reverse .feature-visual {
    order: initial;
  }

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

  .site-footer,
  .footer-meta {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .metrics-strip,
  .story-block,
  .ai-usecases,
  .feature-stack,
  .capability-grid,
  .install-section,
  .faq-section,
  .cta-section,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    padding: 16px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-headline {
    left: auto;
    width: auto;
    font-size: clamp(3.1rem, 17vw, 4.9rem);
    max-width: 10ch;
    margin-left: auto;
    margin-right: auto;
    padding-top: 14px;
    padding-bottom: 18px;
    transform: none;
  }

  .hero-headline span {
    width: auto;
    white-space: normal;
  }

  html[lang="zh-CN"] .hero-headline {
    max-width: 9ch;
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero-stage {
    margin-top: 36px;
  }

  .device {
    min-height: auto;
  }

  .device-content {
    padding: 20px 16px 18px;
  }

  .device-menu {
    gap: 12px;
    padding: 14px 16px 0 30px;
    font-size: 0.66rem;
  }

  .device-menu span:nth-child(n + 4):not(.device-menu-time) {
    display: none;
  }

  .compose-window {
    width: 100%;
    padding: 16px 16px 178px;
  }

  .clipboard-pop {
    position: static;
    width: auto;
    margin: 16px 0 0;
  }

  .clipboard-tray {
    position: static;
    margin-top: 16px;
  }

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

  .device-base {
    width: calc(100% - 40px);
  }

  .device-lip {
    width: calc(100% - 120px);
  }

  .metrics-strip,
  .faq-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .story-block,
  .cta-section {
    padding: 34px 20px;
  }

  .feature-visual {
    min-height: 300px;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-stage,
  .feature-panel,
  .capability-card,
  .install-card,
  .faq-grid article,
  .cta-section,
  .site-footer {
    animation: rise-in 800ms ease both;
  }

  .hero-stage {
    animation-delay: 120ms;
  }

  .feature-panel:nth-child(2) {
    animation-delay: 80ms;
  }

  .feature-panel:nth-child(3) {
    animation-delay: 160ms;
  }

  .feature-panel:nth-child(4) {
    animation-delay: 240ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
