:root {
  color-scheme: dark;
  --bg: #101419;
  --surface: #171d23;
  --surface-raised: #20272e;
  --text: #f4f7f8;
  --muted: #aab4bc;
  --line: #323b43;
  --green: #32d19a;
  --blue: #4aa7ff;
  --amber: #f2c14e;
  --red: #f06a6a;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
footer a:hover,
.text-link:hover {
  color: var(--text);
}

.hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-content: center;
  gap: 56px;
  padding: 76px 0 64px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 10vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: #d2d9de;
  font-size: 23px;
  line-height: 1.45;
}

.actions,
.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: var(--text);
  color: #101419;
}

.button.primary:hover {
  background: var(--green);
}

.button.secondary {
  border-color: #4a555f;
  background: transparent;
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--text);
}

.release-note,
figcaption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-product {
  margin: 0;
}

.hero-product img {
  width: min(350px, 100%);
  height: auto;
  image-rendering: auto;
}

.feature-band,
.product-section,
.platform-band,
.zh-summary {
  border-top: 1px solid var(--line);
}

.feature-band {
  padding: 84px 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article {
  min-width: 0;
  padding: 28px 24px 28px 0;
}

.feature-grid article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.feature-grid p,
.product-copy > p,
.zh-summary > p {
  color: var(--muted);
}

.signal {
  width: 36px;
  height: 5px;
  display: block;
  margin-bottom: 18px;
  border-radius: 3px;
}

.signal-green { background: var(--green); }
.signal-blue { background: var(--blue); }
.signal-amber { background: var(--amber); }
.signal-red { background: var(--red); }

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 72px;
  padding: 96px 0;
}

.product-copy ul {
  margin: 28px 0;
  padding-left: 22px;
}

.product-copy li + li {
  margin-top: 8px;
}

.text-link {
  color: var(--green);
  font-weight: 750;
  text-underline-offset: 4px;
}

.product-preview {
  margin: 0;
}

.product-preview img {
  width: 100%;
  height: auto;
  border: 1px solid #59636d;
  border-radius: 8px;
}

.platform-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 80px 0;
}

.platform-band h2 {
  max-width: 690px;
  margin-bottom: 0;
}

.platform-actions {
  justify-content: flex-end;
}

.zh-summary {
  max-width: 820px;
  margin-left: 0;
  padding: 80px 0 96px;
}

code {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer span:first-child {
  color: var(--text);
  font-weight: 750;
}

footer a {
  margin-left: auto;
}

@media (max-width: 840px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid article:nth-child(3) {
    border-left: 0;
  }

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

  .product-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .platform-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    min-height: 64px;
  }

  nav {
    gap: 14px;
  }

  nav a:nth-child(-n + 2) {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 64px);
    gap: 38px;
    padding: 52px 0 36px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .actions,
  .platform-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-band,
  .product-section,
  .platform-band,
  .zh-summary {
    padding: 64px 0;
  }

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

  .feature-grid article,
  .feature-grid article + article {
    padding: 24px 0;
    border-left: 0;
  }

  .feature-grid article + article {
    border-top: 1px solid var(--line);
  }

  footer {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  footer a {
    margin: 8px 0 0;
  }
}

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