/* ===================================================================
   Platform showcase — dashboard palette from AEC reference
   Deep teal #1b6b58 · mint gradients · cloud #f5f7f7
   =================================================================== */

.platform-showcase {
  --ps-navy: #1a202c;
  --ps-text: #2a3438;
  --ps-accent: #1b6b58;
  --ps-accent-deep: #154d42;
  --ps-accent-mid: #1d7566;
  --ps-accent-light: #2f947d;
  --ps-accent-bright: #44b48b;
  --ps-accent-glow: #5ec9a8;
  --ps-accent-soft: #b8d4cb;
  --ps-accent-pale: #e4efeb;
  --ps-accent-muted: rgba(27, 107, 88, 0.1);
  --ps-cloud: #f5f7f7;
  --ps-card: #ffffff;
  --ps-border: #e8eeec;
  --ps-label: #9ca8a3;
  --ps-text-muted: #6b7a75;
  --ps-tab-track: #e8ecea;
  --ps-tab-track-active: #cfdcd7;
  --ps-grad-header: linear-gradient(135deg, #1b6b58 0%, #1f7a68 52%, #165a4d 100%);
  --ps-grad-bar: linear-gradient(90deg, #3aa88e 0%, #1b6b58 100%);
  --ps-grad-bar-deep: linear-gradient(90deg, #2f947d 0%, #154d42 100%);
  --ps-grad-column: linear-gradient(180deg, #4ab896 0%, #1b6b58 100%);
  --ps-grad-rail: linear-gradient(180deg, #bcc3c7 0%, #3a4043 100%);
  --ps-grad-tab: linear-gradient(90deg, #2f947d, #1b6b58);
  --ps-header-clearance: clamp(120px, 16vh, 168px);
  padding: 0 0 80px;
  background: var(--ps-cloud);
  position: relative;
}

@media (min-width: 1025px) {
  .platform-showcase {
    /* Clear the floating site header so sticky copy title is not clipped */
    --ps-header-clearance: clamp(160px, 20vh, 212px);
  }
}

/* ── Scroll progress bar ── */
.platform-scroll-progress {
  position: sticky;
  top: 0;
  z-index: 12;
  height: 3px;
  background: var(--ps-tab-track);
}

.platform-scroll-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ps-grad-tab);
  transition: width 0.12s linear;
}

.platform-scroll-intro {
  padding-top: 64px;
  padding-bottom: 28px;
}

.platform-showcase-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.platform-lead-mobile {
  display: none;
}

.platform-showcase-head .section-title {
  color: var(--ps-navy);
  margin-bottom: 14px;
}

.platform-showcase-head .section-lead {
  color: var(--ps-text-muted);
}

/* ── Phase pills ── */
.platform-phase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-phase-pill {
  border: 1px solid var(--ps-border);
  background: #ffffff;
  color: var(--ps-text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  transform: scale(0.96);
  opacity: 0.55;
}

.platform-phase-pill.is-active {
  color: var(--ps-accent-deep);
  border-color: var(--ps-accent-soft);
  background: var(--ps-accent-pale);
  transform: scale(1);
  opacity: 1;
}

.platform-phase-pill:hover {
  border-color: var(--ps-accent-light);
}

/* Custom tab — always-on moving colorful gradient border */
@property --ps-custom-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.platform-phase-pill--custom {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  background: #ffffff;
  color: #334155;
  opacity: 0.92;
  transform: scale(0.98);
  z-index: 0;
}

.platform-phase-pill--custom::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--ps-custom-angle),
    #ef4444,
    #f59e0b,
    #22d3ee,
    #2563eb,
    #ec4899,
    #ef4444
  );
  z-index: -2;
  animation: ps-custom-border-spin 3.2s linear infinite;
}

.platform-phase-pill--custom::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: inherit;
  background: #ffffff;
  z-index: -1;
}

.platform-phase-pill--custom.is-active {
  color: #1e3a8a;
  background: transparent;
  opacity: 1;
  transform: scale(1);
}

.platform-phase-pill--custom.is-active::after {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}

.platform-phase-pill--custom:hover {
  border-color: transparent;
}

@keyframes ps-custom-border-spin {
  to { --ps-custom-angle: 360deg; }
}

/* When Custom is active — full dark invert so it reads as a different product */
.platform-showcase {
  transition: background-color 0.45s ease, color 0.35s ease;
}

.platform-showcase:has(#platform-step-custom.is-active) {
  --ps-navy: #e8eefc;
  --ps-text: #d5dceb;
  --ps-accent: #60a5fa;
  --ps-accent-deep: #93c5fd;
  --ps-accent-mid: #3b82f6;
  --ps-accent-light: #38bdf8;
  --ps-accent-bright: #22d3ee;
  --ps-accent-glow: #a78bfa;
  --ps-accent-soft: #334155;
  --ps-accent-pale: #1a2438;
  --ps-accent-muted: rgba(96, 165, 250, 0.16);
  --ps-cloud: #0a0f1a;
  --ps-card: #121a2b;
  --ps-border: #243047;
  --ps-label: #7b889f;
  --ps-text-muted: #9aa6c2;
  --ps-tab-track: #1a2233;
  --ps-tab-track-active: #2a364e;
  --ps-grad-header: linear-gradient(135deg, #111827 0%, #1e3a8a 48%, #0f172a 100%);
  --ps-grad-bar: linear-gradient(90deg, #22d3ee 0%, #6366f1 100%);
  --ps-grad-bar-deep: linear-gradient(90deg, #38bdf8 0%, #7c3aed 100%);
  --ps-grad-column: linear-gradient(180deg, #22d3ee 0%, #4f46e5 100%);
  --ps-grad-rail: linear-gradient(180deg, #64748b 0%, #e2e8f0 100%);
  --ps-grad-tab: linear-gradient(90deg, #22d3ee, #818cf8, #f472b6);
  background: #070b14;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-showcase-head .section-title {
  color: #f1f5ff;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-showcase-head .section-lead {
  color: #9aa6c2;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-phase-pill {
  background: #121a2b;
  color: #8b97b0;
  border-color: #2a364e;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-phase-pill.is-active:not(.platform-phase-pill--custom) {
  color: #bfdbfe;
  border-color: #3b82f6;
  background: #172554;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-phase-pill--custom {
  color: #f8fafc;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-phase-pill--custom::after {
  background: #0d1422;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-phase-pill--custom.is-active::after {
  background: linear-gradient(135deg, #152038 0%, #1e1b4b 100%);
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-preview-dock {
  background: #0a0f1a;
  border-color: #243047;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-browser-chrome {
  background: linear-gradient(180deg, #151d2e 0%, #101826 100%);
  border-color: #243047;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-browser-title {
  color: #9aa6c2;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-preview-phase-rail {
  background: #0d1422;
  border-color: #243047;
}

.platform-showcase:has(#platform-step-custom.is-active) .platform-preview-phase-tab:not(.platform-preview-phase-tab--custom) {
  color: #7b889f;
  background: #151d2e;
}

.platform-showcase:has(#platform-step-custom.is-active) .dash-ui-live-dot {
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.65);
}

.platform-showcase:has(#platform-step-custom.is-active) .dash-kpi,
.platform-showcase:has(#platform-step-custom.is-active) .dash-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.platform-showcase:has(#platform-step-custom.is-active) .dash-metric-tile {
  background: linear-gradient(180deg, #182033 0%, #121a2a 100%);
}

#platform-step-custom .platform-copy-badge {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14) 0%, rgba(129, 140, 248, 0.2) 100%);
  color: #67e8f9;
}

#platform-step-custom .platform-copy-title {
  color: #f1f5ff;
}

#platform-step-custom .platform-copy-lead {
  color: #9aa6c2;
}

#platform-step-custom .platform-copy-cta {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

#platform-step-custom .platform-copy-cta:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-color: transparent;
}

#platform-step-custom .platform-copy-features {
  border-top-color: #243047;
}

#platform-step-custom .platform-copy-features h4 {
  color: #e8eefc;
}

#platform-step-custom .platform-copy-features p {
  color: #9aa6c2;
}

#platform-step-custom .platform-step-mobile-preview {
  background: #0a0f1a;
  border-color: #243047;
}

/* ── Two-column scroll layout ── */
.platform-scroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1025px) {
  .platform-scroll-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(40px, 5vw, 64px);
    align-items: start;
    padding-top: clamp(28px, 4vh, 48px);
  }

  .platform-mobile-pin,
  .platform-mobile-pin-track,
  .platform-mobile-pin-sticky {
    display: contents;
  }

  .platform-phase-pills--stage,
  .platform-mobile-step-rail {
    display: none !important;
  }

  .platform-step-mobile-preview,
  .platform-step-mobile-preview.is-visible {
    display: none !important;
  }

  .platform-step-carousel-page--preview,
  .platform-step-carousel-controls {
    display: none !important;
  }

  /*
   * Flatten mobile carousel wrappers so desktop sticky copy pins against
   * each step (same as before the mobile carousel was added). Without this,
   * left copy scrolls away and only the preview dock remains visible.
   */
  .platform-step-carousel,
  .platform-step-carousel-viewport,
  .platform-step-carousel-rail,
  .platform-step-carousel-page--copy {
    display: contents;
  }

  .platform-step:not(.is-active) .platform-step-sticky {
    opacity: 0;
    pointer-events: none;
  }

  .platform-step.is-active .platform-step-sticky {
    opacity: 1;
  }

  .platform-step.is-active .platform-step-copy {
    opacity: var(--step-text-opacity, 1);
  }

  .platform-step.is-active .platform-step-copy [data-scroll-reveal] {
    opacity: calc(0.15 + var(--reveal, 1) * 0.85);
  }

  .platform-step.is-active .platform-copy-cta[data-scroll-reveal] {
    opacity: var(--reveal, 1);
  }
}

.platform-scroll-steps {
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.platform-step {
  min-height: 210vh;
  position: relative;
}

@media (min-width: 1025px) {
  /* Longer runway per vertical so copy/preview can be read before the next phase */
  .platform-step {
    min-height: 340vh;
  }

  .platform-copy-title {
    max-width: 22ch;
  }

  .platform-copy-features {
    margin-top: 28px;
    padding-top: 22px;
  }
}

.platform-step-sticky {
  position: sticky;
  top: var(--ps-header-clearance);
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  padding: clamp(20px, 3vh, 32px) 0 clamp(48px, 8vh, 80px);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 1025px) {
  .platform-step-sticky {
    transition: opacity 0.45s ease;
    /* Fit under the floating header without clipping the title */
    padding: 8px 0 32px;
    align-content: start;
  }
}

.platform-step.is-active .platform-step-sticky {
  z-index: 4;
  pointer-events: auto;
}

.platform-step-rail {
  position: relative;
  width: 4px;
  min-height: clamp(180px, 28vh, 280px);
  border-radius: 4px;
  background: var(--ps-tab-track);
  overflow: hidden;
  opacity: var(--step-rail-opacity, 0.35);
}

.platform-step-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: var(--ps-grad-rail);
  will-change: height;
}

.platform-step-copy {
  opacity: var(--step-text-opacity, 0.16);
  transform: translate3d(0, var(--step-text-shift, 14px), 0);
  will-change: opacity, transform;
}

.platform-step-mobile-preview {
  display: none;
  margin: 0 0 clamp(32px, 6vh, 56px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ps-border);
  background: var(--ps-cloud);
  box-shadow: 0 8px 28px rgba(42, 52, 56, 0.06);
}

.platform-step-mobile-preview.is-visible {
  display: block;
}

/* ── Mobile step carousel (text ↔ dashboard); inert on desktop ── */
.platform-step-carousel-controls {
  display: none;
}

.platform-step-carousel-index {
  display: none;
  margin: 0;
}

.platform-step-carousel-hint {
  margin: 0;
}

/* ── Fixed preview dock (desktop) ── */
.platform-preview-dock {
  display: none;
}

@media (min-width: 1025px) {
  .platform-preview-dock {
    display: block;
    position: sticky;
    top: var(--ps-header-clearance);
    align-self: start;
  }
}

.platform-browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--ps-border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.platform-browser-chrome--mobile {
  border-radius: 10px 10px 0 0;
}

.platform-browser-dots {
  display: inline-flex;
  gap: 5px;
}

.platform-browser-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8dedb;
}

.platform-browser-dots i:nth-child(1) { background: #f87171; }
.platform-browser-dots i:nth-child(2) { background: #fbbf24; }
.platform-browser-dots i:nth-child(3) { background: #4ade80; }

.platform-browser-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-text-muted);
  letter-spacing: 0.02em;
}

.platform-browser-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-accent);
}

.platform-browser-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ps-accent-bright);
  box-shadow: 0 0 6px color-mix(in srgb, var(--ps-accent-bright) 55%, transparent);
}

.platform-preview-phase-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border-left: 1px solid var(--ps-border);
  border-right: 1px solid var(--ps-border);
}

.platform-preview-phase-tab {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-label);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ps-cloud);
  transition: color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  opacity: 0.55;
}

.platform-preview-phase-tab.is-active {
  color: #ffffff;
  background: var(--ps-accent);
  opacity: 1;
}

.platform-preview-phase-tab--custom:not(.is-active) {
  color: #1e40af;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from var(--ps-custom-angle), #ef4444, #f59e0b, #22d3ee, #2563eb, #ec4899, #ef4444) border-box;
  border: 1.5px solid transparent;
  animation: ps-custom-border-spin 3.2s linear infinite;
}

.platform-preview-phase-tab--custom.is-active {
  background:
    linear-gradient(135deg, #1e40af, #2563eb) padding-box,
    conic-gradient(from var(--ps-custom-angle), #ef4444, #f59e0b, #22d3ee, #2563eb, #ec4899, #ef4444) border-box;
  border: 1.5px solid transparent;
  animation: ps-custom-border-spin 3.2s linear infinite;
}

.platform-preview-stage {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  align-items: start;
  min-height: 620px;
  border: 1px solid var(--ps-border);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: var(--ps-cloud);
  box-shadow:
    0 1px 2px rgba(27, 107, 88, 0.04),
    0 12px 36px rgba(42, 52, 56, 0.07);
}

.platform-preview-panel {
  grid-area: stack;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.platform-preview-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.platform-preview-panel.is-exiting {
  opacity: 0;
  visibility: visible;
  z-index: 1;
}

.platform-preview-visual {
  display: grid;
  grid-template-rows: auto auto;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: var(--ps-cloud);
}

.platform-preview-visual .dash-ui {
  min-height: 380px;
}

/* Scroll-reveal inside dashboards */
[data-scroll-reveal] {
  --reveal: 0;
  opacity: calc(0.15 + var(--reveal) * 0.85);
  transform: translate3d(0, calc((1 - var(--reveal)) * 14px), 0);
}

.platform-copy-cta[data-scroll-reveal] {
  opacity: calc(var(--reveal));
  transform: translate3d(0, calc((1 - var(--reveal)) * 12px), 0);
}

/* ── Animated dashboard UI ── */
.dash-ui {
  display: flex;
  flex-direction: column;
  background: var(--ps-cloud);
  font-size: 11px;
  color: var(--ps-text);
  overflow: hidden;
}

.dash-ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--ps-grad-header);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dash-ui-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dash-ui-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-ui-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ps-accent-bright);
  box-shadow: 0 0 6px rgba(68, 180, 139, 0.55);
  animation: dashPulse 2s ease-in-out infinite;
}

@keyframes dashPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.dash-ui-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
  min-height: 0;
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.dash-kpi {
  padding: 6px 8px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--ps-card);
  border: 1px solid var(--ps-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.dash-kpi-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ps-label);
  margin-bottom: 4px;
}

.dash-kpi-val {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ps-navy);
}

.dash-kpi-delta {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
}

.dash-kpi-delta--up { color: var(--ps-accent); }

.dash-grid {
  display: grid;
  gap: 6px;
  flex: 1;
  min-height: 0;
  align-content: start;
}

.dash-grid--crm,
.dash-grid--dam,
.dash-grid--aec,
.dash-grid--energy,
.dash-grid--ag,
.dash-grid--custom {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.dash-card--wide { grid-column: 1 / -1; }

.dash-card {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ps-card);
  border: 1px solid var(--ps-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.dash-card-label {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ps-label);
}

.dash-card-hero {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ps-navy);
  line-height: 1;
}

.dash-card-hero--sm {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.dash-card-sub {
  margin: 4px 0 0;
  font-size: 9px;
  color: var(--ps-label);
}

.dash-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
}

.dash-spark--sm {
  height: 26px;
  gap: 3px;
}

.dash-spark span,
.dash-bars-h span {
  flex: 1;
  min-width: 6px;
  height: 0;
  border-radius: 3px 3px 2px 2px;
  background: var(--ps-grad-column);
  transition: height 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-spark.is-animated span,
.dash-bars-h.is-animated span {
  height: calc(var(--bar-target, 50) * 1%);
}

.dash-bars-h {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
  margin-bottom: 4px;
}

.dash-bars-h--sm {
  height: 28px;
  margin-bottom: 4px;
}

.dash-bars-v {
  display: grid;
  gap: 6px;
}

.dash-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ps-label);
}

.dash-bar-row em {
  font-style: normal;
  font-weight: 600;
  color: var(--ps-navy);
  text-align: right;
}

.dash-bar-track {
  height: 5px;
  border-radius: 999px;
  background: var(--ps-accent-pale);
  overflow: hidden;
}

.dash-bar-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ps-grad-bar);
  transition: width 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-bar-track > span[data-bar-color="navy"] {
  background: var(--ps-grad-bar-deep);
}

.dash-bar-track > span[data-bar-color="cyan"],
.dash-bar-track > span[data-bar-color="teal"] {
  background: linear-gradient(90deg, var(--ps-accent-glow) 0%, var(--ps-accent-light) 100%);
}

.dash-bar-track > span[data-bar-color="green"] {
  background: var(--ps-grad-bar);
}

.dash-bar-track > span[data-bar-color="orange"] {
  background: linear-gradient(90deg, var(--ps-accent-soft) 0%, var(--ps-accent-pale) 100%);
}

.dash-ui.is-animated .dash-bar-track > span {
  width: calc(var(--bar-target, 0) * 1%);
}

.dash-progress-lg {
  height: 8px;
  border-radius: 999px;
  background: var(--ps-accent-pale);
  overflow: hidden;
  margin-bottom: 6px;
}

.dash-progress-lg span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ps-grad-bar);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-ui.is-animated .dash-progress-lg span {
  width: calc(var(--bar-target, 0) * 1%);
}

.dash-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ps-label);
}

.dash-stack-bars { display: grid; gap: 8px; }

.dash-stack-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ps-label);
}

.dash-heat-row {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}

.dash-heat-row span {
  width: 0;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-heat-row span[data-bar-color="green"] { background: var(--ps-accent-mid); }
.dash-heat-row span[data-bar-color="orange"] { background: var(--ps-accent-light); }
.dash-heat-row span[data-bar-color="navy"] { background: var(--ps-accent-deep); }
.dash-heat-row span[data-bar-color="cyan"],
.dash-heat-row span[data-bar-color="teal"] { background: var(--ps-accent-glow); }

.dash-ui.is-animated .dash-heat-row span {
  flex: none;
  width: calc(var(--bar-target, 0) * 1%);
}

.dash-heat-legend {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 10px;
  color: #7c7f88;
}

.dash-ring {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 2px;
}

.dash-ring--sm { width: 48px; height: 48px; }

.dash-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dash-ring-bg {
  fill: none;
  stroke: var(--ps-accent-pale);
  stroke-width: 6;
}

.dash-ring-fill {
  fill: none;
  stroke: var(--ps-accent-bright);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: 213.6;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-ring--sm .dash-ring-fill {
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
}

.dash-ui.is-animated .dash-ring-fill {
  stroke-dashoffset: var(--ring-offset, 213.6);
}

.dash-ring > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #111a4a;
}

.dash-card--metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dash-grid--crm .dash-card--metrics,
.dash-grid--dam .dash-card--metrics,
.dash-grid--aec .dash-card--metrics,
.dash-grid--energy .dash-card--metrics,
.dash-grid--ag .dash-card--metrics,
.dash-grid--custom .dash-card--metrics {
  grid-column: 1 / -1;
}

.dash-metric-tile {
  padding: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  border: 1px solid var(--ps-border);
}

.dash-metric-tile span {
  display: block;
  font-size: 9px;
  color: var(--ps-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.dash-metric-tile strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-navy);
}

.dash-status-ok { color: var(--ps-accent) !important; }

/* Code block — light DevTools panel */
.platform-code {
  height: 196px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-top: 1px solid #e3e4e8;
  --code-fade: #f8f9fa;
}

.platform-code--crm { background: #eef0f2; --code-fade: #f8f9fa; }
.platform-code--dam { background: #edf0ef; --code-fade: #f7f8f8; }
.platform-code--aec { background: #f0efed; --code-fade: #f9f8f7; }
.platform-code--energy { background: #edf0f2; --code-fade: #f7f9fa; }
.platform-code--agtech { background: #eef1ee; --code-fade: #f8faf8; }
.platform-code--custom {
  background: #0b1020;
  --code-fade: #0b1020;
  border-top-color: #243047;
}

.platform-code-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 8px 14px;
  background: linear-gradient(180deg, #f3f5f4 0%, #ecefed 100%);
  border-bottom: 1px solid var(--ps-border);
  font-size: 10px;
}

.platform-code-chrome-dots {
  display: inline-flex;
  gap: 5px;
}

.platform-code-chrome-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8dbe0;
}

.platform-code-chrome-dots i:nth-child(1) { background: #f0a8a0; }
.platform-code-chrome-dots i:nth-child(2) { background: #e8cc8a; }
.platform-code-chrome-dots i:nth-child(3) { background: #9ed4a0; }

.platform-code-chrome-tab {
  padding: 3px 10px;
  border-radius: 4px 4px 0 0;
  background: #e3e4e8;
  color: #7c7f88;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.platform-code-chrome-tab.is-active {
  background: #f8faf9;
  color: var(--ps-navy);
}

.platform-code-chrome-file {
  margin-left: auto;
  color: #a9acb6;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 10px;
}

.platform-code-viewport {
  position: relative;
  flex: 1;
  min-height: 132px;
  overflow: auto;
  scrollbar-width: none;
}

.platform-code-viewport::-webkit-scrollbar {
  display: none;
}

.platform-code-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(180deg, transparent, var(--code-fade));
  pointer-events: none;
}

.platform-code-block {
  margin: 0;
  padding: 10px 14px 14px;
  border-radius: 0;
  border: none;
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1.55;
  color: #5a5e68;
}

.platform-code-block.is-typing-active .platform-code-line {
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.platform-code-block.is-typing-active .platform-code-line.is-typing,
.platform-code-block.is-typing-active .platform-code-line.is-done {
  opacity: 1;
}

.platform-code-block--crm { background: #f8f9fa; }
.platform-code-block--dam { background: #f7f8f8; }
.platform-code-block--aec { background: #f9f8f7; }
.platform-code-block--energy { background: #f7f9fa; }
.platform-code-block--agtech { background: #f8faf8; }
.platform-code-block--custom {
  background: #080d18;
  color: #c9d4ea;
}

.platform-code--custom .platform-code-chrome {
  background: linear-gradient(180deg, #151d2e 0%, #101826 100%);
  border-bottom-color: #243047;
}

.platform-code--custom .platform-code-chrome-tab {
  background: #1a2438;
  color: #7b889f;
}

.platform-code--custom .platform-code-chrome-tab.is-active {
  background: #080d18;
  color: #e2e8f0;
}

.platform-code--custom .platform-code-chrome-file {
  color: #64748b;
}

.platform-code-block--custom .platform-code-num {
  color: #3d4a63;
}

.platform-code-block--custom .platform-code-cursor {
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.55);
}

.platform-code-block--custom .tok-kw { color: #c792ea; }
.platform-code-block--custom .tok-fn { color: #82aaff; }
.platform-code-block--custom .tok-prop { color: #89ddff; }
.platform-code-block--custom .tok-str { color: #c3e88d; }
.platform-code-block--custom .tok-num { color: #f78c6c; }
.platform-code-block--custom .tok-comment { color: #67758f; font-style: italic; }
.platform-code-block--custom .tok-punct { color: #89a0c8; }

.platform-code-line {
  display: block;
  white-space: pre;
  min-height: 1.55em;
}

.platform-code-num {
  display: inline-block;
  width: 2.2ch;
  margin-right: 12px;
  color: #cbcccf;
  user-select: none;
  text-align: right;
}

.platform-code-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--ps-accent);
  animation: codeCursorBlink 1s step-end infinite;
}

@keyframes codeCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.platform-code-block .tok-fold {
  color: #a9acb6;
  margin-right: 3px;
}

.platform-code-block .tok-tag {
  color: var(--ps-accent);
}

.platform-code-block .tok-attr {
  color: var(--ps-text-muted);
}

.platform-code-block .tok-val {
  color: var(--ps-accent-light);
}

.platform-code-block .tok-ng {
  color: var(--ps-accent-soft);
}

.platform-code-block .tok-comment {
  color: #a9acb6;
  font-style: italic;
}

.platform-code-block .tok-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--ps-accent-muted);
  color: var(--ps-accent);
  font-size: 9px;
  line-height: 1.55;
  vertical-align: middle;
  font-weight: 500;
}

/* ── Right: copy ── */
.platform-panel-copy {
  padding-top: 8px;
}

@media (min-width: 1025px) {
  .platform-panel-copy {
    padding-top: 16px;
    padding-right: 8px;
    background-image: radial-gradient(circle, rgba(22, 126, 108, 0.06) 1px, transparent 1px);
    background-size: 14px 14px;
  }
}

.platform-copy-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(27, 107, 88, 0.08) 0%, rgba(47, 148, 125, 0.14) 100%);
  color: var(--ps-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-copy-title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #111a4a;
  max-width: 16ch;
}

.platform-copy-lead {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: #7c7f88;
  max-width: 42ch;
}

.platform-copy-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid #e3e4e8;
  background: #ffffff;
  color: #111a4a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(17, 26, 74, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.platform-copy-cta:hover {
  border-color: var(--ps-accent);
  background: var(--ps-accent-muted);
}

.platform-copy-features {
  display: grid;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e3e4e8;
}

@media (min-width: 640px) {
  .platform-copy-features {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.platform-copy-features h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111a4a;
}

.platform-copy-features p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #7c7f88;
}

.platform-copy-hero {
  display: contents;
}

.platform-mobile-scroll-cue,
.platform-mobile-step-rail {
  display: none;
}

@media (max-width: 1024px) {
  .platform-showcase {
    --ps-mobile-header: var(--site-header-offset, 72px);
    --ps-mobile-frame-top: calc(var(--ps-mobile-header) + 2px);
    --ps-mobile-pills-h: 44px;
    --ps-mobile-sticky-h: calc(100dvh - var(--ps-mobile-frame-top));
    --ps-pin-count: 6;
    padding-bottom: 12px;
  }

  .platform-lead-desktop {
    display: none;
  }

  .platform-lead-mobile {
    display: block;
  }

  .platform-scroll-intro {
    padding-top: 16px;
    padding-bottom: 8px;
  }

  .platform-showcase-head {
    margin-bottom: 8px;
  }

  .platform-showcase-head .section-title {
    font-size: clamp(1.22rem, 5.2vw, 1.5rem);
    line-height: 1.12;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
  }

  .platform-showcase-head .section-lead {
    font-size: 0.86rem;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 34ch;
  }

  /* Intro pills live outside the pin — hide on mobile; stage pills sit in-card */
  .platform-phase-pills--intro {
    display: none !important;
  }

  .platform-phase-pills--stage {
    position: relative;
    top: auto;
    z-index: 5;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px 12px 8px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    background: transparent;
    border-bottom: 1px solid color-mix(in srgb, var(--ps-border) 70%, transparent);
  }

  .platform-phase-pills--stage::-webkit-scrollbar {
    display: none;
  }

  .platform-phase-pill {
    font-size: 11px;
    padding: 6px 10px;
    flex: 0 0 auto;
  }

  .platform-scroll-layout {
    max-width: 100%;
    padding: 0 12px;
    margin: 0 auto;
  }

  .platform-mobile-pin {
    display: block;
  }

  .platform-mobile-pin-track {
    position: relative;
    /* Sticky runway just tall enough to engage; paging is gesture-locked, not scroll-mapped */
    height: 110dvh;
  }

  .platform-mobile-pin-sticky {
    position: sticky;
    top: var(--ps-mobile-frame-top);
    height: var(--ps-mobile-sticky-h);
    max-height: var(--ps-mobile-sticky-h);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    z-index: 2;
    background:
      linear-gradient(180deg, #ffffff 0%, #f5f8f7 100%);
    border: 1px solid color-mix(in srgb, var(--ps-border) 80%, transparent);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 10px 28px rgba(26, 32, 44, 0.05);
    transition:
      box-shadow 0.35s ease,
      background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.35s ease;
    overscroll-behavior: none;
    touch-action: pan-y;
  }

  .platform-showcase.is-mobile-pinned .platform-mobile-pin-sticky {
    touch-action: none;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85) inset,
      0 16px 40px rgba(26, 32, 44, 0.1);
  }

  .platform-showcase.is-mobile-pinned .platform-step-carousel-viewport {
    touch-action: none;
  }

  html.ps-scroll-locked,
  html.ps-scroll-locked body {
    overscroll-behavior: none;
    touch-action: none;
  }

  .platform-mobile-step-rail {
    position: absolute;
    top: calc(var(--ps-mobile-pills-h) + 12px);
    right: 10px;
    bottom: 54px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
  }

  .platform-mobile-step-rail-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ps-tab-track-active) 85%, #9aa6a0);
    transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, border-radius 0.28s ease;
  }

  .platform-mobile-step-rail-dot.is-active {
    height: 16px;
    border-radius: 999px;
    background: var(--ps-accent);
  }

  .platform-scroll-steps {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
    display: block;
    isolation: isolate;
  }

  .platform-step {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 12px, 0);
    transition:
      opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s;
    z-index: 0;
  }

  .platform-step.is-before {
    transform: translate3d(0, -10px, 0);
  }

  .platform-step.is-after {
    transform: translate3d(0, 12px, 0);
  }

  .platform-step.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    z-index: 2;
  }

  .platform-showcase.is-mobile-step-switching[data-mobile-step-dir="forward"] .platform-step.is-active {
    animation: ps-mobile-page-in-up 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .platform-showcase.is-mobile-step-switching[data-mobile-step-dir="back"] .platform-step.is-active {
    animation: ps-mobile-page-in-down 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes ps-mobile-page-in-up {
    from {
      opacity: 0;
      transform: translate3d(0, 18px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  @keyframes ps-mobile-page-in-down {
    from {
      opacity: 0;
      transform: translate3d(0, -14px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .platform-step-carousel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .platform-step-carousel-viewport {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    padding: 0;
  }

  .platform-showcase.is-mobile-pinned .platform-step-carousel-viewport {
    touch-action: none;
  }

  .platform-step-carousel-rail {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .platform-step-carousel.is-dragging .platform-step-carousel-rail {
    transition: none;
  }

  .platform-step-carousel-page {
    flex: 0 0 auto;
    width: var(--ps-carousel-page-w, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .platform-step-sticky {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: none;
    padding: 14px 16px 10px;
    z-index: auto;
    pointer-events: auto;
    justify-content: stretch;
  }

  .platform-step-rail {
    display: none;
  }

  .platform-step-copy {
    opacity: 1;
    transform: none;
    will-change: auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding-right: 18px;
    width: 100%;
    overflow: hidden;
  }

  .platform-copy-hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 0;
  }

  .platform-copy-badge {
    margin: 0;
    padding: 5px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    align-self: flex-start;
  }

  .platform-copy-title {
    margin: 0;
    font-size: clamp(1.22rem, 5.6vw, 1.58rem);
    line-height: 1.14;
    max-width: none;
    letter-spacing: -0.03em;
  }

  .platform-copy-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.48;
    max-width: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--ps-lead-clamp, 8);
    overflow: hidden;
  }

  .platform-copy-cta {
    align-self: flex-start;
    padding: 10px 14px;
    font-size: 13px;
    margin: 2px 0 0;
  }

  .platform-copy-features {
    flex: 1 1 auto;
    margin-top: auto;
    padding: 14px;
    gap: 14px;
    grid-template-columns: 1fr !important;
    align-content: stretch;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ps-cloud) 72%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--ps-border) 75%, transparent);
    min-height: 0;
    display: grid;
  }

  .platform-copy-features > div {
    position: relative;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 0;
  }

  .platform-copy-features > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--ps-accent-light), var(--ps-accent));
    opacity: 0.8;
  }

  .platform-copy-features h4 {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .platform-copy-features p {
    font-size: 0.8rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--ps-feature-clamp, 6);
    overflow: hidden;
  }

  .platform-mobile-scroll-cue {
    display: block;
    margin: auto 0 2px;
    padding-top: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--ps-text-muted) 88%, #9aa6a0);
  }

  .platform-mobile-scroll-cue::after {
    content: " ↓";
    opacity: 0.75;
  }

  .platform-step-carousel-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 8px 14px 10px;
    border-top: 1px solid color-mix(in srgb, var(--ps-border) 90%, transparent);
    background: color-mix(in srgb, #ffffff 88%, var(--ps-cloud));
  }

  .platform-step-carousel-index {
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ps-text-muted);
    font-variant-numeric: tabular-nums;
  }

  .platform-step-carousel-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .platform-step-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ps-tab-track-active);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease, border-radius 0.22s ease;
  }

  .platform-step-carousel-dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: var(--ps-accent);
  }

  .platform-step-carousel-hint {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ps-text-muted);
    text-align: right;
  }

  .platform-step-carousel[data-carousel-page="1"] .platform-step-carousel-hint {
    opacity: 0.9;
  }

  .platform-step-mobile-preview,
  .platform-step-mobile-preview.is-visible,
  .platform-step-mobile-preview[hidden] {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    margin: 12px 12px 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ps-border);
    background: var(--ps-cloud);
  }

  .platform-step-carousel-page--preview .platform-browser-chrome--mobile {
    flex: 0 0 auto;
  }

  .platform-step-carousel-page--preview .platform-preview-visual {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
    overflow: hidden;
    position: relative;
  }

  .platform-step-carousel-page--preview .platform-code {
    display: none !important;
  }

  .platform-step-carousel-page--preview .dash-ui {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto;
    width: 100%;
    transform-origin: top center;
  }

  .platform-step-carousel-page--preview .dash-ui-body {
    padding: 8px;
    gap: 6px;
  }

  .platform-step-carousel-page--preview .dash-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .platform-step-carousel-page--preview .dash-kpi {
    padding: 6px 7px;
  }

  .platform-step-carousel-page--preview .dash-kpi-val {
    font-size: 0.95rem;
  }

  .platform-step-carousel-page--preview .dash-grid--crm,
  .platform-step-carousel-page--preview .dash-grid--dam,
  .platform-step-carousel-page--preview .dash-grid--aec,
  .platform-step-carousel-page--preview .dash-grid--energy,
  .platform-step-carousel-page--preview .dash-grid--ag,
  .platform-step-carousel-page--preview .dash-grid--custom {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .platform-step-carousel-page--preview .dash-card {
    padding: 7px 8px;
  }

  #platform-step-custom .platform-step-carousel-dot {
    background: #243047;
  }

  #platform-step-custom .platform-step-carousel-dot.is-active {
    background: #5b8cff;
  }

  #platform-step-custom .platform-step-carousel-hint,
  #platform-step-custom .platform-step-carousel-index {
    color: #9aa6c2;
  }

  #platform-step-custom .platform-step-carousel-controls {
    background: color-mix(in srgb, #0a0f1a 92%, #243047);
    border-top-color: #243047;
  }

  #platform-step-custom .platform-copy-features {
    border-top-color: transparent;
    background: color-mix(in srgb, #121a2b 88%, #243047);
    border-color: #243047;
  }

  .platform-showcase:has(#platform-step-custom.is-active) .platform-mobile-pin-sticky {
    background: linear-gradient(180deg, #0d1320 0%, #0a0f1a 100%);
    border-color: #243047;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      0 14px 36px rgba(0, 0, 0, 0.28);
    transition:
      background 0.45s ease,
      border-color 0.45s ease,
      box-shadow 0.45s ease;
  }

  .platform-showcase:has(#platform-step-custom.is-active) .platform-phase-pills--stage {
    border-bottom-color: #243047;
  }

  .platform-showcase.is-mobile-pinned:has(#platform-step-custom.is-active) .platform-mobile-pin-sticky {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      0 14px 36px rgba(0, 0, 0, 0.28);
  }

  .dash-bar-track > span,
  .dash-progress-lg span,
  .dash-spark span,
  .dash-bars-h span,
  .dash-heat-row span,
  .dash-ring-fill {
    transition-duration: 0.45s;
  }
}

@media (max-width: 639px) {
  .platform-phase-pills {
    gap: 8px;
  }

  .platform-phase-pill {
    font-size: 11px;
    padding: 7px 12px;
  }

  .platform-copy-features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-preview-panel,
  .platform-step-copy,
  .platform-phase-pill,
  [data-scroll-reveal] {
    transition: none !important;
  }

  .platform-step-carousel-viewport {
    scroll-behavior: auto;
  }

  .platform-step {
    transition: none !important;
  }

  .platform-showcase.is-mobile-step-switching .platform-step.is-active {
    animation: none !important;
  }

  .platform-step-carousel-dot {
    transition: none;
  }

  .platform-phase-pill--custom::before,
  .platform-preview-phase-tab--custom {
    animation: none;
  }

  .dash-bar-track > span,
  .dash-progress-lg span,
  .dash-spark span,
  .dash-bars-h span,
  .dash-heat-row span,
  .dash-ring-fill {
    transition: none;
    width: calc(var(--bar-target, 50) * 1%) !important;
    height: calc(var(--bar-target, 50) * 1%) !important;
  }

  .dash-ui.is-animated .dash-ring-fill {
    stroke-dashoffset: var(--ring-offset, 0) !important;
  }
}
