:root {
  --paper: #f4f1ea;
  --surface: #fbfaf6;
  --ink: #141925;
  --ink-soft: #3b3f4a;
  --muted: #6f6a60;
  --line: #e3ddd1;
  --accent: #ff6b2b;
  --accent-deep: #d93b14;
  --steel: #141925;
  --steel-2: #1f2737;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 1em; }

kbd {
  display: inline-block;
  padding: 0.1em 0.42em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--ink);
}

code {
  padding: 0.08em 0.34em;
  border-radius: 5px;
  background: rgba(20, 25, 37, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.eyebrow {
  margin: 0 0 0.9em;
  color: var(--accent-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(244, 241, 234, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

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

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover { color: var(--accent-deep); }

.nav-gh {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 0;
}

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

.hero-copy .lede {
  max-width: 720px;
  margin: 0 auto 1.8em;
  color: var(--muted);
  font-size: 1.08rem;
}

.weld {
  color: var(--accent-deep);
  position: relative;
  white-space: nowrap;
}

.br-mobile { display: none; }

.weld::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.1em;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.35;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(217, 59, 20, 0.9);
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero .meta {
  margin-top: 1.1em;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-shot {
  margin: 54px 0 0;
  padding: 0;
}

.hero-shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 40px 80px -50px rgba(20, 25, 37, 0.55);
}

/* ---------- facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 0 24px;
}

.fact {
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}

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

.fact strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.fact span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 24px 0;
}

.section:last-of-type { padding-bottom: 104px; }

.section-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.band-paper {
  max-width: none;
  margin-top: 104px;
  padding-top: 104px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-paper > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.band-paper > .section-head { padding: 0 24px; }

.band-paper > .banner,
.band-paper > .split,
.band-paper > .cards { width: calc(100% - 48px); }

.banner {
  width: 100%;
  margin: 0 auto 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f3ee;
  box-shadow: 0 24px 50px -42px rgba(20, 25, 37, 0.5);
}

.cards {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.cards.three { grid-template-columns: repeat(3, 1fr); }

.cards li {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.cards h3 { margin-bottom: 0.45em; }

.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 980px;
  margin: 42px auto 0;
}

.split h3 {
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.split h3:first-child { margin-top: 0; }

.split p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- compare table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: #eeeae1;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

tbody th {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

td { color: var(--muted); }

.us {
  background: rgba(255, 107, 43, 0.07);
  color: var(--ink) !important;
  font-weight: 600;
}

.footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- dark shortcuts ---------- */

.dark {
  max-width: none;
  margin-top: 104px;
  background: var(--steel);
  color: #f7f4ec;
  padding: 96px 24px;
}

.dark .section-head { margin-bottom: 42px; }

.dark .eyebrow { color: #ff9b6a; }

.dark .section-lede { color: #a9aebc; }

.dark kbd {
  border-color: #3a4356;
  background: var(--steel-2);
  color: #f7f4ec;
}

.keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  max-width: 900px;
  margin: 0 auto;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #2b3446;
}

.key-row kbd {
  flex: 0 0 118px;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.32em 0.5em;
}

.key-row span {
  color: #c7ccd8;
  font-size: 0.94rem;
}

/* ---------- download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: start;
}

.download-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.download-hero img { border-radius: 16px; }

.download-hero h3 { font-size: 1.35rem; margin-bottom: 0.25em; }

.download-hero p {
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: 0.92rem;
}

.platforms {
  display: grid;
  gap: 12px;
}

.platform {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.platform h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.35em;
}

.platform p {
  margin: 0 0 0.7em;
  color: var(--muted);
  font-size: 0.9rem;
}

.platform a {
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.platform a:hover { text-decoration: underline; }

.tag {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.notice {
  margin-top: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: #fbf3ea;
}

.notice h3 { font-size: 0.98rem; }

.notice p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

.notice pre {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--steel);
  color: #f7f4ec;
  overflow-x: auto;
}

.notice code { background: none; padding: 0; font-size: 0.86rem; }

/* ---------- footer ---------- */

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

.footer-inner {
  display: grid;
  gap: 6px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer .brand { color: var(--ink); }

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 10px 0;
}

.footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer nav a:hover { color: var(--accent-deep); }

.colophon {
  margin: 6px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 8px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-gh) { display: none; }
}

@media (max-width: 620px) {
  .cards.three { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; gap: 0; }
  .br-mobile { display: inline; }
  .hero { padding-top: 44px; }
  .hero-shot { margin-top: 36px; }
  .section { padding-top: 76px; }
  .band-paper { padding-top: 76px; margin-top: 76px; }
  .dark { margin-top: 76px; padding: 70px 20px; }
  .fact { padding: 18px 14px; }
  .fact strong { font-size: 1.05rem; }
  .key-row kbd { flex-basis: 104px; }
  .notice { padding: 20px; }
  .footer nav { gap: 16px; }
}

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