/* ═══════════════════════════════════════════════════════════════════════
   AGENTS PAGE v2 — Qount.io inspired premium redesign
   Scoped exclusively to #pg-agents — zero bleed to other pages
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ──────────────────────────────────────────────────────────── */
#pg-agents {
  --ag-bg0: #16232B;          /* Charcoal Teal background */
  --ag-bg1: #042F34;          /* Deep Teal */
  --ag-bg2: #0d2830;
  --ag-glass: rgba(4, 47, 52, 0.45); /* Mid-depth panel */
  --ag-glass2: rgba(255, 255, 255, 0.02);
  --ag-border: rgba(181, 242, 219, 0.12); /* Mint Green Border */
  --ag-border2: rgba(181, 242, 219, 0.25); /* Glowing mint green */
  --ag-accent: #B5F2DB;
  --ag-accent2: #E4EEF0;
  --ag-lime: #FFC933;
  --ag-gold: #FFC933;
  --ag-text1: #ffffff;
  --ag-text2: #E4EEF0;
  --ag-text3: rgba(228, 238, 240, 0.65);
  --ag-mono: 'JetBrains Mono', monospace;
  --ag-font: 'Manrope', sans-serif;
  font-family: var(--ag-font);
  background: transparent;
  color: var(--ag-text1);
  position: relative;
}

#ag-hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.ag-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.ag-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ag-accent);
  margin-bottom: 22px;
  padding: 6px 14px;
  background: rgba(181,242,219,0.08);
  border: 1px solid rgba(181,242,219,0.2);
  border-radius: 20px;
  width: fit-content;
}

.ag-hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ag-accent);
  box-shadow: 0 0 8px var(--ag-accent);
  animation: ag-pulse 1.8s ease-in-out infinite;
}

@keyframes ag-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.ag-hero-heading {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ag-text1);
}

.ag-hero-heading .word {
  display: inline-block;
  overflow: visible;
  padding-bottom: 0.15em;
}

.ag-hero-heading .word span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease;
  transition-delay: calc(var(--wi, 0) * 0.08s + 0.1s);
}

.ag-hero-heading.ag-reveal .word span {
  transform: translateY(0);
  opacity: 1;
}

.ag-grad-text {
  color: #FFC933;
}

.ag-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ag-text2);
  max-width: 560px;
  margin: 0 0 32px;
}

.ag-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ag-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--ag-gold);
  color: #080e1a;
  font-family: var(--ag-font);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.ag-btn-primary:hover {
  background: var(--ag-lime);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 201, 51, 0.35);
}

.ag-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--ag-text1);
  font-family: var(--ag-font);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ag-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ag-btn-ghost:hover {
  border-color: var(--ag-accent2);
  color: var(--ag-accent2);
  background: rgba(181,242,219,0.06);
}

/* Live agent activity counter panel */
.ag-live-panel {
  background: rgba(4,47,52,0.6);
  border: 1px solid var(--ag-border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.ag-live-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ag-accent), var(--ag-accent2), transparent);
  opacity: 0.8;
}

.ag-live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ag-text3);
  margin-bottom: 20px;
}

.ag-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: ag-pulse 1.4s ease-in-out infinite;
}

.ag-metric-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ag-metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ag-border);
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.ag-metric-item:hover {
  border-color: rgba(181,242,219,0.2);
}

.ag-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ag-metric-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ag-metric-body {
  flex: 1;
}

.ag-metric-value {
  font-family: var(--ag-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ag-text1);
  line-height: 1;
  margin-bottom: 3px;
}

.ag-metric-label {
  font-size: 11px;
  color: var(--ag-text3);
}

.ag-metric-change {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ag-metric-change.up {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}

.ag-metric-change.active {
  color: var(--ag-accent);
  background: rgba(181,242,219,0.1);
}

/* ─── STICKY TABS ────────────────────────────────────────────────────── */
.ag-grid-sticky-wrapper {
  position: relative;
  width: 100%;
}

#ag-sticky-tabs {
  position: sticky;
  top: 72px;
  z-index: 990;
  background: transparent;
  padding: 18px 0;
  display: flex;
  justify-content: center;
  transition: background 0.3s, backdrop-filter 0.3s;
}

/* Add background and blur to container only when it is actually stuck/scrolled */
#ag-sticky-tabs.stuck {
  background: rgba(8, 14, 26, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ag-border);
  padding: 12px 0;
}

.ag-tabs-inner {
  background: rgba(4, 47, 52, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(181, 242, 219, 0.18);
  border-radius: 100px;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.ag-tabs-inner::-webkit-scrollbar { display: none; }

.ag-tab-full { display: inline; }
.ag-tab-short { display: none; }

.ag-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-family: var(--ag-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--ag-text2);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.ag-tab-btn.ag-tab-active {
  color: #042F34 !important;
  background: var(--ag-accent);
  box-shadow: 0 4px 12px rgba(181, 242, 219, 0.3);
}

.ag-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ag-text3);
  margin-left: 2px;
  transition: all 0.25s;
}

.ag-tab-btn.ag-tab-active .ag-tab-count {
  background: rgba(4, 47, 52, 0.12);
  color: #042F34;
}

.ag-tabs-sep {
  width: 1px;
  height: 16px;
  background: rgba(181, 242, 219, 0.15);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ─── AGENT BENTO GRID SECTION ───────────────────────────────────────── */
#ag-grid-section {
  padding: 60px 0;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.ag-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.ag-section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ag-accent);
  margin-bottom: 8px;
}

.ag-section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ag-text1);
  margin: 0;
}

.ag-agent-count {
  font-size: 13px;
  color: var(--ag-text3);
  flex-shrink: 0;
  align-self: flex-end;
}

/* Bento grid layout — 4 columns */
.ag-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  transition: all 0.35s ease;
}

/* Span variants */
.ag-span-2 { grid-column: span 2; }
.ag-span-3 { grid-column: span 3; }
.ag-span-full { grid-column: 1 / -1; }

/* ─── AGENT CARD ─────────────────────────────────────────────────────── */
.ag-card {
  position: relative;
  background: var(--ag-glass);
  border: 1px solid var(--ag-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  backdrop-filter: blur(12px);
}

.ag-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(ellipse 60% 60% at 30% 0%, rgba(181, 242, 219, 0.06), transparent 70%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ag-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 242, 219, 0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(181, 242, 219, 0.08);
}

.ag-card:hover::before {
  opacity: 1;
}

/* Domain accent top border */
.ag-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: var(--ag-card-accent, transparent);
  border-radius: 0 0 4px 4px;
  transition: opacity 0.3s ease;
}

/* Domain color themes */
.ag-domain-it   { --ag-card-accent: linear-gradient(90deg, #B5F2DB, transparent); --ag-domain-color: #B5F2DB; --ag-domain-bg: rgba(181, 242, 219, 0.06); }
.ag-domain-sec  { --ag-card-accent: linear-gradient(90deg, #E4EEF0, transparent); --ag-domain-color: #E4EEF0; --ag-domain-bg: rgba(228, 238, 240, 0.06); }
.ag-domain-comp { --ag-card-accent: linear-gradient(90deg, #E4EEF0, transparent); --ag-domain-color: #E4EEF0; --ag-domain-bg: rgba(228, 238, 240, 0.06); }

.ag-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ag-card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--ag-domain-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--ag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ag-domain-color, var(--ag-accent));
  flex-shrink: 0;
}

.ag-card-stat-wrap {
  text-align: right;
}

.ag-card-stat {
  font-family: var(--ag-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ag-accent);
  line-height: 1;
}

.ag-card-stat-label {
  font-size: 10px;
  color: var(--ag-text3);
  margin-top: 3px;
}

.ag-card-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--ag-domain-bg, rgba(255,255,255,0.05));
  color: var(--ag-domain-color, var(--ag-text3));
  border: 1px solid color-mix(in srgb, var(--ag-domain-color, transparent) 25%, transparent);
  margin-bottom: 9px;
  width: fit-content;
}

.ag-card-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFC933;
  margin: 0 0 7px;
  line-height: 1.2;
}

.ag-card-desc {
  font-size: 12.5px;
  color: var(--ag-text2);
  line-height: 1.6;
  margin: 0;
}

/* Card visual widget area (for large cards) */
.ag-card-visual {
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--ag-border);
  flex: 1;
  min-height: 100px;
  position: relative;
}

/* Feature chips */
.ag-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ag-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ag-border);
  color: var(--ag-text3);
}

/* ─── TERMINAL WIDGET ─────────────────────────────────────────────────── */
.ag-terminal {
  background: #050c15;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--ag-mono);
  border: 1px solid rgba(255,255,255,0.06);
  height: 140px;
  position: relative;
}

.ag-terminal-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ag-terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ag-term-red   { background: #ff5f57; }
.ag-term-amber { background: #febc2e; }
.ag-term-green { background: #28c840; }

.ag-terminal-body {
  padding: 10px 12px;
  font-size: 10.5px;
  line-height: 1.6;
  overflow: hidden;
  height: calc(100% - 32px);
}

.ag-term-line {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ag-term-line.visible {
  opacity: 1;
  transform: translateX(0);
}

.ag-term-prompt { color: var(--ag-accent); }
.ag-term-cmd    { color: #e2e8f0; }
.ag-term-ok     { color: #22c55e; }
.ag-term-warn   { color: var(--ag-gold); }
.ag-term-info   { color: var(--ag-accent2); }
.ag-term-err    { color: #f87171; }

/* ─── SCAN / COVERAGE WIDGET ──────────────────────────────────────────── */
.ag-scan-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
  padding: 10px;
}

.ag-scan-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  transition: background 0.3s ease;
}

.ag-scan-cell.scanned {
  background: var(--ag-accent);
  box-shadow: 0 0 6px rgba(181,242,219,0.4);
}

.ag-scan-cell.threat {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248,113,113,0.5);
}

/* ─── STATS BAND ─────────────────────────────────────────────────────── */
#ag-stats-band {
  background: transparent;
  border-top: 1px solid var(--ag-border);
  border-bottom: 1px solid var(--ag-border);
  padding: 70px 32px;
}

.ag-stats-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ag-stats-header {
  text-align: center;
  margin-bottom: 56px;
}

.ag-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ag-stat-card {
  background: rgba(22, 35, 43, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ag-stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ag-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ag-stat-card:hover {
  border-color: rgba(181,242,219,0.2);
  transform: translateY(-3px);
  background: rgba(181,242,219,0.04);
}

.ag-stat-card:hover::before {
  opacity: 1;
}

.ag-stat-num {
  font-family: var(--ag-mono);
  font-size: 40px;
  font-weight: 800;
  color: var(--ag-accent);
  line-height: 1;
  margin-bottom: 10px;
}

.ag-stat-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ag-text1);
  margin-bottom: 6px;
}

.ag-stat-sub {
  font-size: 12px;
  color: var(--ag-text3);
  line-height: 1.5;
}

/* ─── INTEGRATIONS SECTION ───────────────────────────────────────────── */
#ag-integrations {
  padding: 80px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.ag-integrations-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 52px;
}

.ag-integrations-header-left h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ag-text1);
  margin: 0 0 14px;
}

.ag-integrations-header-left p {
  font-size: 15px;
  color: var(--ag-text2);
  line-height: 1.7;
}

.ag-integrations-header-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ag-integration-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ag-glass);
  border: 1px solid var(--ag-border);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.ag-integration-stat:hover {
  border-color: rgba(181,242,219,0.2);
}

.ag-integration-stat-num {
  font-family: var(--ag-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--ag-accent);
  white-space: nowrap;
}

.ag-integration-stat-info {
  font-size: 13px;
  color: var(--ag-text2);
  line-height: 1.4;
}

/* Marquee track */
.ag-marquee-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--ag-border);
  background: rgba(4,47,52,0.3);
  padding: 0;
}

.ag-marquee-wrap::before,
.ag-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.ag-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(8,14,26,1) 0%, transparent 100%);
}

.ag-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(8,14,26,1) 0%, transparent 100%);
}

.ag-marquee-track {
  display: flex;
  gap: 10px;
  padding: 16px;
  animation: ag-marquee 30s linear infinite;
  width: max-content;
}

.ag-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes ag-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ag-integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ag-border);
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ag-text2);
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: default;
}

.ag-integration-pill:hover {
  background: rgba(181,242,219,0.07);
  border-color: rgba(181,242,219,0.25);
  color: var(--ag-text1);
}

.ag-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ag-accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ─── MULTI-AGENT WORKFLOW SECTION ───────────────────────────────────── */
#ag-workflow {
  padding: 80px 32px;
  background: transparent;
  border-top: 1px solid var(--ag-border);
  border-bottom: 1px solid var(--ag-border);
}

.ag-workflow-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ag-workflow-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}

.ag-workflow-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ag-text1);
  margin: 0 0 14px;
}

.ag-workflow-header p {
  font-size: 15px;
  color: var(--ag-text2);
  line-height: 1.7;
}

.ag-workflow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ag-workflow-card {
  background: rgba(22, 35, 43, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ag-workflow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--wf-color, var(--ag-accent));
  opacity: 0.5;
  border-radius: 0 0 2px 2px;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.ag-workflow-card:hover {
  transform: translateY(-6px);
  border-color: var(--wf-color);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 15px var(--wf-color);
}

.ag-workflow-card:hover::before {
  height: 4px;
  opacity: 1;
}

.ag-wf-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ag-wf-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ag-domain-bg, rgba(181,242,219,0.1));
  border: 1px solid var(--ag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-color, #ffffff);
  transition: all 0.3s ease;
}

.ag-wf-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ag-wf-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #FFC933; /* Brand Yellow title */
}

.ag-wf-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-grow: 1;
}

.ag-wf-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

.ag-wf-step:last-child {
  border-bottom: none;
}

.ag-wf-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 10px;
  border-radius: 12px;
  font-size: 11px; /* Increased from 10px */
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ag-wf-step-action {
  font-size: 12.5px; /* Decreased from 13.5px */
  color: #cbd5e1; /* Readable warm white */
  padding-top: 3px;
  line-height: 1.45;
}

.ag-wf-arrow {
  color: var(--ag-accent);
  font-size: 16px;
  margin: -2px 0;
  padding-left: 8px;
  display: block;
}

.ag-wf-result {
  margin-top: auto; /* Push to same bottom level */
  padding: 10px 14px;
  background: rgba(181,242,219,0.06);
  border: 1px solid rgba(181,242,219,0.15);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ag-accent);
}

/* ─── CTA SECTION ─────────────────────────────────────────────────────── */
#ag-cta {
  padding: 100px 32px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(181,242,219,0.08) 0%, transparent 70%),
              var(--ag-bg0);
}

.ag-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.ag-cta-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ag-accent);
  margin-bottom: 18px;
  display: block;
}

#ag-cta h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ag-text1);
  margin: 0 0 18px;
  line-height: 1.1;
}

#ag-cta p {
  font-size: 16px;
  color: var(--ag-text2);
  line-height: 1.7;
  margin: 0 0 36px;
}

.ag-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── DOMAIN BADGE STYLES (wf steps) ─────────────────────────────────── */
.ag-wf-step-badge.it   { background: rgba(181,242,219,0.1);  color: #B5F2DB; }
.ag-wf-step-badge.sec  { background: rgba(228,238,240,0.1); color: #E4EEF0; }
.ag-wf-step-badge.comp { background: rgba(228,238,240,0.1);  color: #E4EEF0; }
.ag-wf-step-badge.lead { background: rgba(181,242,219,0.15); color: #B5F2DB; }

/* ─── HIDDEN FILTER STATE ─────────────────────────────────────────────── */
.ag-card.ag-hidden {
  display: none;
}

/* ─── SECTION SEPARATOR (Qount curved divider) ────────────────────────── */
.ag-curve-sep {
  position: relative;
  height: 40px;
  overflow: hidden;
  pointer-events: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ag-bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ag-span-2 { grid-column: span 2; }
  .ag-span-3 { grid-column: 1 / -1; }
  .ag-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-workflow-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ag-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ag-live-panel { display: none; }
  .ag-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ag-span-2, .ag-span-3 { grid-column: span 2; }
  .ag-integrations-header { grid-template-columns: 1fr; gap: 30px; }
  .ag-workflow-cards { grid-template-columns: 1fr; }
  .ag-stats-grid { grid-template-columns: repeat(2, 1fr); }
  #ag-grid-section, #ag-integrations { padding: 40px 20px; }
  .ag-hero-inner { padding: 0 20px; }
  #ag-sticky-tabs { padding: 0 16px; }
}


@media (max-width: 480px) {
  .ag-bento-grid {
    grid-template-columns: 1fr;
  }
  .ag-span-2, .ag-span-3 { grid-column: span 1; }
  .ag-stats-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   QOUNT-STYLE ISOMETRIC HUB-AND-SPOKE SECTION CSS
   ══════════════════════════════════════════════════════════════════════ */

#pg-agents #ag-cube-section {
  background: transparent;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.q-hub-wrapper {
  max-width: var(--max, 1200px);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Left Column Styling */
.q-hub-left {
  flex: 0 0 35%;
  max-width: 500px;
}

.q-hub-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ag-text1);
  margin: 8px 0 16px;
  line-height: 1.15;
}

.q-hub-desc {
  font-size: 15px;
  color: var(--ag-text2);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Dynamic Details Panel */
.q-hub-details-panel {
  background: rgba(22, 35, 43, 0.72); /* 72% opacity Charcoal Teal to blend with the background line */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ag-border);
  border-radius: 16px;
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01), 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  opacity: 0;
}

.q-hd-domain-badge {
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  width: fit-content;
  margin-bottom: 12px;
}

.q-hd-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ag-text1);
  margin: 0 0 8px;
}

.q-hd-desc {
  font-size: 13.5px;
  color: var(--ag-text2);
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.q-hd-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.q-hd-stat-val {
  font-family: var(--ag-mono);
  font-size: 20px;
  font-weight: 700;
}

.q-hd-stat-lbl {
  font-size: 11px;
  color: var(--ag-text3);
}

/* Right Column Visual Container */
.q-hub-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.q-hub-visual-container {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Central Cube Scene & 3D styling */
.q-hub-cube-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  perspective: 600px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.q-hub-cube {
  position: relative;
  width: 90px;
  height: 90px;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(45deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: qCubeFloat 5s ease-in-out infinite;
}

@keyframes qCubeFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

@keyframes qLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.q-cube-face {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Website Theme Cube Palette */
.q-face-top {
  transform: rotateX(90deg) translateZ(45px);
  background: var(--ag-accent); /* Mint Green */
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.q-face-left {
  transform: rotateY(-90deg) translateZ(45px);
  background: var(--ag-bg1); /* Deep Teal */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
}

.q-face-right {
  transform: translateZ(45px);
  background: var(--ag-bg0); /* Charcoal Teal */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}

.q-hub-cube-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(181, 242, 219, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
  animation: qGlowBreathe 5s ease-in-out infinite;
}

@keyframes qGlowBreathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* SVG Line Paths overlay */
.q-hub-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.q-hub-line-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1.5;
  transition: stroke 0.35s ease, stroke-width 0.35s ease;
}

.q-hub-line-path.active {
  stroke: var(--ag-accent); /* Brand Mint Green active connector */
  stroke-width: 2.2;
  stroke-dasharray: 8 6;
  animation: qDashFlow 0.8s linear infinite;
}

@keyframes qDashFlow {
  to { stroke-dashoffset: -14; }
}

/* Floating Cards Layout */
.q-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(22, 35, 43, 0.88); /* Charcoal Teal background */
  border: 1px solid var(--ag-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 180px;
}

.q-wide-card {
  width: 240px; /* Expanded for longer names */
}

.q-floating-card:hover,
.q-floating-card.active {
  border-color: rgba(181, 242, 219, 0.45); /* Brand Mint Green border */
  background: rgba(181, 242, 219, 0.04); /* Brand Mint Green tint background */
  box-shadow: 0 0 25px rgba(181, 242, 219, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.q-fc-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ag-text2);
  transition: all 0.3s;
}

.q-fc-icon-wrap svg {
  width: 16px;
  height: 16px;
  display: block;
}

.q-floating-card:hover .q-fc-icon-wrap,
.q-floating-card.active .q-fc-icon-wrap {
  background: rgba(181, 242, 219, 0.18); /* Brand Mint Green wrap */
  border-color: rgba(181, 242, 219, 0.35); /* Brand Mint Green wrap border */
  color: #B5F2DB; /* SVG stroke turns Mint Green */
}

.q-fc-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.q-fc-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ag-text1);
  line-height: 1.2;
}

.q-fc-domain {
  font-size: 9.5px;
  color: var(--ag-text3);
  font-weight: 500;
}

/* Card positions on hexagonal pattern (relative to 520x520 container) */
.pos-tl {
  top: 15%;
  left: 0;
}
.pos-tl:hover, .pos-tl.active { transform: scale(1.03); }

.pos-tr {
  top: 15%;
  right: 0;
}
.pos-tr:hover, .pos-tr.active { transform: scale(1.03); }

.pos-ml {
  top: 48%;
  left: -15px;
  transform: translateY(-50%);
}
.pos-ml:hover, .pos-ml.active {
  transform: translateY(-50%) scale(1.03);
}

.pos-mr {
  top: 48%;
  right: -20px;
  transform: translateY(-50%);
}
.pos-mr:hover, .pos-mr.active {
  transform: translateY(-50%) scale(1.03);
}

.pos-bl {
  bottom: 15%;
  left: 0;
}
.pos-bl:hover, .pos-bl.active { transform: scale(1.03); }

.pos-br {
  bottom: 15%;
  right: 0;
}
.pos-br:hover, .pos-br.active { transform: scale(1.03); }

/* Responsive Hub Section */
@media (max-width: 1280px) {
  .q-hub-visual-container {
    width: 520px;
    height: 520px;
  }
  .q-floating-card {
    width: 165px;
    padding: 10px 14px;
    gap: 8px;
  }
  .q-wide-card {
    width: 210px;
  }
  .q-fc-name {
    font-size: 11px;
    line-height: 1.3;
  }
  .q-fc-domain {
    font-size: 8.5px;
  }
  .pos-ml {
    left: 10px;
  }
  .pos-mr {
    right: -10px;
  }
}

/* Responsive Hub Section */
@media (max-width: 1024px) {
  .q-hub-wrapper {
    flex-direction: column;
    gap: 50px;
    padding: 0 24px;
  }

  .q-hub-left {
    flex: 1 1 100%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .q-hub-details-panel {
    width: 100%;
    max-width: 500px;
  }

  .q-hub-right {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Fluid, dynamically-scaled radial visual container */
  .q-hub-visual-container {
    display: flex !important;
    position: relative !important;
    width: clamp(285px, 76vw, 480px) !important;
    height: clamp(285px, 76vw, 480px) !important;
    margin: 30px auto !important;
    padding: 0 !important;
  }

  .q-hub-cube-scene {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: clamp(70px, 17vw, 105px) !important;
    height: clamp(70px, 17vw, 105px) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  .q-hub-logo {
    width: clamp(50px, 12vw, 75px) !important;
    height: clamp(50px, 12vw, 75px) !important;
  }

  .q-hub-cube-glow {
    width: clamp(70px, 17vw, 105px) !important;
    height: clamp(70px, 17vw, 105px) !important;
  }

  .q-hub-svg-lines {
    display: block !important;
  }

  /* Fluid floating card layout */
  .q-floating-card {
    position: absolute !important;
    width: clamp(125px, 32vw, 175px) !important;    /* Expanded width for single/double line titles */
    padding: clamp(5px, 1.5vw, 10px) clamp(6px, 1.8vw, 12px) !important;
    gap: clamp(4px, 1vw, 8px) !important;
    border-radius: 8px !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .q-wide-card {
    width: clamp(125px, 32vw, 175px) !important;
  }

  .q-fc-icon-wrap {
    width: clamp(26px, 7vw, 36px) !important;       /* Enlarged icons */
    height: clamp(26px, 7vw, 36px) !important;      /* Enlarged icons */
    font-size: clamp(13px, 3.5vw, 18px) !important; /* Enlarged icons */
  }

  .q-fc-icon-wrap svg {
    width: clamp(14px, 3.8vw, 19px) !important;     /* Enlarged SVG icons */
    height: clamp(14px, 3.8vw, 19px) !important;    /* Enlarged SVG icons */
  }

  .q-fc-content {
    min-width: 0;
  }

  .q-fc-name {
    font-size: clamp(10px, 2.5vw, 13.5px) !important;   /* Larger, readable titles */
    line-height: 1.25 !important;
    white-space: normal !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  .q-fc-domain {
    font-size: clamp(7.5px, 2vw, 10px) !important;
    margin-top: 2px !important;
  }

  /* Percentage-based coordinates to scale proportionally with visual container */
  .pos-tl {
    top: 10% !important;
    left: 2% !important;
  }
  .pos-tr {
    top: 10% !important;
    right: 2% !important;
  }
  .pos-ml {
    top: 50% !important;
    left: 2% !important;                           /* Shifted closer to center */
    transform: translateY(-50%) !important;
  }
  .pos-mr {
    top: 50% !important;
    right: 2% !important;                          /* Shifted closer to center */
    transform: translateY(-50%) !important;
  }
  .pos-bl {
    bottom: 10% !important;
    left: 2% !important;
  }
  .pos-br {
    bottom: 10% !important;
    right: 2% !important;
  }

  .pos-tl:hover, .pos-tl.active { transform: scale(1.04) !important; }
  .pos-tr:hover, .pos-tr.active { transform: scale(1.04) !important; }
  .pos-ml:hover, .pos-ml.active { transform: translateY(-50%) scale(1.04) !important; }
  .pos-mr:hover, .pos-mr.active { transform: translateY(-50%) scale(1.04) !important; }
  .pos-bl:hover, .pos-bl.active { transform: scale(1.04) !important; }
  .pos-br:hover, .pos-br.active { transform: scale(1.04) !important; }
}





/* ── AGENTS PAGE MOBILE EXTRAS ── */
@media (max-width: 768px) {
  #pg-agents .ag-hero { padding: 5rem 0 3rem; }
  .ag-hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .ag-hero-desc  { font-size: 15px; }
  .ag-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ag-stat-val   { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  #ag-sticky-tabs {
    top: 72px;
    z-index: 990;
    padding: 10px 16px;
    background: transparent;
    display: flex;
    justify-content: center;
    transition: background 0.3s, padding 0.3s;
  }
  #ag-sticky-tabs.stuck {
    background: rgba(8, 14, 26, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ag-border);
    padding: 8px 16px;
  }
  .ag-tabs-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
    width: 100%;
    max-width: 480px;
    background: rgba(4, 47, 52, 0.85);
    border: 1px solid rgba(181, 242, 219, 0.15);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }
  .ag-tabs-sep { display: none; }
  .ag-tab-full { display: none; }
  .ag-tab-short { display: inline; }
  .ag-tab-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    font-size: 13px; /* Keep desktop font size on mobile */
    font-weight: 700;
    gap: 4px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 10px;
  }
  .ag-tab-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .ag-stats-grid { grid-template-columns: 1fr; }
  .ag-int-grid   { grid-template-columns: repeat(2, 1fr); }
  .ag-wf-name    { font-size: 11px; }
}


/* ════════════════════════════════════════════════════════════════════════
   AGENTS PAGE — MOBILE BUG-FIX PATCH v2
   Applied: 2026-07-07
   Covers: Hero grid, live panel, hub container, CTA padding,
           workflow cards, stats band, integrations header, tabs
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. Agents hero inner: fix grid on narrow phones ── */
@media (max-width: 600px) {
  .ag-hero-inner {
    padding: 0 16px;
    gap: 28px;
  }
  .ag-hero-heading {
    font-size: clamp(28px, 8vw, 40px);
  }
  .ag-hero-sub {
    font-size: 14px;
    max-width: 100%;
  }
  .ag-hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .ag-btn-primary,
  .ag-btn-ghost {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ── 2. Live panel: show a simplified summary on mobile instead of nothing ── */
@media (max-width: 768px) {
  .ag-live-panel {
    display: block;
    padding: 16px;
    border-radius: 14px;
  }
  .ag-live-label {
    margin-bottom: 12px;
  }
  .ag-metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .ag-metric-item {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ag-metric-value {
    font-size: 15px;
  }
  .ag-metric-label {
    font-size: 10px;
  }
  .ag-metric-change {
    font-size: 10px;
    align-self: flex-end;
  }
}
@media (max-width: 480px) {
  .ag-metric-row {
    grid-template-columns: 1fr;
  }
}

/* ── 3. Hub visual container: constrain 600px fixed-width element to viewport ── */
@media (max-width: 640px) {
  .q-hub-visual-container {
    width: min(600px, 100%) !important;
    height: auto !important;
    min-height: 400px !important;
  }
}

/* ── 4. Hub section: fix padding on very small screens ── */
@media (max-width: 480px) {
  #pg-agents #ag-cube-section {
    padding: 60px 0;
  }
  .q-hub-wrapper {
    padding: 0 16px;
    gap: 30px;
  }
  .q-hub-title {
    font-size: clamp(22px, 6vw, 30px);
  }
  .q-hub-desc {
    font-size: 13px;
  }
  .q-hub-details-panel {
    padding: 16px;
    min-height: 180px;
  }
}

/* ── 5. Workflow cards: fix padding on small screens ── */
@media (max-width: 600px) {
  .ag-workflow-card {
    padding: 20px 16px;
  }
  .ag-wf-step-action {
    font-size: 11.5px;
  }
}

/* ── 6. Stats band: reduce section padding on mobile ── */
@media (max-width: 600px) {
  #ag-stats-band {
    padding: 40px 20px;
  }
  .ag-stats-header {
    margin-bottom: 32px;
  }
  .ag-stat-num {
    font-size: 30px;
  }
  .ag-stat-card {
    padding: 20px 16px;
  }
}

/* ── 7. Integrations header: fix gap on mobile ── */
@media (max-width: 600px) {
  .ag-integrations-header {
    gap: 20px;
  }
  .ag-integrations-header-left h2 {
    font-size: clamp(22px, 6vw, 32px);
  }
  .ag-integration-stat {
    padding: 10px 12px;
  }
  .ag-integration-stat-num {
    font-size: 18px;
  }
}

/* ── 8. CTA section: reduce padding on mobile ── */
@media (max-width: 768px) {
  #ag-cta {
    padding: 60px 24px;
  }
}
@media (max-width: 480px) {
  #ag-cta {
    padding: 40px 16px;
  }
}

/* ── 9. Sticky tabs: maintain 2x2 grid on narrow devices ── */
@media (max-width: 420px) {
  .ag-tabs-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 10. Agents grid section: padding fix on mobile ── */
@media (max-width: 480px) {
  #ag-grid-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ag-card {
    padding: 18px 14px;
  }
}

/* ── 11. Workflow section: reduce padding on mobile ── */
@media (max-width: 600px) {
  #ag-workflow {
    padding: 50px 20px;
  }
  .ag-workflow-header {
    margin-bottom: 32px;
  }
  .ag-workflow-header h2 {
    font-size: clamp(22px, 6vw, 32px);
  }
}

/* ── 12. Global agents overflow protection ── */
@media (max-width: 768px) {
  #pg-agents,
  #pg-agents * {
    max-width: 100%;
  }
  /* Allow scrollable containers to still work */
  .ag-marquee-track,
  .ag-tabs-inner,
  .ag-metric-row {
    max-width: none;
  }
}
