/* =========================================================================
   Code1001 - AI & LLM Solutions Service Page Stylesheet
   File: assets/css/ai-and-llm.css
   ========================================================================= */

/* Base Page Wrapper */
.ai-llm-page {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Global Wrap */
.ai-llm-page .wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
}

/* Color Tokens */
.text-cyan { color: #06b6d4 !important; }
.text-blue { color: #3b82f6 !important; }
.text-purple { color: #a78bfa !important; }
.text-green { color: #10b981 !important; }
.text-yellow { color: #b38800 !important; }
.text-red { color: #ef4444 !important; }

/* Gradient Accent */
.ai-gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Section Header Typography */
.ai-llm-page .sec-head {
  display: block !important;
  margin-bottom: 48px;
  width: 100%;
}

.ai-llm-page .sec-head > div {
  max-width: 820px;
}

.ai-llm-page .sec-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a855f7;
  margin-bottom: 10px;
}

.ai-llm-page .sec-head h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 14px;
}

.ai-llm-page .sec-head p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 780px;
  margin: 0;
}

@media (max-width: 768px) {
  .ai-llm-page .sec-head { margin-bottom: 32px; }
  .ai-llm-page .sec-head h2 { font-size: 28px; }
  .ai-llm-page .sec-head p { font-size: 15px; }
}

/* =========================================================================
   1. HERO SECTION (Website Redesign Page Style)
   ========================================================================= */
.rd-hero {
  padding: 88px 0 60px;
  position: relative;
  text-align: center;
}

.rd-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rd-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.12) 0%, rgba(96, 165, 250, 0.06) 45%, transparent 75%);
  filter: blur(60px);
}

.rd-grid-pattern {
  display: none !important;
}

.rd-hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.rd-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.rd-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.rd-hero-title {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 auto 20px;
  max-width: 960px;
}

.rd-hero-title .rd-title-top {
  display: block;
}

.rd-hero-title .rd-title-bottom {
  display: block;
}

.rd-gradient-text {
  background: linear-gradient(135deg, var(--text) 30%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

@media (max-width: 768px) {
  .rd-hero-title {
    font-size: 34px;
    line-height: 1.2;
  }
}

.rd-hero-lead {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 32px;
}

.rd-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.rd-hero-btn {
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.rd-hero-btn:hover {
  transform: translateY(-2px);
}

.rd-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.rd-hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.rd-hbadge svg {
  width: 16px;
  height: 16px;
}

.rd-icon-green { color: #13a57f; }
.rd-icon-blue { color: #60a5fa; }
.rd-icon-purple { color: #a78bfa; }

/* Interactive Hero Mockup (Background: #101011) */
.ai-mockup-wrapper {
  margin-top: 48px;
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.ai-engine-mockup {
  background: #101011;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(168, 85, 247, 0.14);
  position: relative;
}

/* Mockup Chrome Header */
.ai-mockup-chrome {
  background: #141417;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.chrome-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chrome-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.chrome-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
}

.chrome-pulse-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
  animation: aiPulse 1.8s infinite ease-in-out;
}

/* Scenario Switcher Tabs */
.agent-scenario-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #a1a1aa;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-btn svg {
  width: 13px;
  height: 13px;
}

.scenario-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.scenario-btn.active {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
  color: #f5f3ff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

.chrome-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  letter-spacing: 0.04em;
}

.chrome-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: aiPulse 1.4s infinite;
}

/* Mockup Body Split */
.ai-mockup-body {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: 520px;
}

@media (max-width: 980px) {
  .ai-mockup-body {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Left Swarm Mesh Canvas
   ========================================================================= */
.ai-swarm-canvas {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 15%, rgba(168, 85, 247, 0.09) 0%, transparent 65%), #101011;
  position: relative;
  overflow: hidden;
}

@media (max-width: 980px) {
  .ai-swarm-canvas {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.swarm-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.swarm-canvas-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-family: monospace;
}

.sc-lead {
  font-size: 12.5px;
  font-weight: 700;
  color: #e4e4e7;
}

.swarm-tps-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #22d3ee;
}

.tps-val {
  font-weight: 800;
  font-size: 13px;
  color: #38bdf8;
}

.tps-unit {
  color: #71717a;
  font-size: 10.5px;
}

/* Swarm Graph Container */
.swarm-graph-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 410px;
  z-index: 2;
}

/* SVG Animated Connectors */
.swarm-connectors-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.signal-track {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.signal-beam {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  animation: signalFlow 2s linear infinite;
  opacity: 0.9;
}

.beam-alpha { animation-duration: 2.2s; }
.beam-beta  { animation-duration: 1.8s; }
.beam-gamma { animation-duration: 2.4s; }
.beam-delta { animation-duration: 2.0s; }

@keyframes signalFlow {
  from {
    stroke-dashoffset: 44;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Supervisor Agent Card */
.agent-supervisor-node {
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 3;
  margin-bottom: 24px;
}

.supervisor-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  pointer-events: none;
  z-index: -1;
}

.ring-1 {
  width: 110%;
  height: 150%;
  animation: radarWave 3s ease-out infinite;
}

.ring-2 {
  width: 130%;
  height: 200%;
  animation: radarWave 3s ease-out 1.5s infinite;
}

@keyframes radarWave {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
  }
}

.supervisor-inner {
  background: #17171b;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.supervisor-inner:hover {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.supervisor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(59, 130, 246, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.supervisor-avatar svg {
  width: 22px;
  height: 22px;
}

.live-core-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.supervisor-info {
  flex: 1;
}

.supervisor-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.supervisor-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fafafa;
}

.supervisor-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
  font-family: monospace;
}

.supervisor-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: aiPulse 1.2s infinite;
  flex-shrink: 0;
}

.supervisor-goal-text {
  font-size: 11.5px;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* 4 Workers Grid */
.swarm-workers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  z-index: 3;
}

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

.agent-worker-card {
  background: #151518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.agent-worker-card:hover {
  background: #1a1a1e;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.agent-worker-card.pulse-active {
  animation: cardPulseActive 0.6s ease;
}

@keyframes cardPulseActive {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
  50% { transform: scale(1.03); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); border-color: rgba(168, 85, 247, 0.7); }
  100% { transform: scale(1); }
}

.worker-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.worker-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.worker-icon-box svg {
  width: 16px;
  height: 16px;
}

.icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}
.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}
.icon-yellow {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.icon-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.worker-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.agent-role-pill {
  font-size: 8.5px;
  font-weight: 800;
  color: #71717a;
  font-family: monospace;
}

.agent-state-pill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.state-cyan   { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }
.state-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.state-yellow { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.state-green  { background: rgba(16, 185, 129, 0.18); color: #34d399; }

.worker-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f4f4f5;
  line-height: 1.25;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.worker-meta {
  font-size: 10px;
  color: #82828e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worker-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-family: monospace;
  font-size: 10px;
}

.worker-telemetry-tag {
  color: #a1a1aa;
  font-weight: 600;
}

.worker-telemetry-val {
  color: #34d399;
  font-weight: 700;
}

.worker-signal-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.signal-progress {
  height: 100%;
  width: 60%;
  border-radius: 999px;
  animation: signalSweep 2s infinite ease-in-out;
}

.prog-cyan   { background: #06b6d4; }
.prog-purple { background: #a855f7; }
.prog-yellow { background: #f59e0b; }
.prog-green  { background: #10b981; }

@keyframes signalSweep {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(200%); }
}

/* Consensus Strip */
.swarm-consensus-strip {
  width: 100%;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 11px;
  font-family: monospace;
  z-index: 3;
}

.consensus-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a1a1aa;
  font-weight: 600;
}

.consensus-label svg {
  width: 14px;
  height: 14px;
  color: #34d399;
}

.consensus-hash {
  color: #34d399;
  font-weight: 700;
}

/* =========================================================================
   Right Terminal Panel: Real-Time Multi-Agent Reasoning Trace
   ========================================================================= */
.ai-terminal-panel {
  padding: 22px;
  background: #0d0d0f;
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.terminal-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
  animation: aiPulse 1.6s infinite;
}

.terminal-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #a1a1aa;
  letter-spacing: 0.06em;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-rerun-sim {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-rerun-sim:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
}

.btn-rerun-sim svg {
  width: 12px;
  height: 12px;
  transition: transform 0.4s ease;
}

.btn-rerun-sim.rotating svg {
  transform: rotate(360deg);
}

.terminal-latency-badge {
  font-size: 11px;
  color: #34d399;
  font-weight: 700;
}

.terminal-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #d4d4d8;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 4px;
}

.stream-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.25s ease;
}

.stream-line-enter {
  animation: streamLineEnter 0.35s ease forwards;
}

@keyframes streamLineEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stream-ts {
  color: #71717a;
  flex-shrink: 0;
  font-size: 11px;
}

.stream-tag {
  font-weight: 800;
  flex-shrink: 0;
  font-size: 11px;
}

.st-sup  { color: #c084fc; }
.st-rag  { color: #22d3ee; }
.st-code { color: #818cf8; }
.st-tool { color: #fbbf24; }
.st-eval { color: #34d399; }

.stream-msg {
  color: #f4f4f5;
  word-break: break-word;
  font-size: 11.5px;
}

.stream-msg code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  color: #38bdf8;
  font-size: 11px;
}

.stream-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #a855f7;
  vertical-align: middle;
  margin-left: 5px;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Mockup Footer Metrics */
.ai-mockup-footer {
  background: #141417;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .ai-mockup-footer { grid-template-columns: repeat(2, 1fr); }
}

.mockup-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
  margin-bottom: 2px;
}

.stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #f4f4f5;
  font-family: monospace;
}
.val-green { color: #34d399; }
.val-cyan  { color: #22d3ee; }
.val-purple{ color: #c084fc; }

/* =========================================================================
   2. ENTERPRISE CHALLENGES SECTION (The Problems We Solve)
   ========================================================================= */
.ai-sec-problems {
  padding: 90px 0;
  background: var(--bg);
}

.ai-problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .ai-problems-grid { grid-template-columns: 1fr; }
}

.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.4);
}

.problem-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.problem-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.problem-icon {
  width: 22px;
  height: 22px;
  color: #ef4444;
}

.problem-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
}

.problem-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.problem-solution-box {
  background: var(--card-2);
  border-left: 3px solid #10b981;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.problem-solution-box strong {
  color: #10b981;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* =========================================================================
   3. CORE SOLUTIONS & CAPABILITIES (What We Build)
   ========================================================================= */
.ai-sec-solutions {
  padding: 90px 0;
  background: var(--bg);
}

.ai-solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .ai-solutions-grid { grid-template-columns: 1fr; }
}

.solution-bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.solution-bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.35);
}

.sol-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-icon-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.25); }
.sol-icon-cyan   { background: rgba(6, 182, 212, 0.12);   color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.25); }
.sol-icon-green  { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.sol-icon-yellow { background: rgba(179, 136, 0, 0.12);  color: #b38800; border: 1px solid rgba(179, 136, 0, 0.25); }

.sol-icon-badge svg { width: 22px; height: 22px; }

.solution-bento-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
}

.solution-bento-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
}

.solution-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.solution-features-list li svg {
  width: 15px;
  height: 15px;
  color: #10b981;
  flex-shrink: 0;
}

.tech-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.tech-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: monospace;
}

/* =========================================================================
   4. ECOSYSTEM & SUPPORTED STACK SECTION (Brand Grid)
   ========================================================================= */
.ai-sec-ecosystem {
  padding: 90px 0;
  background: var(--bg);
}

.ai-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .ai-ecosystem-grid { grid-template-columns: 1fr; }
}

.ai-cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* Semantic Category Pills */
.cat-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
}

.cat-pill.tag-purple {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.28);
}

.cat-pill.tag-green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.28);
}

.cat-pill.tag-cyan {
  background: rgba(6, 182, 212, 0.08);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.28);
}

.cat-pill.tag-yellow {
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.28);
}

/* Dark Mode Overrides */
html[data-theme="dark"] .cat-pill.tag-purple {
  background: rgba(167, 139, 250, 0.14);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.25);
}

html[data-theme="dark"] .cat-pill.tag-green {
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border-color: rgba(19, 165, 127, 0.25);
}

html[data-theme="dark"] .cat-pill.tag-cyan {
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.25);
}

html[data-theme="dark"] .cat-pill.tag-yellow {
  background: rgba(250, 204, 21, 0.16);
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.25);
}

.cat-header h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

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

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

.brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.brand-item:hover {
  background: var(--card-3);
  border-color: var(--border);
}

.brand-item .bi-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =========================================================================
   5. ARCHITECTURAL PRINCIPLES SECTION
   ========================================================================= */
.ai-sec-principles {
  padding: 90px 0;
  background: var(--bg);
}

.ai-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .ai-principles-grid { grid-template-columns: 1fr; }
}

.principle-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principle-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a855f7;
  font-family: monospace;
}

.principle-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
}

.principle-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.principle-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

/* =========================================================================
   6. SECURITY & GUARDRAILS SECTION
   ========================================================================= */
.ai-sec-security {
  padding: 90px 0;
  background: var(--bg);
}

.ai-security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.security-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-box-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-box-icon svg { width: 19px; height: 19px; }

.security-box h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.security-box p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* =========================================================================
   7. TECHNICAL FAQ SECTION (Homepage Standard)
   ========================================================================= */
.ai-llm-page #faq {
  padding: 90px 0 70px;
}

.ai-llm-page #faq .sec-head {
  text-align: left;
}

/* =========================================================================
   8. FINAL CALL TO ACTION (Homepage Standard)
   ========================================================================= */
.ai-llm-page .cta-section {
  padding: 40px 0 80px;
}

