:root {
  color-scheme: light;
  --ink: #1d2129;
  --muted: #4e5969;
  --subtle: #86909c;
  --paper: #f5f6f7;
  --panel: #ffffff;
  --line: #e5e6eb;
  --line-strong: #d7dce3;
  --blue: #0052d9;
  --blue-soft: #eaf2ff;
  --teal: #087f7a;
  --teal-soft: #e7f6f4;
  --green: #2f8f5b;
  --green-soft: #e8f7ee;
  --amber: #c77700;
  --amber-soft: #fff3dd;
  --coral: #bf574f;
  --coral-soft: #fff0ee;
  --shadow: 0 18px 46px rgba(28, 43, 63, 0.12);
  --radius: 8px;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.present-mode .deck-nav,
body.present-mode .slide-rail,
body.present-mode .deck-controls {
  opacity: 0.08;
}

body.present-mode .deck-nav:hover,
body.present-mode .slide-rail:hover,
body.present-mode .deck-controls:hover {
  opacity: 1;
}

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

button {
  font: inherit;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 82, 217, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 82, 217, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f8fafc 0%, #eef4f5 52%, #f8fafc 100%);
  background-size: 52px 52px, 52px 52px, auto;
}

.deck-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1240px, calc(100% - 32px));
  min-height: 56px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(229, 230, 235, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(28, 43, 63, 0.09);
  padding: 8px 10px 8px 14px;
  backdrop-filter: blur(16px);
  transition: opacity 180ms ease;
}

.brand {
  display: inline-flex;
  min-width: 252px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.chapter-nav a {
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 12px;
  white-space: nowrap;
}

.chapter-nav a:hover,
.chapter-nav a.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platform-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
}

.icon-button:hover {
  border-color: rgba(0, 82, 217, 0.36);
  color: var(--blue);
}

.focus-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 82, 217, 0.08);
}

.slide-rail {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 25;
  display: grid;
  transform: translateY(-50%);
  gap: 8px;
  transition: opacity 180ms ease;
}

.rail-dot {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(78, 89, 105, 0.34);
  cursor: pointer;
  padding: 0;
}

.rail-dot.is-active {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 82, 217, 0.14);
}

.deck {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.deck:focus {
  outline: none;
}

.slide {
  position: relative;
  display: grid;
  min-height: 100vh;
  scroll-snap-align: start;
  align-items: center;
  gap: 34px;
  padding: 98px max(28px, calc((100vw - 1240px) / 2)) 74px;
}

.overview-slide {
  isolation: isolate;
  grid-template-columns: minmax(360px, 0.58fr) minmax(690px, 1.42fr);
  gap: 10px;
  align-items: center;
}

.overview-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(245, 246, 247, 0.98) 0%, rgba(245, 246, 247, 0.88) 33%, rgba(245, 246, 247, 0.42) 64%, rgba(245, 246, 247, 0.78) 100%),
    url("assets/alm-hero-bg.png") center / cover no-repeat;
  opacity: 0.92;
}

.overview-copy {
  position: relative;
  z-index: 4;
  max-width: 620px;
  margin-top: -34px;
}

.eyebrow,
.module-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
}

.overview-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 62px;
  line-height: 1.1;
  letter-spacing: 0;
}

.overview-copy h1 span {
  display: block;
}

.hero-subtitle {
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(0, 82, 217, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue);
  padding: 0 14px;
  font-weight: 800;
}

.layer-stage {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  padding: 0;
  margin-right: -56px;
}

.pyramid-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.98;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 42px rgba(0, 82, 217, 0.18));
  -webkit-mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 60%, rgba(0, 0, 0, 0.72) 72%, transparent 86%);
  mask-image: radial-gradient(ellipse 52% 52% at 50% 50%, #000 60%, rgba(0, 0, 0, 0.72) 72%, transparent 86%);
}

.layer-card {
  position: absolute;
  z-index: 2;
  display: block;
  border: 1px solid var(--line);
  border-left-width: 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(28, 43, 63, 0.13);
  padding: 18px 20px;
  backdrop-filter: blur(16px);
}

.layer-role span,
.detail-grid span,
.report-placeholders span {
  display: block;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 850;
}

.layer-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(229, 230, 235, 0.76);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.layer-role strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: rgba(29, 33, 41, 0.07);
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 900;
}

.layer-report .layer-role strong {
  background: var(--amber-soft);
  color: var(--amber);
}

.layer-flow .layer-role strong {
  background: var(--teal-soft);
  color: var(--teal);
}

.layer-model .layer-role strong {
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 82, 217, 0.07);
  min-height: 34px;
  padding: 0 14px;
  font-size: 15px;
}

.layer-summary {
  border-top: 1px solid rgba(229, 230, 235, 0.72);
  margin-top: 12px;
  padding-top: 10px;
}

.layer-card h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.layer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.module-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-chip-grid li {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.layer-model .module-chip-grid li {
  min-height: 44px;
  font-size: 16px;
}

.layer-model {
  right: 12px;
  bottom: 30px;
  border-left-color: var(--blue);
  width: 420px;
}

.layer-model li,
.model-layer .module-kicker {
  color: var(--blue);
}

.layer-model li {
  background: var(--blue-soft);
}

.layer-flow {
  top: 278px;
  left: 10px;
  border-left-color: var(--teal);
  width: 380px;
}

.layer-flow li,
.flow-layer .module-kicker {
  color: var(--teal);
}

.layer-flow li {
  background: var(--teal-soft);
}

.layer-report {
  top: 48px;
  right: 70px;
  border-left-color: var(--amber);
  width: 330px;
}

.layer-report li {
  background: var(--amber-soft);
  color: var(--amber);
}

.module-slide {
  grid-template-columns: minmax(330px, 0.34fr) minmax(0, 0.66fr);
  align-items: stretch;
}

.slide-copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
}

.slide-copy h2,
.report-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.16;
}

.module-lead,
.report-copy p:last-child {
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(28, 43, 63, 0.06);
}

.detail-grid article:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.detail-grid article:nth-child(2) {
  border-top: 4px solid var(--teal);
}

.detail-grid article:nth-child(3) {
  border-top: 4px solid var(--amber);
}

.detail-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.platform-window {
  display: grid;
  min-height: 0;
  grid-template-rows: 48px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-bar {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
  padding: 0 12px;
}

.window-bar div {
  display: flex;
  gap: 7px;
}

.window-bar strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-bar a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red {
  background: #ef6a62;
}

.dot.amber {
  background: #f0b54d;
}

.dot.green {
  background: #36bd7c;
}

.frame-shell {
  position: relative;
  min-height: 520px;
  background: #f7f9fb;
}

.frame-shell iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  background: #ffffff;
}

.frame-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--subtle);
  font-weight: 800;
}

.frame-shell.is-loaded .frame-loader {
  display: none;
}

.report-slide {
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 0.62fr);
}

.report-copy {
  max-width: 470px;
}

.report-placeholders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.report-placeholders article {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 20px;
}

.report-placeholders img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.report-placeholders h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.report-placeholders p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.deck-controls {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(28, 43, 63, 0.09);
  padding: 8px;
  transition: opacity 180ms ease;
  backdrop-filter: blur(14px);
}

#slideCounter {
  min-width: 58px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1080px) {
  .deck-nav {
    align-items: flex-start;
  }

  .chapter-nav {
    display: none;
  }

  .overview-slide,
  .module-slide,
  .report-slide {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .overview-slide {
    gap: 22px;
  }

  .overview-copy {
    max-width: 860px;
    margin-top: 0;
  }

  .layer-stage {
    min-height: 680px;
    margin-right: 0;
  }

  .layer-report {
    right: 130px;
  }

  .layer-flow {
    left: 108px;
  }

  .layer-model {
    right: 110px;
  }

  .overview-copy h1 {
    font-size: 46px;
  }

  .module-slide {
    padding-top: 96px;
  }

  .slide-copy {
    justify-content: flex-start;
  }

  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-window {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .deck {
    scroll-snap-type: none;
  }

  .deck-nav {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
    font-size: 13px;
  }

  .brand span:last-child {
    display: none;
  }

  .platform-link {
    display: none;
  }

  .slide-rail {
    display: none;
  }

  .slide {
    min-height: auto;
    padding: 88px 16px 112px;
  }

  .overview-copy h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .layer-card {
    position: static;
    grid-template-columns: 1fr;
    padding: 18px;
    width: 100%;
  }

  .layer-stage {
    display: grid;
    gap: 12px;
    min-height: auto;
    padding: 0;
  }

  .pyramid-art {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    order: -1;
  }

  .layer-card h2 {
    font-size: 26px;
  }

  .slide-copy h2,
  .report-copy h2 {
    font-size: 32px;
  }

  .module-lead,
  .report-copy p:last-child {
    font-size: 16px;
  }

  .detail-grid,
  .report-placeholders {
    grid-template-columns: 1fr;
  }

  .platform-window {
    min-height: 460px;
  }

  .frame-shell,
  .frame-shell iframe {
    min-height: 460px;
  }

  .window-bar {
    grid-template-columns: 64px minmax(0, 1fr) 48px;
  }

  .window-bar strong {
    font-size: 12px;
  }

  .deck-controls {
    display: none;
  }
}
