/* ============================================================
   AI TOOLS SHOWCASE
   ============================================================ */
.ai-tools { padding: 20px 0 var(--section-y); background: var(--white); }
.tools-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.tools-nav { display: flex; flex-direction: column; gap: 6px; }

.t-tile {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--white); border: 1.5px solid var(--border-100);
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; gap: 12px;
}
.t-tile:hover { border-color: var(--border-300); box-shadow: var(--shadow-sm); }
.t-tile.active { border-color: var(--primary-500); background: var(--primary-50); box-shadow: var(--shadow-md); }

.t-ico {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-input); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all 0.3s;
}
.t-tile.active .t-ico { background: var(--primary-600); }
.t-ico svg { width: 18px; height: 18px; stroke: var(--primary-600); stroke-width: 1.5; transition: 0.3s; }
.t-tile.active .t-ico svg { stroke: #fff; }
.t-tile h4 { font-size: 14px; font-weight: 600; color: var(--text-900); margin-bottom: 1px; }
.t-tile p { font-size: 11.5px; color: var(--text-400); }

/* Dashboard preview */
.t-preview {
  background: var(--white); border: 1.5px solid var(--border-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.t-preview-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px; background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-200);
}
.t-dot { width: 9px; height: 9px; border-radius: 50%; }
.t-dot:nth-child(1) { background: #fca5a5; }
.t-dot:nth-child(2) { background: #fcd34d; }
.t-dot:nth-child(3) { background: #86efac; }
.t-preview-name { margin-left: 10px; font-size: 12px; color: var(--text-400); font-weight: 600; }

.t-preview-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.t-bars { display: flex; flex-direction: column; gap: 10px; }
.t-bar-row { display: flex; align-items: center; gap: 12px; }
.t-bar-label { font-size: 11px; font-weight: 600; color: var(--text-400); width: 60px; text-align: right; }
.t-bar-track { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-input); overflow: hidden; }
.t-bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.t-bar-fill--blue { background: linear-gradient(90deg, var(--primary-600), var(--primary-400)); }
.t-bar-fill--indigo { background: linear-gradient(90deg, var(--indigo-600), var(--indigo-500)); }
.t-bar-fill--green { background: linear-gradient(90deg, var(--green-600), var(--green-500)); }
.t-bar-fill--amber { background: linear-gradient(90deg, var(--amber-600), #fbbf24); }
.t-bar-pct { font-size: 11px; font-weight: 700; color: var(--text-700); width: 36px; }

.t-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.t-metric {
  background: var(--bg-section-alt); border-radius: var(--radius-sm);
  padding: 16px 12px; text-align: center; border: 1px solid var(--border-100);
}
.t-metric-val { font-size: 22px; font-weight: 800; color: var(--primary-700); }
.t-metric-lbl { font-size: 10px; font-weight: 600; color: var(--text-400); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

.t-code {
  background: var(--bg-dark); border-radius: var(--radius-sm);
  padding: 16px 18px; font-family: 'Courier New', monospace;
  font-size: 12px; color: var(--text-muted-dark); line-height: 1.9;
}
.t-code .k { color: #38bdf8; }
.t-code .s { color: #34d399; }
.t-code .n { color: #fbbf24; }

@media (max-width: 1060px) {
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .t-metrics { grid-template-columns: 1fr; }
}