/* ==========================================================================
   WARD AGENTIC RESEARCH AND DEVELOPMENT (W.A.R.D.) — MATTE UI COMPONENTS
   ==========================================================================

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────────────────────
   1. Buttons, Badges & Tags ......................................... L  6
   2. Portfolio Cards & Unified Systems Grid .......................... L266
   3. Hero Interactive Software Showcase Carousel .................... L767
   4. Download Center Cards & Statutory Disclaimers .................. L1106
   5. Publications & Whitepapers Section ............................. L1633
   6. Infrastructure & Hardware Matrix ............................... L1941
   7. Governance & Compliance Verification Matrix .................... L2006
   8. Footer ......................................................... L2133
   9. Legal & Regulatory Compliance Center (Master-Detail) ........... L2280
  10. Compact Statutory Matrix Inspector ............................. L2594
  11. Responsive Layout & Mobile Grid Collapse Rules ................. L2835
  12. Confidential Issues & Security Disclosure Center ............... L3011
  13. MathJax & KaTeX Clean Math Rendering ........................... L3383
   ========================================================================== */

/* Buttons — Tactile Brutalist Physical States */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.05s ease, background-color 0.04s ease, color 0.04s ease, border-color 0.04s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: #F8FAFC;
  color: #09111E;
  font-weight: 750;
  border-color: #F8FAFC;
  box-shadow: 4px 4px 0px #0284C7;
}

.btn-primary:hover {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #FFFFFF;
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #FFFFFF;
}

.btn-secondary {
  background: #111722;
  color: #F8FAFC;
  font-weight: 650;
  border-color: var(--border-medium);
  box-shadow: 4px 4px 0px #09111E;
}

.btn-secondary:hover {
  background: #F8FAFC;
  color: #09111E;
  border-color: #F8FAFC;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #38BDF8;
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #38BDF8;
}

.btn-emerald {
  background: var(--accent-olive-subtle);
  color: var(--accent-olive);
  font-weight: 700;
  border: 2px solid var(--accent-olive-border);
  box-shadow: 4px 4px 0px #09111E;
}

.btn-emerald:hover {
  background: var(--accent-olive);
  color: #FFFFFF;
  border-color: var(--accent-olive);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #FFFFFF;
}

.btn-emerald:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  box-shadow: 3px 3px 0px #09111E;
}

.btn-sm:hover {
  box-shadow: 5px 5px 0px #38BDF8;
}

.btn-primary.btn-sm {
  box-shadow: 3px 3px 0px #0284C7;
}

.btn-primary.btn-sm:hover {
  box-shadow: 5px 5px 0px #FFFFFF;
}

.btn-icon-only {
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #18181B;
  border: 1px solid #27272A;
  color: var(--color-gray-light);
}

.badge-slate {
  background: var(--accent-slate-subtle);
  border: 1px solid var(--accent-slate-border);
  color: var(--accent-slate);
}

.badge-olive {
  background: var(--accent-olive-subtle);
  border: 1px solid var(--accent-olive-border);
  color: var(--accent-olive);
}

.badge-rust-solid {
  background: var(--accent-rust);
  color: #000000;
  border: 1px solid var(--accent-rust);
  font-weight: 700;
}

.badge-rust {
  background: var(--accent-rust-subtle);
  border: 1px solid var(--accent-rust-border);
  color: var(--accent-rust-light);
}

.badge-steel {
  background: var(--accent-steel-subtle);
  border: 1px solid var(--accent-steel-border);
  color: var(--accent-steel-light);
}

.badge-white {
  background: #27272A;
  border: 1px solid #3F3F46;
  color: #FFFFFF;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #C084FC;
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.paper-compliance-box {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.paper-compliance-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-slate);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.paper-compliance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}


/* Filter Controls */
.filter-container {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: #111722;
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0px #09111E;
  transition: transform 0.05s ease, box-shadow 0.05s ease, background-color 0.04s ease, color 0.04s ease, border-color 0.04s ease;
  user-select: none;
}

.filter-pill:hover {
  border-color: #F8FAFC;
  color: #F8FAFC;
  background: #182436;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #38BDF8;
}

.filter-pill.active {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #000000;
  font-weight: 800;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #FFFFFF;
}

.filter-pill:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #FFFFFF;
}

/* ==========================================================================
   macOS GATEKEEPER & FIRST-LAUNCH SECURITY NOTICE
   ========================================================================== */

.macos-security-notice {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.96) 50%, rgba(14, 165, 233, 0.06) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg, 12px);
  padding: 24px 28px;
  margin-top: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.macos-security-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #a855f7);
  opacity: 0.85;
}

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

.macos-notice-icon-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.macos-notice-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.macos-notice-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.macos-notice-subtitle {
  font-size: 0.88rem;
  color: var(--accent-rust-light, #bae6fd);
  margin: 0;
  font-style: normal;
}

.macos-notice-subtitle em {
  font-style: italic;
  color: #f8fafc;
}

.macos-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.macos-notice-explanation {
  font-size: 0.9rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.macos-notice-explanation strong {
  color: #ffffff;
}

.macos-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.macos-step-card {
  background: rgba(22, 34, 56, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.macos-step-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(22, 34, 56, 0.95);
}

.macos-step-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.macos-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.macos-step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.macos-step-desc strong {
  color: #f1f5f9;
}

.macos-cmd-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #09111e;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
}

.macos-cmd-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: nowrap;
}

.macos-gatekeeper-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  margin-top: 8px;
  line-height: 1.4;
}

.macos-gatekeeper-hint a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.macos-gatekeeper-hint a:hover {
  color: #ffffff;
}

/* ==========================================================================
   PORTFOLIO CARDS & UNIFIED SYSTEMS GRID
   ========================================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg, 12px);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-slate, #38bdf8), #0284c7);
  opacity: 0.6;
  transition: opacity 0.25s ease, height 0.25s ease;
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: #131d35;
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65);
}

.project-card:hover::before {
  opacity: 1;
  height: 4px;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-slate);
  transition: all 0.2s ease;
}

.project-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.project-tagline {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-slate, #38bdf8);
  margin-bottom: 12px;
  line-height: 1.4;
}

.project-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

/* Plain-English Overview Box */
.system-plain-desc {
  background: rgba(56, 189, 248, 0.07);
  border-left: 4px solid var(--accent-slate, #38bdf8);
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.plain-desc-tag {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plain-desc-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 0;
}

/* Technical Specifications List */
.system-specs-wrap {
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  padding: 20px 22px;
}

.system-specs-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.system-specs-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.90rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.system-specs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-slate, #38bdf8);
}

.system-specs-list li strong {
  color: #ffffff;
  font-weight: 600;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

/* High-Contrast Metrics Grid */
.project-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: #080e1a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md, 8px);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.metric-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-cell-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: normal;
}

.metric-cell-value {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.0rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

/* Static Header Metadata Chips (Non-Interactive) */
.card-meta-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: default;
  user-select: none;
}

.meta-chip-version {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

.meta-chip-platform {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 500;
}

.meta-chip-license {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
}

/* Static Technology Tags (Non-Interactive) */
.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tech-tag {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  border-radius: 4px;
  color: #94a3b8;
  cursor: default;
  user-select: none;
}

/* Clickable External Reference Links */
.card-external-refs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.ref-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-slate, #38bdf8);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted rgba(56, 189, 248, 0.4);
  padding-bottom: 1px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.ref-link:hover {
  color: #ffffff;
  border-bottom: 1px solid #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Primary Action Buttons Row */
.system-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-gitlab-repo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(252, 109, 38, 0.12);
  border: 1px solid rgba(252, 109, 38, 0.35);
  color: #fc6d26;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 42px;
  box-sizing: border-box;
}

.btn-gitlab-repo:hover {
  background: rgba(252, 109, 38, 0.24);
  border-color: #fc6d26;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(252, 109, 38, 0.35);
  transform: translateY(-1px);
}

.btn-paper-unified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 42px;
  box-sizing: border-box;
}

/* Download & Quickstart Panel */
.system-downloads-panel {
  background: #080e1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.system-dl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.system-dl-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.local-path-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Laboratory Transparency & Testing Framework Banner */
.transparency-report-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.transparency-banner-content {
  max-width: 720px;
}

.transparency-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transparency-banner-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Governance & Compliance Portal Banner */
.governance-portal-banner {
  background: linear-gradient(135deg, rgba(224, 86, 56, 0.08) 0%, rgba(100, 116, 139, 0.12) 100%);
  border: 1px solid rgba(224, 86, 56, 0.3);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.gov-portal-left {
  max-width: 720px;
}

.gov-portal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 10px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.gov-portal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

@media (max-width: 768px) {
  .governance-portal-banner {
    padding: 20px 22px;
  }
  .gov-portal-actions {
    width: 100%;
  }
  .gov-portal-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   HERO INTERACTIVE SOFTWARE SHOWCASE CAROUSEL
   ========================================================================== */

.hero-carousel-container {
  background: rgba(12, 16, 24, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 30px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-carousel-container:hover {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.75), 0 0 40px rgba(56, 189, 248, 0.14);
}

/* Main Viewport / Slides Stage */
.hero-carousel-stage {
  position: relative;
  width: 100%;
  height: 420px;
  background: #080b11;
  overflow: hidden;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.slide-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080b11;
}

.hero-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
}

.hero-carousel-slide:hover .hero-carousel-img {
  transform: scale(1.02);
}

/* Slide Caption Overlay Bar */
.slide-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(to top, rgba(8, 12, 19, 0.88) 0%, rgba(8, 12, 19, 0.4) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-caption-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.slide-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.slide-heading {
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.slide-version {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.slide-summary {
  font-size: 0.78rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-slide-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-slide-action:hover {
  background: #38bdf8;
  color: #031424;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.btn-slide-action .arrow-glyph {
  transition: transform 0.2s ease;
}

.btn-slide-action:hover .arrow-glyph {
  transform: translateX(3px);
}

/* Floating Navigation Arrows */
.carousel-nav-btn {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(12, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.carousel-nav-btn:hover {
  background: rgba(56, 189, 248, 0.9);
  border-color: #38bdf8;
  color: #031424;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.carousel-nav-btn.prev-btn {
  left: 12px;
}

.carousel-nav-btn.next-btn {
  right: 12px;
}

/* Footer / Progress Bar & Slide Counter */
.hero-carousel-footer {
  background: rgba(10, 15, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 280px;
}

.indicator-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.2s ease, background 0.2s ease;
}

.indicator-bar:hover {
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
}

.indicator-bar .indicator-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: #38bdf8;
  border-radius: 2px;
  box-shadow: 0 0 6px #38bdf8;
}

.indicator-bar.active {
  background: rgba(56, 189, 248, 0.2);
}

.indicator-bar.active .indicator-progress {
  width: 100%;
}

.carousel-controls-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--text-secondary, #94a3b8);
}

.carousel-play-pause-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-play-pause-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.carousel-counter {
  letter-spacing: 0.05em;
}

.carousel-counter .current-slide {
  color: #FFFFFF;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-carousel-stage {
    height: 280px;
  }
  .slide-caption-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .slide-heading {
    font-size: 0.95rem;
  }
  .slide-summary {
    display: none;
  }
  .btn-slide-action {
    width: 100%;
    justify-content: center;
  }
  .carousel-nav-btn {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================

/* ==========================================================================
   DOWNLOAD CENTER CARDS & STATUTORY DISCLAIMERS
   ========================================================================== */

/* Main Statutory Legal & Licensing Disclaimer Box */
.download-legal-disclaimer-box {
  margin-bottom: 36px;
  background: #0b1320;
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.download-legal-header {
  background: rgba(234, 88, 12, 0.1);
  border-bottom: 1px solid rgba(234, 88, 12, 0.25);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.download-legal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-legal-icon {
  font-size: 1.2rem;
}

.download-legal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.download-legal-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #fb923c;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.35);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.download-legal-body {
  padding: 24px 22px 20px;
}

.download-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.download-legal-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 4px);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-legal-col-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-legal-col-title span.col-icon {
  font-size: 1rem;
}

.download-legal-col-text {
  font-size: 0.8rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
  margin: 0;
}

.download-legal-col-text strong {
  color: #e2e8f0;
}

.download-legal-quicklinks {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-legal-links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-legal-links-label {
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.download-legal-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  width: 100%;
}

@media (max-width: 900px) {
  .download-legal-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .download-legal-pills-grid {
    grid-template-columns: 1fr;
  }
}

.btn-legal-pill {
  background: #16263b;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
  padding: 10px 14px;
  min-height: 44px;
  height: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 0.76rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  transition: all 0.15s ease;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-legal-pill:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #031424;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

/* Card-level Disclaimer Pills */
.card-legal-disclaimer-pill {
  margin: 12px 0 16px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 4px;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.card-legal-disclaimer-pill.pill-warning {
  border-left-color: var(--accent-rust, #ea580c);
  background: rgba(234, 88, 12, 0.06);
  border-color: rgba(234, 88, 12, 0.2);
  color: #fed7aa;
}

.card-legal-disclaimer-pill.pill-privacy {
  border-left-color: #34d399;
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.2);
  color: #a7f3d0;
}

.card-legal-disclaimer-pill strong {
  color: #FFFFFF;
}

.download-link-policy-trigger {
  font-size: 0.74rem;
  font-family: inherit;
  color: #38bdf8;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.download-link-policy-trigger:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Bottom Legal Acknowledgment Bar */
.download-acknowledgment-footer {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  text-align: center;
}

.download-acknowledgment-footer strong {
  color: #e2e8f0;
}

.download-acknowledgment-footer a {
  color: #38bdf8;
  text-decoration: underline;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.download-card {
  background: var(--bg-surface-elevated, #0d1522);
  border: 1px solid var(--border-medium, rgba(56, 189, 248, 0.2));
  border-radius: var(--radius-md, 8px);
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.download-card-header {
  margin-bottom: 16px;
}

.download-card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.badge-platform {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 500;
}

.badge-version {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-weight: 700;
}

.download-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.download-card-subtitle {
  font-size: 0.82rem;
  color: var(--accent-rust-light, #fb923c);
  font-weight: 600;
  margin-bottom: 0;
}

.download-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  margin-bottom: 22px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-download-primary {
  width: 100%;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-download-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.download-alt-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
}

.download-alt-link {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.download-alt-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.download-alt-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Quickstart Terminal inside Developer Cards */
.card-quickstart-wrap {
  margin-top: 14px;
  margin-bottom: 18px;
}

.card-quickstart-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-slate, #38bdf8);
}

.terminal-box {
  background: #080d16;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.terminal-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #94a3b8;
}

.terminal-body {
  padding: 12px 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  line-height: 1.55;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
  background: #080d16;
}

.code-prompt {
  color: var(--accent-slate, #38bdf8);
  user-select: none;
  font-weight: 700;
  margin-right: 4px;
}

.code-comment {
  color: #64748b;
  font-style: italic;
}

/* Card Target Highlight Glow */
.download-card.highlight-target,
.download-card:target {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4), 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  animation: cardHighlightPulse 2.4s ease-out;
}

@keyframes cardHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8), 0 16px 40px rgba(0, 0, 0, 0.6);
    border-color: #38bdf8;
  }
  30% {
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.3), 0 20px 48px rgba(56, 189, 248, 0.25);
    border-color: #7dd3fc;
  }
  70% {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 18px 44px rgba(0, 0, 0, 0.5);
    border-color: #38bdf8;
  }
  100% {
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3), 0 16px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(56, 189, 248, 0.4);
  }
}

.download-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.download-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.download-meta-label {
  font-weight: 600;
  color: #94a3b8;
}

.download-meta-val {
  color: #cbd5e1;
}

/* ==========================================================================
   PUBLICATIONS & WHITEPAPERS SECTION
   ========================================================================== */

.papers-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.paper-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.paper-seq {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-steel-light);
  opacity: 0.85;
  min-width: 36px;
}

.paper-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paper-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.paper-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.paper-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.paper-abstract {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.paper-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.paper-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 165px;
  justify-content: center;
}

/* Modal Drawer for Whitepaper Full View */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 52px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #162032;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #fff;
  border-color: var(--accent-slate);
}

.math-formula-box {
  background: #0c121d;
  border: 1px solid var(--accent-steel-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #7dd3fc;
  text-align: center;
  overflow-x: auto;
}

/* Technical Papers Modal Deep-Dive Styles */
.paper-prototype-callout {
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-left: 4px solid var(--accent-rust);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: #ffedd5;
  line-height: 1.55;
}

.paper-section-divider {
  margin: 32px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-section-divider h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin: 0;
}

.methodology-card {
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.methodology-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.methodology-target-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.methodology-target-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.methodology-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.methodology-software-manifestation {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.software-architecture-card {
  background: #09090D;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.software-arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.software-arch-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.software-arch-item strong {
  color: #FFFFFF;
  display: block;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.benchmark-card {
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benchmark-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-slate);
  font-family: var(--font-mono);
}

.benchmark-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prototype-limits-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ==========================================================================
   INFRASTRUCTURE & HARDWARE MATRIX
   ========================================================================== */

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

.infra-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.infra-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.infra-card:nth-child(1) .infra-icon {
  color: var(--accent-slate);
}
.infra-card:nth-child(2) .infra-icon {
  color: var(--accent-olive);
}
.infra-card:nth-child(3) .infra-icon {
  color: var(--accent-steel-light);
}
.infra-card:nth-child(4) .infra-icon {
  color: var(--accent-rust-light);
}

.infra-icon {
  font-size: 1.6rem;
}

.infra-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.infra-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.infra-metric {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-silver);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   GOVERNANCE & COMPLIANCE VERIFICATION MATRIX
   ========================================================================== */

.governance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.governance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.governance-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.gov-icon {
  font-size: 1.6rem;
}

.gov-doc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.gov-doc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.gov-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-slate);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.gov-verify-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Compliance Verification Table */
.compliance-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  margin-top: 24px;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.compliance-table th {
  background: #141418;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.compliance-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-secondary);
}

.compliance-table tr:last-child td {
  border-bottom: none;
}

.compliance-table tr:hover td {
  background: var(--bg-card-hover);
}

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

@media (max-width: 640px) {
  .governance-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.lab-footer {
  background: var(--footer-bg, #070b14);
  border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.08));
  padding: 56px 0 36px;
  position: relative;
  color: var(--footer-text, #cbd5e1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.15fr 1.25fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand-group {
  display: inline-flex;
  width: fit-content;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--footer-text, #cbd5e1);
  max-width: 360px;
  line-height: 1.6;
  font-weight: 400;
}

.footer-gitlab {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--footer-text, #cbd5e1);
  margin-top: 4px;
  font-weight: 500;
}

.footer-gitlab a {
  color: var(--footer-link-hover, #38bdf8);
  text-decoration: none;
  border-bottom: 1px dotted rgba(56, 189, 248, 0.4);
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.footer-gitlab a:hover {
  color: #ffffff;
  border-bottom: 1px solid #38bdf8;
}

.footer-notice {
  font-size: 0.76rem;
  color: var(--footer-text-muted, #64748b);
  margin-top: 8px;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
  font-weight: 400;
}

.footer-notice-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--footer-text-muted, #64748b);
}

.footer-trademarks {
  margin: 8px 0 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--footer-text-muted, #64748b);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--footer-title, #f8fafc);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--footer-link, #94a3b8);
  font-weight: 400;
  transition: color 0.15s ease;
  text-decoration: none;
  line-height: 1.45;
}

.footer-links a:hover {
  color: var(--footer-link-hover, #38bdf8);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  font-size: 0.84rem;
  color: var(--footer-text-muted, #64748b);
  font-weight: 400;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--footer-text-muted, #64748b);
  font-weight: 400;
}

.footer-badges span {
  color: var(--footer-text-muted, #64748b);
}

/* ==========================================================================
   LEGAL & REGULATORY COMPLIANCE CENTER COMPONENTS (COMPACT MASTER-DETAIL)
   ========================================================================== */

.compliance-portal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 32px;
  margin-bottom: 48px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.compliance-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.compliance-system-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compliance-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #111115;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.compliance-tab-btn:hover {
  background: #1a1a20;
  color: #FFFFFF;
  border-color: var(--border-medium);
}

.compliance-tab-btn.active {
  background: var(--accent-rust-subtle);
  color: var(--accent-rust-light);
  border-color: var(--accent-rust-border);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
}

.compliance-search-wrap {
  position: relative;
  min-width: 240px;
  flex: 1;
  max-width: 320px;
}

.compliance-search-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border-radius: var(--radius-sm);
  background: #0d0d10;
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.compliance-search-input:focus {
  border-color: var(--accent-slate-border);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.15);
}

.compliance-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

/* Master-Detail Split Hub */
.compliance-hub-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  margin-top: 20px;
  min-height: 500px;
}

.compliance-doc-list-wrap {
  display: flex;
  flex-direction: column;
  background: #09090C;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 520px;
}

.compliance-doc-list-header {
  padding: 12px 18px;
  background: #111115;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compliance-doc-list {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.compliance-doc-list::-webkit-scrollbar {
  width: 5px;
}
.compliance-doc-list::-webkit-scrollbar-track {
  background: #09090C;
}
.compliance-doc-list::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 4px;
}

.compliance-list-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #111115;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.compliance-list-item:hover {
  background: #18181F;
  border-color: rgba(255, 255, 255, 0.08);
}

.compliance-list-item.active {
  background: rgba(249, 115, 22, 0.08);
  border-color: var(--accent-rust-border);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.1);
}

.compliance-list-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.compliance-list-item-sys {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compliance-list-item-title {
  font-size: 0.88rem;
  font-weight: 650;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0;
}

.compliance-list-item.active .compliance-list-item-title {
  color: var(--accent-rust-light);
}

.compliance-list-item-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Focused Preview Pane */
.compliance-preview-pane {
  background: #0D0D11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 480px;
  overflow-y: auto;
}

.compliance-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.compliance-preview-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0 0 8px;
}

.compliance-preview-source {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-slate);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.compliance-preview-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.compliance-preview-statutes {
  margin-bottom: 20px;
}

.compliance-preview-statutes-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.compliance-preview-statutes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compliance-preview-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.compliance-doc-statute-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-slate);
  background: rgba(148, 163, 184, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-open-legal-doc {
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #000000;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-open-legal-doc:hover {
  background: #E5E5EA;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   COMPACT STATUTORY MATRIX INSPECTOR
   ========================================================================== */

.matrix-portal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px 32px;
  margin-top: 28px;
  margin-bottom: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.matrix-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.matrix-platform-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.matrix-pill-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: #111115;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.matrix-pill-btn:hover {
  background: #1a1a20;
  color: #FFFFFF;
  border-color: var(--border-medium);
}

.matrix-pill-btn.active {
  background: var(--accent-slate-subtle);
  color: var(--accent-slate);
  border-color: var(--accent-slate-border);
}

.matrix-search-wrap {
  position: relative;
  min-width: 220px;
  flex: 1;
  max-width: 280px;
}

.matrix-search-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border-radius: var(--radius-sm);
  background: #0d0d10;
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.matrix-search-input:focus {
  border-color: var(--accent-slate-border);
}

.matrix-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.78rem;
  pointer-events: none;
}

.matrix-table-scroll {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #09090C;
}

.matrix-table-scroll::-webkit-scrollbar {
  width: 5px;
}
.matrix-table-scroll::-webkit-scrollbar-track {
  background: #09090C;
}
.matrix-table-scroll::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 4px;
}

.compliance-table.compact-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.compliance-table.compact-matrix th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #141418;
  padding: 14px 18px;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.compliance-table.compact-matrix td {
  padding: 14px 18px;
  font-size: 0.84rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compliance-table.compact-matrix tr:hover td {
  background: #111116;
}

.btn-matrix-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px #09111E;
  transition: transform 0.05s ease, box-shadow 0.05s ease, background-color 0.04s ease, color 0.04s ease;
  white-space: nowrap;
  user-select: none;
}

.btn-matrix-action:hover {
  background: #38BDF8;
  color: #000000;
  border-color: #38BDF8;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #FFFFFF;
}

.btn-matrix-action:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px transparent;
}

.matrix-count-footer {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}


/* Legal Document Reader Modal & Typography */
.legal-doc-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-doc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-doc-section h3 {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-heading, #f8fafc);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-doc-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-slate);
  margin-top: 16px;
  margin-bottom: 10px;
}

.legal-doc-section p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-doc-section ul {
  list-style: square;
  padding-left: 22px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-doc-section li {
  margin-bottom: 8px;
}

.callout-box {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid var(--accent-rust-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 16px 0;
}

.callout-box strong {
  color: var(--accent-rust-light);
}

/* ==========================================================================
   RESPONSIVE LAYOUT & MOBILE GRID COLLAPSE RULES
   ========================================================================== */

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .macos-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .paper-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .paper-seq {
    display: none;
  }
  .compliance-hub-split {
    grid-template-columns: 1fr;
  }
  .compliance-doc-list-wrap,
  .compliance-preview-pane {
    max-height: none;
  }
}

@media (max-width: 768px) {
  /* Multi-column metric grids collapse into clean single-column rows */
  .project-metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 14px 16px;
  }

  .metric-cell {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  }

  .metric-cell:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .metric-cell-label {
    font-size: 0.80rem;
  }

  .metric-cell-value {
    font-size: 0.95rem;
    text-align: right;
  }

  /* Action buttons stack into single column */
  .system-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .btn-paper-unified,
  .btn-gitlab-repo {
    width: 100%;
    justify-content: center;
  }

  /* Dense 4-column footer collapses into clean single-column list */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .footer-grid > div {
    width: 100%;
  }

  .footer-col-title {
    margin-bottom: 12px;
  }

  .footer-brand {
    gap: 12px;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
  }

  .footer-badges {
    flex-direction: column;
    gap: 8px;
  }

  /* Card padding and sub-components */
  .project-card {
    padding: 24px 18px;
  }

  .system-downloads-panel {
    padding: 14px 16px;
  }

  .download-alt-links {
    flex-wrap: wrap;
    gap: 6px;
  }

  .infra-grid {
    grid-template-columns: 1fr !important;
  }

  .transparency-report-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
  }

  .security-org-hub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .security-center-card {
    padding: 24px 18px;
  }

  .compliance-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .metric-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .metric-cell-value {
    text-align: left;
  }

  .card-meta-chips {
    gap: 4px;
  }

  .tech-stack-row {
    gap: 4px;
  }

  .card-external-refs {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   CONFIDENTIAL ISSUES & IN-HOUSE SECURITY DISCLOSURE CENTER
   ========================================================================== */

.security-center-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.security-center-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.security-header-main {
  flex: 1;
  min-width: 280px;
}

.security-header-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.security-title-icon {
  font-size: 1.25rem;
}

.security-header-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}

.security-badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.security-layout-split {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 28px;
  align-items: flex-start;
}

.security-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-subhead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.security-subhead-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.security-subhead-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Consistent Step Cards Grid */
.security-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.security-step-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.security-step-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
}

.security-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-step-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent-rust);
  color: #000000;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.security-step-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.security-step-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.security-step-body strong {
  color: #FFFFFF;
}

/* Dedicated Prototype Repositories */
.security-repos-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.security-repos-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.security-repo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.security-repo-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.security-repo-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
}

.security-repo-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.security-repo-name {
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.security-repo-path {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.security-repo-btn {
  text-decoration: none;
  justify-content: center;
  width: 100%;
  font-size: 0.74rem;
  padding: 5px 8px;
}

.security-org-hub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.security-org-hub-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Right Sidebar Box */
.security-sidebar-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.security-sla-card {
  background: #0B0B0E;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-sla-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-sla-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.security-sla-item {
  background: #141418;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: 4px;
}

.security-sla-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.security-sla-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.security-sla-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.security-pgp-card {
  background: #08080A;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-pgp-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.security-pgp-desc {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0;
}

.security-pgp-code {
  background: #000000;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--accent-slate);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  word-break: break-all;
}

.security-pgp-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-pgp-status-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.security-pgp-status-val {
  color: var(--accent-rust-light);
  font-weight: 600;
  font-size: 0.74rem;
}

@media (max-width: 900px) {
  .security-layout-split {
    grid-template-columns: 1fr;
  }
  .security-steps-grid {
    grid-template-columns: 1fr;
  }
  .security-repo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   MathJax & KaTeX Clean Math Rendering (Hide Assistive/Fallback Raw Text)
   ========================================================================== */
mjx-assistive-mml,
.mjx-assistive-mml,
mjx-container[jax="CHTML"] mjx-assistive-mml,
mjx-container[jax="SVG"] mjx-assistive-mml,
mjx-assistive-mml math,
.MathJax_Preview,
.MathJax_MathML,
.katex-mathml,
.katex .katex-mathml {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip: rect(1px 1px 1px 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  display: none !important;
}

mjx-container {
  display: inline-block !important;
  margin: 0 !important;
  outline: none !important;
}

mjx-container[display="true"],
.math-formula-box mjx-container {
  display: block !important;
  margin: 0.8em 0 !important;
  text-align: center !important;
}

/* ==========================================================================
   Semantic FAQ & AI Search Knowledge Base (Clean Divider Layout)
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  margin: 0;
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-bottom-color: rgba(56, 189, 248, 0.35);
}

.faq-item[open] {
  border-bottom-color: rgba(56, 189, 248, 0.4);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-heading, #f8fafc);
  transition: color 0.15s ease;
  gap: 16px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: var(--accent-slate, #38bdf8);
}

.faq-summary:hover .faq-chevron {
  stroke: var(--accent-slate, #38bdf8);
}

.faq-question-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-topic-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.02em;
}

.faq-topic-tag.privacy {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.faq-topic-tag.security {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.faq-topic-tag.datacenter {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  transition: transform 0.25s ease, stroke 0.15s ease;
  stroke: var(--text-muted, #94a3b8);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--accent-slate, #38bdf8);
}

.faq-answer {
  padding: 0 0 24px 0;
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.96rem;
  line-height: 1.75;
  max-width: 960px;
}

.faq-answer strong {
  color: var(--text-heading, #f8fafc);
  font-weight: 600;
}

.faq-answer p:not(:last-child) {
  margin-bottom: 12px;
}

.faq-answer a {
  color: var(--accent-slate, #38bdf8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-answer code {
  font-family: var(--font-mono, monospace);
  font-size: 0.88em;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-steel-light, #7dd3fc);
}

.llm-context-card {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md, 8px);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.llm-context-info {
  max-width: 720px;
}

.llm-context-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.llm-context-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-summary {
    padding: 18px 0;
    font-size: 1rem;
    gap: 12px;
  }
  .faq-answer {
    padding-bottom: 20px;
    font-size: 0.92rem;
  }
}



