/* ==========================================================================
   AltosForge — Enterprise AI Automation Solutions Suite
   Interactive Visual Technology Components (InvoZone Theme Compatible)
   Color Palette: #87e64b (InvoZone Neon Lime), #273f2b (Forest Green), #0f172a (Obsidian Slate)
   ========================================================================== */

.af-solutions-section {
  position: relative;
  padding: 100px 0;
  background: #090d16;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(135, 230, 75, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(39, 63, 43, 0.25) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  overflow: hidden;
}

.af-solutions-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 48px;
}

.af-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(135, 230, 75, 0.12);
  border: 1px solid rgba(135, 230, 75, 0.35);
  color: #87e64b;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.af-pill-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #87e64b;
  box-shadow: 0 0 10px #87e64b;
  animation: afPulseDot 2s infinite ease-in-out;
}

@keyframes afPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.af-solutions-title {
  font-size: clamp(2.2rem, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.af-solutions-title .green {
  color: #87e64b !important;
}

.af-solutions-desc {
  font-size: clamp(1rem, 1.8vw, 18px);
  color: #94a3b8;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Solution Tabs Navigation */
.af-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 40px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  max-width: fit-content;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
}

.af-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.af-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.af-tab-btn.active {
  background: #87e64b;
  color: #122115;
  border-color: #87e64b;
  box-shadow: 0 4px 20px rgba(135, 230, 75, 0.35);
  font-weight: 700;
}

.af-tab-btn .tab-icon {
  font-size: 16px;
}

/* Tab Panels Container */
.af-tab-panel {
  display: none;
  animation: afFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.af-tab-panel.active {
  display: block;
}

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

/* Common Terminal Shell */
.af-terminal-shell {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(135, 230, 75, 0.08);
  overflow: hidden;
  max-width: 1140px;
  margin: 0 auto;
}

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

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

.af-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.af-dot.red { background: #ef4444; }
.af-dot.yellow { background: #f59e0b; }
.af-dot.green { background: #10b981; }

.af-terminal-title {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.af-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(135, 230, 75, 0.12);
  border: 1px solid rgba(135, 230, 75, 0.3);
  color: #87e64b;
  font-weight: 700;
}

/* ==========================================================================
   1. AI CALLER VISUAL COMPONENT
   ========================================================================== */
.af-voice-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 32px;
}

@media (max-width: 900px) {
  .af-voice-grid { grid-template-columns: 1fr; padding: 20px; }
}

.af-voice-visualizer-card {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.af-waveform-wrap {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 20px 0;
  background: radial-gradient(circle, rgba(135, 230, 75, 0.08) 0%, transparent 70%);
  border-radius: 12px;
  margin: 16px 0;
}

.af-wave-bar {
  width: 5px;
  height: 30px;
  background: linear-gradient(180deg, #87e64b 0%, #273f2b 100%);
  border-radius: 4px;
  animation: afWaveAnimation 1.4s ease-in-out infinite alternate;
}

.af-wave-bar:nth-child(2) { animation-delay: 0.1s; height: 45px; }
.af-wave-bar:nth-child(3) { animation-delay: 0.25s; height: 75px; }
.af-wave-bar:nth-child(4) { animation-delay: 0.4s; height: 110px; }
.af-wave-bar:nth-child(5) { animation-delay: 0.15s; height: 90px; }
.af-wave-bar:nth-child(6) { animation-delay: 0.3s; height: 60px; }
.af-wave-bar:nth-child(7) { animation-delay: 0.5s; height: 80px; }
.af-wave-bar:nth-child(8) { animation-delay: 0.2s; height: 115px; }
.af-wave-bar:nth-child(9) { animation-delay: 0.35s; height: 95px; }
.af-wave-bar:nth-child(10) { animation-delay: 0.45s; height: 50px; }
.af-wave-bar:nth-child(11) { animation-delay: 0.12s; height: 35px; }

@keyframes afWaveAnimation {
  0% { transform: scaleY(0.25); opacity: 0.4; }
  100% { transform: scaleY(1.05); opacity: 1; }
}

.af-latency-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.af-lat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 6px;
  border-radius: 8px;
}

.af-lat-val {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 700;
  color: #87e64b;
}

.af-lat-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Call Simulation Dialogue Console */
.af-call-console {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.af-call-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.af-call-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.af-call-timer {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: #cbd5e1;
}

.af-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 6px;
}

.af-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.af-bubble.caller {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.af-bubble.agent {
  align-self: flex-end;
  background: rgba(39, 63, 43, 0.6);
  border: 1px solid rgba(135, 230, 75, 0.35);
  color: #ffffff;
}

.af-bubble-meta {
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  margin-bottom: 4px;
  color: #87e64b;
  font-weight: 700;
}

.af-bubble.caller .af-bubble-meta {
  color: #94a3b8;
}

.af-action-executed {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* ==========================================================================
   2. AI LEAD GENERATION VISUAL COMPONENT
   ========================================================================== */
.af-lead-panel-inner {
  padding: 24px;
}

.af-lead-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.af-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.af-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.af-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.af-chip.active {
  background: #87e64b;
  color: #122115;
  border-color: #87e64b;
  font-weight: 700;
}

.af-lead-stats-badge {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #87e64b;
  background: rgba(135, 230, 75, 0.1);
  border: 1px solid rgba(135, 230, 75, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
}

.af-lead-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.6);
}

.af-lead-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.af-lead-table th {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.af-lead-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  vertical-align: middle;
}

.af-lead-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.af-company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.af-avatar-sq {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #273f2b;
  color: #87e64b;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(135, 230, 75, 0.3);
}

.af-lead-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.af-intent-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.af-meter-bar {
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.af-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: #87e64b;
}

.af-btn-push {
  background: rgba(135, 230, 75, 0.15);
  color: #87e64b;
  border: 1px solid rgba(135, 230, 75, 0.35);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.af-btn-push:hover {
  background: #87e64b;
  color: #122115;
}

/* ==========================================================================
   3. AI ADS & CREATIVE ACQUISITION COMPONENT
   ========================================================================== */
.af-ads-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  padding: 32px;
}

@media (max-width: 950px) {
  .af-ads-grid { grid-template-columns: 1fr; padding: 20px; }
}

.af-roas-hero-card {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.af-roas-gauge-wrap {
  text-align: center;
  padding: 20px 0;
}

.af-roas-number {
  font-size: 54px;
  font-weight: 800;
  color: #87e64b;
  line-height: 1;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(135, 230, 75, 0.3);
}

.af-roas-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 600;
}

.af-ads-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.af-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.af-metric-row .lbl { color: #94a3b8; }
.af-metric-row .val {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #ffffff;
}

.af-creatives-split-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.af-split-card {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.25s;
}

.af-split-card:hover {
  border-color: rgba(135, 230, 75, 0.35);
  transform: translateY(-2px);
}

.af-split-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.af-split-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.af-split-badge.winner {
  background: rgba(135, 230, 75, 0.15);
  border: 1px solid rgba(135, 230, 75, 0.35);
  color: #87e64b;
}

.af-split-badge.testing {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.af-split-body {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.af-split-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
}

.af-stat-col .k { color: #94a3b8; margin-bottom: 2px; }
.af-stat-col .v { font-family: var(--font-mono, monospace); font-weight: 700; color: #ffffff; }

/* ==========================================================================
   4. AI SALES & AUTONOMOUS SDR COMPONENT
   ========================================================================== */
.af-sales-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  overflow-x: auto;
}

@media (max-width: 1000px) {
  .af-sales-kanban { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .af-sales-kanban { grid-template-columns: 1fr; }
}

.af-kanban-col {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.af-kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
}

.af-count-pill {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 9999px;
  color: #87e64b;
}

.af-kanban-deal-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.af-kanban-deal-card:hover {
  border-color: rgba(135, 230, 75, 0.35);
  transform: translateY(-2px);
}

.af-deal-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.af-deal-val {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #87e64b;
  margin-bottom: 8px;
}

.af-deal-tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  margin-top: 6px;
}

/* ==========================================================================
   5. FULL TECH STACK & ARCHITECTURE COMPONENT
   ========================================================================== */
.af-stack-node-canvas {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.af-node-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.af-node-box {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s;
  position: relative;
}

.af-node-box:hover {
  border-color: #87e64b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(135, 230, 75, 0.15);
}

.af-node-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #87e64b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 700;
}

.af-node-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.af-node-connector-line {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #87e64b;
  font-size: 20px;
  animation: afPulseConnector 2s infinite ease-in-out;
}

@keyframes afPulseConnector {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}

/* Solution Footer CTA Row */
.af-solution-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}

.af-cta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.af-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.af-cta-sub {
  font-size: 13px;
  color: #94a3b8;
}

.af-explore-btn {
  background: #87e64b;
  color: #122115 !important;
  border: 1.74px solid #87e64b;
  border-radius: 9999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.af-explore-btn:hover {
  background: #273f2b;
  color: #87e64b !important;
  border-color: #87e64b;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(135, 230, 75, 0.3);
}
