.page-home .platform-portfolio {
  padding-block: clamp(58px, 8vw, 112px);
  background: radial-gradient(ellipse at 82% 18%, #dbe9ff, transparent 50%), #f3f7fd;
}

.showcase-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.showcase-heading h2 {
  color: #122846;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.showcase-portfolio-link,
.showcase-product-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .75em;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 650;
}

.showcase-portfolio-link { color: #204d98; }
.showcase-portfolio-link:hover { text-decoration: underline; }

.showcase-console {
  --console-line: #91b6ff38;
  --console-ink: #f0f6ff;
  --console-muted: #bdcde5;
  overflow: hidden;
  border: 1px solid #294674;
  border-radius: 16px;
  background: #09162d;
  color: var(--console-ink);
  box-shadow: 0 20px 55px #1633652b, 0 3px 8px #1633651a;
}

.showcase-selector:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--console-line);
  background: var(--console-line);
}

.showcase-selector button {
  --tab-accent: #89caff;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.5vw, 19px);
  min-height: 78px;
  padding: 12px clamp(13px, 2vw, 26px);
  color: var(--console-ink);
  background: #0d1d37;
  text-align: left;
}

.showcase-selector button:nth-child(2) { --tab-accent: #c4b5ff; }
.showcase-selector button:nth-child(3) { --tab-accent: #8ce2d7; }
.showcase-selector button:hover { background: #14294b; }

.showcase-selector button[aria-selected="true"] {
  background: linear-gradient(110deg, #192f55, #10213d);
  box-shadow: inset 0 -2px var(--tab-accent);
}

.showcase-console :is(button, a):focus-visible {
  outline: 2px solid #aecfff;
  outline-offset: -4px;
}

.showcase-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--console-line);
  border-radius: 7px;
  color: var(--tab-accent);
  background: #09172e;
}

.showcase-icon .icon { width: 23px; height: 23px; }
.showcase-selector strong, .showcase-selector small { display: block; }
.showcase-selector strong { font-size: clamp(.82rem, 1.4vw, 1.1rem); font-weight: 660; }
.showcase-selector small { margin-top: 3px; color: var(--console-muted); font-size: .76rem; line-height: 1.25; }
.showcase-chevron { color: var(--tab-accent); font-size: 1.3rem; }

.showcase-panels { display: grid; }
.showcase-console[data-enhanced] .showcase-panel { grid-area: 1 / 1; }
.showcase-panel[inert] { visibility: hidden; pointer-events: none; }
.showcase-console:not([data-enhanced]) .showcase-panel + .showcase-panel { border-top: 1px solid var(--console-line); }

.showcase-panel {
  --preview-accent: #89caff;
  --preview-glow: #2468c244;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  background: radial-gradient(ellipse at 76% 25%, var(--preview-glow), transparent 64%), #09162d;
}

.showcase-panel[data-platform="beyond-ai"] { --preview-accent: #c4b5ff; --preview-glow: #5846a746; }
.showcase-panel[data-platform="visionx-ai"] { --preview-accent: #8ce2d7; --preview-glow: #19736f43; }

.showcase-panel-body {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 68px);
  padding: clamp(24px, 4.5vw, 64px);
}

.showcase-copy h3 {
  color: var(--preview-accent);
  font-size: clamp(.83rem, 1.5vw, 1.05rem);
  font-weight: 670;
  letter-spacing: .015em;
}

.showcase-outcome {
  max-width: 19ch;
  margin-block: 11px 0;
  color: var(--console-ink);
  font-size: clamp(1.55rem, 3.2vw, 3.15rem);
  font-weight: 570;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.showcase-description {
  max-width: 43ch;
  margin-top: 16px;
  color: var(--console-muted);
  font-size: clamp(.86rem, 1.27vw, 1rem);
  line-height: 1.6;
}

.showcase-product-link {
  margin-top: 22px;
  padding-inline: 15px;
  border-radius: 6px;
  color: #0a1931;
  background: var(--preview-accent);
}

.showcase-product-link:hover { background: #fff; }
.showcase-product-link:focus-visible { outline-color: #142d54; }

.showcase-preview { min-width: 0; margin: 0; }

.showcase-screen {
  display: grid;
  align-items: center;
  aspect-ratio: 16 / 10;
  padding: clamp(6px, 1.1vw, 12px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 45%, #172744);
  border-radius: 10px;
  background: radial-gradient(circle, #a1c4ff37 1px, transparent 1px) 0 0 / 14px 14px, #071326;
  box-shadow: 0 0 0 4px #c5def30a, 0 14px 30px #0007;
}

.showcase-screen img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.showcase-preview figcaption {
  margin-top: 10px;
  color: var(--console-muted);
  font-size: .73rem;
  letter-spacing: .025em;
}

.showcase-workflow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 18px 9px 20px;
  border-top: 1px solid var(--console-line);
  background: #0b1a34;
  list-style: none;
}

.showcase-workflow::before,
.showcase-workflow::after {
  position: absolute;
  z-index: -1;
  inset: 21px calc(16.667% + 6px) auto;
  height: 1px;
  background: var(--console-line);
  content: "";
}

.showcase-workflow::after {
  background: linear-gradient(90deg, #5b8ed05c, var(--preview-accent));
  transform-origin: left;
}

.showcase-workflow li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding-inline: 3px;
  color: var(--console-muted);
  font-size: clamp(.65rem, 1.4vw, .82rem);
  line-height: 1.25;
  text-align: center;
}

.showcase-workflow li::before {
  width: 7px;
  height: 7px;
  border: 1px solid var(--preview-accent);
  border-radius: 50%;
  background: #15294c;
  content: "";
}

.showcase-workflow li:last-child::before { background: var(--preview-accent); }

@media (prefers-reduced-motion: no-preference) {
  .showcase-selector button { transition: background-color .18s ease; }
  .showcase-console[data-enhanced] .showcase-panel:not([inert]) .showcase-panel-body {
    animation: showcase-panel-in .32s ease-out both;
  }
  .showcase-console[data-enhanced] .showcase-panel:not([inert]) .showcase-workflow::after {
    animation: showcase-workflow-in .68s ease-out both;
  }
}

@keyframes showcase-panel-in {
  from { opacity: .3; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes showcase-workflow-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .showcase-heading { row-gap: 4px; }
  .showcase-selector button {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
    min-height: 76px;
    padding: 9px 3px 12px;
    text-align: center;
  }
  .showcase-icon { width: 29px; height: 29px; }
  .showcase-icon .icon { width: 19px; height: 19px; }
  .showcase-selector small { font-size: .69rem; }
  .showcase-chevron { display: none; }
  .showcase-panel-body {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 20px;
    padding: 22px clamp(15px, 5vw, 34px);
  }
  .showcase-outcome { max-width: 24ch; }
  .showcase-description { margin-top: 10px; }
  .showcase-product-link { margin-top: 13px; }
  .showcase-preview { width: min(100%, 33rem); }
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(12px, 2vw, 23px);
}

.showcase-rotation {
  min-height: 44px;
  padding-inline: 11px;
  border: 1px solid #a4bbdc;
  border-radius: 6px;
  color: #204d98;
  font-size: .82rem;
  font-weight: 650;
}

.showcase-rotation:hover { background: #dce9ff; }
.showcase-rotation:focus-visible { outline: 2px solid #204d98; outline-offset: 2px; }
