/* --- 1. STANDARDS & COMPLIANCE BAROMETER TABS --- */
.rai-standards-section {
  padding: 90px 0 80px;
  background: linear-gradient(180deg, #f8faff 0%, #edf2fc 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.rai-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.rai-section-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.rai-section-subtitle {
  font-size: 17px;
  color: #475569;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
}

/* Standards Selector Nav Pills */
.rai-standards-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.rai-standard-tab-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.rai-standard-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
}

.rai-standard-tab-btn.active {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.rai-tab-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 700;
}

/* Standard Content Card */
.rai-standard-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: none;
  animation: fadeInStandard 0.35s ease;
}

.rai-standard-card.active {
  display: block;
}

@keyframes fadeInStandard {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rai-std-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 30px;
}

.rai-std-title-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.rai-std-title-wrap p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  max-width: 600px;
}

.rai-std-pass-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 20px;
  border-radius: 14px;
}

.rai-pass-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.rai-pass-meta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #166534;
  letter-spacing: 0.04em;
}

.rai-pass-meta strong {
  font-size: 16px;
  color: #15803d;
  font-weight: 800;
}

.rai-std-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rai-check-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s ease;
}

.rai-check-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.rai-check-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rai-check-icon {
  color: #4f46e5;
  font-size: 14px;
}

.rai-check-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.rai-check-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* --- 2. THE 5-PILLAR TRUST ARCHITECTURE (BENTO-STYLE GLASS MATRIX) --- */
.rai-pillars-section {
  padding: 95px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.rai-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.rai-pillar-card {
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 34px 28px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rai-pillar-card:hover {
  transform: translateY(-5px);
  border-color: #a5b4fc;
  background: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(79, 70, 229, 0.12);
}

.rai-pillar-span-2 {
  grid-column: span 2;
}

.rai-pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }

.rai-pillar-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.rai-pillar-text {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

.rai-pillar-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.rai-spec-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

/* Feature Spotlight inside Pillar 1 (SHAP & LIME Visualizer) */
.rai-visual-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.rai-vis-item {
  margin-bottom: 10px;
}
.rai-vis-item:last-child { margin-bottom: 0; }

.rai-vis-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
}

.rai-progress-track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.rai-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease;
}

.bar-fairness { background: linear-gradient(90deg, #6366f1, #a855f7); width: 99.4%; }
.bar-grounding { background: linear-gradient(90deg, #06b6d4, #3b82f6); width: 98.8%; }
.bar-privacy { background: linear-gradient(90deg, #10b981, #059669); width: 100%; }

/* --- 3. INTERACTIVE RUNTIME GUARDRAIL SIMULATOR CONSOLE --- */
.rai-simulator-section {
  padding: 95px 0;
  background: linear-gradient(180deg, #0b0f19 0%, #030712 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.rai-sim-glow-bg {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.rai-sim-container {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

.rai-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.rai-sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.rai-sim-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseSimDot 2s infinite;
}

@keyframes pulseSimDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.rai-sim-latency {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 13px;
  color: #94a3b8;
}

.rai-sim-latency strong {
  color: #38bdf8;
}

/* Prompt Selectors */
.rai-prompt-chips-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.rai-sim-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.rai-sim-chip-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rai-sim-chip-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.rai-sim-chip-btn.active {
  background: rgba(79, 70, 229, 0.35);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Dual Column Console */
.rai-console-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.rai-terminal-box {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}

.rai-terminal-line {
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.6;
}

.rai-term-prompt {
  color: #e2e8f0;
}

.rai-term-prompt span {
  color: #38bdf8;
  font-weight: 700;
}

.rai-term-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.status-blocked {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.status-cleared {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Telemetry Metrics Panel */
.rai-telemetry-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rai-metric-row {
  margin-bottom: 16px;
}
.rai-metric-row:last-child { margin-bottom: 0; }

.rai-metric-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  margin-bottom: 6px;
}

.rai-metric-head strong {
  color: #ffffff;
}

/* --- 4. CONTINUOUS RED-TEAMING CRUCIBLE (STEPPED PIPELINE) --- */
.rai-pipeline-section {
  padding: 95px 0;
  background: #f8faff;
  border-bottom: 1px solid #e2e8f0;
}

.rai-pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
}

.rai-pipeline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  position: relative;
  transition: all 0.25s ease;
}

.rai-pipeline-card:hover {
  transform: translateY(-4px);
  border-color: #6366f1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rai-step-badge {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 18px;
}

.rai-pipeline-title {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.rai-pipeline-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* --- 5. AUDIT ARTIFACTS & EXECUTIVE REPORTING --- */
.rai-artifacts-section {
  padding: 95px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.rai-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.rai-artifact-card {
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rai-artifact-card:hover {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transform: translateY(-3px);
}

.rai-artifact-icon {
  font-size: 28px;
  color: #3b82f6;
  margin-bottom: 16px;
}

.rai-artifact-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.rai-artifact-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.rai-artifact-tag {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

/* --- 6. INTERACTIVE EU AI ACT FINE & RISK MITIGATION CALCULATOR --- */
.rai-calculator-section {
  padding: 95px 0;
  background: linear-gradient(180deg, #edf2fc 0%, #f7f9fe 100%);
  border-bottom: 1px solid #e2e8f0;
}

.rai-calc-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
  padding: 48px;
  margin-top: 40px;
}

.rai-calc-input-group {
  margin-bottom: 32px;
}

.rai-calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.rai-calc-val-display {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #4f46e5;
}

.rai-calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  accent-color: #4f46e5;
  cursor: pointer;
}

.rai-calc-result-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 15px 35px rgba(30, 27, 75, 0.25);
}

.rai-calc-res-item {
  margin-bottom: 24px;
}
.rai-calc-res-item:last-child { margin-bottom: 0; }

.rai-calc-res-val {
  font-size: 36px;
  font-weight: 800;
  color: #f87171;
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}

.rai-res-safe {
  color: #34d399 !important;
}

.rai-calc-res-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .rai-std-checklist-grid { grid-template-columns: 1fr; }
  .rai-pillars-grid { grid-template-columns: 1fr; }
  .rai-pillar-span-2 { grid-column: span 1; }
  .rai-console-split { grid-template-columns: 1fr; }
  .rai-pipeline-track { grid-template-columns: 1fr; }
  .rai-artifacts-grid { grid-template-columns: 1fr 1fr; }
  .rai-calc-card { padding: 24px; }
}

@media (max-width: 575px) {
  .rai-artifacts-grid { grid-template-columns: 1fr; }
  .rai-standard-tab-btn { width: 100%; justify-content: space-between; }
}
