/* CS 匹配助手官网 */

:root {
  --bg: #f5f7fa;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --ink: #111827;
  --ink-soft: #4b5563;
  --muted: #9ca3af;
  --line: rgba(17, 24, 39, 0.08);
  --accent: #4a90e2;
  --accent-deep: #3b7dd8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px rgba(17, 24, 39, 0.05);
  --shadow-media: 0 2px 8px rgba(17, 24, 39, 0.04), 0 24px 56px rgba(74, 144, 226, 0.1);
  --font: "MiSans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --display: "MiSans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 330;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

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

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
}

.page-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* Nav */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(960px, calc(100% - 24px));
  height: 52px;
  padding: 0 8px 0 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 520;
  font-size: 0.9rem;
  letter-spacing: 0;
  cursor: pointer;
}

.nav__logo img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  outline: 1px solid rgba(0, 0, 0, 0.08);
}

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav .btn--sm {
  transition:
    color 200ms var(--ease),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    transform 160ms var(--ease);
}

.nav .btn--sm:not(.nav__source) {
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.22);
}

.nav .btn--sm:not(.nav__source):hover {
  box-shadow: 0 5px 14px rgba(74, 144, 226, 0.28);
}

.nav .btn--sm:not(.nav__source):active {
  transform: scale(0.96);
  box-shadow: 0 3px 10px rgba(74, 144, 226, 0.22);
}

.nav__links {
  display: none;
  margin-left: auto;
  gap: 2px;
}

.nav__links a {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 380;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
  background: rgba(17, 24, 39, 0.04);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }

  .nav__actions {
    margin-left: 4px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 520;
  letter-spacing: 0;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.28);
  cursor: pointer;
  transition: background-color 180ms var(--ease), transform 150ms var(--ease), box-shadow 180ms var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
  box-shadow: 0 10px 24px rgba(74, 144, 226, 0.34);
}

.btn:active {
  transform: scale(0.97);
}

.btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.22);
}

.btn--hero {
  height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.24);
}

.btn--lg {
  height: 48px;
  padding: 0 24px;
  font-size: 0.95rem;
}

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

.btn--ghost:hover {
  background: #f9fafb;
  box-shadow: none;
}

.btn--text {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  padding-inline: 10px;
}

.btn--text:hover {
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav .btn.nav__source {
  gap: 5px;
  padding-inline: 11px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.14);
  box-shadow: none;
}

.nav .btn.nav__source:hover {
  color: var(--ink);
  background: rgba(17, 24, 39, 0.04);
  border-color: rgba(17, 24, 39, 0.22);
  box-shadow: none;
}

.nav .btn.nav__source:active {
  transform: scale(0.96);
}

.nav .btn.nav__source svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Scenes */
main {
  scroll-snap-type: y proximity;
}

.scene {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 20px) 24px 56px;
  scroll-snap-align: start;
}

.kicker {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 520;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.3;
  text-wrap: balance;
}

/* Hero */
.scene--hero {
  position: relative;
  min-height: 86svh;
  padding-bottom: 56px;
  background:
    radial-gradient(42% 38% at 88% 72%, rgba(74, 144, 226, 0.13), transparent 72%),
    radial-gradient(80% 55% at 50% -10%, rgba(74, 144, 226, 0.14), transparent 60%),
    linear-gradient(180deg, #fafbfd 0%, var(--bg) 100%);
}

.hero {
  width: min(640px, 100%);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.25rem, 6.5vw, 3.25rem);
  font-weight: 630;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 12px;
  text-wrap: balance;
}

.hero__desc {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 330;
  line-height: 1.7;
  letter-spacing: 0;
  margin: 0 auto 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__stats > div {
  display: grid;
  gap: 2px;
}

.hero__stats strong {
  font-size: 0.95rem;
  font-weight: 630;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.hero__stats span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 64px;
  color: rgba(74, 144, 226, 0.72);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 480ms var(--ease), transform 480ms var(--ease), color 180ms var(--ease);
}

.scroll-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-hint.is-gone {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
}

.scroll-hint:hover {
  color: var(--accent);
}

.scroll-hint__icon {
  display: block;
  animation: scroll-soft 1.7s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.scroll-hint__icon path:first-child {
  opacity: 0.72;
}

.scroll-hint__icon path:last-child {
  opacity: 0.95;
}

@keyframes scroll-soft {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint,
  .scroll-hint.is-visible {
    display: none;
  }

  .scroll-hint__icon {
    animation: none;
  }
}

/* Split */
.scene--split {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  padding-top: calc(var(--nav-h) + 8px);
}

.split {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 920px) {
  .split {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 44px;
  }
}

.split__copy h2 {
  margin-bottom: 12px;
}

.split__copy > p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  letter-spacing: 0;
  max-width: 22em;
}

.split__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-media);
  outline: 1px solid rgba(0, 0, 0, 0.06);
  isolation: isolate;
}

.split__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Board — 留言板：大图铺底，文案叠左下角 */
.scene--board {
  background:
    radial-gradient(48% 42% at 92% 78%, rgba(74, 144, 226, 0.11), transparent 72%),
    linear-gradient(180deg, var(--bg-2) 0%, #e8eef6 46%, var(--bg) 100%);
  overflow: hidden;
}

.board {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.board__visual {
  min-width: 0;
  width: 100%;
}

.board__shot {
  position: relative;
  margin: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 2px 8px rgba(17, 24, 39, 0.04),
    0 28px 64px rgba(74, 144, 226, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  isolation: isolate;
  transform: translateZ(0);
}

.board__shot::after {
  display: none;
}

.board__shot img {
  width: 100%;
  height: auto;
  display: block;
}

.board__copy {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: min(24em, 58%);
  padding: 24px 32px 26px 24px;
  text-align: left;
  pointer-events: none;
}

.board__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 calc(var(--radius) + 2px) 0 calc(var(--radius) + 2px);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
  z-index: -1;
  pointer-events: none;
}

.board__copy .kicker {
  margin-bottom: 10px;
  font-weight: 520;
  color: var(--accent-deep);
}

.board__desc--mobile {
  display: none;
}

@media (min-width: 920px) {
  .board__copy h2 {
    margin-bottom: 10px;
    font-weight: 630;
    font-size: clamp(1.75rem, 3.4vw, 2.2rem);
    line-height: 1.2;
    color: var(--ink);
    text-wrap: balance;
  }

  .board__copy > p:not(.kicker) {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.72;
    letter-spacing: 0.01em;
    max-width: 18em;
    text-wrap: pretty;
    margin: 0;
  }
}

/* Center */
.scene--center {
  background: linear-gradient(180deg, var(--bg) 0%, #f2f5f9 52%, var(--bg) 100%);
  text-align: center;
}

.center-block {
  width: min(860px, 100%);
  margin: 0 auto;
}

.center-block h2 {
  margin-bottom: 10px;
}

.center-block > p:not(.kicker) {
  color: var(--ink-soft);
  font-size: 0.98rem;
  letter-spacing: 0;
  margin-bottom: 32px;
}

.center-block__shot {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-media);
  outline: 1px solid rgba(0, 0, 0, 0.06);
  isolation: isolate;
}

.center-block__shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Rail — AI：左图右文，与 split/center/stack 区分 */
.scene--rail {
  background: linear-gradient(180deg, var(--bg) 0%, #eaf0f7 42%, var(--bg-2) 100%);
  padding-inline: 24px;
  overflow: hidden;
}

.rail {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 920px) {
  .rail {
    grid-template-columns: 1.42fr 0.58fr;
    gap: 44px;
  }

  .rail__visual {
    order: -1;
  }
}

.rail__visual {
  min-width: 0;
  width: 100%;
}

.rail__shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-media);
  outline: 1px solid rgba(0, 0, 0, 0.06);
  isolation: isolate;
}

.rail__shot img {
  width: 100%;
  height: auto;
  display: block;
}

.rail__copy {
  padding-inline: 8px 12px;
  position: relative;
}

@media (min-width: 920px) {
  .rail__copy {
    border-left: 2px solid rgba(74, 144, 226, 0.35);
    padding-left: 22px;
    max-width: 280px;
  }
}

.rail__copy h2 {
  margin-bottom: 12px;
}

.rail__copy > p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  letter-spacing: 0;
  max-width: 16em;
}

/* Stack */
.scene--stack {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.stack {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .stack {
    grid-template-columns: 1fr 0.8fr;
    gap: 56px;
  }
}

.stack__copy h2 {
  margin-bottom: 12px;
}

.stack__copy > p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
  letter-spacing: 0;
  max-width: 22em;
}

.stack__photo {
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-media);
  isolation: isolate;
}

.stack__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.stack__visual {
  justify-self: center;
  width: min(360px, 100%);
  will-change: transform, opacity;
  transform-origin: 50% 100%;
}

/* Download */
.scene--download {
  background:
    radial-gradient(55% 45% at 50% 40%, rgba(74, 144, 226, 0.08), transparent 68%),
    linear-gradient(180deg, var(--bg) 0%, #fafbfd 100%);
  text-align: center;
  min-height: auto;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 108px;
}

.download {
  width: min(420px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.download .kicker {
  margin-bottom: 0;
}

.download h2 {
  margin-bottom: 0;
}

.download > p:not(.kicker) {
  color: var(--ink-soft);
  font-size: 0.98rem;
  letter-spacing: 0;
  margin-bottom: 28px;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.download__actions .btn--ghost {
  gap: 6px;
}

.download__actions .btn--ghost svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Info link + modal */
.info-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 6px 2px;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 380;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease);
}

.info-link:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent-deep);
}

.info-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.info-modal.is-open {
  pointer-events: auto;
}

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

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
}

.info-modal__panel {
  position: relative;
  width: min(500px, 100%);
  max-height: min(76svh, 580px);
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(17, 24, 39, 0.07);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 20px 50px rgba(17, 24, 39, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transform-origin: 50% 100%;
}

.info-modal__close {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.info-modal__close:hover {
  color: var(--ink);
  background: rgba(17, 24, 39, 0.05);
}

.info-modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.info-modal__head {
  padding: 24px 52px 0 24px;
  flex-shrink: 0;
}

.info-modal__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 520;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.info-modal__body {
  margin: 0;
  padding: 16px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.info-modal__seg {
  opacity: 0;
  transform: translateY(8px);
}

.info-modal__intro {
  margin: 0 0 18px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.info-modal__columns {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.info-modal__col {
  padding: 16px 18px;
  background: #fafbfd;
}

.info-modal__col + .info-modal__col {
  border-top: 1px solid var(--line);
}

.info-modal__col-name {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 520;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.info-modal__col-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.info-modal__prose {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.info-modal__prose p {
  margin: 0;
  text-wrap: pretty;
}

.info-modal__note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(74, 144, 226, 0.06);
  border-left: 3px solid var(--accent);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (min-width: 520px) {
  .info-modal__columns--split {
    grid-template-columns: 1fr 1fr;
  }

  .info-modal__columns--split .info-modal__col + .info-modal__col {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* Footer */
.footer {
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 0.8125rem;
  background: #fafbfd;
}

.footer__inner {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
}

.footer__brand {
  color: var(--ink-soft);
  font-weight: 520;
}

.footer__links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer__links a {
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms var(--ease);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__meta {
  color: var(--muted);
}

[data-a] {
  opacity: 0;
  will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
  [data-a] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .info-modal__backdrop,
  .info-modal__panel,
  .info-modal__seg {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  main {
    scroll-snap-type: none;
  }
}

/* —— Mobile —— */
@media (max-width: 919px) {
  :root {
    --radius: 14px;
    --radius-sm: 10px;
    --nav-h: 64px;
  }

  main {
    scroll-snap-type: none;
  }

  .nav {
    top: max(10px, env(safe-area-inset-top));
    width: min(960px, calc(100% - 20px));
    height: 48px;
    padding: 0 6px 0 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .nav__logo {
    min-width: 0;
    gap: 8px;
    font-size: 0.84rem;
  }

  .nav__brand {
    gap: 2px;
    min-width: 0;
  }

  .nav__logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav__logo img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .nav .btn--sm {
    height: 26px;
    min-height: 0;
    padding: 0 9px;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  .nav .btn--sm:not(.nav__source) {
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.16);
  }

  .nav .btn--sm:not(.nav__source):hover {
    box-shadow: 0 3px 8px rgba(74, 144, 226, 0.22);
  }

  .nav .btn.nav__source {
    padding-inline: 8px;
    background: transparent;
    border-color: rgba(17, 24, 39, 0.14);
  }

  .nav .btn.nav__source:hover {
    background: rgba(17, 24, 39, 0.04);
  }

  .nav .btn.nav__source svg {
    width: 12px;
    height: 12px;
  }

  .nav__actions {
    gap: 4px;
  }

  .scene {
    min-height: 0;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 12px) 16px 48px;
  }

  .scene--hero {
    min-height: min(100svh, 720px);
    align-items: center;
    padding-bottom: 28px;
  }

  .split__copy,
  .board__copy,
  .rail__copy,
  .stack__copy {
    text-align: center;
  }

  .split__copy .info-link,
  .rail__copy .info-link,
  .stack__copy .info-link {
    justify-content: center;
  }

  .split__copy > p:last-child,
  .board__copy > p:not(.kicker),
  .rail__copy > p:last-child,
  .stack__copy > p:last-child {
    margin-inline: auto;
  }

  .rail__copy {
    padding-inline: 0;
  }

  .hero__title {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .hero__desc {
    font-size: 0.95rem;
    margin-bottom: 22px;
    padding-inline: 4px;
  }

  .hero__cta {
    margin-bottom: 28px;
    gap: 8px;
  }

  .hero__stats {
    max-width: none;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 4px;
    padding-top: 20px;
  }

  .hero__stats strong {
    font-size: 0.88rem;
  }

  .hero__stats span {
    font-size: 0.7rem;
  }

  .scene--split {
    padding-top: calc(var(--nav-h) + 4px);
  }

  .split {
    gap: 20px;
  }

  .split__copy > p:last-child,
  .board__copy > p:not(.kicker),
  .rail__copy > p:last-child,
  .stack__copy > p:last-child {
    max-width: none;
    font-size: 0.94rem;
  }

  .split__media,
  .board__shot,
  .center-block__shot,
  .rail__shot,
  .stack__photo {
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04), 0 14px 32px rgba(74, 144, 226, 0.08);
  }

  .board {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .board__copy {
    position: static;
    order: -1;
    max-width: none;
    width: 100%;
    padding: 0;
    margin-inline: auto;
    text-align: center;
    pointer-events: auto;
  }

  .board__copy::before {
    display: none;
  }

  .board__copy .kicker {
    margin-bottom: 12px;
    font-size: inherit;
  }

  .board__copy h2 {
    margin-bottom: 10px;
  }

  .board__copy > p:not(.kicker) {
    line-height: 1.75;
  }

  .board__desc--wide {
    display: none;
  }

  .board__desc--mobile {
    display: inline;
  }

  .board__visual {
    width: 100%;
  }

  .center-block > p:not(.kicker) {
    margin-bottom: 20px;
    font-size: 0.94rem;
  }

  .scene--rail {
    padding-inline: 16px;
  }

  .rail {
    gap: 20px;
  }

  .stack {
    gap: 20px;
  }

  .stack__visual {
    width: min(280px, 78%);
  }

  .scene--download {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 80px;
    padding-inline: 16px;
  }

  .download {
    gap: 22px;
  }

  .download > p:not(.kicker) {
    margin-bottom: 22px;
    font-size: 0.94rem;
  }

  .download__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .download__actions .btn {
    width: 100%;
  }

  .footer {
    padding: 0 16px max(28px, env(safe-area-inset-bottom));
  }

  .footer__inner {
    gap: 6px 14px;
    padding-top: 18px;
  }

  h2 {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  .btn {
    min-height: 44px;
  }

  .hero__cta .btn--hero,
  .hero__cta .btn--text,
  .download__actions .btn {
    min-height: 0;
    height: 36px;
    font-size: 0.85rem;
    padding-inline: 16px;
    border-radius: 9px;
  }

  .hero__cta .btn--hero {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
  }

  .download__actions .btn--ghost svg {
    width: 14px;
    height: 14px;
  }

  .nav .btn--sm {
    min-height: 0;
    height: 26px;
  }

  .btn--lg {
    height: 36px;
  }

  .info-modal {
    padding-inline: 16px;
    align-items: flex-end;
  }

  .info-modal__panel {
    width: 100%;
    max-height: min(78svh, 560px);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform-origin: 50% 100%;
  }

  .info-modal__head {
    padding: 20px 48px 0 20px;
  }

  .info-modal__body {
    padding: 14px 20px max(20px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .nav__logo span {
    max-width: 9.5em;
  }

  .stack__visual {
    width: min(240px, 86%);
  }
}
