/* ==========================================================================
   TEE4IT — Software Development, Mobile Apps, IT Services & SaaS
   Operated by iSAAS LLC
   Featuring MedFlowX eMAR with Dedicated AI for Nursing Homes
   ========================================================================== */

:root {
  /* Color Palette - Refined Obsidian Tech & Medical Cyan/Emerald */
  --bg-base: #06080d;
  --bg-surface: #0b0f19;
  --bg-surface-elevated: #111726;
  --bg-card: rgba(13, 19, 32, 0.72);
  --bg-card-hover: rgba(20, 30, 52, 0.88);
  --bg-glass: rgba(11, 15, 25, 0.78);

  /* Primary Accent - Cyan, Emerald (Medical/Care trust), Indigo */
  --primary-50: #f0fdfa;
  --primary-400: #2dd4bf;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-indigo: #6366f1;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* MedFlowX Brand Colors */
  --medflow-cyan: #06b6d4;
  --medflow-emerald: #059669;
  --medflow-glow: rgba(6, 182, 212, 0.22);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(56, 189, 248, 0.6);
  --border-glow: rgba(14, 165, 233, 0.25);

  /* Shadows & Depth */
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 12px 36px -4px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 28px -4px rgba(6, 182, 212, 0.25);

  /* Typography Stacks */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 10% 65%, rgba(16, 185, 129, 0.05) 0%, transparent 45%);
}

/* Background Grid Overlay */
.grid-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  z-index: 0;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Sections */
.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-sm {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-header {
  margin-bottom: 3.25rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag.tag-medflow {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  max-width: 820px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.6;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-symbol {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.brand-name {
  line-height: 1.1;
  font-size: 1.2rem;
}

.brand-name span {
  color: var(--accent-cyan);
}

.brand-tagline {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-pill-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary-500);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.3);
  transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.5);
  transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: #22d3ee;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  animation: pulse-animation 2s infinite ease-in-out;
}

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

/* Ultra-Wide 2-Line Hero Heading */
.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 1080px;
  margin-bottom: 1.75rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 25%, #38bdf8 70%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-medflow {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.btn-medflow:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.55);
  transform: translateY(-2px);
}

/* Hero Spotlight Card (Flagship MedFlowX Teaser) */
.hero-spotlight-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(11, 15, 25, 0.85) 100%);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1040px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.spotlight-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.spotlight-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.spotlight-title {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.spotlight-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   METRICS BAR
   ========================================================================== */
.metrics-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.45);
  padding: 2.25rem 0;
}

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

.metric-item {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border-subtle);
  padding-left: 1.25rem;
}

.metric-item:first-child {
  border-left: 2px solid var(--accent-cyan);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

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

/* ==========================================================================
   FLAGSHIP SHOWCASE: MEDFLOWX eMAR (NURSING HOMES)
   ========================================================================== */
.medflowx-section {
  padding-top: 6rem;
  padding-bottom: 6.5rem;
  background: 
    radial-gradient(circle at 50% 10%, rgba(6, 182, 212, 0.09) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6, 8, 13, 0) 0%, rgba(8, 14, 26, 0.7) 50%, rgba(6, 8, 13, 0) 100%);
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
  position: relative;
}

.medflow-hero-card {
  background: linear-gradient(135deg, rgba(11, 19, 36, 0.95) 0%, rgba(6, 12, 22, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.8), 0 0 32px -4px rgba(6, 182, 212, 0.2);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.medflow-hero-card::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.medflow-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.medflow-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-flagship {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
}

.badge-ai {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-nursing {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.medflow-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.medflow-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* MedFlow Mockup Tablet Widget */
.medflow-mockup-frame {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.mockup-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-resident-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-dose-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-dose-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.mockup-dose-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mockup-pass-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Dedicated AI Assistant Callout Box inside Mockup */
.mockup-ai-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06080d;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ai-msg {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.ai-msg strong {
  color: #34d399;
}

/* Nursing Home Feature Bento Cards */
.nursing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.nursing-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.nursing-feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nursing-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medflow-cyan);
  margin-bottom: 1.25rem;
}

.nursing-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

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

/* ==========================================================================
   CORE SERVICES SECTION (4 EXACT PILLARS)
   ========================================================================== */
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background var(--transition-normal);
}

.service-card:hover::before {
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

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

.service-subfeatures {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  margin-top: auto;
}

.service-subfeatures li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-subfeatures li span {
  color: var(--accent-emerald);
}

/* ==========================================================================
   INTERACTIVE ARCHITECTURE STACK TABS
   ========================================================================== */
.tabs-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--accent-cyan);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.3s ease;
}

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

.stack-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.stack-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
}

.stack-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 0.75rem;
}

/* ==========================================================================
   SECTION DIVIDERS & AMBIENT TRANSITIONS
   ========================================================================== */
.section-divider {
  width: 100%;
  max-width: var(--container-max);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.25) 50%, transparent 100%);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   ABOUT & CORPORATE GOVERNANCE (iSAAS LLC)
   ========================================================================== */
.about-section {
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
}

.about-governance-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.governance-main-card {
  background: linear-gradient(145deg, rgba(13, 19, 32, 0.95) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: var(--radius-md);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-elevated), 0 0 40px -10px rgba(14, 165, 233, 0.15);
  position: relative;
  overflow: hidden;
}

.governance-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-indigo));
}

.gov-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.gov-shield-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.gov-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.gov-title {
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.gov-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.gov-specs-table {
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.gov-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.gov-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gov-spec-key {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.gov-spec-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.font-highlight {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  color: #ffffff;
}

.text-cyan {
  color: var(--accent-cyan) !important;
}

.text-emerald {
  color: var(--accent-emerald) !important;
}

.safeguards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.safeguard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.safeguard-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.safeguard-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.safeguard-card:hover .safeguard-icon {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: #ffffff;
}

.safeguard-title {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.safeguard-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   CONTACT DETAILS & FORM
   ========================================================================== */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.contact-info-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateX(3px);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon.icon-cyan {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--accent-cyan);
}

.contact-info-icon.icon-medflow {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.contact-info-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.contact-info-value:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

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

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

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

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox {
  margin-top: 0.2rem;
  accent-color: var(--primary-500);
}

.form-toast {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.form-toast-error {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

/* ==========================================================================
   FOOTER (STRICT REQUIREMENT: TEE4IT IS OPERATED BY iSAAS LLC)
   ========================================================================== */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-summary {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
  margin-top: 1rem;
}

/* MANDATORY OPERATED BY BANNER */
.operated-by-highlight {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.footer-company-card {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  max-width: 380px;
}

.footer-company-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-muted);
}

.footer-company-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-col-title {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

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

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

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

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

.footer-legal-callout {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-legal-callout strong {
  color: var(--text-primary);
}

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

/* ==========================================================================
   LEGAL / PRIVACY & TERMS PAGE STYLES
   ========================================================================== */
.legal-page-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.3);
}

.legal-meta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.legal-content-container {
  max-width: 860px;
  margin: 3.5rem auto 6rem;
  padding: 0 1.5rem;
}

.legal-entity-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .medflow-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .about-governance-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
    box-shadow: var(--shadow-elevated);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-cta-btn {
    display: none;
  }
  
  .hero-section {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .medflow-hero-card {
    padding: 2rem 1.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .governance-main-card {
    padding: 1.75rem 1.5rem;
  }

  .gov-spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
