:root {
  --xmu-red: #8f1d2c;
  --xmu-red-dark: #5e1320;
  --gold: #c69a32;
  --ink: #15171a;
  --muted: #66707a;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --line: #d8dee2;
  --green: #315a45;
  --lab-blue: #2c668d;
  --shadow: 0 24px 70px rgba(22, 28, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.72), rgba(10, 12, 14, 0));
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(10, 14, 18, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 650px;
}

.brand-seal {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 2px;
}

.site-header.is-scrolled .brand-seal {
  border-color: rgba(21, 23, 26, 0.16);
}

.brand-text,
.brand small {
  display: block;
}

.brand-wordmark {
  width: 118px;
  height: auto;
  margin-bottom: 2px;
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .brand-wordmark {
  filter: none;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.82;
}

.brand-cpst {
  width: auto;
  height: 46px;
  margin-left: 6px;
}

.site-header.is-scrolled .brand-cpst {
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.82), rgba(10, 12, 16, 0.5) 44%, rgba(10, 12, 16, 0.1)),
    linear-gradient(0deg, rgba(10, 12, 16, 0.78), rgba(10, 12, 16, 0.08) 52%);
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 66px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 790px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.55vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--xmu-red);
}

.button.primary:hover {
  background: var(--xmu-red-dark);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  color: var(--surface);
  background: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.18);
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  background: var(--paper);
  border-bottom: 1px solid rgba(22, 28, 36, 0.08);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  padding: 54px 0;
  align-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.intro-grid p:not(.section-kicker),
.section-heading p,
.generation-copy p,
.qa-grid p,
.outcomes-grid p,
.lab-proof p,
.transfer-section p {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.section-heading {
  display: grid;
  gap: 18px;
}

.section-heading.narrow {
  max-width: 790px;
  margin-bottom: 40px;
}

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

.pain-grid article,
.role-grid article,
.architecture article,
.outcome-cards article,
.closed-loop article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pain-grid article {
  min-height: 170px;
  padding: 24px;
}

.pain-grid span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--xmu-red);
  font-weight: 900;
}

.pain-grid h3 {
  margin-bottom: 10px;
}

.pain-grid p,
.role-grid p,
.architecture p,
.outcome-cards p,
.closed-loop span,
figcaption {
  color: var(--muted);
  font-size: 15px;
}

.feature-strip {
  background: linear-gradient(135deg, var(--xmu-red-dark), #2e473d 58%, #17212a);
  color: #fff;
}

.strip-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

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

.role-grid article {
  min-height: 180px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.role-grid strong {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
}

.role-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.system-section {
  background: #fafafa;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.architecture article {
  position: relative;
  min-height: 230px;
  padding: 30px;
  overflow: hidden;
}

.architecture article::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 70px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.16;
}

.architecture span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--xmu-red);
  font-weight: 900;
}

.architecture article:nth-child(2) span {
  background: var(--lab-blue);
}

.architecture article:nth-child(3) span {
  background: var(--green);
}

.architecture h3 {
  margin-bottom: 12px;
}

.lab-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding-top: 26px;
}

.diagram-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 16px;
  margin: 0 0 40px;
}

.diagram-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 30, 38, 0.08);
}

.diagram-card.wide {
  grid-row: auto;
}

.diagram-card img {
  width: 100%;
  height: 292px;
  min-height: 0;
  object-fit: contain;
  padding: 18px;
}

.diagram-card.wide img {
  padding: 18px;
}

.diagram-card figcaption {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.lab-proof img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lab-proof div {
  display: grid;
  gap: 16px;
}

.generation {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  margin-top: 34px;
  padding: 36px 0 16px;
  border-top: 1px solid var(--line);
}

.generation.second {
  margin-top: 56px;
}

.generation-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.image-pair,
.quad-gallery,
.transfer-gallery {
  display: grid;
  gap: 14px;
}

.image-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quad-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f3f4;
}

figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.image-pair figure,
.quad-gallery figure,
.transfer-gallery figure {
  position: relative;
}

.image-pair figcaption,
.quad-gallery figcaption,
.transfer-gallery figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #fff;
  background: rgba(12, 16, 20, 0.66);
  backdrop-filter: blur(12px);
}

.image-pair figure {
  aspect-ratio: 4 / 5;
}

.quad-gallery figure {
  aspect-ratio: 1 / 1;
}

.qa-section {
  background: var(--paper);
}

.qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.qa-grid > div:first-child {
  display: grid;
  gap: 16px;
}

.question-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.question-list span {
  padding: 10px 14px;
  border: 1px solid rgba(143, 29, 44, 0.24);
  border-radius: 999px;
  color: var(--xmu-red-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.transfer-section {
  background: #11181c;
  color: #fff;
}

.transfer-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.transfer-gallery {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  align-items: stretch;
}

.transfer-gallery figure {
  min-height: 440px;
}

.transfer-gallery .wide {
  min-height: 440px;
}

.closed-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.closed-loop article {
  min-height: 150px;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.closed-loop strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 18px;
}

.closed-loop span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.outcomes-section {
  background: #fff;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 78px);
}

.outcomes-grid > div:first-child {
  display: grid;
  gap: 16px;
}

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

.outcome-cards article {
  min-height: 220px;
  padding: 24px;
}

.outcome-cards h3 {
  margin-bottom: 16px;
}

.final-cta {
  padding: clamp(72px, 9vw, 112px) 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(143, 29, 44, 0.94), rgba(49, 90, 69, 0.92)),
    url("assets/images/03-second-gen-body.jpg") center / cover;
}

.final-cta h2 {
  max-width: 880px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 64px;
  }

  .site-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-cpst {
    display: none;
  }

  .intro-grid,
  .two-column,
  .lab-proof,
  .generation,
  .qa-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .generation-copy {
    position: static;
  }

  .role-grid,
  .closed-loop,
  .outcome-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture {
    grid-template-columns: 1fr;
  }

  .diagram-showcase {
    grid-template-columns: 1fr;
  }

  .diagram-card.wide {
    grid-row: auto;
  }

  .transfer-gallery {
    grid-template-columns: 1fr;
  }

  .transfer-gallery figure,
  .transfer-gallery .wide {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-seal {
    width: 40px;
    height: 40px;
  }

  .brand-wordmark {
    width: 104px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero > img {
    object-position: 51% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 12, 16, 0.82), rgba(10, 12, 16, 0.42)),
      linear-gradient(0deg, rgba(10, 12, 16, 0.9), rgba(10, 12, 16, 0.2) 58%);
  }

  .hero-content {
    width: min(100% - 28px, 1160px);
    padding-top: 118px;
    padding-bottom: 38px;
  }

  .hero h1 {
    max-width: min(100%, 340px);
    font-size: 30px;
    line-height: 1.14;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-copy {
    max-width: min(100%, 350px);
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    max-width: min(100%, 360px);
  }

  .button {
    width: 100%;
  }

  .hero-meta span {
    flex: 1 1 calc(50% - 8px);
    font-size: 12px;
    text-align: center;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 58px 0;
  }

  .intro-grid {
    padding: 42px 0;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .strip-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
  }

  .closed-loop,
  .outcome-cards {
    grid-template-columns: 1fr;
  }

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

  .closed-loop article {
    min-height: 142px;
    padding: 16px;
  }

  .closed-loop strong {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.25;
  }

  .closed-loop span {
    font-size: 13px;
    line-height: 1.55;
  }

  .outcome-cards {
    display: flex;
    gap: 12px;
    margin-inline: -14px;
    padding: 2px 14px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .outcome-cards::-webkit-scrollbar {
    display: none;
  }

  .outcome-cards article {
    flex: 0 0 min(74vw, 315px);
    min-height: 180px;
    padding: 20px;
    scroll-snap-align: start;
  }

  .outcome-cards h3 {
    margin-bottom: 12px;
    font-size: 20px;
  }

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

  .pain-grid article,
  .role-grid article {
    min-height: 164px;
    padding: 16px;
  }

  .pain-grid span {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .pain-grid h3,
  .role-grid strong {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.2;
  }

  .pain-grid p,
  .role-grid p {
    font-size: 13px;
    line-height: 1.55;
  }

  .role-grid article {
    min-height: 150px;
  }

  .architecture {
    display: flex;
    gap: 12px;
    margin-inline: -14px;
    padding: 2px 14px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .architecture::-webkit-scrollbar {
    display: none;
  }

  .architecture article {
    flex: 0 0 min(76vw, 300px);
    min-height: 190px;
    padding: 20px;
    scroll-snap-align: start;
  }

  .architecture span {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
  }

  .architecture h3 {
    font-size: 19px;
  }

  .architecture p {
    font-size: 14px;
    line-height: 1.6;
  }

  .diagram-card img,
  .diagram-card.wide img {
    min-height: auto;
  }

  .diagram-showcase {
    gap: 14px;
    margin-bottom: 30px;
  }

  .diagram-card {
    min-height: auto;
  }

  .diagram-card img,
  .diagram-card.wide img {
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  .diagram-card figcaption {
    padding: 0 14px 14px;
  }

  .lab-proof {
    gap: 22px;
  }

  .lab-proof img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .image-pair,
  .quad-gallery,
  .transfer-gallery {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-inline: -14px;
    padding: 2px 14px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .image-pair::-webkit-scrollbar,
  .quad-gallery::-webkit-scrollbar,
  .transfer-gallery::-webkit-scrollbar {
    display: none;
  }

  .image-pair figure,
  .quad-gallery figure,
  .transfer-gallery figure,
  .transfer-gallery .wide {
    display: flex;
    flex: 0 0 min(82vw, 360px);
    flex-direction: column;
    min-height: 0;
    aspect-ratio: auto;
    scroll-snap-align: start;
  }

  .image-pair figure {
    flex-basis: min(66vw, 280px);
  }

  .quad-gallery figure:nth-child(3),
  .quad-gallery figure:nth-child(4),
  .transfer-gallery .wide {
    flex-basis: min(82vw, 360px);
  }

  .quad-gallery figure,
  .transfer-gallery figure {
    flex-basis: min(74vw, 315px);
  }

  .image-pair figure img,
  .quad-gallery figure img,
  .transfer-gallery figure img {
    width: 100%;
    height: auto;
    min-height: 0;
    background: transparent;
    object-fit: contain;
  }

  .image-pair figure img {
    aspect-ratio: 9 / 16;
  }

  .quad-gallery figure:nth-child(1) img,
  .quad-gallery figure:nth-child(2) img,
  .transfer-gallery figure:nth-child(1) img,
  .transfer-gallery figure:nth-child(3) img {
    aspect-ratio: 3 / 4;
  }

  .quad-gallery figure:nth-child(3) img,
  .quad-gallery figure:nth-child(4) img,
  .transfer-gallery .wide img {
    aspect-ratio: 4 / 3;
  }

  .image-pair figcaption,
  .quad-gallery figcaption,
  .transfer-gallery figcaption {
    position: static;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border-top: 1px solid rgba(20, 30, 38, 0.08);
    backdrop-filter: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .transfer-section .transfer-gallery figcaption {
    color: var(--ink);
  }
}
