:root {
  --abl-primary: #0a6e5c;
  --abl-primary-dark: #054d3f;
  --abl-accent: #1a9e85;
  --abl-highlight: #22d4aa;
  --abl-bg-light: #f0f8f6;
  --abl-text: #1e293b;
  --abl-text-muted: #64748b;
  --abl-dna-blue: #3b82f6;
  --abl-dna-purple: #7c3aed;
  --abl-glow-teal: rgba(34, 212, 170, 0.15);
  --abl-glow-blue: rgba(59, 130, 246, 0.12);
  --abl-glow-purple: rgba(124, 58, 237, 0.10);
  --abl-dark-bg: #020c0a;
  --abl-dark-surface: #071a15;
  --abl-grid-line: rgba(34, 212, 170, 0.06);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--abl-accent);
}
.form-control:focus, .form-select:focus {
  border-color: var(--abl-accent);
  box-shadow: 0 0 0 0.2rem rgba(26, 158, 133, 0.15), 0 0 12px rgba(34, 212, 170, 0.08);
}
.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin-bottom: 0;
  color: var(--abl-text);
  background: #f8fafb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Ablatotech Brand Buttons */
.btn-abl {
  color: #fff;
  background: linear-gradient(135deg, var(--abl-primary), var(--abl-accent));
  border: none;
  padding: 0.65rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s;
  position: relative;
}
.btn-abl:hover {
  background: linear-gradient(135deg, var(--abl-primary-dark), var(--abl-primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 110, 92, 0.3), 0 0 0 1px rgba(34, 212, 170, 0.2);
}
.btn-abl-outline {
  color: var(--abl-primary);
  background-color: transparent;
  border: 2px solid var(--abl-primary);
  padding: 0.6rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s;
}
.btn-abl-outline:hover {
  background: var(--abl-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 110, 92, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(160deg, #010d09 0%, #021a14 20%, var(--abl-primary-dark) 50%, #0b2f5c 80%, #1a0a3a 100%);
  color: #fff;
  padding: 7rem 0 6rem;
  margin: -1rem -15px 0 -15px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 60%, rgba(34, 212, 170, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 85% 25%, rgba(59, 130, 246, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 80%, rgba(124, 58, 237, 0.10) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 45%, rgba(34,212,170,0.04) 50%, transparent 55%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(34,212,170,0.03) 60px, rgba(34,212,170,0.03) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(34,212,170,0.03) 60px, rgba(34,212,170,0.03) 61px);
  background-size: 100% 200%, auto, auto;
  pointer-events: none;
  animation: hero-scanline 6s ease-in-out infinite;
}
@keyframes hero-scanline {
  0%   { background-position: 0 -100%, 0 0, 0 0; }
  100% { background-position: 0 100%, 0 0, 0 0; }
}
@keyframes hero-glow {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.18rem;
  opacity: 0.85;
  max-width: 750px;
  margin: 0 auto 2rem;
}

/* ── Hero DNA Helix Decorations ────────────────────────────────────── */
.hero-helix {
  position: absolute;
  width: 120px;
  height: 100%;
  top: 0;
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 18px,
      rgba(34, 212, 170, 0.5) 18px,
      rgba(34, 212, 170, 0.5) 20px,
      transparent 20px,
      transparent 38px
    );
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='400' viewBox='0 0 120 400'%3E%3Cpath d='M60 0 Q120 50 60 100 Q0 150 60 200 Q120 250 60 300 Q0 350 60 400' stroke='white' stroke-width='40' fill='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='400' viewBox='0 0 120 400'%3E%3Cpath d='M60 0 Q120 50 60 100 Q0 150 60 200 Q120 250 60 300 Q0 350 60 400' stroke='white' stroke-width='40' fill='none'/%3E%3C/svg%3E");
  mask-size: 120px 400px;
  -webkit-mask-size: 120px 400px;
  pointer-events: none;
  animation: helix-drift 20s linear infinite;
}
.hero-helix-left {
  left: 2%;
}
.hero-helix-right {
  right: 2%;
  animation-delay: -10s;
  opacity: 0.08;
}
@keyframes helix-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 400px; }
}

/* ── Hero Buttons ──────────────────────────────────────────────────── */
.btn-hero-primary {
  background: #fff;
  color: var(--abl-primary-dark);
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  padding: 0.7rem 2rem;
  transition: all 0.3s;
}
.btn-hero-primary:hover {
  background: transparent;
  color: #fff;
  border-color: var(--abl-highlight);
  box-shadow: 0 0 20px rgba(34, 212, 170, 0.25);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.7rem 2rem;
  transition: all 0.3s;
}
.btn-hero-outline:hover {
  color: #fff;
  border-color: var(--abl-highlight);
  background: rgba(34, 212, 170, 0.1);
  box-shadow: 0 0 20px rgba(34, 212, 170, 0.15);
}

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}
.section-alt {
  background-color: var(--abl-bg-light);
  padding: 5rem 0;
  margin: 0 -15px;
  position: relative;
}
.section-alt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(10,110,92,0.025) 80px, rgba(10,110,92,0.025) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(10,110,92,0.025) 80px, rgba(10,110,92,0.025) 81px);
  pointer-events: none;
}
.section-title {
  font-weight: 700;
  color: var(--abl-primary-dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--abl-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ── Dark Innovation Sections ──────────────────────────────────────── */
.section-dark {
  background: linear-gradient(160deg, var(--abl-dark-bg) 0%, var(--abl-dark-surface) 40%, #0a1628 70%, #120a24 100%);
  color: #fff;
  padding: 5rem 0;
  margin: 0 -15px;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 500px 400px at 10% 50%, var(--abl-glow-teal) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 90% 30%, var(--abl-glow-blue) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 90%, var(--abl-glow-purple) 0%, transparent 70%);
  pointer-events: none;
  animation: section-glow 12s ease-in-out infinite alternate;
}
.section-dark::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(34,212,170,0.04) 60px, rgba(34,212,170,0.04) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(34,212,170,0.04) 60px, rgba(34,212,170,0.04) 61px);
  pointer-events: none;
}
@keyframes section-glow {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}
.section-dark .section-title {
  color: #fff;
}
.section-dark .section-subtitle {
  color: rgba(255,255,255,0.65);
}
.section-dark .hero-eyebrow {
  color: var(--abl-highlight);
  opacity: 1;
}
.section-dark .text-muted {
  color: rgba(255,255,255,0.6) !important;
}

/* Page hero variant — pulls up to meet the navbar */
.section-dark.page-hero {
  margin-top: -1rem;
}

/* ── Founder Photo ─────────────────────────────────────────────────── */
.founder-photo {
  width: 220px;
  height: auto;
  border-radius: 1rem;
  border: 3px solid var(--abl-accent);
  box-shadow:
    0 0 20px rgba(34, 212, 170, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}
.founder-photo:hover {
  box-shadow:
    0 0 30px rgba(34, 212, 170, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* ── Section Glow Separator ────────────────────────────────────────── */
.glow-separator {
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--abl-highlight) 30%, var(--abl-dna-blue) 50%, var(--abl-dna-purple) 70%, transparent 95%);
  opacity: 0.4;
  margin: 0 -15px;
}

/* Feature Cards */
.feature-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--abl-primary), var(--abl-dna-blue), var(--abl-dna-purple));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(10, 110, 92, 0.12),
    0 0 0 1px rgba(34, 212, 170, 0.15);
  border-color: transparent;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: icon-float 3s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Glass cards inside dark sections */
.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.section-dark .feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(34, 212, 170, 0.2),
    0 0 30px rgba(34, 212, 170, 0.05);
}
.section-dark .feature-card h5 {
  color: #fff;
}

/* Application Cards (Intranet) */
.app-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.8rem;
  height: 100%;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 110, 92, 0.15);
  border-color: var(--abl-accent);
  color: inherit;
  text-decoration: none;
}
.app-card h5 {
  color: var(--abl-primary-dark);
  font-weight: 600;
}

/* Intranet Sidebar */
.intranet-sidebar {
  background: #fff;
  border-right: 1px solid #e2e8f0;
  min-height: calc(100vh - 120px);
  padding: 1.5rem 0;
}
.intranet-sidebar .nav-link {
  color: var(--abl-text);
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  margin: 0.15rem 0.5rem;
  font-size: 0.92rem;
  transition: all 0.15s;
}
.intranet-sidebar .nav-link:hover {
  background-color: var(--abl-bg-light);
  color: var(--abl-primary);
}
.intranet-sidebar .nav-link.active {
  background-color: var(--abl-primary);
  color: #fff;
  font-weight: 600;
}
.intranet-sidebar .sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--abl-text-muted);
  padding: 0.8rem 1.2rem 0.3rem;
  font-weight: 700;
}

/* Detail Page Styling */
.detail-header {
  background: linear-gradient(135deg, var(--abl-primary-dark) 0%, var(--abl-primary) 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}
.detail-header h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Mechanism cards */
.mechanism-card {
  background: rgba(240, 248, 246, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 4px solid var(--abl-primary);
  padding: 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin-bottom: 1rem;
  transition: all 0.25s;
}
.mechanism-card:hover {
  border-left-color: var(--abl-highlight);
  box-shadow: 0 4px 16px rgba(10, 110, 92, 0.08);
  transform: translateX(4px);
}
.mechanism-card h5, .mechanism-card h6 {
  color: var(--abl-primary-dark);
  font-weight: 600;
}

/* Mechanism cards in dark sections */
.section-dark .mechanism-card {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--abl-highlight);
}
.section-dark .mechanism-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-left-color: var(--abl-dna-blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.section-dark .mechanism-card h5,
.section-dark .mechanism-card h6 {
  color: #fff;
}

/* Stats */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--abl-highlight), var(--abl-dna-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: var(--abl-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* DNA Helix decoration */
.dna-accent {
  background: linear-gradient(90deg, var(--abl-highlight), var(--abl-dna-blue), var(--abl-dna-purple), var(--abl-highlight));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: dna-shimmer 4s linear infinite;
}
@keyframes dna-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Hero Eyebrow ──────────────────────────────────────────────────── */
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

/* ── Vision Card (homepage) ────────────────────────────────────────── */
.vision-card {
  background: linear-gradient(160deg, #010d09 0%, var(--abl-primary-dark) 40%, #0b2540 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 212, 170, 0.15);
  box-shadow:
    0 0 40px rgba(34, 212, 170, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.3);
}
.vision-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 200px 200px at 20% 30%, rgba(34, 212, 170, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 150px 150px at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(34,212,170,0.03) 40px, rgba(34,212,170,0.03) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(34,212,170,0.03) 40px, rgba(34,212,170,0.03) 41px);
  pointer-events: none;
}
.vision-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.vision-card h4 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.vision-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(34, 212, 170, 0.12);
  position: relative;
}
.vision-metric:last-child {
  border-bottom: none;
}
.vision-metric-label {
  font-size: 0.82rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.vision-metric-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--abl-highlight);
}

/* ── Disease Cards ─────────────────────────────────────────────────── */
.disease-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.disease-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--abl-highlight), var(--abl-dna-blue), var(--abl-dna-purple));
  opacity: 0;
  transition: opacity 0.3s;
}
.disease-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(34, 212, 170, 0.15);
  background: rgba(255, 255, 255, 0.09);
}
.disease-card:hover::after {
  opacity: 1;
}
.disease-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.disease-card h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.badge-pipeline {
  background: linear-gradient(90deg, var(--abl-primary), var(--abl-accent));
  color: #fff;
  font-size: 0.65rem;
}

/* ── Comparison Cards ──────────────────────────────────────────────── */
.comparison-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s;
}
.comparison-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.comparison-card-abl {
  border: 2px solid var(--abl-primary);
  background: linear-gradient(135deg, rgba(10, 110, 92, 0.04), rgba(34, 212, 170, 0.06));
  box-shadow: 0 0 30px rgba(34, 212, 170, 0.06);
}
.comparison-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.comparison-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.5;
}
.comparison-list li:last-child {
  border-bottom: none;
}

/* ── Impact Cards ──────────────────────────────────────────────────── */
.impact-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.impact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.impact-stat {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--abl-highlight), var(--abl-dna-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.3rem 0;
}
.impact-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ── Capability Cards (About page) ─────────────────────────────────── */
.capability-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.capability-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(34,212,170,0.06) 25%, transparent 50%, rgba(59,130,246,0.04) 75%, transparent 100%);
  animation: capability-rotate 8s linear infinite;
  pointer-events: none;
}
@keyframes capability-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.capability-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 40px rgba(10, 110, 92, 0.12),
    0 0 0 1px rgba(34, 212, 170, 0.2);
}
.capability-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--abl-primary), var(--abl-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.capability-label {
  font-size: 0.85rem;
  color: var(--abl-text-muted);
  line-height: 1.5;
}

/* Capability cards in dark sections */
.section-dark .capability-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.section-dark .capability-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(34, 212, 170, 0.2),
    0 0 30px rgba(34, 212, 170, 0.05);
}
.section-dark .capability-number {
  background: linear-gradient(135deg, var(--abl-highlight), var(--abl-dna-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-dark .capability-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Site Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(160deg, #010d09 0%, var(--abl-primary-dark) 50%, #0a1628 100%);
  color: #fff;
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 400px 200px at 10% 80%, rgba(34, 212, 170, 0.06) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(34,212,170,0.02) 60px, rgba(34,212,170,0.02) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(34,212,170,0.02) 60px, rgba(34,212,170,0.02) 61px);
  pointer-events: none;
}
.footer-heading {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  padding: 0.25rem 0;
  font-size: 0.85rem;
  opacity: 0.7;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--abl-highlight);
}

/* ── Pipeline Stepper ──────────────────────────────────────────────── */
.pipeline-stepper {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  position: relative;
  overflow-x: auto;
}
.pipeline-stepper::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 80px;
}
.pipeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e2e8f0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  transition: all 0.3s;
}
.pipeline-dot.completed {
  background: var(--abl-primary);
  box-shadow: 0 0 0 2px var(--abl-primary);
}
.pipeline-dot.in-progress {
  background: var(--abl-dna-blue);
  box-shadow: 0 0 0 2px var(--abl-dna-blue), 0 0 8px rgba(59, 130, 246, 0.4);
  animation: pulse-dot 2s infinite;
}
.pipeline-dot.on-hold {
  background: #f59e0b;
  box-shadow: 0 0 0 2px #f59e0b;
}
.pipeline-dot.failed {
  background: #ef4444;
  box-shadow: 0 0 0 2px #ef4444;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px var(--abl-dna-blue), 0 0 8px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 2px var(--abl-dna-blue), 0 0 16px rgba(59, 130, 246, 0.6); }
}
.pipeline-label {
  font-size: 0.7rem;
  text-align: center;
  color: var(--abl-text-muted);
  max-width: 80px;
  line-height: 1.2;
}
.pipeline-label.active {
  color: var(--abl-primary-dark);
  font-weight: 700;
}

/* Pipeline status badges */
.badge-in-progress {
  background-color: var(--abl-dna-blue);
  color: #fff;
}
.badge-completed {
  background-color: var(--abl-primary);
  color: #fff;
}
.bg-purple {
  background-color: var(--abl-dna-purple) !important;
}

/* ── DNA Sequence Display ──────────────────────────────────────────── */
.dna-sequence {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  background: #1e293b;
  color: #22d4aa;
  padding: 1rem;
  border-radius: 0.5rem;
  word-break: break-all;
  line-height: 1.6;
  max-height: 150px;
  overflow-y: auto;
  letter-spacing: 0.05em;
}
.dna-sequence .nt-a { color: #22d4aa; }
.dna-sequence .nt-t { color: #f59e0b; }
.dna-sequence .nt-g { color: #3b82f6; }
.dna-sequence .nt-c { color: #ef4444; }

/* ── Portfolio Cards & Grid ────────────────────────────────────────── */
.portfolio-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.25s;
  height: 100%;
}
.portfolio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 110, 92, 0.12);
  border-color: var(--abl-accent);
}
.portfolio-card .disease-name {
  font-weight: 700;
  color: var(--abl-primary-dark);
  font-size: 1.05rem;
}
.portfolio-card .mini-progress {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 0.5rem;
}
.portfolio-card .mini-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--abl-primary), var(--abl-highlight));
  transition: width 0.5s;
}

/* ── Stage Detail Accordion ────────────────────────────────────────── */
.stage-accordion .accordion-button {
  font-weight: 600;
  color: var(--abl-text);
}
.stage-accordion .accordion-button:not(.collapsed) {
  background-color: var(--abl-bg-light);
  color: var(--abl-primary-dark);
}
.milestone-check {
  display: flex;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.milestone-check.done {
  color: var(--abl-primary);
}
.milestone-check.done::before {
  content: "✓ ";
  font-weight: 700;
  margin-right: 0.4rem;
  color: var(--abl-primary);
}
.milestone-check.pending::before {
  content: "○ ";
  margin-right: 0.4rem;
  color: var(--abl-text-muted);
}

/* ── Construct Type Badges ─────────────────────────────────────────── */
.construct-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.construct-payload { background: #dcfce7; color: #166534; }
.construct-promoter { background: #dbeafe; color: #1e40af; }
.construct-kill-switch { background: #fee2e2; color: #991b1b; }
.construct-secretion { background: #fef3c7; color: #92400e; }
.construct-surface { background: #e0e7ff; color: #3730a3; }
.construct-selection { background: #f3e8ff; color: #6b21a8; }
.construct-regulatory { background: #ccfbf1; color: #134e4a; }
.construct-vector { background: #f1f5f9; color: #334155; }

/* ── Guidance callout ──────────────────────────────────────────────── */
.guidance-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f8f6 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--abl-dna-blue);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}
.guidance-box strong {
  color: var(--abl-dna-blue);
}

/* ── Workspace Tabs ────────────────────────────────────────────────── */
.workspace-tabs .nav-link {
  color: var(--abl-text);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.8rem 1.2rem;
}
.workspace-tabs .nav-link:hover {
  border-bottom-color: var(--abl-bg-light);
  color: var(--abl-primary);
}
.workspace-tabs .nav-link.active {
  color: var(--abl-primary);
  border-bottom-color: var(--abl-primary);
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════
   The Nucleus — Real-Time Collaboration Styles
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Presence Bar ──────────────────────────────────────────────────── */
.nucleus-presence-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #054d3f 0%, #0a6e5c 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  gap: 0.75rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(5, 77, 63, 0.25);
}
.nucleus-presence-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.nucleus-presence-label {
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0.85;
}
.nucleus-user-count {
  background: rgba(255,255,255,0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}
.nucleus-presence-avatars {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}
.nucleus-presence-right {
  display: flex;
  gap: 0.4rem;
}

/* ── Avatars ───────────────────────────────────────────────────────── */
.nucleus-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: default;
  position: relative;
  border: 2px solid var(--status-color, #22c55e);
  transition: transform 0.15s;
}
.nucleus-avatar:hover {
  transform: scale(1.15);
  z-index: 2;
}
.nucleus-avatar-more {
  background: rgba(255,255,255,0.1);
  font-size: 0.6rem;
  border-color: rgba(255,255,255,0.3);
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.nucleus-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.nucleus-btn:hover {
  background: rgba(255,255,255,0.25);
}
.nucleus-chat-btn {
  position: relative;
}
.nucleus-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 3px;
}

/* ── Connection Dot ────────────────────────────────────────────────── */
.nucleus-connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #64748b;
}
.nucleus-conn-connected { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.nucleus-conn-reconnecting { background: #eab308; animation: pulse-dot 1s infinite; }
.nucleus-conn-disconnected { background: #ef4444; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Chat Panel ────────────────────────────────────────────────────── */
.nucleus-chat-panel,
.nucleus-activity-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nucleus-chat-panel.open,
.nucleus-activity-panel.open {
  right: 0;
}
.nucleus-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #054d3f 0%, #0a6e5c 100%);
  color: #fff;
  flex-shrink: 0;
}
.nucleus-chat-channel {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 2px;
}
.nucleus-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}
.nucleus-close-btn:hover { opacity: 1; }

/* ── Chat Messages ─────────────────────────────────────────────────── */
.nucleus-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #f8faf9;
}
.nucleus-msg { max-width: 85%; }
.nucleus-msg-mine { align-self: flex-end; text-align: right; }
.nucleus-msg-other { align-self: flex-start; }
.nucleus-msg-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--abl-primary-dark);
  margin-bottom: 2px;
}
.nucleus-msg-dept {
  font-weight: 400;
  color: var(--abl-text-muted);
}
.nucleus-msg-bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  word-break: break-word;
  line-height: 1.4;
}
.nucleus-msg-mine .nucleus-msg-bubble {
  background: var(--abl-primary);
  color: #fff;
  border-color: var(--abl-primary);
}
.nucleus-msg-time {
  font-size: 0.65rem;
  color: var(--abl-text-muted);
  margin-top: 2px;
}

/* ── Typing Indicator ──────────────────────────────────────────────── */
.nucleus-typing {
  padding: 0 1rem;
  font-size: 0.72rem;
  color: var(--abl-text-muted);
  font-style: italic;
  min-height: 1.2rem;
  flex-shrink: 0;
}

/* ── Chat Input ────────────────────────────────────────────────────── */
.nucleus-chat-input-area {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #fff;
}
.nucleus-chat-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.nucleus-chat-input:focus {
  border-color: var(--abl-accent);
}
.nucleus-send-btn {
  background: var(--abl-primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.nucleus-send-btn:hover {
  background: var(--abl-primary-dark);
}

/* ── Activity Feed ─────────────────────────────────────────────────── */
.nucleus-activity-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.nucleus-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.82rem;
  gap: 0.5rem;
}
.nucleus-activity-item:hover {
  background: var(--abl-bg-light);
}
.nucleus-activity-text { flex: 1; line-height: 1.4; }
.nucleus-activity-time {
  font-size: 0.68rem;
  color: var(--abl-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Portfolio Viewers ─────────────────────────────────────────────── */
.portfolio-viewers {
  margin-top: 0.5rem;
}

/* ── Toast Notification ────────────────────────────────────────────── */
.nucleus-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--abl-primary-dark);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  z-index: 1070;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.nucleus-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── @Mentions ─────────────────────────────────────────────────────── */
.nucleus-mention {
  background: rgba(10, 110, 92, 0.12);
  color: var(--abl-primary-dark);
  font-weight: 600;
  padding: 0 3px;
  border-radius: 3px;
}

/* ── Async Handoff ─────────────────────────────────────────────────── */
.nucleus-msg-handoff .nucleus-msg-bubble {
  border-left: 3px solid #eab308;
  background: #fffef5;
}
.nucleus-msg-mine.nucleus-msg-handoff .nucleus-msg-bubble {
  border-left: 3px solid #eab308;
  background: #054d3f;
}
.nucleus-handoff-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #eab308;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* ── Task Items ────────────────────────────────────────────────────── */
.nucleus-task-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.nucleus-task-item:hover {
  background: var(--abl-bg-light);
}

/* ── Channel Switcher ──────────────────────────────────────────────── */
.nucleus-channel-switcher {
  display: inline-flex;
}
.nucleus-channel-select {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
}
.nucleus-channel-select option {
  background: var(--abl-primary-dark);
  color: #fff;
}

/* ── Avatar: highlight self ────────────────────────────────────────── */
.nucleus-avatar-me {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--abl-highlight);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .nucleus-chat-panel,
  .nucleus-activity-panel {
    width: 100%;
    right: -100%;
  }
  .nucleus-presence-avatars { display: none; }
  .nucleus-channel-switcher { display: none; }
}

/* ── Target & Document Cards ───────────────────────────────────────── */
.target-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--abl-dna-purple);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.2rem;
  margin-bottom: 0.75rem;
}
.doc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.doc-card .doc-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}