/* ==============================================================================
   ONLYWAY MEDTECH - CORPORATE DESIGN SYSTEM & RESPONSIVE STYLESHEET
   Brand Palette: Deep Navy (#06152b, #0a2540, #11335d), Slate Teal (#1e4e69, #26536f, #41717c),
                  Medical Sage/Mint (#5e9e88, #64a78d, #76b78e), Clinical Light (#ffffff, #f8fafc)
   Architecture: Parent-Child Fluid Responsive Layout, Design Tokens, Modern Components
   Theme: Pristine Light Mode
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* --- 1. Design Tokens & Custom Properties --- */
:root {
  /* Brand Navy Spectrum */
  --color-navy-950: #06152b;
  --color-navy-900: #0a2540;
  --color-navy-800: #11335d;
  --color-navy-700: #1a4173;
  
  /* Brand Teal / Ocean Spectrum */
  --color-teal-800: #1e4e69;
  --color-teal-700: #26536f;
  --color-teal-600: #35677d;
  --color-teal-500: #41717c;
  --color-teal-400: #508894;
  --color-teal-100: #e2f1f3;
  --color-teal-50:  #f0f8f9;

  /* Brand Sage / Medical Green Spectrum */
  --color-sage-700: #477b6a;
  --color-sage-600: #599083;
  --color-sage-500: #5e9e88;
  --color-sage-400: #64a78d;
  --color-sage-300: #76b78e;
  --color-sage-100: #dff2e9;
  --color-sage-50:  #eef8f3;

  /* Surfaces & Backgrounds */
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-modal: #ffffff;
  --bg-elevated: #ffffff;
  
  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-light: #cbd5e1;
  --border-focus: #5e9e88;
  --border-teal: #9fd2c5;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(6, 21, 43, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --shadow-card-hover: 0 16px 32px -8px rgba(17, 51, 93, 0.12), 0 4px 12px -2px rgba(94, 158, 136, 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout Dimensions */
  --container-max: 1280px;
  --header-height: 80px;
  --header-height-scrolled: 68px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- 3. Fluid Layout Containers & Section Architecture --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 1.5rem);
  padding-right: clamp(1rem, 3.5vw, 1.5rem);
  box-sizing: border-box;
}

.section {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0;
  position: relative;
  width: 100%;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem) auto;
  opacity: 1;
  visibility: visible;
}

/* --- 4. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy-950);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-teal-700) 50%, var(--color-sage-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background-color: var(--color-sage-50);
  border: 1px solid var(--color-sage-300);
  color: var(--color-teal-700);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.badge-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-sage-500);
  box-shadow: 0 0 8px var(--color-sage-400);
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: var(--color-navy-950);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.68;
  font-weight: 400;
}

/* --- 5. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.625rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn:focus-visible {
  outline: 2px solid var(--color-teal-700);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-teal-700) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(17, 51, 93, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-teal-800) 100%);
  box-shadow: 0 6px 20px rgba(17, 51, 93, 0.35);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-teal-700) 0%, var(--color-sage-500) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(94, 158, 136, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--color-teal-800) 0%, var(--color-sage-600) 100%);
  box-shadow: 0 6px 20px rgba(94, 158, 136, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--color-navy-800);
}

.btn-outline:hover {
  border-color: var(--color-teal-700);
  background-color: var(--color-teal-50);
  color: var(--color-teal-800);
  transform: translateY(-2px);
}

.btn-text {
  padding: 0.5rem 0;
  color: var(--color-teal-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-text:hover {
  color: var(--color-navy-900);
}

.btn-text svg {
  transition: transform var(--transition-fast);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* --- 6. Sticky Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: height var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.navbar.scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 42px;
  width: auto;
  max-width: 175px;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal-700), var(--color-sage-500));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-navy-950);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.nav-cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  padding: 8px;
  margin: -8px;
  box-sizing: content-box;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-navy-950);
  border-radius: 4px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  pointer-events: none;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- 7. Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + clamp(2rem, 4vw, 4rem));
  padding-bottom: clamp(3rem, 5vw, 5.5rem);
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(223, 242, 233, 0.45) 0%, rgba(255, 255, 255, 0) 55%),
              radial-gradient(circle at 10% 70%, rgba(226, 241, 243, 0.5) 0%, rgba(255, 255, 255, 0) 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-content {
  width: 100%;
  max-width: 680px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--color-sage-50);
  border: 1px solid var(--border-teal);
  color: var(--color-teal-700);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero-pill-badge {
  background-color: var(--color-teal-700);
  color: var(--text-inverse);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-navy-950);
  word-break: break-word;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

/* Hero Metrics Ticker */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--color-navy-900);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-number span {
  color: var(--color-sage-500);
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

/* Hero Visual & Floating Highlights */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
}

.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(17, 51, 93, 0.22);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  width: 100%;
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-frame:hover img {
  transform: scale(1.025);
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  box-shadow: 0 12px 28px -4px rgba(17, 51, 93, 0.16);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.floating-badge:hover {
  transform: translateY(-3px);
}

.floating-badge-top {
  top: -16px;
  right: -12px;
}

.floating-badge-bottom {
  bottom: -20px;
  left: -12px;
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-teal-700) 0%, var(--color-sage-500) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-text-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy-900);
  line-height: 1.2;
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- 8. Three Service Pillars --- */
.pillars-section {
  background-color: var(--bg-page);
}

/* PILLAR 1: Medtech & Engineering (Spotlight) */
.pillar-spotlight {
  background: linear-gradient(145deg, #ffffff 0%, var(--color-sage-50) 100%);
  border: 2px solid var(--border-teal);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.pillar-spotlight::before {
  content: 'PRIMARY PILLAR';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: linear-gradient(90deg, var(--color-teal-700), var(--color-sage-500));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 3.5vw, 3rem);
  align-items: center;
}

.pillar-header {
  margin-bottom: 1.5rem;
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-sage-600);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.pillar-title {
  font-size: clamp(1.6rem, 3vw, 2.125rem);
  color: var(--color-navy-950);
  margin-bottom: 0.75rem;
}

.pillar-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.quote-highlight {
  background-color: rgba(255, 255, 255, 0.9);
  border-left: 3.5px solid var(--color-teal-700);
  padding: 0.875rem 1.125rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.125rem 0 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-navy-800);
  font-style: italic;
  font-weight: 500;
}

/* Engineering Capabilities Sub-grid */
.eng-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.cap-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-fast);
}

.cap-card:hover {
  border-color: var(--color-sage-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.cap-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cap-card-title svg {
  color: var(--color-sage-500);
  flex-shrink: 0;
}

.cap-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pillar-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  width: 100%;
}

.pillar-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pillar-image-frame:hover img {
  transform: scale(1.025);
}

/* Secondary Pillars Grid: Clinical & Regulatory */
.secondary-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  width: 100%;
}

.pillar-card:hover {
  border-color: var(--color-teal-400);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.pillar-card-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  width: 100%;
}

.pillar-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pillar-card:hover .pillar-card-image img {
  transform: scale(1.03);
}

.card-service-list {
  margin: 1.25rem 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.service-list-item svg {
  color: var(--color-sage-500);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Distinct Sub-Offerings: CDSCO & ISO Tracks */
.distinct-offerings-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem 0;
}

.offering-box {
  background-color: var(--color-teal-50);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  padding: 1.125rem;
  transition: all var(--transition-fast);
}

.offering-box:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.offering-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.offering-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy-900);
}

.offering-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-teal-700);
  color: #fff;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.offering-bullets {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.offering-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.offering-bullet::before {
  content: '•';
  color: var(--color-teal-700);
  font-weight: bold;
}

/* --- 9. Our Approach & 5-Stage Pathway --- */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.875rem, 1.8vw, 1.25rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
}

.stage-step {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 1.5rem) clamp(1rem, 1.5vw, 1.25rem);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.stage-step:hover {
  border-color: var(--color-sage-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stage-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
  gap: 0.5rem;
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-teal-700);
}

.stage-duration {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-sage-50);
  color: var(--color-teal-800);
  border: 1px solid var(--border-teal);
  white-space: nowrap;
}

.stage-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.5rem;
}

.stage-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
}

/* Comparison Table (Desktop & Tablet Default) */
.comparison-wrapper {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  width: 100%;
}

.comparison-header {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-teal-800) 100%);
  color: #fff;
}

.comparison-header h3 {
  color: #fff;
  font-size: clamp(1.15rem, 2.5vw, 1.375rem);
  margin-bottom: 0.375rem;
}

.comparison-header p {
  color: var(--color-teal-100);
  font-size: 0.875rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.comparison-table th {
  padding: 1rem 1.25rem;
  background-color: var(--bg-subtle);
  color: var(--color-navy-900);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table td {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.55;
}

.comparison-table tr:hover td {
  background-color: rgba(238, 248, 243, 0.4);
}

.comparison-table .dim-col {
  font-weight: 600;
  color: var(--color-navy-900);
  width: 22%;
}

.comparison-table .drug-col {
  color: var(--text-secondary);
  width: 38%;
}

.comparison-table .device-col {
  color: var(--color-navy-950);
  font-weight: 500;
  width: 40%;
  background-color: rgba(240, 248, 249, 0.5);
}

.device-highlight-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-sage-100);
  color: var(--color-teal-800);
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 0.35rem;
}

/* --- 10. Capabilities & Infrastructure --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  width: 100%;
}

.capability-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  width: 100%;
}

.capability-box:hover {
  border-color: var(--color-teal-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-sage-50);
  border: 1px solid var(--border-teal);
  color: var(--color-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.capability-box h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.625rem;
}

.capability-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hospital Network Showcase */
.network-banner {
  background: linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-800) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
}

.network-content h3 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.875rem;
}

.network-content p {
  color: var(--color-teal-100);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.hospital-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hospital-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.network-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.network-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-sage-300);
  margin-bottom: 0.25rem;
}

.network-stat-label {
  font-size: 0.8125rem;
  color: var(--color-teal-100);
}

/* --- 11. About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}

.about-text h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.375rem);
  margin-bottom: 1.125rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.125rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.about-item {
  border-left: 3px solid var(--color-sage-500);
  padding-left: 1rem;
}

.about-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.about-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.case-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.case-badge {
  display: inline-block;
  background-color: var(--color-teal-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.case-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.875rem;
}

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

/* --- 12. Contact Section --- */
.contact-section {
  background: radial-gradient(circle at 10% 20%, rgba(223, 242, 233, 0.5) 0%, rgba(255, 255, 255, 0) 50%),
              radial-gradient(circle at 90% 80%, rgba(226, 241, 243, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
              #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.contact-card-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.form-header p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy-900);
  margin-bottom: 0.375rem;
}

.form-label .req {
  color: #dc2626;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1rem; /* Prevents mobile iOS auto-zoom */
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal-700);
  box-shadow: 0 0 0 3px rgba(38, 83, 111, 0.15);
}

.form-control.invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0.875rem 0 1.25rem 0;
}

.form-submit-btn {
  width: 100%;
  min-height: 50px;
  padding: 0.9375rem 1.5rem;
  font-size: 1rem;
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Contact Info Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  width: 100%;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-sage-50);
  border: 1px solid var(--border-teal);
  color: var(--color-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-details p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.info-details a {
  color: var(--color-teal-700);
  font-weight: 600;
}

.info-details a:hover {
  text-decoration: underline;
}

.scoping-guarantee-card {
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-teal-800) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  width: 100%;
}

.scoping-guarantee-card h4 {
  color: #fff;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scoping-guarantee-card p {
  font-size: 0.8125rem;
  color: var(--color-teal-100);
  line-height: 1.5;
  margin: 0;
}

/* --- 13. Accessible Branded Modal Popup --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 21, 43, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: var(--bg-modal);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  max-width: 500px;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  position: relative;
  max-height: min(90dvh, 680px);
  overflow-y: auto;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: #f1f5f9;
  color: var(--color-navy-950);
  transform: scale(1.05);
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--color-teal-700);
  outline-offset: 2px;
}

.modal-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-wrapper.success {
  background-color: var(--color-sage-50);
  border: 2px solid var(--color-sage-300);
  color: var(--color-sage-700);
}

.modal-icon-wrapper.error {
  background-color: #fef2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
}

.modal-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--color-navy-950);
  margin-bottom: 0.625rem;
}

.modal-message {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-teal-700);
  background-color: var(--color-teal-50);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  justify-content: center;
}

.modal-action-btn {
  min-width: 140px;
}

/* --- 14. Footer --- */
.footer {
  background-color: var(--color-navy-950);
  color: #94a3b8;
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.125rem 0 1.25rem 0;
  color: #94a3b8;
}

.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.125rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.8125rem;
}

.footer-legal-note {
  max-width: 650px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-sage-300);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.back-to-top-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- 15. Responsive Architecture & Media Queries --- */

/* Laptop & Tablet Landscape (<= 1100px) */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  
  .hero-content {
    max-width: 100%;
  }

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

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

  .network-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* Tablet Optimizations (768px - 1023px) */
@media (max-width: 1023px) {
  .secondary-pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .comparison-header {
    padding: 1.5rem 1.25rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .comparison-table .dim-col {
    width: 24%;
  }

  .comparison-table .drug-col,
  .comparison-table .device-col {
    width: 38%;
  }
}

/* Mobile Navigation Breakpoint (<= 860px) */
@media (max-width: 860px) {
  section[id] {
    scroll-margin-top: calc(var(--header-height-scrolled) + 1rem);
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem clamp(1rem, 4vw, 1.5rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, top var(--transition-normal);
    z-index: 999;
  }

  .navbar.scrolled .nav-links {
    top: var(--header-height-scrolled);
  }

  .nav-link {
    width: 100%;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 1.0625rem;
    font-weight: 600;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

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

/* Mobile Transformation: Stacked Comparison Cards (<= 680px) */
@media (max-width: 680px) {
  .comparison-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .comparison-header {
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    padding: 1.25rem 1rem;
  }

  .table-responsive {
    overflow-x: visible;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 1.125rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .comparison-table tr:hover {
    border-color: var(--color-teal-400);
    box-shadow: var(--shadow-md);
  }

  .comparison-table td.dim-col {
    background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-teal-800) 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .comparison-table td.drug-col {
    padding: 0.9375rem 1.125rem;
    border-bottom: 1px dashed var(--border-subtle);
    background-color: #ffffff;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .comparison-table td.drug-col::before {
    content: 'Traditional Drug Trial';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
  }

  .comparison-table td.device-col {
    padding: 0.9375rem 1.125rem;
    border-bottom: none;
    background-color: var(--color-sage-50);
    border-left: 3.5px solid var(--color-sage-500);
    color: var(--color-navy-950);
    font-size: 0.875rem;
    line-height: 1.55;
    font-weight: 500;
  }

  .comparison-table td.device-col::before {
    content: 'Device & Wearable Study (OnlyWay Medtech)';
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-teal-700);
    margin-bottom: 0.35rem;
  }

  .device-highlight-tag {
    display: inline-block;
    margin-bottom: 0.35rem;
  }
}

/* Standard Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .navbar {
    height: var(--header-height-scrolled);
  }

  .nav-links {
    top: var(--header-height-scrolled);
  }

  .hero-pill {
    white-space: normal;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.875rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
    padding-top: 1.5rem;
  }

  .floating-badge {
    position: static;
    margin-top: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .pathway-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .network-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .nav-logo {
    max-width: 135px;
    height: 32px;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-cta {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
  }

  .pillar-spotlight::before {
    position: static;
    display: inline-block;
    margin-bottom: 0.875rem;
  }

  .eng-capabilities-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* Extra-Narrow Screens (<= 360px down to 320px) */
@media (max-width: 360px) {
  .nav-logo {
    max-width: 118px;
    height: 28px;
  }

  .nav-cta {
    padding: 0.38rem 0.7rem;
    font-size: 0.75rem;
  }

  .network-stats {
    grid-template-columns: 1fr;
  }

  .hospital-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

/* Focus Pulse Keyframe Animation */
@keyframes pulseFocus {
  0% { box-shadow: 0 0 0 0 rgba(94, 158, 136, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(94, 158, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 158, 136, 0); }
}

.pulse-focus {
  animation: pulseFocus 1.2s ease-out;
  border-color: var(--color-sage-500) !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Accessibility: Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
