/* Gotero Product Site — Editorial Light (Finalized Plan A) */
:root {
  --bg: #fbfbf9;
  --bg-subtle: #f3f2ee;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(251, 251, 249, 0.84);
  --ink: #111318;
  --ink-secondary: #4b5260;
  --ink-tertiary: #7b8291;
  --hairline: rgba(17, 19, 24, 0.09);
  --hairline-strong: rgba(17, 19, 24, 0.16);
  --accent: #1d3557;
  --accent-hover: #162944;
  --accent-ink: #ffffff;
  --accent-soft: rgba(29, 53, 87, 0.07);
  --vermilion: #c43c2b;
  --pill-bg: rgba(17, 19, 24, 0.045);
  --pill-active-bg: #111318;
  --pill-active-ink: #ffffff;
  --stage-bg: #f1f0ec;
  --stage-glow: radial-gradient(62% 52% at 50% 0%, rgba(29, 53, 87, 0.08) 0%, rgba(29, 53, 87, 0) 100%);
  --frame-bg: #ffffff;
  --frame-bar: #f6f6f7;
  --frame-border: rgba(17, 19, 24, 0.11);
  --frame-shadow:
    0 2px 6px rgba(17, 19, 24, 0.04),
    0 24px 64px -12px rgba(17, 19, 24, 0.14),
    0 48px 96px -24px rgba(17, 19, 24, 0.10);
  --card-shadow:
    0 1px 2px rgba(17, 19, 24, 0.03),
    0 18px 42px -18px rgba(17, 19, 24, 0.11);
  --dot-ok: #15803d;
  --dot-xpi: #1d4ed8;
  --dot-native: #0f766e;
  --dot-partial: #b45309;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --font-serif-zh: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-serif-en: "Iowan Old Style", "New York", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Top Navigation ─────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 58px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}

.topnav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: color 0.18s ease;
}

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

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--hairline);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-tertiary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.12);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-github:hover {
  background: var(--pill-bg);
  color: var(--ink);
}

.nav-github svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.16s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* ── Editorial Display Font by Locale ───────────────────────── */
.hero h1,
.manifesto-quote,
.chapter-title,
.closing h2 {
  font-family: var(--font-serif-zh);
  font-weight: 600;
  letter-spacing: -0.018em;
}

html[lang="en"] .hero h1,
html[lang="en"] .manifesto-quote,
html[lang="en"] .chapter-title,
html[lang="en"] .closing h2 {
  font-family: var(--font-serif-en);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background-image: var(--stage-glow);
}

.hero-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-tertiary);
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermilion);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: 62px;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

html[lang="en"] .hero h1 {
  font-size: 56px;
  line-height: 1.08;
}

.hero-sub {
  margin: 0 auto 34px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.62;
  font-weight: 400;
  color: var(--ink-secondary);
  text-wrap: balance;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(20, 40, 75, 0.35);
  transition: background 0.16s ease, transform 0.16s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 480;
  text-decoration: none;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(17, 19, 24, 0.3);
}

/* ── Floating macOS Product Stage ───────────────────────────── */
.stage-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.mac-window {
  border-radius: 16px;
  overflow: hidden;
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  box-shadow: var(--frame-shadow);
}

.mac-chrome {
  height: 34px;
  padding: 0 14px;
  background: var(--frame-bar);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.traffic {
  display: inline-flex;
  gap: 7px;
}

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic .t-r { background: #ff5f57; }
.traffic .t-y { background: #febc2e; }
.traffic .t-g { background: #28c840; }

.chrome-title {
  font-size: 12px;
  color: var(--ink-tertiary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chrome-spacer {
  width: 44px;
}

.mac-viewport {
  position: relative;
  aspect-ratio: 16 / 9.2;
  background: var(--stage-bg);
  overflow: hidden;
}

.mac-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: opacity 0.22s ease;
}

.stage-controls {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stage-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--hairline);
  gap: 2px;
}

.stage-tab {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stage-tab:hover {
  color: var(--ink);
}

.stage-tab[aria-selected="true"] {
  background: var(--pill-active-bg);
  color: var(--pill-active-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stage-caption {
  font-size: 13.5px;
  color: var(--ink-tertiary);
  margin: 0;
  text-align: center;
}

/* ── Quiet Manifesto & 3 Hairline Pillars ───────────────────── */
.manifesto {
  padding: 112px 0 96px;
  border-top: 1px solid var(--hairline);
}

.manifesto-quote {
  margin: 0 auto 68px;
  max-width: 820px;
  text-align: center;
  font-size: 38px;
  line-height: 1.38;
  color: var(--ink);
  text-wrap: balance;
}

.manifesto-quote span {
  color: var(--ink-tertiary);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.pillar {
  padding-top: 22px;
  border-top: 1px solid var(--hairline-strong);
}

.pillar h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* ── Chapter Sections ───────────────────────────────────────── */
.chapter {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}

.chapter.tinted {
  background: var(--bg-subtle);
}

.chapter-head {
  max-width: 700px;
  margin-bottom: 52px;
}

.chapter-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 14px;
}

.chapter-title {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
}

.chapter-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.exhibit {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}

.exhibit-media {
  position: relative;
  overflow: hidden;
  background: var(--stage-bg);
  flex: 1;
}

.reading-grid .exhibit-media {
  aspect-ratio: 16 / 10.6;
}

.exhibit-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.exhibit-media.scan-dark img {
  object-position: center top;
}

.exhibit-media.focus-right img {
  object-position: right top;
}

.exhibit-foot {
  padding: 22px 26px 24px;
  border-top: 1px solid var(--hairline);
}

.exhibit-foot h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.exhibit-foot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.two-up .exhibit-media {
  aspect-ratio: 16 / 10.6;
}

/* Chapter 3: Migration + Plugin Lookup */
.migrate-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

.migrate-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--card-shadow);
  background: var(--bg-elevated);
}

.migrate-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.lookup-box {
  padding-top: 4px;
}

.lookup-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.lookup-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.lookup-input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.16s ease;
}

.lookup-input:focus {
  border-color: var(--accent);
}

.lookup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.lookup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hairline);
}

.lookup-name {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink);
}

.lookup-desc {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  margin-top: 2px;
}

.lookup-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sdot.builtin { background: var(--dot-ok); }
.sdot.xpi { background: var(--dot-xpi); }
.sdot.native { background: var(--dot-native); }
.sdot.partial { background: var(--dot-partial); }

.lookup-toggle {
  margin-top: 12px;
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}

.lookup-toggle:hover {
  text-decoration: underline;
}

.lookup-empty {
  padding: 20px 2px;
  font-size: 13.5px;
  color: var(--ink-tertiary);
  border-bottom: 1px solid var(--hairline);
}

.lookup-footnote {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-tertiary);
}

/* ── Closing Band ───────────────────────────────────────────── */
.closing {
  padding: 108px 0 76px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.closing-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin-bottom: 24px;
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.24);
}

.closing h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.24;
}

.closing p {
  margin: 0 auto 32px;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-secondary);
  text-wrap: balance;
}

.platform-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.footer-line {
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-tertiary);
}

/* ── Download Modal (Plan A) ────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 19, 24, 0.28);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card.dl-sheet {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 24px;
  padding: 0;
  box-shadow:
    0 1px 2px rgba(17, 19, 24, 0.04),
    0 24px 64px -16px rgba(17, 19, 24, 0.22),
    0 48px 96px -28px rgba(17, 19, 24, 0.14);
  text-align: center;
}

.dl-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}

.dl-sheet-ver {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.dl-sheet-ver .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--vermilion);
}

.dl-sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dl-sheet-close:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.dl-sheet-hero {
  padding: 24px 36px 28px;
}

.dl-app-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
  display: block;
  box-shadow:
    0 1px 2px rgba(17, 19, 24, 0.08),
    0 12px 28px -8px rgba(29, 53, 87, 0.22);
}

.dl-sheet-title {
  margin: 0 0 22px;
  font-family: var(--font-serif-zh);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

html[lang="en"] .dl-sheet-title {
  font-family: var(--font-serif-en);
}

.dl-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid rgba(17, 19, 24, 0.05);
  margin-bottom: 22px;
}

.dl-seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.dl-seg-btn:hover {
  color: var(--ink);
}

.dl-seg-btn.is-active {
  background: var(--bg-elevated);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 19, 24, 0.08), 0 1px 1px rgba(17, 19, 24, 0.04);
}

.dl-cta-primary,
.dl-cta-primary:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(29, 53, 87, 0.36);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.dl-cta-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.dl-cta-size {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.72;
}

.dl-spec-line {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.dl-alt-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.dl-alt-links a,
.dl-alt-links a:visited {
  color: var(--ink-secondary);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(17, 19, 24, 0.14);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dl-alt-links a:hover {
  color: var(--accent);
  border-bottom-color: rgba(29, 53, 87, 0.4);
}

.dl-alt-links .sep {
  color: rgba(17, 19, 24, 0.18);
  user-select: none;
}

.dl-sheet-foot {
  padding: 14px 28px;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.dl-sheet-foot a,
.dl-sheet-foot a:visited {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dl-sheet-foot a:hover {
  color: var(--accent);
}

@media (max-width: 540px) {
  .dl-sheet-hero {
    padding: 20px 20px 24px;
  }
  .dl-alt-links,
  .dl-sheet-foot {
    flex-wrap: wrap;
    white-space: normal;
  }
}

.mac-viewport img,
.exhibit-media img,
.migrate-visual img {
  cursor: zoom-in;
}

/* ── Retina Lightbox ────────────────────────────────────────── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(94vw, 1520px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55);
  background: #ffffff;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .wrap {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 68px 0 64px;
  }

  .hero h1,
  html[lang="en"] .hero h1 {
    font-size: 42px;
  }

  .manifesto-quote {
    font-size: 30px;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .reading-grid,
  .two-up,
  .migrate-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .chapter-title {
    font-size: 34px;
  }
}

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

  .hero {
    padding: 52px 0 48px;
  }

  .hero-kicker {
    font-size: 12px;
  }

  .hero h1,
  html[lang="en"] .hero h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost,
  .platform-links .btn-primary,
  .platform-links .btn-ghost {
    width: 100%;
  }

  .stage-tabs {
    border-radius: 16px;
  }

  .stage-tab {
    font-size: 12px;
    padding: 7px 12px;
  }

  .manifesto {
    padding: 72px 0 64px;
  }

  .manifesto-quote {
    font-size: 25px;
    margin-bottom: 44px;
  }

  .chapter {
    padding: 68px 0;
  }

  .chapter-head {
    margin-bottom: 32px;
  }

  .chapter-title {
    font-size: 28px;
  }

  .chapter-lead {
    font-size: 15.5px;
  }

  .exhibit-foot {
    padding: 18px 18px 20px;
  }

  .lookup-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .closing {
    padding: 72px 0 52px;
  }

  .closing h2 {
    font-size: 28px;
  }

  .footer-line {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
