/* ============================================================
   Xvising - AI Agents Page
   WordPress theme stylesheet for page-ai-agent-apps.php
   ============================================================ */

    :root {
      --agent-gold: #ffd700;
      --agent-gold-soft: #fff2a8;
      --agent-cyan: #63f5ff;
      --agent-cyan-2: #8effff;
      --agent-red: #ff365f;
      --agent-bg: #05060a;
      --agent-panel: rgba(10, 14, 24, 0.72);
      --agent-panel-2: rgba(12, 18, 30, 0.88);
      --agent-border: rgba(255, 215, 0, 0.24);
      --agent-border-cyan: rgba(99, 245, 255, 0.22);
      --agent-text: #eef3ff;
      --agent-muted: #a8b0c8;
      --agent-line: rgba(255, 255, 255, 0.08);
      --agent-shadow: 0 34px 110px rgba(0, 0, 0, 0.68);
      --agent-gold-grad: linear-gradient(135deg, #d4af37 0%, #ffd700 38%, #fff2a8 72%, #ffffff 100%);
      --agent-cyan-grad: linear-gradient(135deg, #63f5ff 0%, #ffffff 48%, #ffd700 100%);
      --agent-radius-xl: 34px;
      --agent-radius-lg: 24px;
      --agent-radius-md: 18px;
      --mx: 50%;
      --my: 50%;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      background-color: var(--agent-bg);
    }

    body.xvising-ai-agent-apps-shell .xv-global-shell-top {
      position: relative;
      z-index: 3200;
      min-height: 0;
    }

    body.xvising-ai-agent-apps-shell .xv-global-shell-top .hero {
      display: none !important;
    }

    body.xvising-ai-agent-apps-shell #site-header.site-header {
      position: absolute !important;
      top: 0;
      left: 0;
      right: 0;
      z-index: 3300;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      background: transparent;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    body.xvising-ai-agent-apps-shell #site-header .navigation-menu {
      display: block !important;
    }

    body.admin-bar.xvising-ai-agent-apps-shell #site-header.site-header {
      top: 32px;
    }

    @media (max-width: 782px) {
      body.admin-bar.xvising-ai-agent-apps-shell #site-header.site-header {
        top: 46px;
      }
    }

    .agent-page {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      z-index: 1;
      color: var(--agent-text);
      margin-top: 0;
    }

    .agent-page::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -3;
      pointer-events: none;
      background:
        radial-gradient(800px 480px at 15% 18%, rgba(99, 245, 255, 0.10), transparent 62%),
        radial-gradient(900px 620px at 86% 12%, rgba(255, 215, 0, 0.11), transparent 60%),
        radial-gradient(900px 660px at 50% 104%, rgba(255, 54, 95, 0.08), transparent 60%),
        linear-gradient(180deg, #05060a 0%, #080a12 48%, #05060a 100%);
    }

    .agent-page::after {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      opacity: 0.35;
      background:
        linear-gradient(rgba(99, 245, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.035) 1px, transparent 1px);
      background-size: 72px 72px;
      -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 74%);
      mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 74%);
    }

    .agent-container {
      width: min(1180px, calc(100% - 36px));
      margin-inline: auto;
    }

    .agent-section {
      position: relative;
      padding: 116px 0;
    }

    .agent-section-title {
      margin: 0;
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: clamp(28px, 4.4vw, 58px);
      line-height: 1.02;
      letter-spacing: -0.03em;
      color: transparent;
      background: var(--agent-gold-grad);
      -webkit-background-clip: text;
      background-clip: text;
      filter: drop-shadow(0 0 26px rgba(255, 215, 0, 0.12));
    }

    .agent-section-copy {
      max-width: 720px;
      margin: 16px 0 0;
      color: var(--agent-muted);
      font-size: clamp(15px, 1.5vw, 18px);
      line-height: 1.8;
    }

    .agent-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 18px;
      color: var(--agent-cyan);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.28em;
      text-transform: uppercase;
    }

    .agent-eyebrow::before,
    .agent-eyebrow::after {
      content: "";
      width: 34px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--agent-cyan));
      box-shadow: 0 0 14px rgba(99, 245, 255, 0.6);
    }

    .agent-eyebrow::after {
      background: linear-gradient(90deg, var(--agent-gold), transparent);
      box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
    }

    .agent-reveal {
      opacity: 0;
      transform: translate3d(0, 32px, 0) scale(0.985);
      filter: blur(10px);
      transition:
        opacity 0.85s cubic-bezier(.16,.84,.2,1),
        transform 0.85s cubic-bezier(.16,.84,.2,1),
        filter 0.85s ease;
    }

    .agent-reveal.is-visible {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }

    /* ================= Hero ================= */

    .agent-hero {
      position: relative;
      min-height: 100vh;
      padding: 176px 0 92px;
      display: grid;
      place-items: center;
    }

    body.xvising-ai-agent-apps-shell .agent-hero {
      min-height: calc(100vh - var(--header-h, 64px));
    }

    .agent-hero-orbits {
      position: absolute;
      inset: -16% -14% auto;
      height: 108vh;
      pointer-events: none;
      z-index: -1;
      opacity: 0.8;
    }

    .agent-orbit {
      position: absolute;
      left: 50%;
      top: 42%;
      width: var(--size);
      height: var(--size);
      border: 1px dashed rgba(255, 215, 0, 0.18);
      border-radius: 50%;
      transform: translate(-50%, -50%) rotate(var(--rot));
      animation: agentOrbitSpin var(--speed) linear infinite;
      box-shadow: inset 0 0 42px rgba(99, 245, 255, 0.035);
    }

    .agent-orbit::before {
      content: "";
      position: absolute;
      left: 50%;
      top: -4px;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--agent-cyan);
      box-shadow:
        0 0 10px rgba(99, 245, 255, 1),
        0 0 28px rgba(99, 245, 255, 0.8);
    }

    .agent-orbit.o1 { --size: 62vmin; --rot: 0deg; --speed: 26s; }
    .agent-orbit.o2 { --size: 92vmin; --rot: 18deg; --speed: 42s; opacity: 0.65; }
    .agent-orbit.o3 { --size: 126vmin; --rot: -12deg; --speed: 66s; opacity: 0.42; }

    @keyframes agentOrbitSpin {
      to { transform: translate(-50%, -50%) rotate(calc(var(--rot) + 360deg)); }
    }

    .agent-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
      gap: 46px;
      align-items: center;
    }

    .agent-hero-copy {
      position: relative;
      z-index: 2;
    }

    .agent-kicker {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      margin-bottom: 24px;
      border: 1px solid rgba(99, 245, 255, 0.22);
      border-radius: 999px;
      background:
        linear-gradient(180deg, rgba(99, 245, 255, 0.11), rgba(255, 215, 0, 0.04)),
        rgba(6, 10, 18, 0.64);
      color: #dffcff;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      box-shadow: 0 0 30px rgba(99, 245, 255, 0.08);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
    }

    .agent-kicker-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: var(--agent-cyan);
      box-shadow:
        0 0 0 6px rgba(99, 245, 255, 0.10),
        0 0 18px rgba(99, 245, 255, 0.92);
      animation: agentPulse 1.75s ease-in-out infinite;
    }

    @keyframes agentPulse {
      0%, 100% { transform: scale(0.86); opacity: 0.74; }
      50% { transform: scale(1.08); opacity: 1; }
    }

    .agent-hero h1 {
      margin: 0;
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: clamp(40px, 7vw, 92px);
      line-height: 0.94;
      letter-spacing: -0.055em;
      color: #fff;
    }

    .agent-gradient-text {
      display: inline-block;
      color: transparent;
      background:
        linear-gradient(120deg, #ffffff 0%, #fff2a8 18%, #ffd700 40%, #63f5ff 76%, #ffffff 100%);
      -webkit-background-clip: text;
      background-clip: text;
      filter:
        drop-shadow(0 0 18px rgba(255, 215, 0, 0.14))
        drop-shadow(0 0 20px rgba(99, 245, 255, 0.10));
    }

    .agent-hero-lead {
      max-width: 710px;
      margin: 26px 0 0;
      color: #cfd6eb;
      font-size: clamp(17px, 1.75vw, 22px);
      line-height: 1.72;
    }

    .agent-hero-lead strong {
      color: #fff5b8;
      font-weight: 800;
    }

    .agent-hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 34px;
    }

    .agent-action {
      --btn-edge: rgba(255, 215, 0, 0.42);
      position: relative;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 54px;
      padding: 0 22px;
      border: 1px solid var(--btn-edge);
      border-radius: 16px;
      color: #1a1200;
      background: var(--agent-gold-grad);
      text-decoration: none;
      font-weight: 900;
      letter-spacing: 0.02em;
      box-shadow:
        0 18px 54px rgba(255, 215, 0, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
      transform: translateZ(0);
      transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
      isolation: isolate;
      cursor: pointer;
    }

    .agent-action.secondary {
      color: var(--agent-text);
      background:
        radial-gradient(240px 90px at 50% 0%, rgba(99, 245, 255, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
      border-color: rgba(99, 245, 255, 0.25);
      box-shadow:
        0 18px 54px rgba(0, 0, 0, 0.44),
        0 0 30px rgba(99, 245, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .agent-action::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.58) 48%, transparent 56%);
      transform: translateX(-120%);
      transition: transform 0.75s cubic-bezier(.16,.84,.2,1);
    }

    .agent-action:hover {
      transform: translateY(-3px);
      filter: saturate(1.12) contrast(1.04);
      box-shadow:
        0 26px 76px rgba(255, 215, 0, 0.23),
        0 0 32px rgba(99, 245, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
    }

    .agent-action.secondary:hover {
      box-shadow:
        0 26px 76px rgba(0, 0, 0, 0.58),
        0 0 42px rgba(99, 245, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .agent-action:hover::before {
      transform: translateX(120%);
    }

    .agent-action:active {
      transform: translateY(0) scale(0.985);
    }

    .agent-action .agent-ripple {
      position: absolute;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      pointer-events: none;
      background: radial-gradient(circle, rgba(255,255,255,.72), transparent 70%);
      transform: translate(-50%, -50%) scale(0);
      animation: agentRipple 0.68s ease-out forwards;
      mix-blend-mode: screen;
    }

    @keyframes agentRipple {
      to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(18);
      }
    }

    .agent-hero-proof {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 32px;
      max-width: 680px;
    }

    .agent-proof-card {
      position: relative;
      overflow: hidden;
      min-height: 98px;
      padding: 17px 16px;
      border: 1px solid rgba(255, 215, 0, 0.18);
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022)),
        rgba(5, 8, 14, 0.68);
      box-shadow: 0 18px 48px rgba(0,0,0,.32);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
    }

    .agent-proof-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(240px 90px at var(--mx) var(--my), rgba(99, 245, 255, 0.12), transparent 66%);
      opacity: 0;
      transition: opacity .25s ease;
    }

    .agent-proof-card:hover::after {
      opacity: 1;
    }

    .agent-proof-card strong {
      position: relative;
      z-index: 1;
      display: block;
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: clamp(20px, 2.6vw, 30px);
      color: transparent;
      background: var(--agent-cyan-grad);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .agent-proof-card span {
      position: relative;
      z-index: 1;
      display: block;
      margin-top: 6px;
      color: var(--agent-muted);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.45;
    }

    /* ================= Visual Terminal ================= */

    .agent-visual {
      position: relative;
      min-height: 650px;
      perspective: 1200px;
    }

    .agent-visual-shell {
      position: sticky;
      top: 96px;
      transform-style: preserve-3d;
    }

    .agent-command-center {
      position: relative;
      min-height: 590px;
      border-radius: 34px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        radial-gradient(520px 420px at 50% 20%, rgba(99,245,255,.12), transparent 68%),
        radial-gradient(400px 360px at 76% 72%, rgba(255,215,0,.10), transparent 62%),
        rgba(5, 8, 16, 0.78);
      border: 1px solid rgba(255, 215, 0, 0.19);
      box-shadow:
        var(--agent-shadow),
        inset 0 1px 0 rgba(255,255,255,.12);
      overflow: hidden;
      transform: rotateX(2deg) rotateY(-5deg);
      transition: transform .22s ease, box-shadow .22s ease;
    }

    .agent-command-center:hover {
      box-shadow:
        0 42px 130px rgba(0, 0, 0, 0.72),
        0 0 60px rgba(99,245,255,.10),
        inset 0 1px 0 rgba(255,255,255,.16);
    }

    .agent-command-center::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(99,245,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,215,0,.04) 1px, transparent 1px);
      background-size: 26px 26px;
      -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
      mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
      opacity: 0.85;
    }

    .agent-command-center::after {
      content: "";
      position: absolute;
      inset: -40%;
      background:
        conic-gradient(from 0deg, transparent 0deg, rgba(99,245,255,.12) 72deg, transparent 116deg, rgba(255,215,0,.10) 220deg, transparent 300deg);
      animation: agentConicSweep 8.5s linear infinite;
      opacity: 0.52;
      mix-blend-mode: screen;
    }

    @keyframes agentConicSweep {
      to { transform: rotate(360deg); }
    }

    .agent-visual-topbar {
      position: relative;
      z-index: 2;
      height: 58px;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255,255,255,.09);
      background: rgba(4, 7, 13, 0.55);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
    }

    .agent-window-dots {
      display: inline-flex;
      gap: 8px;
    }

    .agent-window-dots span {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: rgba(255,255,255,.28);
      box-shadow: 0 0 12px rgba(255,255,255,.12);
    }

    .agent-window-dots span:nth-child(1) { background: #ff365f; }
    .agent-window-dots span:nth-child(2) { background: #ffd700; }
    .agent-window-dots span:nth-child(3) { background: #63f5ff; }

    .agent-live-tag {
      color: var(--agent-cyan);
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: 11px;
      letter-spacing: .22em;
      text-transform: uppercase;
      text-shadow: 0 0 14px rgba(99,245,255,.6);
    }

    .agent-visual-grid {
      position: relative;
      z-index: 2;
      min-height: 532px;
      padding: 28px;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 22px;
    }

    .agent-brain-core {
      position: relative;
      width: min(290px, 66vw);
      height: min(290px, 66vw);
      margin: 6px auto 0;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.20) 0 2%, transparent 14%),
        radial-gradient(circle at 50% 50%, rgba(99,245,255,.22), rgba(255,215,0,.06) 44%, transparent 68%);
      box-shadow:
        0 0 0 1px rgba(99,245,255,.16),
        0 0 80px rgba(99,245,255,.16),
        inset 0 0 34px rgba(255,255,255,.05);
    }

    .agent-brain-core span {
      position: absolute;
      inset: var(--inset);
      border-radius: 50%;
      border: 1px solid var(--stroke);
      transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
      animation: agentGyro var(--dur) linear infinite;
      box-shadow: 0 0 24px var(--glow);
    }

    .agent-brain-core span:nth-child(1) {
      --inset: 14px;
      --stroke: rgba(255,215,0,.56);
      --glow: rgba(255,215,0,.16);
      --rx: 72deg;
      --ry: 16deg;
      --rz: 0deg;
      --dur: 8s;
    }

    .agent-brain-core span:nth-child(2) {
      --inset: 36px;
      --stroke: rgba(99,245,255,.62);
      --glow: rgba(99,245,255,.18);
      --rx: 18deg;
      --ry: 74deg;
      --rz: 38deg;
      --dur: 11s;
    }

    .agent-brain-core span:nth-child(3) {
      --inset: 58px;
      --stroke: rgba(255,255,255,.22);
      --glow: rgba(255,255,255,.08);
      --rx: 78deg;
      --ry: -32deg;
      --rz: 92deg;
      --dur: 14s;
    }

    @keyframes agentGyro {
      to { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(calc(var(--rz) + 360deg)); }
    }

    .agent-brain-dot {
      position: relative;
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 30%, #ffffff, #fff2a8 18%, #ffd700 40%, #63f5ff 100%);
      box-shadow:
        0 0 34px rgba(255,215,0,.42),
        0 0 54px rgba(99,245,255,.28);
      animation: agentCoreBreathe 2.6s ease-in-out infinite;
    }

    @keyframes agentCoreBreathe {
      0%, 100% { transform: scale(.92); filter: saturate(1); }
      50% { transform: scale(1.06); filter: saturate(1.25); }
    }

    .agent-signal-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .agent-mini-panel {
      position: relative;
      overflow: hidden;
      padding: 15px 14px;
      min-height: 96px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 18px;
      background:
        radial-gradient(180px 90px at 50% 0%, rgba(99,245,255,.12), transparent 70%),
        rgba(8, 12, 20, 0.68);
      box-shadow: 0 14px 38px rgba(0,0,0,.34);
    }

    .agent-mini-panel::after {
      content: "";
      position: absolute;
      left: -40%;
      top: 0;
      width: 40%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
      transform: skewX(-20deg);
      animation: agentPanelScan 4s ease-in-out infinite;
    }

    .agent-mini-panel:nth-child(2)::after { animation-delay: .7s; }
    .agent-mini-panel:nth-child(3)::after { animation-delay: 1.4s; }
    .agent-mini-panel:nth-child(4)::after { animation-delay: 2.1s; }

    @keyframes agentPanelScan {
      0%, 35% { left: -60%; }
      70%, 100% { left: 120%; }
    }

    .agent-mini-panel strong {
      display: block;
      color: #fff;
      font-size: 13px;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .agent-mini-panel small {
      display: block;
      margin-top: 7px;
      color: var(--agent-muted);
      line-height: 1.48;
    }

    .agent-streams {
      position: relative;
      height: 62px;
      overflow: hidden;
      border-radius: 16px;
      border: 1px solid rgba(99,245,255,.14);
      background: rgba(0,0,0,.18);
    }

    .agent-stream {
      position: absolute;
      left: -20%;
      top: var(--y);
      width: var(--w);
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--c), transparent);
      opacity: var(--o);
      animation: agentStreamMove var(--d) linear infinite;
      animation-delay: var(--delay);
      filter: drop-shadow(0 0 8px var(--c));
    }

    @keyframes agentStreamMove {
      to { transform: translateX(160%); }
    }

    /* ================= Intelligence Blocks ================= */

    .agent-split {
      display: grid;
      grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
      gap: 32px;
      align-items: start;
    }

    .agent-sticky-copy {
      position: sticky;
      top: 112px;
    }

    .agent-pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 24px;
    }

    .agent-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 11px;
      border: 1px solid rgba(99,245,255,.18);
      border-radius: 999px;
      color: #dffcff;
      background: rgba(99,245,255,.055);
      font-size: 12px;
      font-weight: 800;
    }

    .agent-pill::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: var(--agent-gold);
      box-shadow: 0 0 12px rgba(255,215,0,.72);
    }

    .agent-cap-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .agent-card {
      --tilt-x: 0deg;
      --tilt-y: 0deg;
      position: relative;
      min-height: 240px;
      padding: 24px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 24px;
      background:
        radial-gradient(420px 180px at var(--mx) var(--my), rgba(99,245,255,.13), transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
        rgba(7, 10, 18, 0.72);
      box-shadow: 0 22px 70px rgba(0,0,0,.38);
      overflow: hidden;
      transform:
        perspective(900px)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        translateZ(0);
      transition:
        transform .14s ease,
        border-color .22s ease,
        box-shadow .22s ease;
      will-change: transform;
    }

    .agent-card:hover {
      border-color: rgba(255,215,0,.34);
      box-shadow:
        0 34px 92px rgba(0,0,0,.52),
        0 0 36px rgba(99,245,255,.10);
    }

    .agent-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      border-radius: inherit;
      padding: 1px;
      background: linear-gradient(135deg, rgba(255,215,0,.36), rgba(99,245,255,.22), transparent 72%);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }

    .agent-card::after {
      content: "";
      position: absolute;
      right: -70px;
      bottom: -70px;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      background:
        radial-gradient(circle, rgba(255,215,0,.18), transparent 66%);
      filter: blur(2px);
    }

    .agent-card-number {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 18px;
      color: var(--agent-cyan);
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: 12px;
      letter-spacing: .18em;
    }

    .agent-card-icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      color: var(--agent-gold);
      background:
        radial-gradient(circle at 50% 0%, rgba(255,215,0,.26), transparent 70%),
        rgba(255,255,255,.055);
      border: 1px solid rgba(255,215,0,.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }

    .agent-card h3 {
      position: relative;
      z-index: 1;
      margin: 0;
      font-size: 20px;
      line-height: 1.22;
      color: #fff;
    }

    .agent-card p {
      position: relative;
      z-index: 1;
      margin: 12px 0 0;
      color: var(--agent-muted);
      line-height: 1.75;
      font-size: 14px;
    }

    /* ================= Cost Optimizer ================= */

    .agent-cost-section {
      position: relative;
    }

    .agent-cost-shell {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
      gap: 28px;
      padding: clamp(24px, 4vw, 44px);
      border-radius: var(--agent-radius-xl);
      border: 1px solid rgba(255,215,0,.22);
      background:
        radial-gradient(800px 360px at 18% 10%, rgba(255,215,0,.13), transparent 68%),
        radial-gradient(720px 420px at 92% 82%, rgba(99,245,255,.12), transparent 64%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        rgba(4, 8, 15, 0.82);
      box-shadow: var(--agent-shadow);
    }

    .agent-cost-shell::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
      transform: translateX(-120%) skewX(-18deg);
      animation: agentBigSweep 7s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes agentBigSweep {
      0%, 32% { transform: translateX(-120%) skewX(-18deg); }
      68%, 100% { transform: translateX(120%) skewX(-18deg); }
    }

    .agent-cost-copy {
      position: relative;
      z-index: 1;
    }

    .agent-cost-copy h2 {
      margin: 0;
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: clamp(28px, 4.8vw, 64px);
      line-height: 1;
      letter-spacing: -0.04em;
      color: transparent;
      background: var(--agent-gold-grad);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .agent-cost-copy p {
      margin: 18px 0 0;
      color: #cfd6eb;
      line-height: 1.8;
      font-size: 16px;
      max-width: 720px;
    }

    .agent-cost-copy strong {
      color: #fff5bd;
    }

    .agent-meter {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 18px;
      align-content: center;
      padding: 24px;
      border-radius: 26px;
      border: 1px solid rgba(99,245,255,.18);
      background:
        linear-gradient(180deg, rgba(0,0,0,.20), rgba(255,255,255,.035));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    }

    .agent-meter-readout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .agent-readout {
      padding: 15px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.09);
      background: rgba(4,7,13,.56);
    }

    .agent-readout span {
      display: block;
      color: var(--agent-muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .agent-readout strong {
      display: block;
      margin-top: 8px;
      color: #fff;
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: 22px;
    }

    .agent-readout.optimized strong {
      color: transparent;
      background: var(--agent-cyan-grad);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .agent-range {
      width: 100%;
      accent-color: var(--agent-gold);
    }

    .agent-savings-ring {
      --p: 30;
      position: relative;
      width: 168px;
      height: 168px;
      margin: 8px auto 0;
      border-radius: 50%;
      background:
        conic-gradient(var(--agent-cyan) calc(var(--p) * 1%), rgba(255,255,255,.08) 0),
        radial-gradient(circle, rgba(255,215,0,.15), rgba(4,7,13,.95) 60%);
      box-shadow:
        0 0 40px rgba(99,245,255,.12),
        inset 0 0 0 1px rgba(255,255,255,.08);
      display: grid;
      place-items: center;
    }

    .agent-savings-ring::before {
      content: "";
      position: absolute;
      inset: 14px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.12), transparent 60%),
        #070a12;
      box-shadow: inset 0 0 34px rgba(0,0,0,.78);
    }

    .agent-savings-ring strong {
      position: relative;
      z-index: 1;
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: 34px;
      color: transparent;
      background: var(--agent-gold-grad);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .agent-savings-ring span {
      position: relative;
      z-index: 1;
      margin-top: -18px;
      color: var(--agent-muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    /* ================= n8n Matrix ================= */

    .agent-lab {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      gap: 20px;
      margin-top: 32px;
    }

    .agent-lab-tabs {
      display: grid;
      gap: 12px;
    }

    .agent-lab-tab {
      position: relative;
      overflow: hidden;
      min-height: 82px;
      padding: 16px 16px 16px 18px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 18px;
      color: #fff;
      text-align: left;
      background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(5,8,14,.70);
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

    .agent-lab-tab::before {
      content: "";
      position: absolute;
      left: 0;
      top: 16px;
      bottom: 16px;
      width: 3px;
      border-radius: 999px;
      background: var(--agent-cyan);
      opacity: 0;
      box-shadow: 0 0 16px rgba(99,245,255,.7);
      transition: opacity .2s ease;
    }

    .agent-lab-tab:hover,
    .agent-lab-tab.is-active {
      border-color: rgba(255,215,0,.32);
      transform: translateX(4px);
      box-shadow: 0 18px 48px rgba(0,0,0,.38), 0 0 30px rgba(99,245,255,.08);
    }

    .agent-lab-tab.is-active::before {
      opacity: 1;
    }

    .agent-lab-tab strong {
      display: block;
      font-size: 14px;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .agent-lab-tab span {
      display: block;
      margin-top: 7px;
      color: var(--agent-muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .agent-lab-panel {
      position: relative;
      overflow: hidden;
      min-height: 430px;
      padding: clamp(24px, 3vw, 36px);
      border-radius: 28px;
      border: 1px solid rgba(99,245,255,.18);
      background:
        radial-gradient(600px 260px at var(--mx) var(--my), rgba(99,245,255,.11), transparent 66%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        rgba(7, 10, 18, 0.76);
      box-shadow: var(--agent-shadow);
    }

    .agent-lab-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(99,245,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,215,0,.035) 1px, transparent 1px);
      background-size: 34px 34px;
      opacity: .55;
      -webkit-mask-image: linear-gradient(180deg, #000, transparent);
      mask-image: linear-gradient(180deg, #000, transparent);
    }

    .agent-lab-panel-content {
      position: relative;
      z-index: 1;
    }

    .agent-lab-panel h3 {
      margin: 0;
      font-family: "Orbitron", system-ui, sans-serif;
      color: transparent;
      background: var(--agent-cyan-grad);
      -webkit-background-clip: text;
      background-clip: text;
      font-size: clamp(24px, 3vw, 40px);
      line-height: 1.1;
    }

    .agent-lab-panel p {
      margin: 16px 0 0;
      color: #cfd6eb;
      line-height: 1.78;
      max-width: 760px;
    }

    .agent-lab-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 26px;
      padding: 0;
      list-style: none;
    }

    .agent-lab-list li {
      position: relative;
      min-height: 74px;
      padding: 15px 15px 15px 42px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.09);
      background: rgba(0,0,0,.18);
      color: #dfe8ff;
      line-height: 1.55;
      font-size: 13px;
    }

    .agent-lab-list li::before {
      content: "";
      position: absolute;
      left: 17px;
      top: 22px;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--agent-gold);
      box-shadow: 0 0 15px rgba(255,215,0,.66);
    }

    /* ================= Process ================= */

    .agent-process-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 15px;
      margin-top: 32px;
    }

    .agent-process-card {
      position: relative;
      overflow: hidden;
      min-height: 250px;
      padding: 22px;
      border-radius: 24px;
      border: 1px solid rgba(255,255,255,.10);
      background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        rgba(6, 9, 16, 0.76);
      box-shadow: 0 20px 62px rgba(0,0,0,.38);
    }

    .agent-process-card::before {
      content: attr(data-step);
      position: absolute;
      right: 16px;
      top: 12px;
      color: rgba(255,255,255,.055);
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: 72px;
      font-weight: 900;
      line-height: 1;
    }

    .agent-process-card::after {
      content: "";
      position: absolute;
      left: 22px;
      right: 22px;
      bottom: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--agent-gold), var(--agent-cyan), transparent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .42s cubic-bezier(.16,.84,.2,1);
    }

    .agent-process-card:hover::after {
      transform: scaleX(1);
    }

    .agent-process-card h3 {
      position: relative;
      z-index: 1;
      margin: 0;
      color: #fff;
      font-size: 18px;
      line-height: 1.3;
    }

    .agent-process-card p {
      position: relative;
      z-index: 1;
      margin: 14px 0 0;
      color: var(--agent-muted);
      line-height: 1.75;
      font-size: 13px;
    }

    /* ================= Trust / Proof ================= */

    .agent-trust-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(320px, .76fr);
      gap: 24px;
      align-items: stretch;
      margin-top: 32px;
    }

    .agent-founder-card,
    .agent-audit-card {
      position: relative;
      overflow: hidden;
      padding: clamp(24px, 3vw, 36px);
      border-radius: var(--agent-radius-xl);
      border: 1px solid rgba(255,215,0,.20);
      background:
        radial-gradient(520px 240px at 0% 0%, rgba(255,215,0,.13), transparent 66%),
        radial-gradient(520px 260px at 100% 100%, rgba(99,245,255,.11), transparent 64%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        rgba(7, 10, 18, 0.78);
      box-shadow: var(--agent-shadow);
    }

    .agent-founder-card h3,
    .agent-audit-card h3 {
      margin: 0;
      font-family: "Orbitron", system-ui, sans-serif;
      color: #fff;
      font-size: clamp(24px, 3vw, 40px);
      line-height: 1.1;
    }

    .agent-founder-card h3 span {
      color: transparent;
      background: var(--agent-gold-grad);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .agent-founder-card p,
    .agent-audit-card p {
      margin: 16px 0 0;
      color: #cfd6eb;
      line-height: 1.82;
    }

    .agent-audit-list {
      margin: 22px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 12px;
    }

    .agent-audit-list li {
      position: relative;
      padding: 13px 14px 13px 42px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 16px;
      background: rgba(0,0,0,.16);
      color: #e4ebff;
      line-height: 1.55;
      font-size: 14px;
    }

    .agent-audit-list li::before {
      content: "\2713";
      position: absolute;
      left: 15px;
      top: 12px;
      color: var(--agent-cyan);
      text-shadow: 0 0 14px rgba(99,245,255,.62);
      font-weight: 900;
    }

    /* ================= CTA ================= */

    .agent-final {
      padding-bottom: 132px;
    }

    .agent-final-shell {
      position: relative;
      overflow: hidden;
      text-align: center;
      padding: clamp(34px, 6vw, 76px) clamp(20px, 5vw, 70px);
      border-radius: 38px;
      border: 1px solid rgba(255,215,0,.24);
      background:
        radial-gradient(900px 360px at 50% 0%, rgba(255,215,0,.18), transparent 66%),
        radial-gradient(800px 440px at 50% 100%, rgba(99,245,255,.13), transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        rgba(5, 8, 14, .84);
      box-shadow: var(--agent-shadow);
    }

    .agent-final-shell::before {
      content: "";
      position: absolute;
      inset: -2px;
      background: conic-gradient(from 180deg, transparent, rgba(255,215,0,.24), transparent, rgba(99,245,255,.18), transparent);
      animation: agentConicSweep 10s linear infinite;
      opacity: .48;
      z-index: 0;
    }

    .agent-final-content {
      position: relative;
      z-index: 1;
    }

    .agent-final h2 {
      max-width: 960px;
      margin: 0 auto;
      font-family: "Orbitron", system-ui, sans-serif;
      font-size: clamp(30px, 5vw, 72px);
      line-height: 1.02;
      letter-spacing: -0.05em;
      color: transparent;
      background: var(--agent-gold-grad);
      -webkit-background-clip: text;
      background-clip: text;
    }

    .agent-final p {
      max-width: 790px;
      margin: 20px auto 0;
      color: #d5dcf3;
      line-height: 1.8;
      font-size: clamp(15px, 1.6vw, 19px);
    }

    .agent-final-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 30px;
    }

    /* ================= Responsive ================= */

    @media (max-width: 1080px) {
      .agent-page {
        margin-top: 126px;
      }

      .agent-hero-grid,
      .agent-split,
      .agent-cost-shell,
      .agent-trust-grid {
        grid-template-columns: 1fr;
      }

      .agent-visual {
        min-height: auto;
      }

      .agent-visual-shell,
      .agent-sticky-copy {
        position: relative;
        top: auto;
      }

      .agent-command-center {
        transform: none;
      }

      .agent-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .agent-lab {
        grid-template-columns: 1fr;
      }

      .agent-lab-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 720px) {
      .agent-page {
        margin-top: 112px;
      }

      .agent-container {
        width: min(1180px, calc(100% - 28px));
      }

      .agent-hero {
        padding-top: 146px;
      }

      body.xvising-ai-agent-apps-shell .agent-hero {
        padding-top: 108px;
      }

      .agent-hero-proof,
      .agent-cap-grid,
      .agent-meter-readout,
      .agent-lab-list,
      .agent-process-grid,
      .agent-lab-tabs,
      .agent-signal-grid {
        grid-template-columns: 1fr;
      }

      .agent-card,
      .agent-process-card {
        min-height: auto;
      }

      .agent-section {
        padding: 82px 0;
      }

      .agent-command-center {
        min-height: 540px;
      }

      .agent-visual-grid {
        padding: 18px;
      }

      .agent-kicker {
        letter-spacing: .10em;
        font-size: 10px;
      }

      .agent-action {
        width: 100%;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
      }

      .agent-reveal {
        opacity: 1;
        transform: none;
        filter: none;
      }
    }
