:root {
  color-scheme: light;
  --ink: #111820;
  --ink-2: #2c3942;
  --muted: #5f6c67;
  --subtle: #8a9691;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --surface-3: #f2eee8;
  --line: #dce3df;
  --line-strong: #c7d0cb;
  --teal: #1f8073;
  --teal-2: #5bc8b8;
  --clay: #b85c38;
  --amber: #c08a2e;
  --shadow-sm: 0 1px 2px rgba(17, 24, 32, 0.06);
  --shadow-md: 0 6px 24px rgba(17, 24, 32, 0.07);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-lang="zh"] {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: rgba(247, 248, 246, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 248, 246, 0.9);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 450;
}

.nav-links a {
  color: var(--muted);
  transition: color 140ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

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

.lang-button,
.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.lang-button {
  cursor: pointer;
  color: var(--ink);
  background: transparent;
}

.ghost-button {
  background: var(--surface);
}

.lang-button:hover,
.ghost-button:hover,
.lang-button:focus-visible,
.ghost-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 20px;
}

.primary-button {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #000;
}

.header-cta.primary-button {
  min-height: 38px;
  padding: 0 15px;
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.hero {
  position: relative;
  min-height: calc(100svh - 38px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--paper) 0%,
      rgba(247, 248, 246, 0.94) 38%,
      rgba(247, 248, 246, 0.55) 60%,
      rgba(247, 248, 246, 0.08) 88%
    ),
    url("./assets/motif-hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-availability {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(720px, 100%);
  margin: 36px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.hero-facts div {
  min-height: 92px;
  padding: 18px 20px;
}

.hero-facts div + div {
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 84px;
}

.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.two-column,
.architecture-layout,
.security-grid,
.quickstart {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.intro-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0 0 18px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.screenshot-band {
  background:
    linear-gradient(180deg, rgba(238, 243, 240, 0.62), rgba(247, 248, 246, 0.2)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.screenshot-heading {
  max-width: 780px;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.screenshot-gallery > * {
  min-width: 0;
}

.screenshot-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101418;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-card-mac {
  grid-column: span 4;
}

.screenshot-card-mac .screenshot-frame {
  aspect-ratio: 1.45;
}

.phone-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.screenshot-card-phone .screenshot-frame {
  background: var(--surface);
  aspect-ratio: 1206 / 2622;
}

.screenshot-card figcaption {
  display: grid;
  gap: 5px;
  padding: 14px 4px 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.screenshot-card figcaption strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.is-zoomable {
  cursor: zoom-in;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
}

.lightbox-stage {
  display: flex;
  min-height: 0;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #101418;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-figure.is-phone .lightbox-img {
  max-height: 80vh;
}

.lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 640px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.lightbox-copy {
  font-size: 0.9rem;
  line-height: 1.5;
}

.lightbox-counter {
  margin-top: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 26, 32, 0.7);
  color: #fff;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(44, 52, 60, 0.92);
  border-color: rgba(255, 255, 255, 0.42);
}

.lightbox-close {
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: clamp(8px, 2vw, 24px);
}

.lightbox-next {
  right: clamp(8px, 2vw, 24px);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  line-height: 1.25;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading.compact {
  max-width: 820px;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.feature-grid > *,
.run-grid > *,
.rzv-layout > *,
.rzv-cards > *,
.quick-steps > *,
.faq-grid > *,
.two-column > *,
.architecture-layout > *,
.security-grid > *,
.quickstart > * {
  min-width: 0;
}

.feature-card {
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* first row has no top border */
.feature-card:nth-child(-n + 3) {
  border-top: 0;
}

/* first column has no left border */
.feature-card:nth-child(3n + 1) {
  border-left: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--teal);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p,
.run-card p,
.step-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.use-band {
  background: var(--surface-2);
}

.rzv-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(238, 243, 240, 0.48)),
    var(--paper);
  border-top: 1px solid var(--line);
}

.connect-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.run-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.run-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.run-card h3,
.step-card h3,
.rzv-card h3,
.rzv-notes h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

pre {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f151b;
  color: #d7ded8;
  font-size: 0.82rem;
  line-height: 1.6;
}

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

.steps {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
}

.steps li + li {
  margin-top: 10px;
}

.rzv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.rzv-cards {
  display: grid;
  gap: 16px;
}

.rzv-card,
.rzv-notes {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.rzv-card {
  padding: 26px;
}

.rzv-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rzv-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 650;
}

.rzv-card p,
.rzv-notes li {
  color: var(--muted);
  font-size: 0.95rem;
}

.rzv-card p {
  margin: 10px 0 0;
}

.rzv-card .code-label {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}

.rzv-card .code-label + pre {
  margin-top: 8px;
}

.rzv-notes {
  position: sticky;
  top: 84px;
  padding: 26px;
}

.rzv-notes ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.rzv-notes li {
  position: relative;
  padding-left: 22px;
}

.rzv-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.text-link {
  color: var(--teal);
  font-size: 0.94rem;
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
}

.quick-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.step-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.connection-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.45fr;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  padding: 16px 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.table-row span + span {
  border-left: 1px solid var(--line);
}

.table-head span {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-row:not(.table-head) span:first-child {
  color: var(--ink);
  font-weight: 550;
}

.compare-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row span {
  padding: 15px 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.compare-row span + span {
  border-left: 1px solid var(--line);
  text-align: center;
}

.compare-head span {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-row:not(.compare-head) span:first-child {
  color: var(--ink);
  font-weight: 550;
}

.compare-motif {
  background: rgba(31, 128, 115, 0.06);
}

.compare-head span.compare-motif {
  color: var(--teal);
  background: rgba(31, 128, 115, 0.1);
}

.compare-row .yes {
  color: var(--teal);
  font-weight: 600;
}

.compare-row .partial {
  color: var(--amber);
  font-weight: 600;
}

.compare-row .no {
  color: var(--subtle);
}

.compare-legend {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.architecture-layout {
  align-items: center;
}

.architecture-layout p {
  color: var(--muted);
  font-size: 1.02rem;
}

.diagram {
  display: grid;
  gap: 10px;
}

.diagram-clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.diagram-clients span,
.diagram-server,
.diagram-host,
.diagram-link {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 15px;
  font-size: 0.92rem;
}

.diagram-clients span {
  font-weight: 500;
}

.diagram-link {
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface-2);
}

.diagram-server {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.diagram-server strong {
  grid-column: 1 / -1;
  font-size: 1.05rem;
  font-weight: 600;
}

.diagram-server span {
  padding: 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.diagram-host {
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
}

.security-band {
  background: var(--ink);
  color: #fff;
}

.security-band .section-kicker {
  color: var(--teal-2);
}

.security-band h2 {
  color: #fff;
}

.security-band p {
  color: rgba(255, 255, 255, 0.7);
}

.security-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.security-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.security-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  font-weight: 550;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--subtle);
  font-weight: 400;
}

details[open] summary::after {
  content: "\2013";
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 36px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  font-weight: 600;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 60px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 28px);
  }

  .hero-bg {
    background:
      linear-gradient(
        180deg,
        var(--paper) 0%,
        rgba(247, 248, 246, 0.95) 48%,
        rgba(247, 248, 246, 0.55) 100%
      ),
      url("./assets/motif-hero.png") 62% center / cover no-repeat;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-copy {
    max-width: 560px;
  }

  .hero-facts,
  .two-column,
  .architecture-layout,
  .security-grid,
  .quickstart {
    grid-template-columns: 1fr;
  }

  .screenshot-card-mac {
    grid-column: span 6;
  }

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

  .feature-card:nth-child(-n + 3) {
    border-top: 1px solid var(--line);
  }

  .feature-card:nth-child(-n + 2) {
    border-top: 0;
  }

  .feature-card:nth-child(3n + 1) {
    border-left: 1px solid var(--line);
  }

  .feature-card:nth-child(odd) {
    border-left: 0;
  }

  .run-grid,
  .rzv-layout,
  .quick-steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .rzv-notes {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 16px;
  }

  .brand span {
    display: none;
  }

  .ghost-button {
    display: none;
  }

  .hero-content,
  .section-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .hero-content {
    padding: 96px 0 30px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 24px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .header-cta.primary-button {
    width: auto;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-facts div {
    min-height: auto;
    padding: 14px 16px;
  }

  .hero-facts div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-facts dd {
    margin-top: 4px;
  }

  .section {
    padding: 64px 0;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .screenshot-card-mac,
  .phone-strip {
    grid-column: auto;
  }

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

  .screenshot-card {
    padding: 8px;
  }

  .screenshot-card figcaption {
    padding: 12px 2px 0;
  }

  .lightbox-img {
    max-height: 66vh;
  }

  .lightbox-figure.is-phone .lightbox-img {
    max-height: 70vh;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

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

  .feature-card {
    border-left: 0 !important;
    border-top: 1px solid var(--line) !important;
  }

  .feature-card:first-child {
    border-top: 0 !important;
  }

  .run-card {
    padding: 22px;
  }

  .rzv-card,
  .rzv-notes {
    padding: 22px;
  }

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

  .table-row span {
    padding: 13px 16px;
  }

  .table-row span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .table-head {
    display: none;
  }

  .compare-row span {
    padding: 11px 7px;
    font-size: 0.82rem;
  }

  .compare-head span {
    font-size: 0.66rem;
    letter-spacing: 0.02em;
  }

  .diagram-clients,
  .diagram-server {
    grid-template-columns: 1fr;
  }

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

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

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
