/* ==========================================================================
   7SPHEX HEALTHCARE AI — LIGHT COMPONENTS
   Clean Header, Journey Tabs, Scaling Cards, Governance Banners & Footer
   ========================================================================== */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img,
.brand-logo-img {
  height: 36px !important;
  width: auto !important;
  max-width: 175px !important;
  object-fit: contain !important;
  display: block !important;
  transition: opacity var(--transition-fast, 0.2s ease), transform var(--transition-fast, 0.2s ease);
}

.brand-logo:hover .brand-logo-img,
.brand-logo:hover img {
  opacity: 0.88;
}

@media (max-width: 640px) {
  .brand-logo img,
.brand-logo-img {
  height: 36px !important;
  width: auto !important;
  max-width: 175px !important;
  object-fit: contain !important;
  display: block !important;
  transition: opacity var(--transition-fast, 0.2s ease), transform var(--transition-fast, 0.2s ease);
}
}

.brand-symbol {
  width: 34px;
  height: 34px;
  background: var(--accent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-item:hover>.nav-link {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-link.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.nav-arrow {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
  min-width: 440px;
  z-index: 1001;
}

/* Invisible hover bridge connecting nav-item to dropdown-menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -10px;
  right: -10px;
  height: 20px;
  background: transparent;
  display: block;
}

.dropdown-menu.dropdown-wide {
  min-width: 580px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon.blue {
  background: #eff6ff;
  color: var(--accent-blue);
}

.dropdown-icon.purple {
  background: #f5f3ff;
  color: var(--accent-purple);
}

.dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.dropdown-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: #ffffff;
  padding: 1.75rem 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav.active {
  display: block;
}

.mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-sub-list {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 2px solid var(--border-subtle);
}

.mobile-sub-link {
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
}

/* ==========================================================================
   Hero Section Layout (Matching Reference)
   ========================================================================== */

.hero-section {
  padding: 5rem 0 4rem 0;
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-section:not(:has(.hero-grid)) {
  height: 80svh;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.09) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 90% 80%, rgba(0, 210, 180, 0.06) 0%, rgba(255, 255, 255, 0) 45%);
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  /* Governance Banner - Mobile Optimization */
  .governance-banner {
    padding: 20px !important;
    margin: 1.5rem 0 !important;
    border-radius: var(--radius-lg) !important;
  }

  .governance-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .governance-header svg {
    width: 44px !important;
    height: 44px !important;
    padding: 9px !important;
    border-radius: 10px !important;
    background: #eff6ff !important;
    color: var(--accent-blue) !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-bottom: 0.25rem !important;
  }

  .governance-header h2,
  .governance-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
  }

  .governance-header p,
  .governance-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    color: var(--text-light) !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
  }

  .governance-banner > p,
  .governance-body-text {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    color: var(--text-secondary) !important;
    margin-top: 0.75rem !important;
  }

  .governance-pillars {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1.25rem !important;
  }

  .gov-pillar-item {
    padding: 14px 16px !important;
  }

  .hero-section:not(:has(.hero-grid)) {
    height: auto;
    min-height: 80svh;
    padding: 5.5rem 0 3rem 0;
  }
}

/* Perspective Grid Lines (Exact Match to User Reference Image) */
.hero-perspective-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 240px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-perspective-floor img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: bottom center;
  opacity: 0.58;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
}

.section-perspective-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.section-perspective-lines img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: bottom center;
  opacity: 0.52;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content .hero-title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.hero-content .hero-description {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.hero-content .hero-cta-group {
  justify-content: center;
  margin-bottom: 0;
}

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

.hero-title {
  font-size: clamp(2.3rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  color: #0f172a;
  margin-bottom: 1.25rem;
  max-width: 1040px;
}

.hero-br {
  display: block;
}

@media (max-width: 768px) {
  .hero-br {
    display: none;
  }
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 660px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-diagram-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.ecosystem-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.35;
}

.trust-item svg {
  color: var(--accent-blue);
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Healthcare Journey Tabs (Matching Reference)
   ========================================================================== */

.journey-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2.5rem;
}

.journey-tab-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--border-subtle);
  padding-right: 2rem;
}

.journey-tab-btn {
  text-align: left;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.journey-tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.journey-tab-btn.active {
  background: #eff6ff;
  color: var(--accent-blue);
  font-weight: 700;
}

.journey-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}

.journey-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.journey-pane-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.journey-pane-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.journey-grid-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.journey-item-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.journey-item-box h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.journey-item-box p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Software that Scales Cards (4 Vertical Cards from Reference)
   ========================================================================== */

/* Minimalist Scale Cards */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.scale-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem 1.6rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.scale-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

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

.scale-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-icon-box.blue {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.scale-icon-box.teal {
  background: rgba(13, 148, 136, 0.08);
  color: #0d9488;
}

.scale-icon-box.purple {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.scale-icon-box.slate {
  background: rgba(51, 65, 85, 0.08);
  color: #334155;
}

.scale-icon-box svg {
  width: 22px;
  height: 22px;
}

.scale-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.scale-badge.blue {
  background: #eff6ff;
  color: #2563eb;
}

.scale-badge.teal {
  background: #f0fdfa;
  color: #0d9488;
}

.scale-badge.purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.scale-badge.slate {
  background: #f8fafc;
  color: #475569;
}

.scale-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.scale-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.scale-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.scale-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: #475569;
  font-weight: 500;
}

.scale-bullet-item svg {
  width: 15px;
  height: 15px;
  color: #2563eb;
  flex-shrink: 0;
}

.scale-card-footer {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid #f1f5f9;
}

.scale-card-footer .feature-card-link {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
}

.scale-card-footer .feature-card-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.scale-card:hover .scale-card-footer .feature-card-link svg {
  transform: translateX(5px);
}

@media (max-width: 1100px) {
  .scale-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

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

/* ==========================================================================
   "Built for Healthcare. Designed for Responsibility." (Dark Contrast Section)
   ========================================================================== */

.dark-governance-section {
  background: var(--bg-dark-section);
  color: #ffffff;
  padding: 6rem 0;
  position: relative;
}

.dark-gov-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.dark-gov-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.dark-gov-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.65;
}

.dark-gov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.dark-gov-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.dark-gov-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-gov-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.dark-gov-card-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.dark-gov-card-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ==========================================================================
   Clean Governance Banner & Pillars (for subpages)
   ========================================================================== */

.governance-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.governance-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.governance-header svg {
  width: 28px;
  height: 28px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.governance-title {
  font-size: 1.85rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.governance-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.governance-body-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.governance-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.gov-pillar-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.gov-pillar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.gov-pillar-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Governance Banner Balanced Layout */
.gov-banner-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
  margin-top: 0;
}

@media (max-width: 991px) {
  .gov-banner-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.gov-banner-text {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
}

.gov-banner-text p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.gov-notice-card {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-left: 3.5px solid var(--accent-teal);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.65rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.gov-notice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.gov-notice-body {
  font-size: 0.885rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}



/* ==========================================================================
   Implementation Process (1-6 Steps)
   ========================================================================== */

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

.process-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.process-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.process-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

/* ==========================================================================
   Feature Cards (Clean, Proper & Refined)
   ========================================================================== */

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.feature-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* Structured Metadata Specs Box */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.feature-list-item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

.feature-list-item svg {
  display: none;
}

.feature-list-item strong {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Card Link / Action Button */
.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

.feature-card-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-card-link {
  color: var(--accent-blue-hover);
}

.feature-card:hover .feature-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Workflow Pipeline (Proper Elevated Flow Cards)
   ========================================================================== */
.workflow-pipeline-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  margin: 2.5rem 0;
}

.pipeline-steps {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem;
}

/* Proper Elevated Card */
.pipeline-step {
  flex: 1;
  min-width: 155px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1rem 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.pipeline-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.35);
}

/* Step Icon Badge */
.pipeline-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.pipeline-step:hover .pipeline-step-icon {
  transform: scale(1.08);
}

.pipeline-step-icon svg {
  width: 19px;
  height: 19px;
}

.pipeline-step-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.pipeline-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.pipeline-step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: auto;
}

.pipeline-step-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Safety Gate / Critical Step Styling */
.pipeline-step.safety-gate {
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.4);
}

.pipeline-step.safety-gate:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.15);
}

.pipeline-step.safety-gate .pipeline-step-icon {
  background: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.3);
  color: var(--accent-teal);
}

.pipeline-step.safety-gate .pipeline-step-badge {
  color: var(--accent-teal);
}

.pipeline-step.safety-gate .pipeline-step-desc {
  color: var(--text-secondary);
}

/* Pipeline Connector Arrow */
.pipeline-arrow {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0.1rem;
}

.pipeline-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dim);
  stroke-width: 2.2;
}

@media (max-width: 1024px) {
  .pipeline-steps {
    overflow-x: visible;
  }
}

/* ==========================================================================
/* ==========================================================================
   Target Sectors & Integration Dual Cards (Clean, Simple & Balanced)
   ========================================================================== */
.dual-card {
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  height: 100%;
}

.dual-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.sector-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0;
}

.sector-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.sector-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sector-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sector-icon.teal {
  background: #f0fdfa;
  color: var(--accent-teal);
}

.sector-icon.purple {
  background: #faf5ff;
  color: var(--accent-purple);
}

.sector-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.sector-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.integration-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.integration-pill:hover {
  background: #ffffff;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

.integration-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.dual-card-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dual-card-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Clinical Safety Pillars (Simple, Proper 3-Card Grid)
   ========================================================================== */
.safety-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.safety-pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.safety-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.safety-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.safety-pillar-icon.rose {
  background: rgba(225, 29, 72, 0.08);
  color: var(--accent-rose);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.safety-pillar-icon.teal {
  background: rgba(13, 148, 136, 0.08);
  color: var(--accent-teal);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.safety-pillar-icon.blue {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.safety-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.safety-pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.safety-pillar-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .safety-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

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

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  font-size: 0; /* Hides raw text '+' to ensure subpixel geometric alignment */
  line-height: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease, 
              color 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

/* Horizontal line of plus */
.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Vertical line of plus */
.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question:hover .faq-icon {
  background: #eff6ff;
  color: var(--accent-blue-hover);
}

.faq-item.active .faq-icon {
  background: #eff6ff;
  color: var(--accent-blue);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ==========================================================================
   Clean Light Footer
   ========================================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 1rem 0 1.5rem 0;
  max-width: 320px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-contact-info a {
  color: var(--text-primary);
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-blue);
}

.footer-disclaimer-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .journey-container {
    grid-template-columns: 1fr;
  }

  .journey-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .journey-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: visible;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .journey-tab-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .scale-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dark-gov-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .governance-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu,
  .nav-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Workflow Pipeline - Mobile Redesign (Vertical Cards, Connected Stepper) */
  .workflow-pipeline-box {
    padding: 16px 14px !important;
    margin: 1.5rem 0 !important;
    border-radius: var(--radius-lg) !important;
    background: #f8fafc !important;
    border: 1px solid var(--border-subtle) !important;
  }

  .pipeline-steps {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow-x: visible !important;
    padding: 0 !important;
  }

  .pipeline-step {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important; /* Stack vertically for natural flow on mobile */
    align-items: flex-start !important;
    text-align: left !important;
    padding: 14px 16px !important;
    gap: 3px !important;
    border-radius: var(--radius-md) !important;
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
    box-sizing: border-box !important;
  }

  .pipeline-step:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  }

  /* Support cards with icon (patients.html) */
  .pipeline-step:has(.pipeline-step-icon),
  .pipeline-step.has-icon {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .pipeline-step-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  .pipeline-step-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .pipeline-step-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    background: #eff6ff !important;
    color: var(--accent-blue);
    margin-bottom: 2px !important;
    width: fit-content !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  .pipeline-step-badge[style*="accent-purple"],
  .pipeline-step[style*="accent-purple"] .pipeline-step-badge {
    background: #f5f3ff !important;
    color: var(--accent-purple) !important;
  }

  .pipeline-step-title {
    font-size: 0.98rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
  }

  .pipeline-step-desc,
  .pipeline-step p {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    color: var(--text-secondary) !important;
  }

  /* Critical Step / Safety Gate on mobile */
  .pipeline-step[style*="accent-teal"],
  .pipeline-step.safety-gate {
    background: #f0fdfa !important;
    border: 1.5px solid rgba(13, 148, 136, 0.45) !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08) !important;
  }

  .pipeline-step[style*="accent-teal"] .pipeline-step-badge,
  .pipeline-step.safety-gate .pipeline-step-badge {
    background: rgba(13, 148, 136, 0.15) !important;
    color: #0f766e !important;
    border: 1px solid rgba(13, 148, 136, 0.3) !important;
  }

  .pipeline-step[style*="accent-teal"] .pipeline-step-title,
  .pipeline-step.safety-gate .pipeline-step-title {
    color: #0f766e !important;
  }

  .pipeline-step[style*="accent-teal"] p,
  .pipeline-step.safety-gate .pipeline-step-desc,
  .pipeline-step.safety-gate p {
    color: #115e59 !important;
  }

  /* Connector down arrow between steps on mobile */
  .pipeline-arrow {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    font-size: 0 !important; /* Hides raw text '→' */
    color: transparent !important;
    user-select: none !important;
  }

  .pipeline-arrow::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 2px !important;
    transform: translateX(-50%) !important;
    background: repeating-linear-gradient(to bottom, #cbd5e1 0, #cbd5e1 3px, transparent 3px, transparent 6px) !important;
    z-index: 0 !important;
  }

  .pipeline-arrow::after {
    content: '' !important;
    position: relative !important;
    z-index: 2 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  .pipeline-arrow svg {
    display: none !important;
  }

  /* Healthcare Journey Card - Mobile Redesign (No scroll, 20px padding) */
  .journey-container {
    padding: 20px !important;
    gap: 1.25rem !important;
    margin-top: 1.5rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .journey-tab-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    overflow-x: visible !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 0 0 1rem 0 !important;
    width: 100% !important;
  }

  .journey-tab-btn {
    padding: 0.55rem 0.65rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 42px !important;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease !important;
  }

  .journey-tab-btn span:last-child {
    display: none !important;
  }

  .journey-tab-btn:hover {
    background: #f1f5f9 !important;
    color: var(--text-primary) !important;
  }

  .journey-tab-btn.active {
    background: #eff6ff !important;
    border-color: var(--accent-blue) !important;
    color: var(--accent-blue) !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12) !important;
  }

  .journey-tab-btn:last-child:nth-child(odd) {
    grid-column: span 2 !important;
  }

  .journey-pane-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.6rem !important;
  }

  .journey-pane-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
  }

  .journey-grid-items {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .journey-item-box {
    padding: 0.75rem 0.9rem !important;
  }

  .journey-item-box h4 {
    font-size: 0.88rem !important;
    margin-bottom: 0.2rem !important;
  }

  .journey-item-box p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .journey-pane .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .scale-grid {
    grid-template-columns: 1fr;
  }

  .dark-gov-grid {
    grid-template-columns: 1fr;
  }

  .governance-pillars {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Clean Light Footer - Mobile 2-Column Redesign & No-Clip Safe Buffer */
  .site-footer {
    padding-top: 2.5rem !important;
    padding-bottom: 5.5rem !important;
    padding-bottom: max(6rem, calc(4rem + env(safe-area-inset-bottom))) !important;
  }

  .footer-top {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2-Column Grid on Mobile! */
    gap: 1.75rem 1.25rem !important;
    margin-bottom: 2rem !important;
  }

  .footer-brand {
    grid-column: 1 / -1 !important; /* Full width spanning both columns at top */
    margin-bottom: 0.5rem !important;
  }

  .footer-brand-desc {
    max-width: 100% !important;
    margin: 0.75rem 0 1rem 0 !important;
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }

  .footer-contact-info {
    font-size: 0.82rem !important;
    gap: 0.35rem !important;
  }

  .footer-col-title {
    margin-bottom: 0.65rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: var(--text-primary) !important;
  }

  .footer-links {
    gap: 0.5rem !important;
  }

  .footer-link {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  .footer-disclaimer-box {
    margin-bottom: 1.75rem !important;
    padding: 14px 16px !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
  }

  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important; /* Generous bottom padding inside footer-bottom */
    margin-bottom: 1rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    width: 100% !important;
  }

  .footer-bottom > div:first-child {
    text-align: center !important;
    width: 100% !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    color: var(--text-dim) !important;
  }

  .footer-bottom-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
  }

  .footer-bottom-links .footer-link {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
  }
}

/* ==========================================================================
   Segment Interactive Hub (who-we-help.html) — Redesigned
   ========================================================================== */

.segment-hub-container {
  width: 100%;
}

/* Centered Segmented Pill Bar */
.segment-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 6px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  max-width: 780px;
  margin: 0 auto 1.5rem auto;
}

.segment-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.segment-nav-btn:hover {
  color: var(--text-primary);
  background: #f8fafc;
}

.segment-nav-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.segment-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.segment-tab-icon svg {
  width: 16px;
  height: 16px;
}

/* Panes */
.segment-pane {
  display: none;
  animation: fadeInSegment 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.segment-pane.active {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 2.75rem 3rem;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.06);
  align-items: center;
}

@keyframes fadeInSegment {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left Column */
.segment-pane-left {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.segment-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.segment-pane-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.segment-pane-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Key Metrics Row */
.segment-quick-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.1rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.quick-stat-item {
  display: flex;
  flex-direction: column;
}

.quick-stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.quick-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.25rem;
}

.quick-stat-divider {
  width: 1px;
  height: 38px;
  background: #e2e8f0;
}

/* Feature Badges */
.segment-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.feature-pill svg {
  width: 13px;
  height: 13px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* Action & Trust */
.segment-action-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.segment-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

/* Right Column: High-Tech Live AI Interaction Terminal */
.segment-ui-card {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #10b981;
}

.terminal-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseLive 2s infinite;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}

/* Chat & Event Dialogue Feed */
.terminal-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feed-bubble {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.45;
}

.bubble-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  font-weight: 700;
}

.bubble-avatar.caller {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.bubble-avatar.ai {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.bubble-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  color: #e2e8f0;
  flex: 1;
}

.bubble-content.ai-reply {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
  color: #f1f5f9;
}

.bubble-author {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bubble-content.ai-reply .bubble-author {
  color: #60a5fa;
}

/* Event Style (For Dental, Clinic, Hospital) */
.feed-event-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.feed-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.feed-event-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.feed-event-tag.alert {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.feed-event-tag.action {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.feed-event-text {
  color: #cbd5e1;
  line-height: 1.4;
}

/* Terminal Toast Footer */
.terminal-footer-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
}

.terminal-footer-toast svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #34d399;
}

/* Responsive */
@media (max-width: 1024px) {
  .segment-pane.active {
    grid-template-columns: 1fr;
    padding: 2.25rem;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Section Header on Mobile */
  .segment-hub-container .section-header {
    margin-bottom: 1.5rem !important;
  }

  /* Segment Tabs Bar - Modern 2x2 Segmented Grid */
  .segment-nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 6px !important;
    max-width: 100% !important;
    margin: 0 auto 1.25rem auto !important;
  }

  .segment-nav-btn {
    width: 100% !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .segment-nav-btn:hover {
    color: var(--text-primary) !important;
    background: #f8fafc !important;
  }

  .segment-nav-btn.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
    font-weight: 700 !important;
  }

  .segment-tab-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }

  .segment-tab-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Segment Card Pane Container */
  .segment-pane.active {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.75rem !important;
    padding: 20px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05) !important;
  }

  /* Left Content Column */
  .segment-pane-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.15rem !important;
    width: 100% !important;
  }

  .segment-eyebrow {
    font-size: 0.72rem !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 0.25rem !important;
  }

  .segment-pane-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 0.4rem 0 !important;
    color: var(--text-primary) !important;
  }

  .segment-pane-desc {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: #475569 !important;
    margin: 0 !important;
  }

  /* Quick Metrics Row */
  .segment-quick-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    padding: 0.85rem 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .quick-stat-item {
    display: flex !important;
    flex-direction: column !important;
  }

  .quick-stat-num {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #0f172a !important;
  }

  .quick-stat-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin-top: 0.2rem !important;
  }

  .quick-stat-divider {
    height: 32px !important;
  }

  /* Feature Badges */
  .segment-feature-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }

  .feature-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
  }

  .feature-pill svg {
    width: 13px !important;
    height: 13px !important;
    color: var(--accent-blue) !important;
  }

  /* Action Row */
  .segment-action-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding-top: 0.25rem !important;
    width: 100% !important;
  }

  .segment-action-row .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
  }

  .segment-trust-tag {
    display: flex !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
  }

  /* Right Terminal Simulator Column */
  .segment-pane-right {
    width: 100% !important;
  }

  .segment-ui-card {
    padding: 16px !important;
    border-radius: 14px !important;
    gap: 0.9rem !important;
  }

  .terminal-header {
    padding-bottom: 0.75rem !important;
  }

  .terminal-status {
    font-size: 0.7rem !important;
  }

  .terminal-badge {
    font-size: 0.68rem !important;
    padding: 0.15rem 0.5rem !important;
  }

  .terminal-feed {
    gap: 0.75rem !important;
  }

  .feed-bubble {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  .bubble-author {
    font-size: 0.7rem !important;
    margin-bottom: 0.2rem !important;
  }

  .terminal-footer-toast {
    font-size: 0.72rem !important;
    padding: 0.55rem 0.75rem !important;
  }
}

/* ==========================================================================
   Architecture Showcase (healthcare-ai-development.html)
   ========================================================================== */

.arch-showcase-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.05);
  align-items: stretch;
}

.arch-guarantees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem 0;
}

.arch-guarantee-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.arch-guarantee-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-guarantee-header svg {
  width: 15px;
  height: 15px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.arch-guarantee-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tech-stack-panel {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tech-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tech-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tech-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.tech-spec-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.4rem;
  text-align: center;
}

.tech-spec-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.1;
}

.tech-spec-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (max-width: 1024px) {
  .arch-showcase-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

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

  .tech-specs-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  padding: 3rem;
}

.platform-connectors-card {
  padding: 2.25rem;
}


@media (max-width: 768px) {
  /* Global Card & Panel Padding Cap: Max 20px on Mobile Across All Pages & Sections */
  .glass-card,
  .scale-card,
  .dark-gov-card,
  .gov-notice-card,
  .process-card,
  .feature-card,
  .dual-card,
  .safety-pillar-card,
  .arch-showcase-card,
  .tech-stack-panel,
  .segment-ui-card,
  .segment-pane.active,
  .governance-banner,
  .hero-diagram-wrap,
  .journey-container,
  .workflow-pipeline-box,
  .calculator-wrapper,
  .calc-results,
  .modal-card,
  .modal-body,
  .sim-chat-pane,
  .sim-telemetry-pane,
  .contact-form-card,
  .platform-connectors-card,
  .feed-event-card,
  .footer-disclaimer-box {
    padding: 20px !important;
  }

}
