:root {
  --bg: #161616;
  --text: #fff;
  --secondary: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 24px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.brand, main, footer { width: 100%; max-width: 1040px; margin-inline: auto; }

.legal .brand, .legal main, .legal footer { max-width: 640px; }

.brand { padding-top: 32px; }

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

main { flex: 1; }

/* Landing */
.hero { padding: 112px 0 120px; }

.hero h1 {
  max-width: 13em;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

:lang(zh-Hans) .hero h1 {
  font-size: clamp(34px, 10vw, 88px);
  line-height: 1.16;
  letter-spacing: -.01em;
  word-break: keep-all;
}

.sub {
  margin-top: 24px;
  color: var(--secondary);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
}

.button {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity .15s;
}

.button:hover { opacity: .85; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
}

.features li { padding-top: 20px; border-top: 1px solid var(--line); }

.features h2 { font-size: 19px; font-weight: 600; line-height: 1.35; }

.features p { margin-top: 8px; color: var(--secondary); }

.note { margin-top: 64px; color: var(--secondary); font-size: 14px; }

/* Legal */
.legal main { padding: 72px 0 40px; }

.legal h1 {
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.intro { margin-top: 20px; font-size: 19px; line-height: 1.5; }

.legal h2 { margin-top: 40px; font-size: 17px; font-weight: 600; }

.legal main p:not(.intro) { margin-top: 6px; color: var(--secondary); }

.legal main a { text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 64px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 14px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }

footer a { text-decoration: none; }

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

a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

@media (max-width: 760px) {
  .hero { padding: 72px 0 80px; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .note { margin-top: 40px; }
  .legal main { padding-top: 48px; }
}
