@layer partner-legacy {
  /* ==========================================================================
   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));
    /* v2.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-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 partners/claude/v2.html

   This is the hero of every direction. v2.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 v2.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;
    }
  }

  /* Cursor-inspired warm neutrals, with CloudAEye blue and existing typography. */
  :root {
    --ink: #26251e;
    --ink-soft: #57564e;
    --muted: #6b6a61;
    --paper: #f2f1ed;
    --surface: #f7f7f4;
    --ice: #e6e5e0;
    --ice-subtle: #f0efeb;
    --line: #deddd6;
    --line-strong: #c9c8be;
    --blue: #0071e3;
    --blue-dark: #0066cc;
    --blue-deep: #004b99;
    --blue-soft: #e8f2ff;
    --blue-tint: #f2f1ed;
    --blue-glow: rgb(0 113 227 / 12%);
    --lime: #b9ebc6;
    --lime-soft: #eaf7ed;
    --lime-dark: #23733b;
    --coral: #d6332c;
    --coral-dark: #ac2721;
    --coral-soft: #fff0ee;
    --sans:
      -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial,
      sans-serif;
    --display: var(--sans);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 8px;
    --radius-sm: 6px;
    --shell: min(1120px, calc(100% - 64px));
  }

  body *,
  body *::before,
  body *::after {
    letter-spacing: 0 !important;
  }
  body {
    background: var(--surface);
  }
  ::selection {
    background: #deddd6;
    color: var(--ink);
  }
  :focus-visible {
    outline: 3px solid #0071e3;
    outline-offset: 5px;
  }
  #site-header {
    background: rgb(247 247 244 / 92%);
    border-color: var(--line);
  }
  .header-navigation-container {
    min-height: 60px;
    gap: 28px;
  }
  .header-logo img {
    height: 23px;
  }
  .navigation-menu-container {
    gap: 24px;
  }
  .navBar-item-title,
  .dropdown-title {
    font-size: 13px;
    font-weight: 400;
  }
  .action-bar .action-item-heading a {
    font-size: 12px;
    border-radius: 100px;
    box-shadow: none;
  }
  .cx-hero {
    padding-top: 48px;
    background: var(--surface);
    overflow: clip;
  }
  .cx-hero::before {
    display: none;
  }
  .cx-hero-copy {
    margin-bottom: 46px;
  }
  .a-product-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
  }
  .cx-hero-copy .cx-h1 {
    margin: 0;
    font-size: 50px;
    line-height: 1.08;
    font-weight: 650;
  }
  .a-hero-headline {
    margin: 18px 0 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
    text-wrap: balance;
  }
  .a-hero-headline > span {
    color: var(--blue);
  }
  .cx-hero-copy .cx-actions {
    margin-top: 28px;
    gap: 24px;
  }
  .cx-btn {
    min-height: 46px;
    padding: 0 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
  }
  .cx-btn-primary {
    background: var(--blue);
    box-shadow: none;
  }
  .cx-btn-primary:hover {
    background: #0066cc;
    box-shadow: none;
    transform: translateY(-1px);
  }
  .cx-btn-outline {
    color: var(--blue-dark);
    border-color: transparent;
    background: transparent;
    padding-inline: 0;
  }
  .cx-btn-outline::after {
    content: "\203A";
    margin-left: 4px;
    font-size: 22px;
    line-height: 1;
  }
  .cx-btn-outline:hover {
    color: var(--blue-dark);
    background: transparent;
    box-shadow: none;
    text-decoration: underline;
    transform: none;
  }
  .cx-free-note {
    margin-top: 17px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12px;
  }
  .cx-free-note strong {
    color: var(--ink-soft);
    font-family: var(--sans);
    font-weight: 500;
  }
  .cx-hero-stage {
    padding: 0 0 64px;
  }
  .a-hero-detail {
    max-width: 760px;
    width: var(--shell);
    margin: 46px auto 0;
    font-size: 18px;
    line-height: 1.65;
    text-align: center;
  }
  .cx-mark {
    background: none;
    padding: 0;
    color: var(--blue);
  }
  .cx-h2,
  .agents-carousel-section .idx-intro h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
  }
  .cx-h3 {
    font-size: 26px;
    font-weight: 600;
  }
  .cx-lede {
    font-size: 18px;
  }
  .cx-kicker,
  .agents-carousel-section .idx-kicker {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    color: var(--muted);
  }
  .cx-kicker::before {
    display: none;
  }
  .cx-section,
  .cx-features,
  .cx-standards,
  .cx-flows,
  .cx-blog,
  .cx-events,
  .cx-integrate,
  .agents-carousel-section {
    padding-block: 96px;
  }
  .cx-intro {
    margin-bottom: 48px;
  }
  .cx-awards {
    background: var(--paper);
    padding-block: 34px;
    border: 0;
  }
  .cx-awards-title {
    font-family: var(--sans);
    text-transform: none;
    font-size: 13px;
  }
  .cx-awards-logos {
    opacity: 0.8;
  }
  .a-benchmark {
    background: var(--surface);
  }
  .a-bench-board {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 64px;
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .a-bench-score {
    padding: 24px 0;
    background: transparent;
    color: var(--ink);
    gap: 24px;
  }
  .a-score-label,
  .a-score-sub,
  .a-score-deltas dt {
    color: var(--muted);
    font-family: var(--sans);
  }
  .a-score-label {
    font-size: 14px;
    text-transform: none;
  }
  .a-score-value {
    font-size: 80px;
    font-weight: 600;
    color: var(--blue);
  }
  .a-score-sub {
    font-size: 14px;
  }
  .a-score-deltas,
  .a-score-deltas > div {
    border-color: var(--line);
  }
  .a-score-deltas dd {
    color: var(--ink);
  }
  .a-bench-score .cx-btn-ghost,
  .a-bench-score .cx-btn-ghost:hover {
    color: var(--blue-dark);
  }
  .a-bench-chart {
    background: transparent;
    padding: 24px 0 0;
  }
  .cx-bar-fill {
    background: #c5c4ba;
    border-radius: 0 4px 4px 0;
  }
  .cx-bar-row.is-leader .cx-bar-fill {
    background: var(--blue);
  }
  .cx-bar-fill > span {
    color: var(--ink);
  }
  .cx-bar-row.is-leader .cx-bar-fill > span {
    color: #fff;
  }
  .a-chart-head,
  .a-repos-label {
    font-family: var(--sans);
    text-transform: none;
    font-size: 12px;
  }
  .cx-repo-chip {
    border-color: var(--line);
    background: var(--paper);
    box-shadow: none;
  }
  .a-flows {
    background: var(--paper);
  }
  .cx-flow {
    box-shadow: none;
  }
  .a-flows .a-flowviz {
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .a-shot {
    background: var(--surface);
    border: 0;
  }
  .a-finding-frame {
    display: block;
    width: 100%;
    height: 650px;
    border: 0;
  }
  @media (max-width: 760px) {
    .a-finding-frame {
      height: 1120px;
    }
  }
  .a-shot-visual {
    padding-top: 32px;
  }
  .a-shot-visual::after {
    display: none;
  }
  .a-shot-pin {
    animation: none;
    box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
  }
  .a-trust {
    background: var(--paper);
  }
  .a-trust-card {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 28px 12px 0 0;
  }
  .a-trust-card code {
    font-family: var(--sans);
    text-transform: none;
    font-size: 13px;
  }
  .cx-feature-card,
  .cx-event-card,
  .cx-blog-card,
  .cx-flow {
    box-shadow: none;
  }
  .agents-carousel-section .agents-carousel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: 0;
    box-shadow: none;
  }
  .agents-carousel-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .agents-carousel-section .agents-slide {
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .agents-carousel-section .agents-slide-content {
    min-width: 0;
  }
  .agents-carousel-section .agents-slide-content h3 {
    font-size: 28px;
  }
  .agents-carousel-section .agents-tag {
    background: var(--blue-soft);
  }
  .cx-features-bar,
  .cx-standards-strip {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .a-cta {
    background: #26251e;
    color: #f7f7f4;
    padding-block: 100px;
    border: 0;
  }
  .a-cta .cx-kicker,
  .a-cta .cx-free-note,
  .a-cta .cx-free-note strong {
    color: #c9c8be;
  }
  .a-cta .cx-btn-outline {
    color: #72b6ff;
  }
  .cx-footer {
    background: var(--paper);
  }
  .cx-sticky-cta {
    visibility: hidden;
  }
  .a-past-hero .cx-sticky-cta {
    visibility: visible;
  }
  .cx-reveal,
  .cx-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Carry the same surface palette through navigation, content, and product panels. */
  .dropdown-menu,
  .dropdown-menu-content,
  .cx-flow,
  .cx-logo,
  .cx-event,
  .cx-fb,
  .cx-std-where code,
  .cx-stage-bar {
    background: var(--surface);
  }
  .cx-fgroup,
  .cx-post,
  .cx-std-rules {
    background: var(--paper);
  }
  .cx-std-rules > header,
  .cx-std-rules > footer {
    background: var(--ice-subtle);
  }
  .cx-std-loop {
    background: var(--paper);
    border-color: var(--line);
  }
  .cx-post-tag {
    background: rgb(247 247 244 / 94%);
  }
  .cx-sticky-cta {
    background: rgb(247 247 244 / 96%);
  }
  .agents-carousel-section .agents-carousel,
  .agents-carousel-section .agents-slide {
    background: var(--surface);
  }
  .a-flows .a-flowviz,
  .a-flows .a-fv-bar-pr,
  .a-flows .a-pc-pass {
    background: var(--surface);
  }

  .a-motion-paused *,
  .a-motion-paused *::before,
  .a-motion-paused *::after {
    animation-play-state: paused !important;
  }

  @media (min-width: 1600px) {
    .cx-hero {
      padding-top: 60px;
    }
    .cx-hero-copy {
      margin-bottom: 56px;
    }
  }
  @media (max-width: 1060px) {
    .a-bench-board {
      grid-template-columns: 240px minmax(0, 1fr);
      gap: 36px;
    }
    .cx-h2,
    .agents-carousel-section .idx-intro h2 {
      font-size: 40px;
    }
  }
  @media (max-width: 1080px) {
    #site-header {
      backdrop-filter: none;
      background: var(--surface);
    }
    .navigation-menu-container {
      background: var(--surface);
      transform: none;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition:
        opacity 180ms ease,
        visibility 180ms;
    }
    .navigation-menu-container.active {
      transform: none;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .navigation-menu-container:not(.active) * {
      visibility: hidden;
    }
  }
  @media (max-width: 780px) {
    :root {
      --shell: calc(100% - 40px);
    }
    .cx-hero {
      padding-top: 34px;
    }
    .cx-hero-copy .cx-h1 {
      font-size: 48px;
    }
    .a-hero-headline {
      font-size: 32px;
    }
    .a-product-label {
      font-size: 13px;
    }
    .a-hero-detail {
      font-size: 16px;
    }
    .cx-section,
    .cx-features,
    .cx-standards,
    .cx-flows,
    .cx-blog,
    .cx-events,
    .cx-integrate,
    .agents-carousel-section {
      padding-block: 64px;
    }
    .cx-h2,
    .agents-carousel-section .idx-intro h2 {
      font-size: 34px;
    }
    .a-bench-board {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .a-bench-score {
      padding: 0;
    }
    .a-score-deltas {
      margin-top: 0;
    }
    .a-score-value {
      font-size: 72px;
    }
    .a-cta {
      padding-block: 64px;
    }
  }
  @media (max-width: 560px) {
    .cx-hero-copy .cx-h1 {
      font-size: 40px;
    }
    .a-hero-headline {
      font-size: 27px;
      line-height: 1.2;
      margin-top: 14px;
    }
    .cx-hero-copy {
      margin-bottom: 32px;
    }
    .cx-hero-copy .cx-actions {
      margin-top: 24px;
      flex-direction: row;
      align-items: center;
      gap: 20px;
    }
    .cx-hero-copy .cx-actions .cx-btn {
      width: auto;
    }
    .a-hero-detail {
      text-align: left;
    }
    .cx-h2,
    .agents-carousel-section .idx-intro h2 {
      font-size: 32px;
    }
    .cx-hero {
      padding-top: 14px;
    }
    .a-score-value {
      font-size: 68px;
    }
  }
  @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;
    }
  }

  /* Font families from the supplied website/srcv2/design-system/tokens.css.
   The reference supplies stacks, not font binaries; keep its exact fallbacks. */
  :root {
    --ds-font-family-display:
      "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial,
      sans-serif;
    --ds-font-family-text:
      "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial,
      sans-serif;
    --display: var(--ds-font-family-display);
    --sans: var(--ds-font-family-text);
  }

  body,
  .review-demo-root {
    font-family: var(--ds-font-family-text);
  }

  h1,
  h2,
  h3,
  .a-hero-headline {
    font-family: var(--ds-font-family-display);
  }
}
