    :root {
      --bg: #020306;
      --bg-elev: #081021;
      --surface: #0d172e;
      --surface-2: #132244;
      --border: rgba(255, 255, 255, 0.08);
      --border-strong: rgba(255, 255, 255, 0.16);
      --text: #f3f2f9;
      --text-muted: #9691ac;
      --text-faint: #5f5c72;
      --blue: #4b6fff;
      --purple: #9b4fe8;
      --pink: #ec1e82;
      --grad: linear-gradient(90deg, var(--blue) 0%, var(--purple) 52%, var(--pink) 100%);
      --grad-soft: linear-gradient(135deg, rgba(75, 111, 255, 0.18), rgba(155, 79, 232, 0.14), rgba(236, 30, 130, 0.16));
      --radius: 18px;
      --bg-gradient: linear-gradient(135deg, #020306 0%, #081125 50%, #12213f 100%);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg-gradient) no-repeat fixed;
      background-size: cover;
      color: var(--text);
      font-family: 'Manrope', sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    h1,
    h2,
    h3 {
      font-family: 'Space Grotesk', sans-serif;
      letter-spacing: -0.02em;
    }

    .mono {
      font-family: 'JetBrains Mono', monospace;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

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

    .wrap {
      max-width: 1500px;
      margin: 0 auto;
      padding: 0 32px;
    }

    .eyebrow {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .eyebrow::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--grad);
      box-shadow: 0 0 10px rgba(155, 79, 232, 0.7);
    }

    ::selection {
      background: rgba(155, 79, 232, 0.35);
    }

    /* focus visibility */
    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--purple);
      outline-offset: 3px;
      border-radius: 6px;
    }

    /* ---------- NAV ---------- */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      backdrop-filter: blur(14px);
      background: rgba(2, 3, 6, 0.72);
      border-bottom: 1px solid var(--border);
    }

    nav {
      max-width: 1500px;
      margin: 0 auto;
      padding: 16px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo img {
      height: 86px;
      width: auto;
    }

    .nav-links {
      display: flex;
      gap: 36px;
      align-items: center;
    }

    .nav-links a {
      font-size: 14.5px;
      color: var(--text-muted);
      font-weight: 500;
      position: relative;
      padding-bottom: 4px;
      transition: color .2s ease;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: 0;
      height: 1.5px;
      background: var(--grad);
      transition: right .25s ease;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-links a:hover::after {
      right: 0;
    }

    /* ---- Nav dropdown menus (product links) ---- */
    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-caret {
      width: 12px;
      height: 12px;
      margin-left: 5px;
      opacity: 0.7;
      transition: transform .2s ease, opacity .2s ease;
    }

    .nav-item:hover .nav-caret {
      transform: rotate(180deg);
      opacity: 1;
    }

    .nav-menu {
      position: absolute;
      top: calc(100% + 2px);
      left: 50%;
      transform: translateX(-50%) translateY(6px);
      min-width: 232px;
      padding: 8px;
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-radius: 14px;
      box-shadow: 0 26px 54px -24px rgba(0, 0, 0, 0.8);
      display: flex;
      flex-direction: column;
      gap: 2px;
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, transform .2s ease, visibility .2s;
      z-index: 200;
    }

    /* invisible bridge so the menu stays open while the cursor crosses the gap */
    .nav-menu::before {
      content: "";
      position: absolute;
      top: -14px;
      left: 0;
      right: 0;
      height: 14px;
    }

    .nav-item:hover .nav-menu,
    .nav-item:focus-within .nav-menu {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(10px);
    }

    .nav-menu a {
      display: block;
      padding: 10px 12px;
      border-radius: 9px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-muted);
      white-space: nowrap;
      padding-bottom: 10px;
    }

    .nav-menu a::after { display: none; }

    .nav-menu a:hover {
      background: rgba(155, 79, 232, 0.12);
      color: var(--text);
    }

    .nav-menu a .nav-menu-sub {
      display: block;
      font-size: 11.5px;
      font-weight: 400;
      color: var(--text-faint);
      margin-top: 2px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 11px 22px;
      border-radius: 100px;
      font-size: 14.5px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid transparent;
      white-space: nowrap;
      transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      background: var(--grad);
      color: #08080f;
      box-shadow: 0 8px 24px -8px rgba(155, 79, 232, 0.55);
    }

    .btn-primary:hover {
      box-shadow: 0 12px 30px -8px rgba(236, 30, 130, 0.6);
    }

    .btn-ghost {
      background: rgba(255, 255, 255, 0.03);
      color: var(--text);
      border: 1px solid var(--border-strong);
    }

    .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.07);
    }

    .btn-small {
      padding: 9px 18px;
      font-size: 13.5px;
    }

    /* ---------- HERO ---------- */
    .hero {
      position: relative;
      min-height: auto;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 230px 32px 40px;
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(60% 50% at 82% 18%, rgba(236, 30, 130, 0.16), transparent 60%),
        radial-gradient(50% 45% at 12% 12%, rgba(75, 111, 255, 0.16), transparent 60%),
        radial-gradient(70% 60% at 50% 100%, rgba(155, 79, 232, 0.12), transparent 60%);
      z-index: 0;
    }

    .hero-inner {
      position: relative;
      z-index: 2;
      max-width: 1500px;
      margin: 0 auto;
      width: 100%;
    }

    .hero .eyebrow {
      margin-bottom: 26px;
    }

    .hero h1 {
      font-size: clamp(32px, 3.2vw, 47px);
      font-weight: 600;
      line-height: 1.08;
      max-width: 900px;
    }

    .hero h1 .grad-text {
      background: var(--grad);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero p.lede {
      margin-top: 26px;
      font-size: 19px;
      line-height: 1.6;
      color: var(--text-muted);
      max-width: 560px;
    }

    .hero-ctas {
      margin-top: 40px;
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .hero-note {
      margin-top: 36px;
      display: flex;
      align-items: center;
      gap: 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--text-faint);
      white-space: nowrap;
    }

    .hero-note .dash {
      width: 34px;
      height: 1px;
      background: var(--border-strong);
    }

    /* ---------- MARQUEE ---------- */
    .marquee-band {
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background: var(--bg-elev);
      overflow: hidden;
      position: relative;
      z-index: 2;
    }

    .marquee-track {
      display: flex;
      width: max-content;
      animation: scroll-left 34s linear infinite;
    }

    .marquee-track span {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      letter-spacing: 0.08em;
      color: var(--text-faint);
      padding: 20px 28px;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .marquee-track span::after {
      content: "—";
      color: var(--purple);
      opacity: 0.6;
    }

    @keyframes scroll-left {
      from {
        transform: translateX(0);
      }

      to {
        transform: translateX(-50%);
      }
    }

    /* ---------- SECTIONS ---------- */
    section {
      padding: 120px 0;
      position: relative;
    }

    .section-head {
      max-width: 820px;
      margin-bottom: 64px;
    }

    .section-head h2 {
      font-size: clamp(30px, 3.6vw, 46px);
      font-weight: 600;
      margin-top: 18px;
      line-height: 1.08;
    }

    .section-head p {
      margin-top: 18px;
      color: var(--text-muted);
      font-size: 17px;
      line-height: 1.6;
    }

    /* divider / hub motif between sections */
    .hub-divider {
      display: flex;
      align-items: center;
      gap: 18px;
      max-width: 1500px;
      margin: 0 auto;
      padding: 0 32px 90px;
    }

    .hub-divider .line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    }

    .hub-divider .node {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--grad);
      box-shadow: 0 0 0 6px rgba(155, 79, 232, 0.08);
      flex-shrink: 0;
    }

    .hub-divider span {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--text-faint);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    /* ---------- CARDS ---------- */
    .grid {
      display: grid;
      gap: 22px;
    }

    .grid-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .grid-featured {
      grid-template-columns: 1fr 1fr 1fr;
    }

    .card {
      background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 60%);
      -webkit-backdrop-filter: blur(24px) saturate(1.6);
      backdrop-filter: blur(24px) saturate(1.6);
      border: 1px solid rgba(255, 255, 255, 0.10);
      border-radius: var(--radius);
      padding: 34px 30px;
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 26px 52px -32px rgba(0, 0, 0, 0.75);
    }

    :root[data-theme="light"] .card {
      background: linear-gradient(155deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.30) 65%);
      border-color: rgba(255, 255, 255, 0.7);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 46px -28px rgba(28, 42, 92, 0.28);
    }

    .card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1px;
      background: var(--grad);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity .35s ease;
      pointer-events: none;
    }

    /* cards are not clickable — no hover lift/glow */

    .card .glyph {
      width: 52px;
      height: 52px;
      margin-bottom: 26px;
    }

    .card .foundry-logo {
      display: block;
      width: 82%;
      max-width: 260px;
      height: auto;
      object-fit: contain;
      margin: 0 auto 26px;
    }

    .card img.glyph {
      width: 82%;
      max-width: 260px;
      height: auto;
      object-fit: contain;
      margin: 0 auto 26px;
      display: block;
    }

    .card h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .card p {
      font-size: 14.5px;
      line-height: 1.65;
      color: var(--text-muted);
    }

    .card .tag {
      display: inline-block;
      margin-bottom: 18px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-faint);
      border: 1px solid var(--border-strong);
      border-radius: 100px;
      padding: 4px 11px;
    }

    .card.featured {
      background: linear-gradient(160deg, rgba(75, 111, 255, 0.16), rgba(236, 30, 130, 0.09)), linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 60%);
      border-color: rgba(255, 255, 255, 0.16);
    }

    :root[data-theme="light"] .card.featured {
      background: linear-gradient(160deg, rgba(75, 111, 255, 0.13), rgba(236, 30, 130, 0.07)), linear-gradient(155deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.30) 65%);
      border-color: rgba(255, 255, 255, 0.7);
    }

    /* Keep sentences together — never orphan a single trailing word on its own line */
    h1, h2, h3, h4 { text-wrap: balance; }
    p, .lede { text-wrap: pretty; }

    .card.featured .glyph {
      width: 60px;
      height: 60px;
    }

    /* ---------- COMPANY / ABOUT ---------- */
    .company-facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(max-content, 1fr));
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      max-width: 900px;
      margin: 0 auto;
    }

    .company-fact {
      background: var(--bg-elev);
      padding: 26px 24px;
    }

    .cf-k {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
      margin-bottom: 8px;
    }

    .cf-v {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.35;
    }

    .cf-link { color: var(--purple); }
    .cf-link:hover { color: var(--pink); }

    @media (max-width: 720px) {
      .company-facts { grid-template-columns: repeat(2, 1fr); }
    }

    /* ---------- STATS ---------- */
    #company {
      padding-bottom: 40px;
    }

    #stats {
      padding: 40px 0;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .stat {
      background: var(--bg-elev);
      padding: 34px 26px;
    }

    .stat .num {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 34px;
      font-weight: 600;
      background: var(--grad);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .stat .label {
      margin-top: 8px;
      font-size: 13.5px;
      color: var(--text-muted);
    }

    /* ---------- TEAM ---------- */
    #team { padding: 40px 0 100px; }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 16px;
    }

    .team-card {
      text-align: center;
    }

    .team-card img {
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: contain;
      object-position: top;
      display: block;
      background: transparent;
    }

    .team-name {
      padding: 14px 10px;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      font-size: 15px;
      color: var(--text);
    }

    @media (max-width: 960px) {
      .team-grid { grid-template-columns: repeat(4, 1fr); }
    }

    @media (max-width: 720px) {
      .team-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* ---------- CTA BANNER ---------- */
    .cta-banner {
      max-width: 1500px;
      margin: 0 auto;
      padding: 0 32px;
    }

    .cta-inner {
      border-radius: 28px;
      padding: 80px 48px;
      text-align: center;
      position: relative;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--border-strong);
    }

    .cta-inner::before {
      content: "";
      position: absolute;
      inset: -40%;
      background: conic-gradient(from 0deg, var(--blue), var(--purple), var(--pink), var(--blue));
      opacity: 0.14;
      filter: blur(60px);
      animation: spin 16s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .cta-inner h2 {
      position: relative;
      font-size: clamp(28px, 4vw, 44px);
      font-weight: 600;
      max-width: 640px;
      margin: 0 auto 30px;
    }

    .cta-inner .btn {
      position: relative;
    }

    /* ---------- FOOTER ---------- */
    footer {
      border-top: 1px solid var(--border);
      padding: 70px 0 30px;
      background: var(--bg-elev);
    }

    .footer-top {
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: 60px;
      row-gap: 28px;
      padding-bottom: 60px;
    }

    @media (max-width: 860px) {
      .footer-top { grid-template-columns: 1fr; }
      .footer-cols, .footer-ask-ai, .footer-social { grid-column: auto !important; }
      .footer-cols, .footer-social { justify-self: start !important; }
    }

    .footer-brand img {
      height: 115px;
      width: auto;
      margin-bottom: 18px;
    }

    .footer-brand p {
      color: var(--text-muted);
      font-size: 14px;
      max-width: 280px;
      line-height: 1.6;
    }

    .footer-cols {
      display: flex;
      gap: 64px;
      flex-wrap: wrap;
      justify-self: end;
    }

    .footer-col h4 {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
      margin-bottom: 18px;
    }

    .footer-col a {
      display: block;
      font-size: 14.5px;
      color: var(--text-muted);
      margin-bottom: 12px;
      transition: color .2s ease;
    }

    .footer-col a:hover {
      color: var(--text);
    }

    .footer-bottom {
      border-top: 1px solid var(--border);
      padding-top: 26px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 13px;
      color: var(--text-faint);
    }

    /* ---------- FOOTER: ASK AI + SOCIAL ---------- */
    .footer-ask-ai { grid-column: 1; }
    .footer-social { grid-column: 2; justify-self: end; text-align: right; }

    .footer-ask-ai h4,
    .footer-social h4 {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
      margin-bottom: 14px;
      font-weight: 500;
    }

    .footer-social h4 {
      text-align: center;
    }

    .footer-ask-ai-icons {
      display: flex;
      gap: 10px;
    }

    .footer-social-icons {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }

    .ai-icon,
    .social-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .ai-icon:hover,
    .social-icon:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55);
    }

    .ai-icon img {
      width: 22px;
      height: 22px;
      object-fit: contain;
      margin: 0;
    }

    .ai-icon-mask,
    .social-icon-mask {
      width: 22px;
      height: 22px;
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-position: center;
      mask-position: center;
    }

    .ai-icon-chatgpt { background: #10a37f; }
    .ai-icon-chatgpt img { filter: brightness(0) invert(1); }
    .ai-icon-claude { background: #d97757; }
    .ai-icon-claude img { filter: brightness(0) invert(1); }
    .ai-icon-perplexity { background: #ffffff; }
    .ai-icon-gemini { background: #ffffff; }
    .ai-icon-gemini .ai-icon-mask {
      background: var(--grad);
      -webkit-mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@13/icons/googlegemini.svg');
      mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@13/icons/googlegemini.svg');
    }

    .social-icon-mask { background: #ffffff; }
    .social-icon-linkedin { background: #0A66C2; }
    .social-icon-linkedin .social-icon-mask {
      -webkit-mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/linkedin.svg');
      mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/linkedin.svg');
    }
    .social-icon-facebook { background: #1877F2; }
    .social-icon-facebook .social-icon-mask {
      -webkit-mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/facebook.svg');
      mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/facebook.svg');
    }
    .social-icon-youtube { background: #FF0000; }
    .social-icon-youtube .social-icon-mask {
      -webkit-mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/youtube.svg');
      mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/youtube.svg');
    }
    .social-icon-x { background: #000000; }
    .social-icon-x .social-icon-mask {
      -webkit-mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/x.svg');
      mask-image: url('https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/x.svg');
    }

    /* ---------- ECOSYSTEM / ORBIT ---------- */
    .ecosystem-section {
      padding: 120px 0;
      background: radial-gradient(circle at 50% 50%, rgba(155, 79, 232, 0.04) 0%, transparent 70%), var(--bg);
      overflow: hidden;
    }

    .orbit-container {
      position: relative;
      width: 100%;
      height: 680px;
      margin: 40px auto 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .orbit-ring {
      position: absolute;
      top: 50%;
      left: 50%;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: z-index 0.3s ease;
    }

    .orbit-ring-line {
      position: absolute;
      width: 100%;
      height: 100%;
      border: 1px dashed var(--border-strong);
      border-radius: 50%;
      pointer-events: none;
      transition: border-color 0.3s ease, border-style 0.3s ease, box-shadow 0.3s ease;
    }

    .orbit-ring:hover .orbit-ring-line {
      border-color: var(--purple);
      border-style: solid;
      box-shadow: 0 0 15px rgba(155, 79, 232, 0.15);
    }

    /* Rings setup */
    .ring-1 {
      --ring-radius: 140px;
      width: 280px;
      height: 280px;
      z-index: 30;
      animation: rotate-clockwise var(--ring-speed, 25s) linear infinite;
    }

    .ring-2 {
      --ring-radius: 225px;
      width: 450px;
      height: 450px;
      z-index: 20;
      animation: rotate-counter-clockwise var(--ring-speed, 35s) linear infinite;
    }

    .ring-3 {
      --ring-radius: 310px;
      width: 620px;
      height: 620px;
      z-index: 10;
      animation: rotate-clockwise var(--ring-speed, 45s) linear infinite;
    }

    /* Orbit animations */
    @keyframes rotate-clockwise {
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }

      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    @keyframes rotate-counter-clockwise {
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }

      to {
        transform: translate(-50%, -50%) rotate(-360deg);
      }
    }

    /* Node wrappers & positioners */
    .node-wrapper {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      transform: rotate(var(--node-angle)) translateY(calc(-1 * var(--ring-radius)));
    }

    /* Animators handling counter-rotation to keep nodes upright */
    .node-animator {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 0;
      height: 0;
    }

    .ring-1 .node-animator {
      animation: counter-rotate-clockwise var(--ring-speed, 25s) linear infinite;
    }

    .ring-2 .node-animator {
      animation: counter-rotate-counter-clockwise var(--ring-speed, 35s) linear infinite;
    }

    .ring-3 .node-animator {
      animation: counter-rotate-clockwise var(--ring-speed, 45s) linear infinite;
    }

    @keyframes counter-rotate-clockwise {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(-360deg);
      }
    }

    @keyframes counter-rotate-counter-clockwise {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    /* Interactive Chip Styling */
    .node-chip {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 12px;
      background: rgba(13, 23, 46, 0.85);
      border: 1px solid var(--border);
      border-radius: 50%;
      backdrop-filter: blur(10px);
      cursor: pointer;
      white-space: nowrap;
      font-size: 13.5px;
      font-weight: 500;
      color: var(--text);
      /* Initially counter-rotate by node angle so text is upright */
      transform: rotate(calc(-1 * var(--node-angle))) scale(1);
      transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
      user-select: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .node-chip:hover,
    .node-chip:focus-visible {
      transform: rotate(calc(-1 * var(--node-angle))) scale(1.08);
      background: var(--surface-2);
      border-color: var(--purple);
      box-shadow: 0 0 16px rgba(155, 79, 232, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
      z-index: 50;
    }

    .ring-1 .node-chip:hover,
    .ring-1 .node-chip:focus-visible {
      border-color: var(--blue);
      box-shadow: 0 0 16px rgba(75, 111, 255, 0.35);
    }

    .ring-3 .node-chip:hover,
    .ring-3 .node-chip:focus-visible {
      border-color: var(--pink);
      box-shadow: 0 0 16px rgba(236, 30, 130, 0.35);
    }

    .node-icon {
      font-size: 15px;
      display: flex;
      align-items: center;
    }

    .node-icon img {
      width: 30px;
      height: 30px;
      min-width: 30px;
      max-width: none;
      object-fit: contain;
      border-radius: 6px;
      display: block;
      flex-shrink: 0;
    }

    .node-icon {
      flex-shrink: 0;
    }

    /* Orbit chips are icon-only; label lives in the tooltip */
    .node-chip .node-name {
      display: none;
    }

    .node-name {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 500;
    }

    /* Pause ring rotation on hover */
    .orbit-ring:hover,
    .orbit-ring:hover .node-animator {
      animation-play-state: paused !important;
    }

    /* Center Hub node styling */
    .orbit-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90px;
      height: 90px;
      z-index: 40;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .orbit-center-glow {
      position: absolute;
      inset: -15px;
      border-radius: 50%;
      background: var(--grad);
      opacity: 0.15;
      filter: blur(15px);
      animation: center-pulse 4s ease-in-out infinite alternate;
    }

    @keyframes center-pulse {
      0% {
        transform: scale(0.9);
        opacity: 0.12;
      }

      100% {
        transform: scale(1.15);
        opacity: 0.22;
      }
    }

    .orbit-center-logo {
      position: relative;
      width: 66px;
      height: 66px;
      border-radius: 50%;
      background: var(--surface-2);
      border: 2px solid var(--border-strong);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 25px rgba(155, 79, 232, 0.25);
      transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .orbit-center-logo img {
      width: 38px;
      height: auto;
    }

    .orbit-center:hover .orbit-center-logo {
      transform: scale(1.05);
      border-color: var(--purple);
    }

    .orbit-center-label {
      position: absolute;
      top: calc(100% + 8px);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      color: var(--text);
      text-transform: uppercase;
      white-space: nowrap;
      opacity: 0.8;
    }

    /* Tooltips */
    .node-tooltip {
      position: absolute;
      bottom: calc(100% + 14px);
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      width: 240px;
      background: rgba(8, 16, 33, 0.96);
      border: 1px solid var(--border-strong);
      border-radius: 12px;
      padding: 14px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
      z-index: 100;
      text-align: left;
      white-space: normal;
    }

    .node-tooltip::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border-width: 6px;
      border-style: solid;
      border-color: rgba(8, 16, 33, 0.96) transparent transparent transparent;
    }

    .node-tooltip strong {
      display: block;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13.5px;
      color: var(--text);
      margin-bottom: 4px;
    }

    .node-tooltip p {
      font-size: 12px;
      line-height: 1.5;
      color: var(--text-muted);
      margin: 0;
    }

    .node-chip:hover .node-tooltip,
    .node-chip:focus-within .node-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    /* Mobile version of ecosystem */
    .mobile-ecosystem {
      display: none;
      margin-top: 30px;
    }

    .mobile-ecosystem-cat {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
      margin-bottom: 16px;
    }

    .mobile-ecosystem-cat h4 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .mobile-ecosystem-cat h4::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
    }

    .mobile-ecosystem-cat:nth-child(1) h4::before {
      background: var(--blue);
    }

    .mobile-ecosystem-cat:nth-child(2) h4::before {
      background: var(--purple);
    }

    .mobile-ecosystem-cat:nth-child(3) h4::before {
      background: var(--pink);
    }

    .mobile-chips-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .mobile-node-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      background: var(--surface-2);
      border: 1px solid var(--border-strong);
      border-radius: 100px;
      font-size: 13px;
      color: var(--text);
      font-weight: 500;
    }

    .mobile-node-chip span:first-child {
      font-size: 14px;
    }

    .mobile-node-chip img {
      width: 16px;
      height: 16px;
      object-fit: contain;
      border-radius: 4px;
      display: block;
    }

    /* Scroll reveal transitions */
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-delay-1 {
      transition-delay: 0.15s;
    }

    .reveal-delay-2 {
      transition-delay: 0.3s;
    }

    .reveal-delay-3 {
      transition-delay: 0.45s;
    }

    /* ---------- THriveX WORKSPACE SIMULATOR ---------- */
    .thrivex-workspace-demo {
      margin-top: 60px;
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
      display: flex;
      flex-direction: column;
      height: 600px;
      position: relative;
      z-index: 10;
    }

    .workspace-header {
      background: rgba(8, 16, 33, 0.95);
      border-bottom: 1px solid var(--border);
      padding: 12px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 10;
    }

    .window-dots {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .window-dots .dot {
      width: 11px;
      height: 11px;
      border-radius: 50%;
    }

    .window-dots .red {
      background: #ec1e82;
      opacity: 0.85;
    }

    .window-dots .yellow {
      background: #f5a623;
      opacity: 0.85;
    }

    .window-dots .green {
      background: #2bd97b;
      opacity: 0.85;
    }

    .window-title {
      font-size: 11.5px;
      color: var(--text-faint);
      letter-spacing: 0.05em;
    }

    .btn-demo-run {
      background: var(--grad);
      color: #08080f;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      font-weight: 700;
      padding: 7px 16px;
      border-radius: 100px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
    }

    .btn-demo-run:hover {
      transform: scale(1.03);
      box-shadow: 0 0 15px rgba(155, 79, 232, 0.45);
    }

    .play-icon {
      font-size: 10px;
    }

    .workspace-body {
      flex: 1;
      display: flex;
      overflow: hidden;
    }

    /* Sidebar */
    .workspace-sidebar {
      width: 230px;
      background: rgba(2, 3, 6, 0.95);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      padding: 18px 12px;
      gap: 8px;
      overflow-y: auto;
    }

    .sidebar-head {
      font-size: 10px;
      color: var(--text-faint);
      font-weight: 700;
      letter-spacing: 0.1em;
      padding-left: 8px;
      margin-bottom: 6px;
    }

    .session-tab {
      background: transparent;
      border: 1px solid transparent;
      border-radius: 8px;
      padding: 10px 12px;
      text-align: left;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: background 0.2s ease, border-color 0.2s ease;
    }

    .session-tab:hover {
      background: rgba(255, 255, 255, 0.02);
    }

    .session-tab.active {
      background: rgba(255, 255, 255, 0.04);
      border-color: var(--border-strong);
    }

    .session-tab .tab-badge {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      display: inline-block;
      margin-right: 4px;
    }

    .session-tab .tab-badge.green {
      background: #2bd97b;
    }

    .session-tab .tab-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      font-weight: 500;
      color: var(--text);
    }

    .session-tab .tab-time {
      font-size: 10px;
      color: var(--text-faint);
      font-family: 'JetBrains Mono', monospace;
      padding-left: 10px;
    }

    /* Main Workspace */
    .workspace-main {
      flex: 1;
      display: flex;
      overflow: hidden;
    }

    /* Canvas graph panel */
    .canvas-panel {
      flex: 58;
      background: rgba(2, 3, 6, 0.2);
      display: flex;
      flex-direction: column;
      border-right: 1px solid var(--border);
    }

    .canvas-title-bar {
      padding: 16px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .canvas-title-bar h3 {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 3px;
    }

    .font-xs {
      font-size: 11px;
    }

    .canvas-zoom-control {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      color: var(--text-muted);
    }

    .graph-container {
      flex: 1;
      position: relative;
      overflow: hidden;
      background: var(--bg);
    }

    .grid-overlay {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
      background-size: 20px 20px;
      pointer-events: none;
    }

    .nodes-layer {
      position: absolute;
      inset: 0;
      display: none;
    }

    .nodes-layer.active {
      display: block;
    }

    .graph-node {
      position: absolute;
      /* % width so nodes + connectors stay aligned at any panel width
         (a fixed px width breaks the % connector geometry) */
      width: 28%;
      background: rgba(13, 23, 46, 0.95);
      border: 1.5px solid var(--border-strong);
      border-radius: 10px;
      padding: 10px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
      z-index: 5;
      transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    }

    .graph-node.completed {
      border-color: rgba(43, 217, 123, 0.5);
      box-shadow: 0 4px 16px rgba(43, 217, 123, 0.1);
    }

    .graph-node.running {
      border-color: var(--purple);
      box-shadow: 0 0 15px rgba(155, 79, 232, 0.4);
      animation: node-pulse 1.5s infinite alternate;
    }

    .node-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      color: var(--purple);
      margin-bottom: 4px;
      text-transform: uppercase;
    }

    .graph-node.completed .node-badge {
      color: #2bd97b;
    }

    .node-desc {
      font-size: 10.5px;
      color: var(--text);
      font-weight: 500;
      line-height: 1.35;
      margin-bottom: 4px;
    }

    .node-status {
      font-size: 9px;
      color: var(--text-faint);
      text-transform: uppercase;
    }

    .graph-node.completed .node-status {
      color: #2bd97b;
    }

    .node-connector {
      position: absolute;
      z-index: 2;
      pointer-events: none;
    }

    .node-connector line,
    .node-connector path {
      stroke: var(--border-strong);
      transition: stroke 0.3s ease, stroke-dashoffset 0.3s ease;
    }

    .node-connector.active line,
    .node-connector.active path {
      stroke: #2bd97b;
      stroke-dasharray: 0;
    }

    .canvas-zoom-mock {
      position: absolute;
      bottom: 18px;
      left: 18px;
      background: rgba(8, 16, 33, 0.9);
      border: 1px solid var(--border-strong);
      border-radius: 6px;
      display: flex;
      gap: 12px;
      padding: 6px 12px;
      z-index: 6;
      font-size: 12px;
      color: var(--text-muted);
      user-select: none;
    }

    .canvas-zoom-mock span {
      cursor: pointer;
    }

    .canvas-zoom-mock span:hover {
      color: var(--text);
    }

    /* Side Panel */
    .side-panel {
      flex: 42;
      background: rgba(8, 16, 33, 0.95);
      display: flex;
      flex-direction: column;
      padding: 18px 20px;
      overflow-y: auto;
    }

    .panel-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin-bottom: 16px;
      gap: 16px;
    }

    .panel-tab-btn {
      font-size: 12px;
      color: var(--text-faint);
      padding-bottom: 10px;
      font-weight: 600;
      cursor: pointer;
      border-bottom: 1.5px solid transparent;
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    .panel-tab-btn.active {
      color: var(--text);
      border-color: var(--purple);
    }

    .demo-stats-card {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 16px;
    }

    .stats-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      color: var(--text-muted);
    }

    .badge-mini {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      border-radius: 4px;
      font-size: 9px;
      padding: 2px 6px;
      color: var(--purple);
      font-weight: 700;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .stats-val {
      display: block;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
    }

    .stats-lbl {
      font-size: 10px;
      color: var(--text-faint);
    }

    .artifact-display-container {
      flex: 1;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 220px;
    }

    .artifact-card-header {
      background: rgba(2, 3, 6, 0.4);
      border-bottom: 1px solid var(--border);
      padding: 10px 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .artifact-card-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--text-muted);
    }

    .artifact-badge {
      background: rgba(75, 111, 255, 0.15);
      color: var(--blue);
      border-radius: 4px;
      padding: 2px 6px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.05em;
    }

    .artifact-text-body {
      padding: 16px;
      overflow-y: auto;
      font-size: 11.5px;
      line-height: 1.6;
      color: var(--text-muted);
    }

    .artifact-text-body p {
      margin-bottom: 10px;
    }

    .artifact-text-body ul,
    .artifact-text-body ol {
      padding-left: 16px;
      margin-bottom: 10px;
    }

    .artifact-text-body li {
      margin-bottom: 4px;
    }

    @media (max-width: 860px) {

      .grid-3,
      .grid-featured {
        grid-template-columns: 1fr;
      }

      .grid-3,
      .grid-featured {
        grid-template-columns: 1fr;
      }

      .nav-links {
        display: none;
      }

      .stats {
        grid-template-columns: repeat(2, 1fr);
      }

      section {
        padding: 80px 0;
      }

      .hero {
        padding-top: 120px;
      }

      /* Orbit section responsive adjustments */
      .orbit-container {
        display: none;
      }

      .mobile-ecosystem {
        display: block;
      }

      .ecosystem-section {
        padding: 80px 0;
      }
    }

    /* --- AGENT STUDIO PLAYGROUND STYLES --- */
    .studio-playground-wrapper {
      margin-top: 40px;
      background: var(--bg-elev);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .studio-prompt-panel {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .studio-input-group {
      display: flex;
      gap: 12px;
    }

    .studio-prompt-input {
      flex: 1;
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid var(--border-strong);
      border-radius: 100px;
      padding: 14px 24px;
      color: var(--text);
      font-family: inherit;
      font-size: 15px;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .studio-prompt-input:focus {
      border-color: var(--purple);
      box-shadow: 0 0 10px rgba(155, 79, 232, 0.2);
    }

    /* ---------- BOOK A DEMO MODAL ---------- */
    .demo-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(8, 8, 15, 0.6);
      backdrop-filter: blur(6px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
      padding: 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .demo-modal-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .demo-modal {
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius);
      box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
      width: 100%;
      max-width: 560px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 40px;
      position: relative;
      transform: translateY(16px) scale(0.98);
      transition: transform 0.25s ease;
    }

    .demo-modal-overlay.open .demo-modal {
      transform: translateY(0) scale(1);
    }

    .demo-modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .demo-modal-close:hover {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    .demo-modal h3 {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--text);
    }

    .demo-modal .demo-sub {
      color: var(--text-muted);
      font-size: 14.5px;
      margin-bottom: 28px;
      line-height: 1.5;
    }

    .demo-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .demo-field {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .demo-field.full {
      grid-column: 1 / -1;
    }

    .demo-field label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    .demo-field input,
    .demo-field textarea {
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid var(--border-strong);
      border-radius: 10px;
      padding: 12px 16px;
      color: var(--text);
      font-family: inherit;
      font-size: 14.5px;
      outline: none;
      resize: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .demo-field input:focus,
    .demo-field textarea:focus {
      border-color: var(--purple);
      box-shadow: 0 0 10px rgba(155, 79, 232, 0.2);
    }

    :root[data-theme="light"] .demo-field input,
    :root[data-theme="light"] .demo-field textarea {
      background: rgba(28, 42, 92, 0.04);
    }

    .demo-form-submit {
      width: 100%;
      justify-content: center;
      margin-top: 26px;
      border: none;
      cursor: pointer;
    }

    .demo-success {
      display: none;
      text-align: center;
      padding: 20px 0;
    }

    .demo-success.show {
      display: block;
    }

    .demo-success .demo-success-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--grad);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      color: #08080f;
    }

    .demo-success h3 {
      margin-bottom: 10px;
    }

    .demo-success p {
      color: var(--text-muted);
      font-size: 14.5px;
      line-height: 1.6;
    }

    @media (max-width: 600px) {
      .demo-form-grid {
        grid-template-columns: 1fr;
      }
    }

    .studio-prompt-chips {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .prompt-chip {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 100px;
      padding: 6px 14px;
      font-size: 12.5px;
      color: var(--text-muted);
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .prompt-chip:hover {
      background: rgba(255, 255, 255, 0.07);
      color: var(--text);
      border-color: var(--border-strong);
    }

    .studio-canvas-viewport {
      width: 100%;
      overflow-x: auto;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: radial-gradient(circle at 50% 50%, #060e20 0%, #020306 100%);
      box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
      /* no visible scrollbar — graph fits on desktop, still pannable on narrow screens */
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .studio-canvas-viewport::-webkit-scrollbar {
      display: none;
    }

    .studio-canvas-container {
      min-width: 1040px;
      display: flex;
      flex-direction: column;
      position: relative;
      user-select: none;
    }

    /* Canvas Header */
    .studio-canvas-header {
      background: rgba(2, 3, 6, 0.85);
      border-bottom: 1px solid var(--border);
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      backdrop-filter: blur(8px);
      z-index: 10;
    }

    .studio-header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .studio-back-btn {
      color: var(--text-muted);
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
    }

    .studio-flow-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .edit-pencil {
      color: var(--pink);
      font-size: 12px;
      opacity: 0.85;
      cursor: pointer;
    }

    .studio-header-right {
      display: flex;
      gap: 16px;
      color: var(--text-muted);
      font-size: 14px;
    }

    .studio-icon-btn {
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .studio-icon-btn:hover {
      color: var(--text);
    }

    /* Canvas Layout */
    .studio-canvas-layout {
      display: flex;
      position: relative;
      height: 520px;
    }

    .studio-canvas-toolbar {
      width: 48px;
      background: rgba(2, 3, 6, 0.85);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 16px 0;
      gap: 16px;
      z-index: 5;
    }

    .toolbar-icon {
      font-size: 15px;
      color: var(--text-faint);
      cursor: pointer;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    .toolbar-icon:hover {
      color: var(--pink);
      transform: scale(1.1);
    }

    .studio-canvas-graph {
      flex: 1;
      position: relative;
      background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
      background-size: 24px 24px;
      overflow: hidden;
    }

    /* Canvas Floating Controls */
    .studio-zoom-controls {
      position: absolute;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(2, 3, 6, 0.9);
      border: 1px solid var(--border-strong);
      border-radius: 6px;
      display: flex;
      padding: 6px 12px;
      gap: 14px;
      font-size: 12px;
      color: var(--text-muted);
      z-index: 10;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .studio-zoom-btn {
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .studio-zoom-btn:hover {
      color: var(--text);
    }

    .studio-corner-controls {
      position: absolute;
      top: 16px;
      right: 16px;
      background: rgba(2, 3, 6, 0.9);
      border: 1px solid var(--border-strong);
      border-radius: 6px;
      display: flex;
      padding: 6px 10px;
      gap: 12px;
      font-size: 13px;
      color: var(--text-muted);
      z-index: 10;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .studio-corner-btn {
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .studio-corner-btn:hover {
      color: var(--text);
    }

    /* Node Styling */
    .studio-node {
      position: absolute;
      z-index: 5;
      transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .node-start {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: #020306;
      border: 1.5px solid var(--border-strong);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
      cursor: default;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .node-start-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .start-arrow {
      font-size: 14px;
      color: var(--pink);
      line-height: 1;
    }

    .node-start .node-label {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 10px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 1px;
    }

    .node-card {
      width: 140px;
      height: 76px;
      background: #040813;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 8px 10px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
      cursor: default;
      transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    }

    .node-icon-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }

    .icon-span {
      font-size: 13px;
    }

    .node-type {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    .node-title {
      font-family: 'Manrope', sans-serif;
      font-size: 11px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 2px;
    }

    .node-status {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8.5px;
      color: var(--text-muted);
      align-self: flex-start;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .node-status::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--text-faint);
      display: inline-block;
    }

    .node-toolbar {
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      background: #0d172e;
      border: 1px solid var(--border-strong);
      border-radius: 6px;
      padding: 4px 8px;
      display: flex;
      gap: 8px;
      font-size: 11px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
      z-index: 10;
    }

    .toolbar-btn {
      cursor: pointer;
      color: var(--text-muted);
      transition: color 0.2s ease;
    }

    .toolbar-btn:hover {
      color: var(--text);
    }

    /* Accent headers */
    .pink-accent .node-type {
      color: var(--pink);
      opacity: 0.85;
    }

    .blue-accent .node-type {
      color: var(--blue);
      opacity: 0.85;
    }

    /* Node Execution States */
    .studio-node.running {
      transform: translateY(-2px) scale(1.02);
      z-index: 6;
    }

    .node-start.running {
      border-color: var(--pink);
      box-shadow: 0 0 15px rgba(236, 30, 130, 0.5);
    }

    .node-card.running {
      border-color: var(--pink);
      box-shadow: 0 0 15px rgba(236, 30, 130, 0.4);
    }

    .node-card.running .node-status {
      color: var(--pink);
    }

    .node-card.running .node-status::before {
      background: var(--pink);
      animation: pulse-dot 1s ease infinite alternate;
    }

    .studio-node.completed {
      border-color: var(--blue);
      box-shadow: 0 0 10px rgba(75, 111, 255, 0.25);
    }

    .node-start.completed {
      border-color: var(--blue);
    }

    .node-card.completed .node-status {
      color: var(--blue);
    }

    .node-card.completed .node-status::before {
      background: var(--blue);
    }

    @keyframes pulse-dot {
      from {
        opacity: 0.4;
        transform: scale(0.8);
      }

      to {
        opacity: 1;
        transform: scale(1.2);
      }
    }

    /* Active pulse paths for connection SVG */
    .active-pulse-path {
      opacity: 0;
      transition: opacity 0.3s ease;
      animation: flow-dash 1.5s linear infinite;
    }

    @keyframes flow-dash {
      to {
        stroke-dashoffset: -20;
      }
    }

    /* Console & Output Panels */
    .studio-output-layout {
      display: grid;
      grid-template-columns: 1.2fr 2fr;
      gap: 20px;
      margin-top: 20px;
      display: none;
      /* Shown dynamically when execution runs/finishes */
    }

    .studio-console-card {
      background: #020306;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px;
      display: flex;
      flex-direction: column;
      height: 380px;
    }

    .console-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border);
      padding-bottom: 10px;
      margin-bottom: 12px;
    }

    .console-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .console-status-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #5f5c72;
    }

    .console-status-dot.active {
      background: var(--pink);
      box-shadow: 0 0 8px var(--pink);
      animation: pulse-dot 1s ease infinite alternate;
    }

    .console-log-stream {
      flex: 1;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      line-height: 1.6;
      color: var(--text-muted);
      overflow-y: auto;
      padding-right: 8px;
    }

    .log-line {
      margin-bottom: 8px;
      opacity: 0;
      transform: translateY(4px);
      animation: fade-in-log 0.25s forwards ease;
    }

    .log-time {
      color: var(--text-faint);
      margin-right: 6px;
    }

    .log-system {
      color: var(--pink);
    }

    .log-info {
      color: var(--text-muted);
    }

    .log-success {
      color: var(--blue);
    }

    @keyframes fade-in-log {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .studio-results-card {
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-radius: 12px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      height: 380px;
    }

    .results-tabs {
      display: flex;
      gap: 8px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 12px;
      margin-bottom: 16px;
    }

    .results-tab-btn {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      color: var(--text-muted);
      padding: 8px 16px;
      border-radius: 6px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12.5px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .results-tab-btn:hover {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
    }

    .results-tab-btn.active {
      background: var(--grad);
      border-color: transparent;
      color: #020306;
      font-weight: 600;
    }

    .results-tab-content {
      flex: 1;
      overflow-y: auto;
      padding-right: 8px;
      font-size: 13.5px;
      line-height: 1.6;
      display: none;
    }

    .results-tab-content.active {
      display: block;
      animation: fade-in-content 0.3s ease;
    }

    @keyframes fade-in-content {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @media (max-width: 860px) {
      .studio-output-layout {
        grid-template-columns: 1fr;
        height: auto;
      }

      .studio-console-card,
      .studio-results-card {
        height: 350px;
      }
    }

    /* --- CURVED LOOP MARQUEE STYLES --- */
    /* --- DOT FIELD CONTAINER --- */
    .dot-field-container {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: -1;
      overflow: hidden;
    }
    #dot-field-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      background: transparent;
    }

    /* --- STAGGERED MENU STYLES --- */
    .staggered-menu-hero {
      position: absolute;
      bottom: 30px;
      right: 32px;
      z-index: 95;
      pointer-events: auto;
    }
    @media (max-width: 860px) {
      .staggered-menu-hero {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px auto;
        display: flex;
        justify-content: center;
      }
    }

    .sm-hero-toggle {
      background: rgba(8, 16, 33, 0.7);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border);
      border-radius: 30px;
      padding: 10px 20px;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      color: var(--text);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13px;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    .sm-hero-toggle:hover {
      border-color: #9b4fe8;
      box-shadow: 0 4px 20px rgba(155, 79, 232, 0.2);
    }
    
    .sm-hero-text-wrap {
      height: 16px;
      overflow: hidden;
      position: relative;
      display: inline-block;
      width: 220px;
      text-align: left;
    }
    .sm-hero-text-inner {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sm-hero-text-line {
      height: 16px;
      line-height: 16px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .sm-hero-icon {
      width: 12px;
      height: 12px;
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .sm-hero-icon-line {
      position: absolute;
      width: 12px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform 0.3s ease;
    }
    .sm-hero-icon-line-v {
      transform: rotate(90deg);
    }
    .sm-hero-toggle.open .sm-hero-icon-line-h {
      transform: rotate(45deg);
    }
    .sm-hero-toggle.open .sm-hero-icon-line-v {
      transform: rotate(135deg);
    }

    .sm-hero-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: 380px;
      height: 100%;
      background: rgba(4, 8, 20, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-left: 1px solid var(--border);
      padding: 100px 40px 40px;
      z-index: 99;
      transform: translateX(100%);
      opacity: 0;
      display: flex;
      flex-direction: column;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .sm-hero-panel.open {
      pointer-events: auto;
    }
    
    .sm-hero-panel-prelayers {
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: 380px;
      pointer-events: none;
      z-index: 98;
    }
    .sm-hero-prelayer {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      transform: translateX(100%);
    }

    .sm-hero-panel-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: #9b4fe8;
      font-weight: 700;
      margin-bottom: 30px;
      font-family: 'Space Grotesk', sans-serif;
    }

    .sm-hero-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
    .sm-hero-item {
      overflow: hidden;
    }
    .sm-hero-item-content {
      font-family: 'Manrope', sans-serif;
      font-size: 15px;
      font-weight: 500;
      line-height: 1.5;
      color: var(--text-muted);
      transform: translateY(140px) rotate(5deg);
      display: block;
    }
    
    .sm-hero-socials {
      margin-top: auto;
      border-top: 1px solid var(--border);
      padding-top: 30px;
    }
    .sm-hero-socials-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      margin-bottom: 15px;
      font-family: 'Space Grotesk', sans-serif;
    }
    .sm-hero-socials-list {
      display: flex;
      gap: 15px;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .sm-hero-socials-link {
      color: var(--text-muted);
      font-size: 13px;
      text-decoration: none;
      transition: color 0.3s ease;
      font-family: 'Space Grotesk', sans-serif;
    }
    .sm-hero-socials-link:hover {
      color: #ec1e82;
    }

    /* ---------- SCROLL PROGRESS BAR ---------- */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      width: 0;
      z-index: 200;
      background: var(--grad);
      box-shadow: 0 0 12px rgba(155, 79, 232, 0.65);
      pointer-events: none;
      transition: width 0.08s linear;
    }

    /* ---------- GRADIENT TEXT SHIMMER ---------- */
    .hero h1 .grad-text,
    .stat .num {
      background-size: 220% auto;
      animation: grad-shimmer 7s linear infinite;
    }

    @keyframes grad-shimmer {
      to {
        background-position: 220% center;
      }
    }

    /* ---------- PRIMARY BUTTON LIGHT SWEEP ---------- */
    .btn-primary {
      position: relative;
      overflow: hidden;
    }

    .btn-primary::after {
      content: "";
      position: absolute;
      top: 0;
      left: -130%;
      width: 55%;
      height: 100%;
      background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
      transform: skewX(-20deg);
      pointer-events: none;
      transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .btn-primary:hover::after {
      left: 150%;
    }

    /* ---------- STAT COUNT-UP ---------- */
    .stat .num[data-count] {
      font-variant-numeric: tabular-nums;
    }

    @media (prefers-reduced-motion: reduce) {

      .hero h1 .grad-text,
      .stat .num {
        animation: none;
      }
    }

    /* ---------- HERO TWO-COLUMN + AGENT-FLOW SIMULATION ---------- */
    .hero-grid {
      position: relative;
      z-index: 2;
      max-width: 1500px;
      margin: 0 auto;
      width: 100%;
      display: grid;
      grid-template-columns: 1fr;
      gap: 24px;
      align-items: center;
    }

    .hero-top {
      display: grid;
      grid-template-columns: 0.6fr 1.4fr;
      gap: 40px;
      align-items: center;
      width: 100%;
    }

    .hero-grid .hero-inner {
      max-width: 700px;
      margin: 0;
    }

    /* ---------- HERO SIDE: live agent activity feed ---------- */
    .hero-side { position: relative; }

    .hs-panel {
      /* themed surface so the panel follows light / dark mode */
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-radius: 16px;
      box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(12px);
      overflow: hidden;
    }

    .hs-head {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border);
      background: rgba(2, 3, 6, 0.4);
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--text-faint);
    }

    .hs-live {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #2bd97b;
      box-shadow: 0 0 9px #2bd97b;
      flex-shrink: 0;
      animation: hs-blink 1.4s ease-in-out infinite;
    }

    @keyframes hs-blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.25; }
    }

    .hs-count { margin-left: auto; }
    .hs-count b { color: var(--text); font-weight: 600; }

    .hs-feed {
      list-style: none;
      margin: 0;
      padding: 10px;
      height: 424px;
      overflow: hidden;
    }

    .hs-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 12px;
      border-radius: 11px;
      animation: hs-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
    }

    .hs-row + .hs-row { margin-top: 2px; }

    @keyframes hs-in {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: none; }
    }

    .hs-tag {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--c, var(--purple));
      border: 1px solid currentColor;
      background: rgba(255, 255, 255, 0.03);
    }

    .hs-body { flex: 1; min-width: 0; }

    .hs-act {
      font-size: 14.5px;
      line-height: 1.45;
      color: var(--text);
    }

    .hs-act b { font-weight: 600; }

    .hs-meta {
      margin-top: 5px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--text-faint);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .hs-state {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .hs-state::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
    }

    .hs-state.done { color: #2bd97b; }
    .hs-state.run { color: var(--purple); }

    .hs-foot {
      border-top: 1px solid var(--border);
      padding: 14px 20px 16px;
      background: rgba(2, 3, 6, 0.3);
    }

    .hs-bar {
      display: block;
      height: 3px;
      border-radius: 100px;
      background: rgba(255, 255, 255, 0.07);
      overflow: hidden;
    }

    .hs-bar i {
      display: block;
      height: 100%;
      width: 40%;
      border-radius: inherit;
      background: var(--grad);
      animation: hs-sweep 2.6s ease-in-out infinite;
    }

    @keyframes hs-sweep {
      0% { transform: translateX(-110%); }
      100% { transform: translateX(260%); }
    }

    .hs-foot-text {
      display: block;
      margin-top: 11px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      color: var(--text-faint);
    }

    @media (max-width: 1100px) {
      .hero-top { grid-template-columns: 1fr; gap: 24px; }
      .hero-grid .hero-inner { max-width: none; }
      .hero-side { max-width: 500px; }
    }

    /* light-mode surfaces for the feed panel */
    :root[data-theme="light"] .hs-head,
    :root[data-theme="light"] .hs-foot {
      background: rgba(28, 42, 92, 0.045);
    }

    :root[data-theme="light"] .hs-tag {
      background: rgba(28, 42, 92, 0.04);
    }

    :root[data-theme="light"] .hs-bar {
      background: rgba(28, 42, 92, 0.10);
    }

    :root[data-theme="light"] .hs-panel {
      box-shadow: 0 24px 50px -30px rgba(28, 42, 92, 0.45);
    }

    /* ============================================================
       LIGHT MODE for the app-mockup panels:
       workspace simulator, Agent Studio canvas, patient monitor
       ============================================================ */

    /* --- ThriveX workspace simulator --- */
    :root[data-theme="light"] .workspace-header { background: rgba(28, 42, 92, 0.04); }
    :root[data-theme="light"] .workspace-sidebar { background: rgba(28, 42, 92, 0.03); }
    :root[data-theme="light"] .session-tab:hover { background: rgba(28, 42, 92, 0.05); }
    :root[data-theme="light"] .session-tab.active { background: rgba(28, 42, 92, 0.08); }
    :root[data-theme="light"] .canvas-panel { background: rgba(28, 42, 92, 0.015); }
    :root[data-theme="light"] .canvas-zoom-control { background: rgba(28, 42, 92, 0.05); }
    :root[data-theme="light"] .graph-node { background: #ffffff; }
    :root[data-theme="light"] .canvas-zoom-mock { background: rgba(255, 255, 255, 0.92); }
    :root[data-theme="light"] .side-panel { background: rgba(28, 42, 92, 0.025); }
    :root[data-theme="light"] .badge-mini { background: rgba(28, 42, 92, 0.07); }
    :root[data-theme="light"] .artifact-card-header { background: rgba(28, 42, 92, 0.05); }

    :root[data-theme="light"] .grid-overlay {
      background-image: radial-gradient(rgba(28, 42, 92, 0.13) 1px, transparent 1px);
    }

    /* --- Agent Studio --- */
    :root[data-theme="light"] .studio-canvas-viewport {
      background: radial-gradient(circle at 50% 50%, #ffffff 0%, #e9edf8 100%);
      box-shadow: inset 0 0 40px rgba(28, 42, 92, 0.07);
    }

    :root[data-theme="light"] .studio-canvas-header,
    :root[data-theme="light"] .studio-canvas-toolbar { background: rgba(255, 255, 255, 0.78); }

    :root[data-theme="light"] .studio-canvas-graph {
      background-image: radial-gradient(rgba(28, 42, 92, 0.13) 1.5px, transparent 1.5px);
    }

    :root[data-theme="light"] .studio-zoom-controls,
    :root[data-theme="light"] .studio-corner-controls { background: rgba(255, 255, 255, 0.92); }

    :root[data-theme="light"] .node-start,
    :root[data-theme="light"] .node-card,
    :root[data-theme="light"] .node-toolbar { background: #ffffff; }

    :root[data-theme="light"] .studio-console-card { background: #f4f7fd; }

    :root[data-theme="light"] .results-tab-btn { background: rgba(28, 42, 92, 0.03); }
    :root[data-theme="light"] .results-tab-btn:hover { background: rgba(28, 42, 92, 0.08); }
    :root[data-theme="light"] .prompt-chip { background: rgba(28, 42, 92, 0.04); }
    :root[data-theme="light"] .prompt-chip:hover { background: rgba(28, 42, 92, 0.09); }

    /* --- Patient monitor --- */
    :root[data-theme="light"] .pm-window {
      background: linear-gradient(180deg, #ffffff, #f6f8fe);
      box-shadow: 0 34px 70px -38px rgba(28, 42, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    :root[data-theme="light"] .pm-titlebar { background: rgba(28, 42, 92, 0.04); }

    @media (prefers-reduced-motion: reduce) {
      .hs-live, .hs-bar i { animation: none; }
      .hs-row { animation: none; }
    }

    .hero-flow {
      position: relative;
      width: 100%;
      max-width: 440px;
      margin-left: auto;
    }

    .hf-window {
      position: relative;
      background: linear-gradient(180deg, rgba(13, 23, 46, 0.94), rgba(8, 16, 33, 0.94));
      border: 1px solid var(--border-strong);
      border-radius: 16px;
      box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(12px);
      overflow: hidden;
    }

    .hf-window::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      padding: 1px;
      background: linear-gradient(150deg, rgba(75, 111, 255, 0.5), transparent 40%, transparent 60%, rgba(236, 30, 130, 0.4));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .hf-titlebar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      background: rgba(2, 3, 6, 0.4);
    }

    .hf-dots {
      display: flex;
      gap: 6px;
    }

    .hf-dots i {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      display: block;
      opacity: 0.85;
    }

    .hf-dots i:nth-child(1) { background: #ec1e82; }
    .hf-dots i:nth-child(2) { background: #f5a623; }
    .hf-dots i:nth-child(3) { background: #2bd97b; }

    .hf-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      color: var(--text-faint);
      letter-spacing: 0.04em;
    }

    .hf-run {
      margin-left: auto;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--purple);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .hf-run::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--purple);
      box-shadow: 0 0 8px var(--purple);
      animation: hf-blink 1.2s ease-in-out infinite;
    }

    @keyframes hf-blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    .hf-body {
      padding: 18px 18px 6px;
    }

    .hf-node {
      position: relative;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 11px 13px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
      transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    }

    .hf-avatar {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      background: var(--surface-2);
      border: 1px solid var(--border-strong);
      transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    }

    .hf-meta {
      flex: 1;
      min-width: 0;
    }

    .hf-role {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    .hf-task {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text);
      margin-top: 2px;
    }

    .hf-status {
      margin-top: 6px;
      font-size: 10.5px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text-faint);
      display: flex;
      align-items: center;
      gap: 7px;
      min-height: 13px;
    }

    .hf-spin {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      border: 2px solid rgba(155, 79, 232, 0.3);
      border-top-color: var(--purple);
      display: none;
      animation: hf-rot 0.7s linear infinite;
    }

    @keyframes hf-rot {
      to { transform: rotate(360deg); }
    }

    .hf-check {
      display: none;
      color: #2bd97b;
      font-weight: 700;
    }

    /* Connector between nodes */
    .hf-link {
      width: 2px;
      height: 20px;
      margin: 2px 0 2px 31px;
      background: var(--border-strong);
      border-radius: 2px;
      position: relative;
      overflow: hidden;
    }

    .hf-link::after {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--grad);
      transform: scaleY(0);
      transform-origin: top;
      transition: transform 0.45s ease;
    }

    .hf-link.is-lit::after {
      transform: scaleY(1);
    }

    /* Running state */
    .hf-node.is-active {
      border-color: var(--purple);
      background: rgba(155, 79, 232, 0.09);
      box-shadow: 0 0 0 1px rgba(155, 79, 232, 0.28), 0 0 28px -8px rgba(155, 79, 232, 0.6);
      transform: translateX(2px);
    }

    .hf-node.is-active .hf-avatar {
      border-color: var(--purple);
      box-shadow: 0 0 16px -2px rgba(155, 79, 232, 0.75);
      animation: hf-pulse 1.1s ease-in-out infinite;
    }

    @keyframes hf-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.09); }
    }

    .hf-node.is-active .hf-spin { display: inline-block; }

    /* Done state */
    .hf-node.is-done {
      border-color: rgba(43, 217, 123, 0.4);
      background: rgba(43, 217, 123, 0.05);
    }

    .hf-node.is-done .hf-avatar {
      border-color: rgba(43, 217, 123, 0.55);
    }

    .hf-node.is-done .hf-status {
      color: #2bd97b;
    }

    .hf-node.is-done .hf-check { display: inline-block; }

    /* Footer: progress bar + output */
    .hf-footer {
      border-top: 1px solid var(--border);
      padding: 14px 18px 16px;
      background: rgba(2, 3, 6, 0.35);
    }

    .hf-bar {
      height: 4px;
      border-radius: 100px;
      background: rgba(255, 255, 255, 0.06);
      overflow: hidden;
    }

    .hf-bar span {
      display: block;
      height: 100%;
      width: 0;
      border-radius: inherit;
      background: var(--grad);
      box-shadow: 0 0 10px rgba(155, 79, 232, 0.5);
      transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .hf-out {
      margin-top: 12px;
      display: flex;
      align-items: center;
      gap: 9px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      color: var(--text-muted);
      transition: color 0.4s ease;
    }

    .hf-out-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: rgba(155, 79, 232, 0.15);
      color: var(--purple);
      font-size: 11px;
      transition: all 0.4s ease;
    }

    .hf-out.is-ready {
      color: #2bd97b;
    }

    .hf-out.is-ready .hf-out-icon {
      background: rgba(43, 217, 123, 0.15);
      color: #2bd97b;
      box-shadow: 0 0 14px -2px rgba(43, 217, 123, 0.6);
    }

    @media (max-width: 980px) {
      .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .hero-grid .hero-inner {
        max-width: none;
      }

      .hero-flow {
        margin: 0 auto;
        max-width: 460px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .hf-run::before,
      .hf-node.is-active .hf-avatar,
      .hf-spin {
        animation: none;
      }
    }

    /* ============================================================
       LIGHT THEME
       ============================================================ */
    :root[data-theme="light"] {
      --bg: #e9edf8;
      --bg-elev: #f6f8fe;
      --surface: #ffffff;
      --surface-2: #eef2fb;
      --border: rgba(28, 42, 92, 0.10);
      --border-strong: rgba(28, 42, 92, 0.18);
      --text: #16203a;
      --text-muted: #55607d;
      --text-faint: #838da6;
      --bg-gradient: linear-gradient(135deg, #fbfcff 0%, #e3e8f6 48%, #bcc7e6 100%);
    }

    :root[data-theme="light"] body {
      -webkit-font-smoothing: auto;
    }

    /* Header / nav */
    :root[data-theme="light"] header {
      background: rgba(255, 255, 255, 0.74);
      border-bottom: 1px solid var(--border);
    }

    /* Orbit chips */
    :root[data-theme="light"] .node-chip {
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 4px 14px rgba(28, 42, 92, 0.12);
    }

    /* White GitHub glyph → invert to dark so it reads on light chips */
    :root[data-theme="light"] .node-icon img[src*="github"],
    :root[data-theme="light"] .mobile-node-chip img[src*="github"] {
      filter: invert(1);
    }

    /* Tooltips */
    :root[data-theme="light"] .node-tooltip {
      background: rgba(255, 255, 255, 0.97);
      box-shadow: 0 12px 30px rgba(28, 42, 92, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    :root[data-theme="light"] .node-tooltip::after {
      border-color: rgba(255, 255, 255, 0.97) transparent transparent transparent;
    }

    /* Ghost button gets a visible tint on light */
    :root[data-theme="light"] .btn-ghost {
      background: rgba(28, 42, 92, 0.04);
    }

    :root[data-theme="light"] .btn-ghost:hover {
      background: rgba(28, 42, 92, 0.08);
    }

    /* Spotlight "tagline" band → light (inline style overridden) */
    :root[data-theme="light"] #tagline-showcase {
      background: linear-gradient(135deg, #eef2fc 0%, #d9e0f3 100%) !important;
    }

    /* Glass sheen + soft depth on light */
    :root[data-theme="light"] .card {
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 46px -28px rgba(28, 42, 92, 0.28);
    }

    /* App-mockup panels stay dark (re-assert dark tokens on their subtrees) */
    /* Only the slide-out menu keeps a fixed dark palette; the workspace,
       studio canvas and patient monitor all follow the active theme. */
    :root[data-theme="light"] .hf-window,
    :root[data-theme="light"] .sm-hero-panel {
      --bg: #020306;
      --bg-elev: #081021;
      --surface: #0d172e;
      --surface-2: #132244;
      --border: rgba(255, 255, 255, 0.08);
      --border-strong: rgba(255, 255, 255, 0.16);
      --text: #f3f2f9;
      --text-muted: #9691ac;
      --text-faint: #5f5c72;
    }

    /* Theme toggle button */
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .theme-toggle {
      width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: 1px solid var(--border-strong);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      cursor: pointer;
      font-size: 16px;
      line-height: 1;
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .theme-toggle:hover {
      transform: translateY(-1px);
      border-color: var(--purple);
    }

    /* Monochrome theme icons — inherit currentColor, so they read as
       light-on-dark in dark mode and dark-on-light in light mode. */
    .theme-icon {
      width: 18px;
      height: 18px;
      display: block;
      color: var(--text);
    }

    .icon-moon { display: none; }

    :root[data-theme="light"] .icon-sun { display: none; }
    :root[data-theme="light"] .icon-moon { display: block; }

    :root[data-theme="light"] .theme-toggle {
      background: rgba(28, 42, 92, 0.05);
    }

    /* ---------- THEME SWITCH: corner-to-corner reveal ----------
       Kill the default cross-fade; the new theme is instead revealed
       by an expanding circle animated in JS from the toggle button. */
    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation: none;
      mix-blend-mode: normal;
    }

    ::view-transition-old(root) {
      z-index: 1;
    }

    ::view-transition-new(root) {
      z-index: 999;
    }

    /* ============================================================
       THriveX MESH ECOSYSTEM SCENE (ported 1:1 from reference Scene 7)
       ============================================================ */
    .mesh-wrap {
      position: relative;
      width: 100%;
      max-width: 1280px;
      margin: 10px auto 0;
    }

    .mesh-wrap::before { content: ""; display: block; padding-top: 56.25%; }

    .mesh-stage {
      position: absolute;
      top: 0;
      left: 0;
      width: 1280px;
      height: 720px;
      transform-origin: top left;
      font-family: 'Manrope', sans-serif;
      color: var(--text);
    }

    .ms-bg { display: none; }

    .ms-glow {
      position: absolute; inset: 0; pointer-events: none;
      background:
        radial-gradient(620px 420px at 86% -4%, rgba(236, 30, 130, 0.14), transparent 70%),
        radial-gradient(620px 420px at 10% -4%, rgba(75, 111, 255, 0.14), transparent 70%),
        radial-gradient(720px 420px at 50% 104%, rgba(155, 79, 232, 0.12), transparent 70%);
    }

    .ms-top {
      position: absolute; top: 12px; left: 0; right: 0; text-align: center;
      font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
    }

    .ms-grad {
      background-image: linear-gradient(90deg, #4b6fff, #9b4fe8, #ec1e82);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }

    .ms-lines { position: absolute; inset: 0; }

    .ms-hub { position: absolute; left: 640px; top: 368px; width: 0; height: 0; }

    .ms-hub-ring {
      position: absolute; left: 50%; top: 50%; width: 196px; height: 196px; border-radius: 50%;
      transform: translate(-50%, -50%); border: 1.5px solid transparent;
      background-image: linear-gradient(#0000, #0000), linear-gradient(90deg, #4b6fff, #9b4fe8, #ec1e82);
      background-origin: border-box; background-clip: padding-box, border-box; opacity: 0.55;
    }

    .ms-hub-glow {
      position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; border-radius: 50%;
      transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(155, 79, 232, 0.3), transparent 70%);
    }

    .ms-hub-core {
      position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
      width: 172px; height: 172px; border-radius: 50%; background: var(--surface);
      border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
    }

    .ms-hub-core img { width: 150px; }

    .ms-hub-label {
      position: absolute; left: 50%; top: -134px; transform: translateX(-50%);
      font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--text-faint); white-space: nowrap;
    }

    .ms-caption {
      position: absolute; left: 50%; top: 112px; margin-left: -110px; width: 220px; text-align: center;
      font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; z-index: 2;
    }

    .ms-card {
      position: absolute; width: 196px; padding: 10px 10px 12px; border-radius: 12px;
      background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      transform: translate(-50%, -50%) scale(0.9);
    }

    .ms-card-head { display: flex; align-items: center; gap: 6px; }
    .ms-card-dot { width: 7px; height: 7px; border-radius: 50%; }
    .ms-card-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
    .ms-chips { display: flex; gap: 7px; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 176px; }

    .ms-chip {
      position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none; background: #fff;
      display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); overflow: hidden;
    }

    .ms-chip img, .ms-chip svg { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; background: #fff; display: block; }
    .ms-chip-mono { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: -0.02em; }

    .ms-bottom { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; }

    .ms-bottom-inner {
      padding: 8px 20px; border-radius: 999px; background: var(--surface);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border: 1px solid var(--border); color: var(--text); font-size: 12.5px; font-weight: 500;
      max-width: 900px; text-align: center;
    }

    /* ============================================================
       ENTERPRISE-GRADE SCENE (ported from reference Scene 9)
       Theme-aware: transparent stage so the page background shows
       through and follows light / dark mode.
       ============================================================ */
    .eg2-wrap { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; }
    .eg2-wrap::before { content: ""; display: block; padding-top: 56.25%; }

    .eg2-stage {
      position: absolute; top: 0; left: 0; width: 1280px; height: 720px;
      transform-origin: top left; font-family: 'Manrope', sans-serif;
    }

    .eg2-glow { display: none; }

    .eg2-title {
      position: absolute; top: 42px; left: 0; right: 0; text-align: center;
      font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--text);
    }

    .eg2-grad { background-image: linear-gradient(90deg, #4b6fff, #9b4fe8, #ec1e82); -webkit-background-clip: text; background-clip: text; color: transparent; }

    .eg2-lines { position: absolute; inset: 0; }

    .eg2-hub { position: absolute; left: 640px; top: 356px; width: 0; height: 0; }

    .eg2-ring {
      position: absolute; left: 50%; top: 50%; width: 168px; height: 168px; border-radius: 50%;
      transform: translate(-50%, -50%); border: 1.5px solid transparent;
      background-image: linear-gradient(#0000, #0000), linear-gradient(90deg, #4b6fff, #9b4fe8, #ec1e82);
      background-origin: border-box; background-clip: padding-box, border-box; opacity: 0.55;
    }

    .eg2-hglow {
      position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; border-radius: 50%;
      transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(155, 79, 232, 0.28), transparent 70%);
    }

    .eg2-core {
      position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
      width: 144px; height: 144px; border-radius: 50%; background: var(--surface);
      border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
    }

    .eg2-core img { width: 84px; height: auto; }

    .eg2-hlabel {
      position: absolute; left: 50%; top: 96px; transform: translateX(-50%);
      font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--text-faint); white-space: nowrap;
    }

    .eg2-card {
      position: absolute; width: 316px; padding: 14px 18px; border-radius: 14px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
      border: 1px solid rgba(255, 255, 255, 0.16);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
      display: flex; align-items: center; gap: 14px;
      transform: translate(-50%, -50%) scale(0.9); opacity: 0;
    }

    .eg2-ico {
      width: 42px; height: 42px; border-radius: 12px; flex: none;
      background: var(--surface-2); border: 1px solid var(--border-strong);
      display: flex; align-items: center; justify-content: center;
    }

    .eg2-txt { display: flex; flex-direction: column; gap: 3px; }
    .eg2-t { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--text); letter-spacing: -0.01em; }
    .eg2-l { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

    .eg2-bottom { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; }

    .eg2-bottom-inner {
      padding: 9px 22px; border-radius: 999px; background: var(--surface);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border: 1px solid var(--border); color: var(--text); font-size: 12.5px; font-weight: 500;
      max-width: 1000px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    /* light-mode: frosted cards need a light tint (white-alpha glass vanishes on a light page) */
    :root[data-theme="light"] .eg2-card {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
      border-color: var(--border-strong);
      box-shadow: 0 14px 34px -18px rgba(28, 42, 92, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    :root[data-theme="light"] .eg2-bottom-inner { box-shadow: 0 14px 30px -20px rgba(28, 42, 92, 0.4); }

    /* ============================================================
       MODERN AI STACK CONSTELLATION (replaces rotating orbit)
       ============================================================ */
    .stack-map {
      position: relative;
      width: 100%;
      max-width: 1400px;
      height: 820px;
      margin: 30px auto 0;
    }

    .sm-wires {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
      overflow: visible;
    }

    .sm-wire {
      stroke: var(--purple);
      stroke-width: 1.2;
      opacity: 0.30;
      fill: none;
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      transition: stroke-dashoffset 0.7s ease, opacity 0.7s ease;
    }

    .sm-wire.in {
      stroke-dashoffset: 0;
    }

    /* Center hub */
    .sm-hub {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 188px;
      height: 188px;
      transform: translate(-50%, -50%) scale(0.82);
      opacity: 0;
      z-index: 5;
      transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25);
    }

    .sm-hub.in {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .sm-hub::before {
      content: "";
      position: absolute;
      inset: -18px;
      border-radius: 50%;
      background: var(--grad);
      opacity: 0.2;
      filter: blur(24px);
      z-index: -1;
      animation: sm-pulse 4s ease-in-out infinite alternate;
    }

    @keyframes sm-pulse {
      from { transform: scale(0.92); opacity: 0.14; }
      to { transform: scale(1.12); opacity: 0.26; }
    }

    .sm-hub-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      padding: 2px;
      background: var(--grad);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      animation: sm-breathe 3.6s ease-in-out infinite;
    }

    /* Outer ring expands / compresses so the hub always feels alive */
    @keyframes sm-breathe {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.07); }
    }

    /* Sonar waves rippling outward from the hub */
    .sm-wave {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 1.5px solid rgba(155, 79, 232, 0.55);
      opacity: 0;
      pointer-events: none;
      animation: sm-wave 3.6s ease-out infinite;
    }

    .sm-wave.w2 { animation-delay: 1.2s; }
    .sm-wave.w3 { animation-delay: 2.4s; }

    @keyframes sm-wave {
      0% { transform: scale(1); opacity: 0.65; }
      70% { opacity: 0.14; }
      100% { transform: scale(1.6); opacity: 0; }
    }

    .sm-hub-ring::after {
      content: "";
      position: absolute;
      inset: -2px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, transparent 0 55%, rgba(236, 30, 130, 0.9) 74%, transparent 90%);
      animation: sm-rot 5.5s linear infinite;
      opacity: 0.6;
    }

    @keyframes sm-rot {
      to { transform: rotate(360deg); }
    }

    .sm-hub-core {
      position: absolute;
      inset: 12px;
      border-radius: 50%;
      background: radial-gradient(circle at 50% 38%, var(--surface-2), var(--surface));
      border: 1px solid var(--border-strong);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
    }

    .sm-hub-core img {
      width: 80%;
      height: auto;
    }

    .sm-caption {
      position: absolute;
      left: 50%;
      top: calc(50% + 116px);
      transform: translateX(-50%);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-faint);
      white-space: nowrap;
      z-index: 5;
      opacity: 0;
      transition: opacity 0.6s ease;
    }

    .sm-caption.in {
      opacity: 1;
    }

    /* Category cards */
    .sm-card {
      position: absolute;
      left: var(--x);
      top: var(--y);
      width: 180px;
      transform: translate(-50%, -50%) scale(0.84);
      opacity: 0;
      z-index: 2;
      background: var(--surface);
      border: 1px solid var(--border-strong);
      border-radius: 16px;
      padding: 11px 12px 13px;
      box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
      transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    }

    .sm-card.in {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .sm-card-head {
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 10px;
      padding-left: 2px;
    }

    .sm-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--c, var(--purple));
      box-shadow: 0 0 8px var(--c, var(--purple));
      flex-shrink: 0;
    }

    .sm-icons {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .sm-icon {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      opacity: 0;
      transform: scale(0.3);
      transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1.1, 0.3, 1.35);
    }

    .sm-icon img {
      width: 21px;
      height: 21px;
      min-width: 21px;
      max-width: none;
      object-fit: contain;
      display: block;
    }

    .sm-card.in .sm-icon { opacity: 1; transform: scale(1); }
    .sm-card.in .sm-icon:nth-child(1) { transition-delay: 0.04s; }
    .sm-card.in .sm-icon:nth-child(2) { transition-delay: 0.09s; }
    .sm-card.in .sm-icon:nth-child(3) { transition-delay: 0.14s; }
    .sm-card.in .sm-icon:nth-child(4) { transition-delay: 0.19s; }
    .sm-card.in .sm-icon:nth-child(5) { transition-delay: 0.24s; }
    .sm-card.in .sm-icon:nth-child(6) { transition-delay: 0.29s; }
    .sm-card.in .sm-icon:nth-child(7) { transition-delay: 0.34s; }
    .sm-card.in .sm-icon:nth-child(8) { transition-delay: 0.39s; }

    @media (max-width: 900px) {
      .stack-map {
        height: auto;
        max-width: 600px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }

      .sm-wires { display: none; }

      .sm-hub {
        position: static;
        grid-column: 1 / -1;
        width: 148px;
        height: 148px;
        margin: 0 auto 6px;
        transform: scale(0.9);
      }

      .sm-hub.in { transform: scale(1); }

      .sm-caption {
        position: static;
        grid-column: 1 / -1;
        transform: none;
        text-align: center;
        margin-bottom: 4px;
      }

      .sm-card {
        position: static;
        width: auto;
        transform: translateY(16px);
      }

      .sm-card.in { transform: none; }
    }

    @media (max-width: 460px) {
      .stack-map { grid-template-columns: 1fr; }
    }

    @media (prefers-reduced-motion: reduce) {
      .sm-hub::before,
      .sm-hub-ring,
      .sm-wave,
      .sm-hub-ring::after { animation: none; }

      .sm-wave { opacity: 0; }
    }

    /* ============================================================
       THriveX CLINICAL — LIVE PATIENT MONITOR
       ============================================================ */
    .clinical-logo {
      width: 300px;
      max-width: 80%;
      height: auto;
      display: block;
      margin: 0 auto 24px;
    }

    .clinical-monitor {
      max-width: 920px;
      margin: 46px auto 0;
    }

    .clinical-disclaimer {
      max-width: 920px;
      margin: 22px auto 0;
      padding: 16px 20px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.02);
      font-size: 12.5px;
      line-height: 1.6;
      color: var(--text-faint);
    }

    .clinical-disclaimer strong { color: var(--text-muted); }

    :root[data-theme="light"] .clinical-disclaimer { background: rgba(28, 42, 92, 0.03); }

    .pm-window {
      position: relative;
      background: linear-gradient(180deg, rgba(13, 23, 46, 0.94), rgba(8, 16, 33, 0.96));
      border: 1px solid var(--border-strong);
      border-radius: 18px;
      box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      overflow: hidden;
      padding-bottom: 30px;
    }

    .pm-titlebar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      border-bottom: 1px solid var(--border);
      background: rgba(2, 3, 6, 0.35);
    }

    .pm-dots {
      display: flex;
      gap: 7px;
    }

    .pm-dots i {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      display: block;
      opacity: 0.85;
    }

    .pm-dots i:nth-child(1) { background: #ec1e82; }
    .pm-dots i:nth-child(2) { background: #f5a623; }
    .pm-dots i:nth-child(3) { background: #2bd97b; }

    .pm-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12.5px;
      color: var(--text-faint);
      letter-spacing: 0.04em;
    }

    .pm-screen {
      position: relative;
      padding: 22px 26px 6px;
    }

    .pm-ecg {
      position: relative;
      width: 100%;
      height: 150px;
      overflow: hidden;
    }

    .pm-svg {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }

    .pm-line {
      fill: none;
      stroke: #fff;
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      vector-effect: non-scaling-stroke;
    }

    .pm-fill {
      filter: drop-shadow(0 0 5px rgba(155, 79, 232, 0.55));
    }

    .pm-blip {
      position: absolute;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: #ec1e82;
      box-shadow: 0 0 12px 2px rgba(236, 30, 130, 0.7);
      right: 15%;
      bottom: 30px;
      animation: pm-blip 0.9s ease-in-out infinite;
    }

    @keyframes pm-blip {
      0%, 100% { transform: scale(0.7); opacity: 0.5; }
      45% { transform: scale(1.3); opacity: 1; }
    }

    .pm-vitals {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      margin-top: 18px;
    }

    .pm-pill {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 9px 16px;
      border-radius: 100px;
      background: var(--surface-2);
      border: 1px solid var(--border-strong);
      font-family: 'JetBrains Mono', monospace;
      font-size: 13.5px;
      color: var(--text);
      font-weight: 500;
      white-space: nowrap;
    }

    .pm-pd {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .pm-pill.beat {
      animation: pm-beat 0.9s ease-in-out infinite;
    }

    @keyframes pm-beat {
      0%, 100% { transform: scale(1); }
      45% { transform: scale(1.06); }
    }

    .pm-flow {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: center;
      margin-top: 13px;
    }

    .pm-arrow {
      color: var(--text-faint);
      font-size: 16px;
    }

    .pm-delivered {
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .pm-delivered.pending {
      opacity: 0.3;
      transform: scale(0.97);
    }

    @media (prefers-reduced-motion: reduce) {
      .pm-blip,
      .pm-pill.beat { animation: none; }
    }

    /* ============================================================
       HERO — CLINICAL MULTI-SPECIALIST FLOW (builds block-by-block)
       ============================================================ */
    .hero-graph-col { display: flex; flex-direction: column; gap: 16px; width: 100%; }

    .ag-prompt {
      align-self: stretch; display: flex; align-items: center;
      background: var(--surface); border: 1px solid var(--border-strong);
      border-radius: 16px; padding: 12px 20px; min-height: 46px;
      font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
      line-height: 1.55; color: var(--text);
      box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.6);
    }
    .ag-prompt-text { white-space: pre-wrap; }
    .ag-caret {
      display: inline-block; width: 2px; height: 1.05em; flex: none;
      margin-left: 3px; vertical-align: -0.15em; background: var(--purple);
      animation: ag-caret-blink 1s steps(1) infinite;
    }
    @keyframes ag-caret-blink { 50% { opacity: 0; } }
    :root[data-theme="light"] .ag-prompt { box-shadow: 0 12px 30px -22px rgba(28, 42, 92, 0.4); }
    @media (prefers-reduced-motion: reduce) { .ag-caret { animation: none; } }

    .hero-graph-scaler { position: relative; width: 100%; }
    .hero-graph-scaler::before { content: ""; display: block; padding-top: 38.89%; }

    .agent-graph {
      position: absolute; top: 0; left: 0;
      width: 1440px; height: 560px; transform-origin: top left;
    }

    /* ---- connectors ---- */
    .ag-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
    .cf-wire {
      fill: none; stroke: url(#cfGrad); stroke-width: 1.8;
      stroke-dasharray: 5 6; stroke-linecap: round;
      opacity: 0; transition: opacity 0.5s ease;
    }
    .cf-wire.in { opacity: 0.9; animation: cf-march 0.9s linear infinite; }
    .cf-wire.solid { stroke-dasharray: none; stroke-width: 2.4; }
    .cf-wire.solid.in { opacity: 1; animation: none; }
    @keyframes cf-march { to { stroke-dashoffset: -22; } }
    @media (prefers-reduced-motion: reduce) { .cf-wire.in { animation: none; } }

    /* ---- cards ---- */
    .cf-card {
      position: absolute; z-index: 2; box-sizing: border-box;
      background: var(--surface); border: 1.5px solid var(--border-strong);
      border-radius: 16px; padding: 16px 18px;
      box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
      opacity: 0; transform: translateY(12px) scale(0.96);
      transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25), border-color 0.4s ease, box-shadow 0.4s ease;
    }
    .cf-card.in { opacity: 1; transform: none; }

    .cf-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
    .cf-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.2; }
    .cf-sub { font-size: 12.5px; color: var(--text-faint); line-height: 1.5; margin-top: 8px; }

    .cf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .cf-pill { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; }
    .cf-pill.danger { color: #ff5c7a; background: rgba(255, 92, 122, 0.14); }
    .cf-pill.ok { color: #16b866; background: rgba(43, 217, 123, 0.16); }
    .cf-pill.mod { color: var(--text-faint); background: rgba(140, 140, 150, 0.16); }

    .cf-chan { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
    .cf-chan-ico { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
    .cf-chan-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; color: var(--text-faint); margin-left: 4px; }

    .cf-spec { padding: 14px 16px; }
    .cf-spec-head { display: flex; align-items: center; gap: 10px; }
    .cf-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
    .cf-spec .cf-title { font-size: 15.5px; }
    .cf-risk { margin-top: 12px; border-radius: 8px; padding: 6px 10px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; }
    .cf-risk.ok { color: #16b866; background: rgba(43, 217, 123, 0.14); }
    .cf-risk.mod { color: var(--text-faint); background: rgba(140, 140, 150, 0.14); }

    .cf-reviewer .cf-ico { margin-bottom: 10px; }

    .cf-final .cf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .cf-final .cf-title { font-size: 15.5px; }
    .cf-bullets { display: flex; flex-direction: column; gap: 9px; }
    .cf-bullet { position: relative; padding-left: 14px; font-size: 12px; color: var(--text-faint); line-height: 1.45; }
    .cf-bullet::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
    .cf-final .cf-risk { display: inline-block; margin-top: 14px; }

    .cf-caption {
      align-self: center; text-align: center; margin-top: 4px;
      font-family: 'Space Grotesk', sans-serif; font-weight: 700;
      font-size: 20px; line-height: 1.3; color: var(--text);
      opacity: 0; transform: translateY(8px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .cf-caption.in { opacity: 1; transform: none; }
    .cf-caption .grad {
      background: var(--grad); -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent; color: transparent;
    }

    @media (prefers-reduced-motion: reduce) {
      .cf-card { transition: opacity 0.01s; }
      .cf-caption { transition: opacity 0.01s; }
    }


    /* ============================================================
       ENTERPRISE-GRADE — hub + 6 trust nodes, revealed one by one
       ============================================================ */
    .eg-map {
      position: relative;
      width: 100%;
      max-width: 1400px;
      height: 640px;
      margin: 20px auto 0;
    }

    .eg-wires {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
      overflow: visible;
    }

    .eg-wire {
      fill: none;
      stroke: var(--purple);
      stroke-width: 1.4;
      opacity: 0.45;
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      transition: stroke-dashoffset 0.55s ease;
    }

    .eg-wire.in { stroke-dashoffset: 0; }

    /* Centre hub */
    .eg-hub {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 190px;
      height: 190px;
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0;
      z-index: 4;
      transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25);
    }

    .eg-hub.in { opacity: 1; transform: translate(-50%, -50%) scale(1); }

    .eg-hub::before {
      content: "";
      position: absolute;
      inset: -14px;
      border-radius: 50%;
      background: var(--grad);
      opacity: 0.18;
      filter: blur(22px);
      z-index: -1;
      animation: eg-glow 4s ease-in-out infinite alternate;
    }

    @keyframes eg-glow {
      from { transform: scale(0.94); opacity: 0.13; }
      to { transform: scale(1.08); opacity: 0.24; }
    }

    .eg-hub-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      padding: 4px;
      background: var(--grad);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }

    .eg-hub-core {
      position: absolute;
      inset: 4px;
      border-radius: 50%;
      background: radial-gradient(circle at 50% 35%, var(--surface-2), var(--surface));
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text);
    }

    .eg-hub-core svg { width: 62px; height: 62px; }

    .eg-caption {
      position: absolute;
      left: 50%;
      top: calc(50% + 118px);
      transform: translateX(-50%);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text-faint);
      white-space: nowrap;
      z-index: 4;
      opacity: 0;
      transition: opacity 0.6s ease;
    }

    .eg-caption.in { opacity: 1; }

    /* Trust nodes */
    .eg-node {
      position: absolute;
      left: var(--x);
      top: var(--y);
      width: 340px;
      transform: translate(-50%, -50%) scale(0.9);
      opacity: 0;
      z-index: 3;
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 18px 20px;
      border-radius: 14px;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
      transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2),
        border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .eg-node.in { opacity: 1; transform: translate(-50%, -50%) scale(1); }

    .eg-node:hover {
      border-color: var(--border-strong);
      box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.9);
    }

    .eg-ico {
      width: 44px;
      height: 44px;
      flex-shrink: 0;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      color: var(--c, var(--purple));
    }

    :root[data-theme="light"] .eg-ico { background: rgba(28, 42, 92, 0.05); }

    .eg-ico svg { width: 22px; height: 22px; }

    .eg-node h3 {
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 5px;
      color: var(--text);
    }

    .eg-node p {
      font-size: 13.5px;
      line-height: 1.55;
      color: var(--text-muted);
      margin: 0;
    }

    @media (max-width: 1040px) {
      .eg-map { height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 480px; }
      .eg-wires { display: none; }
      .eg-hub { position: static; transform: scale(0.9); margin-bottom: 4px; }
      .eg-hub.in { transform: scale(1); }
      .eg-caption { position: static; transform: none; margin-bottom: 10px; }
      .eg-node { position: static; width: 100%; transform: translateY(14px); }
      .eg-node.in { transform: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .eg-hub::before { animation: none; }
    }

    /* ============================================================
       CARD SWAP — stacked 3D cards (React Bits CardSwap, ported to
       vanilla JS + GSAP). Anchored bottom-LEFT of its section.
       ============================================================ */
    .cs-layout {
      position: relative;
      min-height: 420px;
    }

    .cs-copy {
      max-width: 470px;
      position: absolute;
      top: calc(50% - 92px);
      left: 0;
      z-index: 5;
    }

    .cs-stage {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .card-swap-container {
      position: absolute;
      top: 50%;
      right: 22%;
      transform: translate(0, calc(-50% + 40px));
      transform-origin: center;
      perspective: 900px;
      overflow: visible;
    }

    .cs-card {
      position: absolute;
      top: 50%;
      left: 50%;
      border-radius: 16px;
      border: 1px solid var(--border-strong);
      background: linear-gradient(165deg, var(--surface-2), var(--surface));
      box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
      padding: 26px 28px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transform-style: preserve-3d;
      will-change: transform;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    .cs-card-top {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .cs-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--grad);
      box-shadow: 0 0 10px rgba(155, 79, 232, 0.8);
      flex-shrink: 0;
    }

    .cs-icon {
      display: inline-flex;
      flex-shrink: 0;
      filter: drop-shadow(0 0 6px rgba(155, 79, 232, 0.35));
    }

    .cs-kicker {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    .cs-card h3 {
      font-size: 22px;
      font-weight: 600;
      line-height: 1.2;
      margin-bottom: 10px;
      color: var(--text);
    }

    .cs-card p {
      font-size: 14px;
      line-height: 1.6;
      color: var(--text-muted);
      margin: 0;
    }

    .cs-card-rule {
      height: 2px;
      width: 46px;
      border-radius: 2px;
      background: var(--grad);
      margin-bottom: 14px;
    }

    @media (max-width: 980px) {
      .cs-layout {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
      }

      .cs-copy {
        max-width: none;
        position: static;
        top: auto;
        left: auto;
        transform: none;
      }

      .cs-stage {
        position: relative;
        height: 380px;
      }

      .card-swap-container {
        left: 50%;
        right: auto;
        transform: translate(-50%, calc(-50% + 40px)) scale(0.8);
      }
    }

    @media (max-width: 560px) {
      .cs-stage {
        height: 320px;
      }

      .card-swap-container {
        transform: translate(-50%, calc(-50% + 40px)) scale(0.6);
      }
    }

    /* ============================================================
       GLOBAL SCALE — render the site at 80% so the default 100%
       view matches how it looked at 80% browser zoom.
       Applied to the content wrappers only; the fixed full-screen
       dot-field background and scroll bar stay unscaled.
       ============================================================ */
    header,
    main,
    footer {
      zoom: 1;
    }

    /* Compensate the 0.8 zoom so the hero still fills the real viewport */
    .hero {
      min-height: auto;
    }

/* ==========================================================================
   Shared components for atomic content pages (platform/solution/hub pages).
   Reuses the design tokens above - added once here, not duplicated per page.
   ========================================================================== */

.page-head {
  padding: 150px 0 0;
}

.breadcrumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color .2s ease;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs .sep {
  opacity: .5;
}

.direct-answer {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
  margin-top: 22px;
}

.key-facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.key-facts th,
.key-facts td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.5;
}

.key-facts tr:last-child th,
.key-facts tr:last-child td {
  border-bottom: none;
}

.key-facts th {
  width: 220px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  vertical-align: top;
}

.key-facts td {
  color: var(--text);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-faint);
  font-size: 20px;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--text-muted);
  transition: border-color .25s ease, color .25s ease;
}

.related-links a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.hub-links {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- LEGAL / POLICY PAGES ---------- */
.legal-layout {
  display: flex;
  gap: 64px;
  margin-top: 56px;
  align-items: flex-start;
}

.legal-toc {
  position: sticky;
  top: 110px;
  flex: 0 0 230px;
}

.legal-toc h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.legal-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--border);
  transition: color .2s ease, border-color .2s ease;
}

.legal-toc a:hover {
  color: var(--text);
  border-left-color: var(--purple);
}

.legal-content {
  flex: 1;
  min-width: 0;
  max-width: 760px;
}

.legal-content section {
  margin-bottom: 44px;
  scroll-margin-top: 110px;
}

.legal-content h2 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 16px;
}

.legal-content h2 .num {
  color: var(--text-faint);
  margin-right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 10px;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a.inline-link {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(155, 79, 232, .4);
}

.legal-content a.inline-link:hover {
  text-decoration-color: var(--purple);
}

.legal-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.legal-note.warn {
  border-left-color: var(--pink);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 20px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--surface);
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 6px 0 20px;
}

.vertical-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.vertical-card h3 {
  margin-top: 0;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.vertical-card p {
  font-size: 13.5px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .legal-toc { display: none; }
  .legal-layout { display: block; }
  .legal-table { display: block; overflow-x: auto; }
}

@media (max-width: 700px) {
  .vertical-grid { grid-template-columns: 1fr; }
}

.hub-links a.card {
  display: block;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s ease;
}

.hub-links a.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.hub-links .card h3 {
  margin-top: 14px;
  font-size: 21px;
}

.hub-links .card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .key-facts th {
    width: 150px;
  }

  .hub-links {
    grid-template-columns: 1fr;
  }
}
