:root {
  --bg: #faf9f7;
  --ink: #111213;
  --mid: #767676;
  --line: #e3e1dc;
  --hair: #d9d6d0;
  --on-dark: #faf9f7;
  --on-dark-mid: rgba(250, 249, 247, 0.66);
  --on-dark-line: rgba(250, 249, 247, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC",
    "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
b,
th {
  font-weight: 500;
}

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

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.rule {
  height: 1px;
  background: var(--line);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.wordmark {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.nav {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  transform: translate(-50%, -50%);
}

.nav a:hover,
.footer-columns a:hover {
  opacity: 0.55;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.text-link {
  margin: 0 0.2em;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover {
  opacity: 0.6;
}

.pill-solid {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transition: opacity 0.15s ease;
}

.pill-solid:hover {
  opacity: 0.8;
}

/* Hero */
.hero {
  padding-top: 104px;
  text-align: center;
}

h1 {
  font-size: clamp(44px, 7.2vw, 100px);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.title-line {
  display: inline-block;
}

.hero-lead {
  max-width: 720px;
  margin: 30px auto 0;
  color: var(--mid);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.8;
}

.btn-solid {
  background: var(--ink);
  color: #fff;
}

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

.hero-meta {
  margin-top: 34px;
  color: var(--mid);
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* Floating product screenshot */
.stage {
  position: relative;
  margin-top: 96px;
  background: #101010;
  box-shadow: 0 30px 70px -38px rgba(17, 18, 19, 0.34);
}

.stage img {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.stage .badge {
  position: absolute;
  top: 16px;
  left: 28px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.badge-sep {
  width: 1px;
  height: 10px;
  background: var(--hair);
}

.badge-date {
  color: var(--mid);
}

/* Sections */
.section {
  padding: 132px 0;
}

.section-head {
  text-align: center;
}

.section-head h2,
.download h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-lead {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--mid);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
}

.section-body {
  margin-top: 72px;
}

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

.stats > div {
  padding: 26px 28px 24px;
  border-right: 1px solid var(--line);
}

.stats > div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--mid);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
}

.steps > div {
  padding-right: 36px;
  border-right: 1px solid var(--line);
}

.steps > div + div {
  padding-left: 36px;
}

.steps > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.steps i {
  display: block;
  margin-bottom: 14px;
  color: var(--mid);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.4;
}

.steps p {
  color: var(--mid);
  font-size: 14.5px;
  line-height: 1.7;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 0 24px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mid);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: left;
}

.table td {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mid);
  vertical-align: middle;
}

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

.table .name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

.table .code {
  width: 120px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.skill-name {
  width: 32%;
}

.flow-name {
  width: 30%;
}

.columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.columns > div {
  padding: 0 32px;
  border-right: 1px solid var(--line);
}

.columns > div:first-child {
  padding-left: 0;
}

.columns > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.columns h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.columns p {
  color: var(--mid);
  font-size: 14.5px;
  line-height: 1.7;
}

.columns p {
  min-height: 3.4em;
}

.columns .models {
  margin: 16px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.8;
  list-style: none;
}

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

.split > div {
  padding-right: 56px;
}

.split > div:last-child {
  padding-right: 0;
  padding-left: 56px;
  border-left: 1px solid var(--line);
}

.split h3 {
  margin-bottom: 18px;
  color: var(--mid);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.item:last-child {
  border-bottom: 1px solid var(--line);
}

.item b {
  display: block;
  margin-bottom: 4px;
}

.item p {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.7;
}

/* Download */
.download {
  padding-top: 56px;
  background: var(--ink);
  color: var(--on-dark);
}

.download .badge {
  margin-bottom: 34px;
}

.download-lead {
  max-width: 640px;
  margin-top: 22px;
  color: var(--on-dark-mid);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
}

.download-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.7fr 0.7fr 176px;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  padding: 34px 0;
  border-top: 1px solid var(--on-dark-line);
  border-bottom: 1px solid var(--on-dark-line);
}

.download-os {
  font-size: 24px;
  font-weight: 500;
}

.download-spec {
  color: var(--on-dark-mid);
  font-size: 14.5px;
}

.download-action {
  text-align: right;
}

.download .btn-solid {
  padding: 13px 26px;
  background: var(--on-dark);
  color: var(--ink);
  font-size: 15px;
}

.notes {
  display: flex;
  gap: 56px;
  padding: 36px 0 56px;
}

.notes > div {
  max-width: 320px;
  color: var(--on-dark-mid);
  font-size: 13.5px;
  line-height: 1.7;
}

.notes b {
  display: block;
  margin-bottom: 4px;
  color: var(--on-dark);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 64px 0 56px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-domain {
  margin-top: 8px;
  color: var(--mid);
  font-size: 14px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 64px;
  color: var(--mid);
  font-size: 14px;
}

.footer-columns b {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.footer-columns a {
  display: block;
  padding: 5px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mid);
  font-size: 13px;
}

@media (max-width: 1023px) {
  .wrap {
    padding: 0 32px;
  }

  .nav {
    position: static;
    gap: 20px;
    transform: none;
  }

  .hero {
    padding-top: 72px;
  }

  .stage {
    margin-top: 64px;
  }

  .section {
    padding: 96px 0;
  }

  .section-body {
    margin-top: 56px;
  }

  .stats,
  .steps,
  .columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats > div:nth-child(2) {
    border-right: 0;
  }

  .stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .steps {
    gap: 40px 0;
  }

  .steps > div:nth-child(odd) {
    padding-left: 0;
  }

  .steps > div:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }

  .columns {
    gap: 48px 0;
  }

  .columns > div:nth-child(odd) {
    padding-left: 0;
  }

  .columns > div:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }

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

  .download-os {
    grid-column: 1 / -1;
  }

  .notes {
    gap: 32px;
  }
}

@media (max-width: 719px) {
  .wrap {
    padding: 0 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 14px;
    padding-bottom: 12px;
    row-gap: 12px;
  }

  .nav {
    order: 3;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .pill {
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-lead {
    margin-top: 20px;
  }

  .actions {
    margin-top: 28px;
  }

  .hero-meta {
    margin-top: 24px;
  }

  .stage {
    margin-top: 40px;
  }

  .stage .badge {
    top: 10px;
    left: 10px;
    padding: 5px 10px 5px 8px;
    font-size: 11px;
  }

  .section {
    padding: 72px 0;
  }

  .section-body {
    margin-top: 40px;
  }

  .stats > div {
    padding: 20px 16px 18px;
  }

  .steps,
  .columns,
  .split {
    grid-template-columns: 1fr;
  }

  .steps > div,
  .steps > div + div,
  .columns > div {
    padding: 0;
    border-right: 0;
  }

  .steps {
    gap: 28px;
  }

  .columns {
    gap: 32px;
  }

  .columns p {
    min-height: 0;
  }

  .split > div,
  .split > div:last-child {
    padding: 0;
    border-left: 0;
  }

  .split > div + div {
    margin-top: 40px;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

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

  .table td,
  .table tr:last-child td {
    padding: 2px 0;
    border-bottom: 0;
    font-size: 15px;
  }

  .download {
    padding-top: 48px;
  }

  .download .badge {
    margin-bottom: 24px;
  }

  .download-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-top: 32px;
    padding: 24px 0;
  }

  .download-action {
    grid-column: 1 / -1;
    margin-top: 8px;
    text-align: left;
  }

  .notes {
    flex-direction: column;
    gap: 22px;
    padding-bottom: 48px;
  }

  .notes > div {
    max-width: none;
  }

  .site-footer {
    padding: 48px 0 36px;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-bottom {
    margin-top: 40px;
  }
}

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

  .btn,
  .pill-solid {
    transition: none;
  }
}
