/* ─────────────────────────────────────────
   Design tokens
───────────────────────────────────────── */
:root {
  --paper: #efe7d7;
  --paper-soft: #f7f1e5;
  --paper-bright: #fffaf1;
  --ink: #171410;
  --ink-soft: rgba(23, 20, 16, 0.76);
  --ink-muted: rgba(23, 20, 16, 0.56);
  --line: rgba(23, 20, 16, 0.12);
  --line-strong: rgba(23, 20, 16, 0.18);
  --gold: #b5872c;
  --gold-soft: rgba(181, 135, 44, 0.14);
  --blue: #4d7a92;
  --shadow-soft: 0 24px 70px rgba(38, 28, 16, 0.12);
  --shadow-strong: 0 40px 100px rgba(25, 18, 10, 0.22);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --pointer-x: 72;
  --pointer-y: 18;
}

/* ─────────────────────────────────────────
   Reset & base
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

a,
button {
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding: clamp(20px, 3vw, 36px);
  padding-left: max(clamp(20px, 3vw, 36px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 3vw, 36px), env(safe-area-inset-right));
  padding-bottom: max(clamp(20px, 3vw, 36px), env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated background */
body::before {
  content: "";
  position: fixed;
  inset: -18%;
  background:
    radial-gradient(circle at calc(var(--pointer-x) * 1%) calc(var(--pointer-y) * 1%), rgba(181, 135, 44, 0.22) 0%, rgba(181, 135, 44, 0) 30%),
    radial-gradient(circle at 82% 12%, rgba(77, 122, 146, 0.18) 0%, rgba(77, 122, 146, 0) 24%),
    radial-gradient(circle at 12% 88%, rgba(23, 20, 16, 0.08) 0%, rgba(23, 20, 16, 0) 22%),
    linear-gradient(140deg, #fbf5ea 0%, #eadfcb 50%, #f7f2e9 100%);
  z-index: -2;
  pointer-events: none;
}

/* Dot grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(23, 20, 16, 0.1) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at center, black 34%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at center, black 34%, transparent 92%);
  z-index: -1;
  pointer-events: none;
}

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

a {
  color: inherit;
}

/* ─────────────────────────────────────────
   Page shell
───────────────────────────────────────── */
.page-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  position: relative;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}

.page-shell::before {
  top: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(181, 135, 44, 0.4) 50%, transparent 100%);
}

.page-shell::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(23, 20, 16, 0.18) 50%, transparent 100%);
}

/* ─────────────────────────────────────────
   Header
───────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(23, 20, 16, 0.1);
  box-shadow: 0 14px 40px rgba(28, 20, 12, 0.12);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-family: "Noto Serif SC", serif;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.brand-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.header-link,
.meta-pill,
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(23, 20, 16, 0.12);
  background: rgba(255, 250, 241, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.meta-pill {
  background: rgba(23, 20, 16, 0.92);
  color: var(--paper-bright);
  border-color: rgba(23, 20, 16, 0.92);
}

/* ─────────────────────────────────────────
   Page
───────────────────────────────────────── */
.page {
  padding-bottom: 32px;
}

/* ─────────────────────────────────────────
   Hero Card  (首屏深色大卡片)
───────────────────────────────────────── */
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(23, 20, 16, 0.96), rgba(56, 42, 23, 0.94) 58%, rgba(77, 122, 146, 0.86));
  box-shadow: 0 40px 110px rgba(24, 18, 10, 0.22);
  color: var(--paper-bright);
}

.hero-card-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.5);
}

.hero-card-title {
  margin: 14px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--paper-bright);
}

.hero-card-title span {
  color: var(--gold);
  font-style: italic;
}

.hero-card-desc {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 250, 241, 0.68);
}

.hero-card-quote-mark {
  position: absolute;
  top: -28px;
  left: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 250, 241, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-card-body,
.hero-card-side {
  position: relative;
  z-index: 1;
}

.hero-card-signature {
  margin: 22px 0 0;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 0.86rem;
  letter-spacing: 0;
  color: rgba(255, 250, 241, 0.42);
  font-style: italic;
}

.hero-card-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─────────────────────────────────────────
   Eyebrow / kicker (light bg contexts)
───────────────────────────────────────── */
.eyebrow,
.section-kicker,
.proof-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-kicker-num {
  display: inline-block;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid rgba(181, 135, 44, 0.4);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gold);
  vertical-align: -1px;
  text-transform: none;
}

/* ─────────────────────────────────────────
   Meta row  (规格栏)
───────────────────────────────────────── */
.meta-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-row li {
  display: grid;
  gap: 6px;
}

.meta-row span {
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.meta-row strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  word-break: keep-all;
}

/* Dark variant — 深色背景内使用 */
.meta-row-dark {
  border-top-color: rgba(255, 250, 241, 0.14);
  border-bottom-color: rgba(255, 250, 241, 0.14);
}

.meta-row-dark span {
  color: rgba(255, 250, 241, 0.44);
}

.meta-row-dark strong {
  color: var(--paper-bright);
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 14px 20px;
  border-radius: 22px;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 20px 50px rgba(27, 20, 11, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button span {
  font-size: 0.92rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.button strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.button-primary {
  background: rgba(255, 250, 241, 0.96);
  color: var(--ink);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper-bright);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* ─────────────────────────────────────────
   Section blocks
───────────────────────────────────────── */
.section-block {
  padding: 62px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2 {
  position: relative;
  margin: 16px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: 0;
  max-width: 12ch;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 20px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(181, 135, 44, 0) 100%);
}

.section-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ─────────────────────────────────────────
   Support block
───────────────────────────────────────── */
.support-block {
  margin-top: 62px;
  padding: 42px;
  border-radius: 34px;
  background: rgba(255, 250, 241, 0.42);
  border: 1px solid rgba(23, 20, 16, 0.1);
  box-shadow: var(--shadow-soft);
}

.support-block .section-heading {
  margin-bottom: 24px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 20, 16, 0.1);
}

.support-column h3 {
  margin: 0 0 20px;
  font-family: "Noto Serif SC", serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.support-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.support-column li {
  position: relative;
  padding-left: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23, 20, 16, 0.08);
  line-height: 1.75;
  color: var(--ink-soft);
}

.support-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.support-column.is-muted h3,
.support-column.is-muted li {
  color: var(--ink-muted);
}

.support-column.is-muted li::before {
  background: var(--ink-muted);
  opacity: 0.42;
}

.install-strip {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 20, 16, 0.1);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ─────────────────────────────────────────
   Tokens block
───────────────────────────────────────── */
.tokens-block {
  padding-top: 62px;
}

.tokens-block code {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84em;
  font-weight: 500;
  letter-spacing: 0;
}

.tokens-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 28px;
  padding-top: 4px;
}

.tokens-divider::before,
.tokens-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(181, 135, 44, 0.32) 50%, transparent 100%);
}

.tokens-divider span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(181, 135, 44, 0.10);
}

.tokens-rationale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 40px;
}

.tokens-rationale-card {
  position: relative;
  padding: 24px 22px 24px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 250, 241, 0.78) 0%, rgba(255, 250, 241, 0.42) 100%);
  border: 1px solid rgba(23, 20, 16, 0.08);
  box-shadow: 0 16px 36px rgba(28, 20, 12, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.tokens-rationale-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(181, 135, 44, 0.5) 50%, transparent 100%);
}

.tokens-rationale-numeral {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  opacity: 0.28;
  letter-spacing: 0;
  pointer-events: none;
}

.tokens-rationale-label {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--gold);
}

.tokens-rationale-title {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.4;
}

.tokens-rationale-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.tokens-rationale-card code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: 0;
}

.tokens-row-label {
  margin: 4px 0 18px;
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.tokens-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.token-swatch {
  position: relative;
  aspect-ratio: 1.5;
  background: var(--bg);
  color: var(--fg);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(23, 20, 16, 0.06);
  box-shadow: 0 14px 32px rgba(28, 20, 12, 0.10);
  overflow: hidden;
}

.token-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.token-tag {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
  font-family: "Noto Sans SC", "Cormorant Garamond", serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.token-tag.is-new {
  background: rgba(255, 250, 241, 0.94);
  color: var(--gold);
  border-color: transparent;
}

.token-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.token-name {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0;
  word-break: break-all;
}

.token-hex {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.tokens-footnote {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-top: 1px solid rgba(23, 20, 16, 0.08);
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.tokens-footnote-mark {
  display: inline-block;
  margin-right: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: var(--gold);
  vertical-align: -1px;
}

.tokens-footnote strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.tokens-footnote code {
  display: inline-block;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   Page tagline (footer separator + signature)
───────────────────────────────────────── */
.page-tagline {
  position: relative;
  margin-top: 64px;
  padding-top: 28px;
  text-align: center;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.page-tagline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(180px, 28vw, 260px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(181, 135, 44, 0.5) 50%, transparent 100%);
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 8px;
}

.site-footer p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────────────────────────────────
   Reveal animation
───────────────────────────────────────── */
body.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   Hover (pointer devices only)
───────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .header-link:hover,
  .footer-link:hover {
    transform: translateY(-2px);
  }

  .button-primary:hover {
    box-shadow: 0 28px 60px rgba(27, 20, 11, 0.18);
    background: #fff8ed;
  }

  .button-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .header-link:hover,
  .footer-link:hover {
    background: rgba(255, 250, 241, 0.82);
    border-color: var(--line-strong);
  }

  .token-swatch {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  }

  .token-swatch:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(28, 20, 12, 0.18);
  }

  .support-column li:hover::before {
    transform: scale(1.5);
    opacity: 1;
  }

  .support-column.is-muted li:hover::before {
    opacity: 0.85;
  }
}

/* ─────────────────────────────────────────
   Responsive — 900px
   Tablet / small desktop
───────────────────────────────────────── */
@media (max-width: 900px) {
  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading h2 {
    max-width: none;
  }

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

  /* Tokens — tablet: 3-column swatch grid */
  .tokens-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .token-swatch {
    aspect-ratio: 1.45;
    padding: 13px;
    border-radius: 16px;
  }

  .tokens-row-label {
    font-size: 0.96rem;
    margin: 2px 0 14px;
  }
}

/* ─────────────────────────────────────────
   Responsive — 720px
   Large mobile / small tablet
───────────────────────────────────────── */
@media (max-width: 720px) {
  body {
    padding: 14px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  /* Header */
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
  }

  .header-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .header-link,
  .meta-pill,
  .footer-link {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  /* Page */
  .page {
    padding-bottom: 16px;
  }

  /* Hero Card — single column */
  .hero-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .hero-card-eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  .hero-card-title {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
    line-height: 1.1;
    margin-top: 10px;
  }

  .hero-card-desc {
    font-size: 0.88rem;
    line-height: 1.72;
    margin-top: 10px;
  }

  .hero-card-quote-mark {
    top: -16px;
    left: 10px;
    font-size: 6rem;
    color: rgba(255, 250, 241, 0.05);
  }

  .hero-card-signature {
    margin-top: 16px;
    font-size: 0.74rem;
    letter-spacing: 0;
  }

  .hero-card-side {
    gap: 12px;
  }

  .section-kicker-num {
    margin-right: 10px;
    padding-right: 10px;
    font-size: 0.86rem;
  }

  .section-heading h2::after {
    width: 42px;
    margin-top: 14px;
  }

  .page-tagline {
    margin-top: 36px;
    padding-top: 22px;
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  /* Buttons */
  .button {
    min-height: 54px;
    padding: 12px 16px;
    border-radius: 16px;
    gap: 8px;
  }

  .button span {
    font-size: 0.88rem;
  }

  .button strong {
    font-size: 0.82rem;
    letter-spacing: 0;
  }

  /* Meta row — 2×2 grid */
  .meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    padding: 12px 0;
  }

  .meta-row span {
    font-size: 0.63rem;
    letter-spacing: 0;
  }

  .meta-row strong {
    font-size: 0.92rem;
  }

  /* meta-row-dark: ensure correct colors on mobile too */
  .meta-row-dark {
    border-top-color: rgba(255, 250, 241, 0.14);
    border-bottom-color: rgba(255, 250, 241, 0.14);
  }

  .meta-row-dark span {
    color: rgba(255, 250, 241, 0.44);
  }

  .meta-row-dark strong {
    color: var(--paper-bright);
  }

  /* Section */
  .section-block {
    padding: 36px 0 0;
  }

  /* Support block */
  .support-block {
    margin-top: 32px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .support-block .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
    line-height: 1.15;
    margin-top: 10px;
  }

  .section-intro {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 14px;
  }

  .support-column h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .support-column li {
    padding-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .install-strip {
    font-size: 0.7rem;
    letter-spacing: 0;
    line-height: 1.85;
    margin-top: 16px;
    padding-top: 14px;
  }

  /* Tokens block */
  .tokens-block {
    padding-top: 36px;
  }

  .tokens-rationale {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .tokens-rationale-card {
    padding: 18px 18px 20px;
    border-radius: 18px;
  }

  .tokens-rationale-title {
    font-size: 1.05rem;
  }

  .tokens-rationale-card p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .tokens-rationale-numeral {
    font-size: 2.2rem;
    top: 12px;
    right: 18px;
    opacity: 0.24;
  }

  .tokens-divider {
    margin-bottom: 22px;
  }

  .tokens-footnote {
    margin-top: 22px;
    padding: 14px 16px 0;
    font-size: 0.78rem;
    line-height: 1.78;
  }

  /* Footer */
  .site-footer {
    gap: 12px;
    padding: 22px 0 0;
  }

  .site-footer p {
    font-size: 0.88rem;
  }

  /* Disable reveal animation on mobile for performance */
  body.js-ready [data-reveal],
  body.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─────────────────────────────────────────
   Responsive — 480px
   Small phones (iPhone SE, etc.)
───────────────────────────────────────── */
@media (max-width: 480px) {
  body {
    padding: 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .hero-card {
    padding: 18px 16px;
    border-radius: 18px;
    gap: 18px;
  }

  .hero-card-title {
    font-size: clamp(1.65rem, 11vw, 2.2rem);
  }

  .hero-card-desc {
    font-size: 0.84rem;
  }

  .hero-card-quote-mark {
    top: -10px;
    left: 6px;
    font-size: 4.6rem;
  }

  .hero-card-signature {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .page-tagline {
    margin-top: 28px;
    padding-top: 18px;
    font-size: 0.6rem;
    letter-spacing: 0;
  }

  .button {
    min-height: 50px;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .button span {
    font-size: 0.84rem;
  }

  .button strong {
    font-size: 0.78rem;
  }

  /* meta-row stays 2×2 but tighter */
  .meta-row {
    gap: 10px 10px;
  }

  .meta-row strong {
    font-size: 0.86rem;
  }

  .section-heading h2 {
    font-size: clamp(1.35rem, 9vw, 1.85rem);
  }

  .support-block {
    padding: 18px 14px;
    border-radius: 16px;
  }

  /* Tokens — small phones: 2 columns, compact cards */
  .tokens-rationale-card {
    padding: 16px 15px 18px;
    border-radius: 14px;
  }

  .tokens-rationale-label {
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  .tokens-rationale-title {
    font-size: 0.98rem;
  }

  .tokens-rationale-card p {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .tokens-rationale-numeral {
    font-size: 1.85rem;
    top: 10px;
    right: 14px;
    opacity: 0.22;
  }

  .tokens-footnote {
    padding: 12px 12px 0;
    font-size: 0.74rem;
    line-height: 1.7;
  }

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

  .token-swatch {
    aspect-ratio: 1.4;
    padding: 11px;
    border-radius: 14px;
  }

  .token-tag {
    top: 8px;
    right: 8px;
    font-size: 0.58rem;
    padding: 2px 7px;
    letter-spacing: 0;
  }

  .token-name {
    font-size: 0.62rem;
  }

  .token-hex {
    font-size: 0.78rem;
  }

  .tokens-block code {
    padding: 1px 7px;
    font-size: 0.8em;
  }
}

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

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

  body.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
