/* ──────────────────────────────────────────────────────────────
   AgentSurge Infographic — Shared Styles
   Brand-consistent with agentsurge.ai landing page.
   ────────────────────────────────────────────────────────────── */

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-glow: rgba(79, 70, 229, 0.18);
  --accent: #A78BFA;
  --accent-glow: rgba(167, 139, 250, 0.12);
  --bg-dark: #060B18;
  --bg-card: #0D1425;
  --bg-card-hover: #111B32;
  --bg-elevated: #0F1729;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(167, 139, 250, 0.28);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --red: #EF4444;
  --green: #10B981;
  --amber: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.2);
  --surface-card: rgba(16, 20, 32, 0.65);
  --surface-elevated: rgba(22, 27, 44, 0.8);
  --glow-violet: 0 0 80px rgba(167, 139, 250, 0.15), 0 0 160px rgba(167, 139, 250, 0.05);
  --glow-violet-intense: 0 0 40px rgba(167, 139, 250, 0.35), 0 0 120px rgba(167, 139, 250, 0.12);
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', monospace;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  padding: 56px 24px 80px;
  position: relative;
}

/* Subtle radial backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(79, 70, 229, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(167, 139, 250, 0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

h1, h2, h3, h4, .display, .stat-num {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

/* ── Top brand bar ── */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand-mark .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px var(--accent);
}
.brand-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Header band ── */
.hero {
  position: relative;
  border-radius: 24px;
  padding: 44px 40px;
  margin-bottom: 36px;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(167, 139, 250, 0.08) 50%, rgba(13, 20, 37, 0.8) 100%),
    var(--bg-card);
  border: 1px solid var(--border-hover);
  overflow: hidden;
  box-shadow: var(--glow-violet);
}
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero-tag.coming-soon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--amber);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}
.hero p.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ── Section ── */
.section { margin-bottom: 36px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section h2 {
  font-size: 24px;
  margin-bottom: 16px;
}
.section p { color: var(--text-secondary); font-size: 16px; }

/* ── Card ── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-hover); }

.problem-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), var(--surface-card));
  border-left: 3px solid var(--red);
  border-radius: 14px;
  padding: 22px 26px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Steps / Pipeline ── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  position: relative;
  padding-left: 36px;
}
.steps::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, transparent 100%);
  border-radius: 2px;
  opacity: 0.6;
}
.step {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: var(--border-hover); transform: translateX(3px); }
.step::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.7);
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.step p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Tech stack chips ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── Connection chips (other agents) ── */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.connect {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.connect-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
  flex-shrink: 0;
}
.connect-body { display: flex; flex-direction: column; gap: 2px; }
.connect-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.connect-rel {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Outcomes / what you get ── */
.outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.outcome {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.outcome:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.outcome-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.outcome-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.outcome p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── CTA footer ── */
.cta {
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(167, 139, 250, 0.06)),
    var(--bg-card);
  border: 1px solid var(--border-hover);
  text-align: center;
  box-shadow: var(--glow-violet);
}
.cta h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.cta p {
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-size: 15px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.45);
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.55);
}
.cta-btn .arrow { transition: transform 0.2s; }
.cta-btn:hover .arrow { transform: translateX(3px); }

/* ── Page footer ── */
.page-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  body { padding: 32px 16px 56px; }
  .hero { padding: 32px 24px; border-radius: 18px; }
  .card, .step, .outcome, .connect, .cta { padding: 18px 18px; }
  .cta { padding: 28px 22px; }
  .brand-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
  .page-foot { flex-direction: column; gap: 8px; align-items: flex-start; }
  .hero h1 { font-size: 30px; }
  .section h2 { font-size: 21px; }
}

@media print {
  body { background: white; color: black; padding: 20px; }
  body::before, body::after { display: none; }
  .hero, .cta { box-shadow: none; }
}
