.immersive-showcase {
  position: relative;
  padding: 140px 0 180px;
  border-block: 1px solid rgba(170, 218, 255, .12);
  background:
    radial-gradient(circle at 50% 5%, rgba(85, 170, 255, .12), transparent 28%),
    linear-gradient(180deg, rgba(3, 8, 16, .78), rgba(4, 10, 20, .94) 18%, rgba(2, 7, 14, .84));
}

.immersive-showcase::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(126, 191, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 191, 255, .035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}

.immersive-showcase__intro {
  position: relative;
  z-index: 2;
  max-width: 1220px;
}

.immersive-showcase__intro h2 {
  max-width: 900px;
  margin: 18px 0 22px;
  color: #f5f9ff;
  font-family: "Segoe UI Variable Display", "HarmonyOS Sans SC", "Microsoft YaHei UI", var(--sans), sans-serif;
  font-size: clamp(44px, 5.7vw, 86px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.immersive-showcase__intro > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #9fb2c9;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.8;
}

.immersive-stack {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin-top: 86px;
  padding-bottom: 8vh;
}

.immersive-panel {
  --stack-scale: 1;
  --stack-dim: 0;
  position: sticky;
  top: calc(88px + var(--stack-index) * 26px);
  z-index: calc(20 + var(--stack-index));
  display: grid;
  grid-template-columns: minmax(400px, .9fr) minmax(0, 1.35fr);
  min-height: clamp(580px, 68vh, 720px);
  margin-bottom: 22vh;
  overflow: hidden;
  border: 1px solid rgba(176, 221, 255, .34);
  border-radius: 32px;
  background: rgba(5, 12, 23, .96);
  box-shadow:
    0 50px 140px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(255, 255, 255, .025) inset,
    0 1px 0 rgba(255, 255, 255, .12) inset;
  transform: scale(var(--stack-scale));
  transform-origin: top center;
  isolation: isolate;
  contain: paint;
  transition: border-color .35s ease, box-shadow .35s ease;
}

.immersive-panel:last-child { margin-bottom: 0; }

.immersive-panel::before {
  position: absolute;
  inset: 10px;
  z-index: 7;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(215, 239, 255, .08);
  border-radius: 23px;
}

.immersive-panel::after {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  content: "";
  background: rgba(1, 5, 12, .18);
  opacity: var(--stack-dim);
}

.immersive-panel:hover {
  border-color: rgba(194, 230, 255, .64);
  box-shadow:
    0 58px 160px rgba(0, 0, 0, .64),
    0 0 56px rgba(82, 174, 255, .12),
    0 1px 0 rgba(255, 255, 255, .16) inset;
}

.immersive-panel__copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: clamp(38px, 4.3vw, 62px);
  border-right: 1px solid rgba(177, 219, 251, .14);
  background:
    radial-gradient(circle at 18% 0, rgba(104, 190, 255, .13), transparent 30%),
    linear-gradient(145deg, rgba(11, 24, 41, .98), rgba(4, 10, 20, .98));
}

.immersive-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(175, 217, 248, .15);
  color: #83d4ff;
  font: 10px/1 var(--mono, monospace);
  letter-spacing: .18em;
}

.immersive-kicker b {
  color: rgba(224, 241, 255, .34);
  font-size: 13px;
}

.immersive-panel__copy h3 {
  margin: clamp(36px, 5vh, 54px) 0 22px;
  color: #f6f9ff;
  font-family: "Segoe UI Variable Display", "HarmonyOS Sans SC", "Microsoft YaHei UI", var(--sans), sans-serif;
  font-size: clamp(34px, 3.15vw, 52px);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.immersive-panel__copy > p {
  max-width: 470px;
  margin: 0;
  color: #a7b8cb;
  font-size: 15px;
  line-height: 1.85;
}

.immersive-panel__copy ul {
  display: grid;
  gap: 15px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.immersive-panel__copy li {
  position: relative;
  padding-left: 21px;
  color: #d7e2ee;
  font-size: 14px;
  line-height: 1.55;
}

.immersive-panel__copy li::before {
  position: absolute;
  top: .6em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border: 1px solid #9cddff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(108, 207, 255, .65);
}

.immersive-endpoint,
.immersive-tags {
  margin-top: auto;
}

.immersive-endpoint {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 42px;
  padding: 16px 17px;
  border: 1px solid rgba(148, 211, 255, .2);
  border-radius: 13px;
  background: rgba(4, 14, 26, .72);
}

.immersive-endpoint i,
.immersive-compute-status i,
.immersive-panel__visual figcaption i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bfe8ff;
  box-shadow: 0 0 15px rgba(123, 211, 255, .9);
}

.immersive-endpoint code {
  overflow: hidden;
  color: #e7f4ff;
  font: 10px/1.2 var(--mono, monospace);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.immersive-endpoint span {
  color: #82d4ff;
  font: 9px/1 var(--mono, monospace);
  letter-spacing: .12em;
}

.immersive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 42px;
}

.immersive-tags span {
  padding: 10px 12px;
  border: 1px solid rgba(147, 209, 255, .22);
  border-radius: 999px;
  color: #b9d7eb;
  background: rgba(4, 14, 26, .5);
  font: 9px/1 var(--mono, monospace);
  letter-spacing: .13em;
}

.immersive-panel__visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #06101d;
}

.immersive-panel__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.immersive-panel:hover .immersive-panel__visual > img {
  transform: scale(1.055);
}

.immersive-panel__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 11, 21, .3), transparent 30%),
    linear-gradient(to bottom, rgba(3, 9, 18, .08) 45%, rgba(2, 8, 15, .74));
}

.immersive-panel__visual figcaption {
  position: absolute;
  top: 30px;
  right: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(224, 241, 255, .72);
  font: 9px/1 var(--mono, monospace);
  letter-spacing: .15em;
}

.immersive-model-row {
  position: absolute;
  right: 30px;
  bottom: 30px;
  left: 30px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.immersive-model-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(196, 228, 251, .2);
  border-radius: 12px;
  color: #f0f7ff;
  background: rgba(3, 11, 22, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  font-size: 11px;
}

.immersive-model-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1) invert(1);
  opacity: .9;
}

.immersive-compute-status {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  display: grid;
  min-width: 240px;
  padding: 18px 20px;
  border: 1px solid rgba(194, 228, 251, .22);
  border-radius: 14px;
  color: #d9ecf9;
  background: rgba(3, 10, 20, .9);
}

.immersive-compute-status span {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 10px/1 var(--mono, monospace);
  letter-spacing: .12em;
}

.immersive-compute-status b {
  margin-top: 12px;
  color: rgba(185, 214, 234, .5);
  font: 8px/1 var(--mono, monospace);
  letter-spacing: .15em;
}

@media (max-width: 960px) {
  .immersive-showcase { padding: 110px 0 130px; }
  .immersive-panel { grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr); }
  .immersive-panel__copy { padding: 42px 34px; }
  .immersive-panel__copy h3 { font-size: clamp(32px, 4.4vw, 44px); }
}

@media (min-width: 761px) and (max-width: 820px) {
  .immersive-stack { margin-top: 72px; }
  .immersive-panel {
    top: calc(var(--header-height) + 12px + var(--stack-index) * 18px);
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.08fr);
    min-height: clamp(620px, 68vh, 720px);
    margin-bottom: 18vh;
    border-radius: 27px;
  }
  .immersive-panel::before { border-radius: 19px; }
  .immersive-panel__copy { padding: 38px 30px; }
  .immersive-panel__copy h3 { margin-top: 36px; }
}

@media (max-width: 760px) {
  .immersive-showcase { padding: 90px 0 100px; }
  .immersive-showcase__intro h2 { font-size: clamp(40px, 12vw, 58px); }
  .immersive-stack { margin-top: 56px; padding-bottom: 0; }
  .immersive-panel {
    position: relative;
    top: auto;
    display: flex;
    min-height: 0;
    margin-bottom: 24px;
    border-radius: 24px;
    transform: none !important;
  }
  .immersive-panel__copy {
    width: 100%;
    min-height: 590px;
    padding: 34px 28px clamp(292px, 79vw, 330px);
    border-right: 0;
  }
  .immersive-panel__copy h3 { margin-top: 32px; font-size: clamp(32px, 9.5vw, 46px); }
  .immersive-panel__copy > p { font-size: 14px; }
  .immersive-panel__copy ul { gap: 11px; margin-top: 26px; }
  .immersive-panel__visual {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 5;
    min-height: clamp(250px, 76vw, 290px);
    border: 1px solid rgba(188, 225, 251, .16);
    border-radius: 17px;
  }
  .immersive-panel__visual figcaption { top: 18px; right: 18px; font-size: 7px; }
  .immersive-model-row { right: 16px; bottom: 16px; left: 16px; gap: 6px; }
  .immersive-model-row span { min-height: 38px; padding: 0 10px; font-size: 9px; }
  .immersive-model-row img { width: 18px; height: 18px; }
  .immersive-compute-status { right: 16px; bottom: 16px; min-width: 210px; }
  .immersive-endpoint code { min-width: 0; }
  .immersive-endpoint,
.immersive-tags { margin-top: 28px; }
}

@media (max-width: 420px) {
  .immersive-showcase { padding: 78px 0 88px; }
  .immersive-showcase__intro h2 { font-size: clamp(38px, 11.5vw, 48px); }
  .immersive-showcase__intro > p:last-child { line-height: 1.72; }
  .immersive-stack { margin-top: 48px; }
  .immersive-panel { border-radius: 20px; }
  .immersive-panel::before { inset: 8px; border-radius: 13px; }
  .immersive-panel__copy { padding-right: 24px; padding-left: 24px; }
  .immersive-panel__visual { right: 10px; bottom: 10px; left: 10px; border-radius: 14px; }
  .immersive-endpoint { gap: 8px; padding: 13px; }
  .immersive-compute-status { right: 14px; bottom: 14px; left: 14px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .immersive-panel,
.immersive-panel__visual > img { transition: none; }
  .immersive-panel { transform: none !important; }
}

/* Expanded reading mode: keep each platform capability fully visible. */
.immersive-showcase--expanded .immersive-stack {
  padding-bottom: 0;
}

.immersive-showcase--expanded .immersive-panel {
  position: relative;
  top: auto;
  z-index: auto;
  margin-bottom: 32px;
  transform: none !important;
}

.immersive-showcase--expanded .immersive-panel:last-child {
  margin-bottom: 0;
}
