/* ==========================================================================
   CloudAEye - shared homepage design tokens and components.
   Light theme only. Brand blue = --blue (#0e8da7 family, from index.css).
   Load before homepage.css and the section stylesheets.
   ========================================================================== */

:root {
  /* Ink & surface */
  --ink: #091522;
  --ink-soft: #38505f;
  --muted: #647b86;
  --paper: #f5f9fa;
  --surface: #ffffff;
  --ice: #e8f3f6;
  --ice-subtle: #f2f8fa;
  --line: #cddee4;
  --line-strong: #a4c1cb;

  /* CloudAEye blue */
  --blue: #0e8da7;
  --blue-dark: #086b80;
  --blue-deep: #064e5e;
  --blue-soft: #dff5f8;
  --blue-tint: #eefafc;
  --blue-glow: rgba(14, 141, 167, 0.18);

  /* Support accents */
  --lime: #c5f260;
  --lime-soft: #f1fbd9;
  --lime-dark: #3b6315;
  --coral: #d35b47;
  --coral-soft: #fff0ec;
  --coral-dark: #8f2e20;
  --amber: #dfa218;
  --amber-soft: #fff6db;
  --amber-dark: #8a5c00;
  --purple: #6e78d7;
  --purple-soft: #eef0ff;

  --display:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:
    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: min(1180px, calc(100vw - 56px));
  /* product-showcase.html is a fixed 1600x900 canvas that self-scales to
     min(frameW/1600, frameH/900). Its type is 8-11px at scale 1, so the
     stage must be ~1600px wide or the animation becomes illegible.
     At 1600px wide the scale is 1.0 and it renders at native size. */
  --stage-w: min(1600px, calc(100vw - 32px));
  --radius: 14px;
  --radius-sm: 9px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* clears the 68px sticky header when jumping to an #anchor */
  scroll-padding-top: 92px;
  /* Horizontal clipping lives here, not on body: `overflow-x: hidden`
     on body turns body into a scroll container and silently breaks
     `position: sticky` on the header. `clip` never creates one.
     `hidden` first as the fallback for pre-2022 browsers. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.cx-shell {
  width: var(--shell);
  margin-inline: auto;
}

.cx-shell-wide {
  width: min(1380px, calc(100vw - 48px));
  margin-inline: auto;
}

.cx-section {
  position: relative;
  padding: 104px 0;
}

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

.cx-section-tint {
  background: var(--blue-tint);
}

.cx-hairline {
  border-top: 1px solid var(--line);
}

.cx-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-180%);
}

.cx-skip:focus {
  transform: translateY(0);
}

#site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

#site-header .header-navigation-container {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.cx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cx-kicker::before {
  width: 22px;
  height: 1px;
  background: var(--blue);
  content: "";
}

.cx-kicker-plain::before {
  display: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cx-h1 {
  margin: 0;
  /* Capped at 4.9rem: the headline's longest line, "Govern what reaches
     users.", runs ~1120px at 5.4rem, which crowds the 1180px shell. */
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
}

.cx-h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
}

.cx-h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.cx-lede {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.66;
}

.cx-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.cx-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.cx-intro {
  max-width: 860px;
  margin: 0 auto 62px;
  text-align: center;
}

.cx-intro .cx-kicker {
  justify-content: center;
}

.cx-intro .cx-lede {
  margin-inline: auto;
  text-align: center;
}

.cx-split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 68px;
  align-items: end;
  margin-bottom: 58px;
}

.cx-split-heading > div:first-child {
  min-width: 0;
}

.cx-split-heading .cx-lede {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

/* Headline highlight. Painted as a background gradient on the inline box so it
   sits behind the glyphs without relying on a negative z-index. */
.cx-mark {
  padding: 0 0.06em;
  background-image: linear-gradient(
    to top,
    var(--lime) 0.3em,
    transparent 0.3em
  );
  white-space: nowrap;
}

.cx-blue {
  color: var(--blue-dark);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.cx-btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 200ms var(--ease),
    background-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    color 200ms var(--ease);
}

.cx-btn > span {
  transition: transform 200ms var(--ease);
}

.cx-btn:hover > span {
  transform: translateX(3px);
}

.cx-btn-primary {
  background: var(--blue-dark);
  color: #fff;
  box-shadow:
    0 10px 24px -8px var(--blue-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cx-btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: 0 16px 32px -10px rgba(8, 107, 128, 0.42);
  transform: translateY(-2px);
}

.cx-btn-outline {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.cx-btn-outline:hover {
  background: var(--blue-tint);
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.cx-btn-ghost {
  min-height: auto;
  padding: 0;
  color: var(--blue-dark);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.cx-btn-ghost:hover {
  color: var(--blue-deep);
}

.cx-free-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cx-free-note strong {
  color: var(--lime-dark);
  font-family: var(--mono);
  font-weight: 500;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Badges & pills
   -------------------------------------------------------------------------- */

.cx-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  background: var(--blue-soft);
  border: 1px solid #b6e4ee;
  border-radius: 100px;
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-badge .cx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: cx-pulse 2.4s ease-out infinite;
}

.cx-badge-lime {
  background: var(--lime-soft);
  border-color: #cfe89a;
  color: var(--lime-dark);
}

.cx-badge-lime .cx-dot {
  background: #7fae1f;
}

.cx-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cx-code {
  padding: 3px 7px;
  background: var(--blue-soft);
  border-radius: 5px;
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 0.86em;
}

.cx-only-us {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--lime-soft);
  border: 1px solid #cbe694;
  border-radius: 100px;
  color: var(--lime-dark);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cx-only-us::before {
  content: "\2605";
  font-size: 0.85em;
}

/* --------------------------------------------------------------------------
   Awards strip (ported from index.html)
   -------------------------------------------------------------------------- */

.cx-awards {
  padding: 44px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cx-awards-title {
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.cx-awards-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 46px;
  align-items: center;
  justify-content: center;
}

.cx-award-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.62;
  filter: grayscale(1);
  transition:
    opacity 220ms var(--ease),
    filter 220ms var(--ease),
    transform 220ms var(--ease);
}

.cx-award-link:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-2px);
}

.cx-award-link img {
  width: auto;
  height: 30px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Integration marquee
   -------------------------------------------------------------------------- */

.cx-integrations {
  padding: 52px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cx-integrations > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.cx-integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cx-integration-badge {
  padding: 9px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  transition:
    border-color 200ms var(--ease),
    background 200ms var(--ease),
    transform 200ms var(--ease);
}

.cx-integration-badge:hover {
  background: var(--blue-tint);
  border-color: var(--blue);
  color: var(--blue-deep);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Benchmark bar chart (shared by all four pages)
   -------------------------------------------------------------------------- */

.cx-chart {
  display: grid;
  gap: 16px;
}

.cx-bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.cx-bar-name {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.cx-bar-name img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.cx-bar-track {
  position: relative;
  height: 30px;
  overflow: hidden;
  background: var(--ice);
  border-radius: 6px;
}

/* Width is animated rather than transform-scaled so the score label inside the
   bar is never horizontally squashed. */
.cx-bar-fill {
  display: flex;
  width: 0;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  overflow: hidden;
  background: var(--line-strong);
  border-radius: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  transition: width 1.1s var(--ease);
}

.cx-chart.is-live .cx-bar-fill {
  width: var(--score);
}

.cx-bar-fill > span {
  white-space: nowrap;
}

.cx-bar-row.is-leader .cx-bar-name {
  color: var(--blue-deep);
  font-weight: 700;
}

.cx-bar-row.is-leader .cx-bar-fill {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 6px 18px -6px var(--blue-glow);
}

.cx-bar-row:nth-child(1) .cx-bar-fill {
  transition-delay: 60ms;
}
.cx-bar-row:nth-child(2) .cx-bar-fill {
  transition-delay: 150ms;
}
.cx-bar-row:nth-child(3) .cx-bar-fill {
  transition-delay: 240ms;
}
.cx-bar-row:nth-child(4) .cx-bar-fill {
  transition-delay: 330ms;
}
.cx-bar-row:nth-child(5) .cx-bar-fill {
  transition-delay: 420ms;
}
.cx-bar-row:nth-child(6) .cx-bar-fill {
  transition-delay: 510ms;
}
.cx-bar-row:nth-child(7) .cx-bar-fill {
  transition-delay: 600ms;
}
.cx-bar-row:nth-child(8) .cx-bar-fill {
  transition-delay: 690ms;
}

/* Repo chips */
.cx-repo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cx-repo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}

.cx-repo-chip:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.cx-repo-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.cx-faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.cx-faq-item {
  border-bottom: 1px solid var(--line);
}

.cx-faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: left;
}

.cx-faq-trigger:hover {
  color: var(--blue-dark);
}

.cx-faq-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 1rem;
  transition:
    transform 260ms var(--ease),
    background 260ms var(--ease),
    border-color 260ms var(--ease),
    color 260ms var(--ease);
}

.cx-faq-icon > svg {
  display: block;
  width: 14px;
  height: 14px;
}

.cx-faq-trigger[aria-expanded="true"] .cx-faq-icon {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  transform: rotate(135deg);
}

.cx-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}

.cx-faq-trigger[aria-expanded="true"] + .cx-faq-answer {
  grid-template-rows: 1fr;
}

.cx-faq-answer > div {
  overflow: hidden;
}

.cx-faq-answer p {
  margin: 0;
  padding: 0 44px 26px 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.cx-footer {
  padding: 74px 0 26px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.cx-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 56px;
}

.cx-footer-brand img {
  width: 152px;
  height: auto;
}

.cx-footer-brand p {
  max-width: 300px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.cx-footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cx-footer nav strong {
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.cx-footer nav a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.cx-footer nav a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.cx-footer-bottom a {
  font-weight: 700;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sticky mobile / scroll CTA bar
   -------------------------------------------------------------------------- */

.cx-sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 340ms var(--ease);
}

.cx-sticky-cta.is-visible {
  transform: translateY(0);
}

.cx-sticky-cta p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.cx-sticky-cta p span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 400;
}

.cx-sticky-cta .cx-btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.cx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.cx-reveal.is-in {
  opacity: 1;
  transform: none;
}

.cx-reveal-delay-1 {
  transition-delay: 90ms;
}
.cx-reveal-delay-2 {
  transition-delay: 180ms;
}
.cx-reveal-delay-3 {
  transition-delay: 270ms;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes cx-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--blue-glow);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(14, 141, 167, 0);
  }
}

@keyframes cx-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes cx-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes cx-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1060px) {
  :root {
    --shell: min(100% - 40px, 920px);
  }

  .cx-split-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 780px) {
  :root {
    --shell: min(100% - 28px, 680px);
  }

  .cx-section {
    padding: 74px 0;
  }

  .cx-bar-row {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
  }

  .cx-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
  }

  .cx-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .cx-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cx-btn {
    width: 100%;
  }

  .cx-bar-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .cx-bar-track {
    height: 24px;
  }

  .cx-footer-grid,
  .cx-footer-brand {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .cx-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .cx-sticky-cta p span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cx-reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Live signal stage: frames index/product-showcase.html

   This is the hero of every direction. product-showcase.html is a fixed 1600x900 canvas that
   scales itself with min(clientWidth/1600, clientHeight/900), so the frame must
   hold a 16/9 ratio AND be as wide as possible: its labels are 8-11px at
   scale 1, and any narrower frame shrinks them below readable size.
   -------------------------------------------------------------------------- */

.cx-stage {
  width: var(--stage-w);
  margin: 0 auto;
}

.cx-stage-bar {
  display: flex;
  min-height: 48px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 11px 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.cx-stage-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime-dark);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-stage-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8bb63c;
  animation: cx-pulse 2.2s ease-out infinite;
}

.cx-stage-bar em {
  font-style: normal;
}

.cx-stage-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 11px;
  background: var(--blue-soft);
  border-radius: 100px;
  color: var(--blue-deep);
  font-weight: 500;
}

.cx-stage-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ice-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 40px 84px -38px rgba(6, 78, 94, 0.34);
}

.cx-stage-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cx-stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  margin: 18px auto 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-stage-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cx-stage-meta span + span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

/* Hero placement: centred copy above, stage immediately beneath. */

.cx-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 0;
  background:
    radial-gradient(
      100% 78% at 50% -6%,
      var(--blue-tint) 0%,
      rgba(238, 250, 252, 0) 62%
    ),
    var(--surface);
}

.cx-hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(14, 141, 167, 0.1) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  mask-image: radial-gradient(66% 48% at 50% 12%, #000 0%, transparent 100%);
  content: "";
  pointer-events: none;
}

.cx-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: var(--shell);
  flex-direction: column;
  align-items: center;
  margin: 0 auto 48px;
  text-align: center;
}

.cx-hero-copy .cx-h1 {
  margin-top: 24px;
}

.cx-hero-copy .cx-lede {
  margin-inline: auto;
  text-align: center;
}

.cx-hero-copy .cx-actions {
  justify-content: center;
}

.cx-hero-stage {
  position: relative;
  z-index: 1;
  padding-bottom: 62px;
}

@media (max-width: 1060px) {
  .cx-stage-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Narrow screens: a 16/9 frame at phone width would scale product-showcase.html to ~0.22 and
   render its 8-11px labels illegibly. Below 1040px the frame instead holds a
   fixed 1240px canvas and pans horizontally, so the animation stays readable. */

@media (max-width: 1040px) {
  .cx-stage-frame {
    aspect-ratio: auto;
    height: min(70vh, 698px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .cx-stage-frame iframe {
    width: 1240px;
    min-width: 1240px;
    height: 100%;
  }

  .cx-stage-pan {
    display: inline-flex;
  }
}

/* Pan affordance: hidden on desktop, where nothing scrolls */
.cx-stage-pan {
  display: none;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 11px;
  background: var(--amber-soft);
  border-radius: 100px;
  color: var(--amber-dark);
  font-weight: 500;
}

@media (max-width: 780px) {
  .cx-hero {
    padding-top: 42px;
  }

  .cx-hero-copy {
    margin-bottom: 34px;
  }

  .cx-hero-stage {
    padding-bottom: 44px;
  }

  .cx-stage-hint {
    display: none;
  }

  .cx-stage-bar {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.64rem;
  }

  .cx-stage-meta {
    font-size: 0.62rem;
  }

  .cx-stage-meta span:last-child {
    display: none;
  }
}
