/**
 * BRALTAM STUDIO - 2026 NEXT-GEN DESIGN SYSTEM & STYLESHEET
 * High-Performance Glassmorphism, Aurora Gradients, Bento Grid & Micro-Interactions
 */

:root {
  --bg-void: #060911;
  --bg-dark: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-surface: #0f172a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.25);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.font-mono { font-family: var(--font-mono); }
.text-accent { color: var(--accent); }
.text-primary-glow { color: #818cf8; }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #818cf8 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #c084fc 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 36px -8px var(--primary-glow);
}

.glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 17, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.badge-tier {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-sm:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.6);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-secondary-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-sm:hover {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(99, 102, 241, 0.4);
}

.btn-block { width: 100%; }

/* Hero Section */
.hero-section {
  padding: 6rem 0 4rem 0;
  position: relative;
  background: radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.2), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulseGlow 2s infinite ease-in-out;
}

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

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.7;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Live Telemetry Card */
.telemetry-card {
  padding: 1.75rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.telemetry-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.telemetry-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.metric-label {
  color: var(--text-secondary);
}

.metric-val {
  font-weight: 600;
}

.telemetry-graph-bar {
  width: 100%;
  height: 6px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.graph-progress {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.telemetry-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stats Counter Row */
.stats-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Section Header */
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Bento Grid */
.bento-section {
  padding: 6rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px var(--primary-glow);
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.bento-visual-preview {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #93c5fd;
}

/* Interactive Live Terminal / Code Tabs */
.terminal-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.3), transparent 70%);
}

.terminal-window {
  background: #090d16;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.terminal-topbar {
  background: #0f172a;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

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

.terminal-tabs {
  display: flex;
  gap: 0.5rem;
}

.terminal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.terminal-tab-btn.active, .terminal-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.2);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Mathematical / ROI Simulator */
.calculator-section {
  padding: 5rem 0;
}

.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.custom-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
  transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calculator-result-box {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
}

.result-val {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;

/* ==========================================================================
   PRODUCT OPERATIONS & GOVERNANCE COCKPIT ENHANCEMENTS
   IIT/IIM Enterprise Standard
   ========================================================================== */

.product-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-matrix-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.product-matrix-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.product-matrix-card:hover::before { opacity: 1; }

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-type-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.product-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.product-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.metric-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cell-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cell-val { font-size: 1.05rem; font-weight: 700; }

.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.product-head-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar-bubble {
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.head-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-micro {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.toolbar-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);

/* Cockpit Tabs & Controls */
.cockpit-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.btn-back:hover { color: var(--accent); }

.user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.user-avatar-lg {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.user-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sla-stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--success);
}

.engineers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.engineer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.chart-container {
  width: 100%;
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.5rem;
}

.audit-log-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.audit-log-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.log-msg { color: var(--text-secondary); flex: 1; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-close:hover { color: var(--text-primary); }

.code-textarea {
  width: 100%;
  background: #060911;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  resize: vertical;
  line-height: 1.5;
}

.code-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-pill {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover, .filter-pill.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: var(--text-primary);
}

}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  user-select: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 1.75rem 1.5rem 1.75rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Enterprise CTA Banner */
.cta-banner-section {
  padding: 5rem 0 6rem 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%), #0d1322;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(99, 102, 241, 0.3);
}

.cta-banner-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.25rem auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 9, 17, 0.9);
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Client Portal & Dashboard Styles */
.page-content {
  padding: 4rem 1.5rem;
  flex: 1;
}

.portal-auth-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 480px;
  margin: 2rem auto;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem auto;
}

.auth-header h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(11, 15, 25, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.alert-box {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-hint {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-hint code {
  background: rgba(30, 41, 59, 0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #93c5fd;
  font-family: var(--font-mono);
}

/* Dashboard View */
.dashboard-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.warehouse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px var(--primary-glow);
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.product-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem;
  background: rgba(11, 15, 25, 0.6);
  border-radius: 6px;
}

/* Legal Documents */
.document-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.document-card h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.document-card h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: 0.75rem; color: #818cf8; }
.document-card p { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.doc-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-col-2 { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-card { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-container { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   BRALTAM UNIVERSAL BRAND LAYER  (single source of truth)
   Master logo file: 01_CORE_ENGINES/brand/logo.svg  -> served at /brand/logo.svg
   Change ONLY that one file. This block auto-updates header logo + watermark
   + footer strip across ALL pages (they all load this stylesheet).
   ========================================================================== */

/* 1) Header logo — replaces the ⚡ emoji everywhere (beats inline styles too) */
.brand-logo-icon {
  background-image: url('/brand/logo.svg') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  font-size: 0 !important;
  color: transparent !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

/* 2) Subtle universal watermark (fixed, non-blocking, very light) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('/brand/logo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(58vw, 520px) auto;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* 3) Footer brand strip (pushed to the very bottom of every page) */
body::after {
  content: "BRALTAM  STUDIO  \00B7  AUTONOMOUS ENTERPRISE INTELLIGENCE";
  margin-top: auto;
  display: block;
  padding: 15px 18px 15px 62px;
  background: #0b1220 url('/brand/logo.svg') 18px center / 30px 30px no-repeat;
  border-top: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   MISSION B ADDITIVE LAYER — Enterprise Polish (2026)
   Purely additive. No existing selector is modified.
   ========================================================================== */

/* Header/footer brand logo image (replaces the old # emoji rendering) */
.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.35));
}
.site-footer .brand-logo-img { height: 28px; }

/* Executive trust pills */
.exec-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
}

/* ===== Client Cockpit (post-login) ===== */
.security-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.security-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  display: inline-block;
}
.security-sep { color: var(--text-muted); }

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.cockpit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.stage-tracker { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.stage-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}
.stage-step .stage-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: inline-block;
}
.stage-step.done { color: var(--text-secondary); }
.stage-step.done .stage-dot { border-color: var(--success); background: var(--success); }
.stage-step.active { color: var(--text-primary); }
.stage-step.active .stage-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.doc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.doc-table th {
  text-align: left;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}
.doc-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.doc-table tr:last-child td { border-bottom: none; }

.support-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.support-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}
.support-card:hover { border-color: var(--border-glow); }
.support-card small { color: var(--text-muted); font-size: 0.75rem; }

