/* ==========================================================================
   7SPHEX HEALTHCARE AI — LIGHT DESIGN SYSTEM & TOKENS
   Simple, Clean, Modern Medical Aesthetic Inspired by Leading Healthtech
   ========================================================================== */

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

:root {
  /* Color Palette - Clean Clinical Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-surface: #f1f5f9;
  --bg-alt: #f8fafc;
  --bg-dark-section: #090e17; /* High-contrast governance section from reference */

  /* Accent Colors - Crisp Medical Royal Blue, Teal & Cyan */
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #eff6ff;
  --accent-teal: #0d9488;
  --accent-teal-light: #f0fdfa;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #f0f9ff;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --accent-amber: #d97706;

  /* Text Colors */
  --text-primary: #0f172a;      /* Slate 900 */
  --text-secondary: #475569;    /* Slate 600 */
  --text-muted: #64748b;        /* Slate 500 */
  --text-light: #334155;        /* Slate 700 */
  --text-dim: #94a3b8;          /* Slate 400 */
  --text-white: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;      /* Slate 200 */
  --border-medium: #cbd5e1;      /* Slate 300 */
  --border-focus: #3b82f6;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px -2px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.09);
  --shadow-blue-sm: 0 4px 14px rgba(37, 99, 235, 0.25);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Container & Radius */
  --container-max: 1440px;
  --container-wide: 1520px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.brand-logo img,
.brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle ambient backdrop */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

header, main, footer, section, .modal {
  position: relative;
  z-index: 1;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection */
::selection {
  background: #dbeafe;
  color: #1e3a8a;
}

/* ==========================================================================
   Typography
   ========================================================================== */

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

h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.22;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.68;
}

.lead-text {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.65;
  color: var(--text-light);
}

/* Text Highlights */
.text-blue {
  color: var(--accent-blue);
}

.text-teal {
  color: var(--accent-teal);
}

.gradient-text-teal, .gradient-text-cyan, .gradient-text-purple {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

/* Links */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue-hover);
}

/* ==========================================================================
   Layout Containers & Grid Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-lg {
  padding: 6.5rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

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

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.badge-teal, .badge-cyan, .badge-blue {
  color: var(--accent-blue);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.badge-purple {
  color: var(--accent-indigo);
  border-color: #c7d2fe;
  background: #eef2ff;
}

.badge-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-blue);
}

/* ==========================================================================
   Clean Card Aesthetics
   ========================================================================== */

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 50px;
  padding: 0 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: var(--shadow-blue-sm);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline-teal {
  background: transparent;
  color: var(--accent-blue);
  border-color: #bfdbfe;
}

.btn-outline-teal:hover {
  background: #eff6ff;
  color: var(--accent-blue-hover);
  border-color: var(--accent-blue);
}

.btn-lg {
  /* Inherit 50px height */
}

.btn-sm {
  /* Inherit 50px height */
}

.btn svg {
  width: 17px;
  height: 17px;
}

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

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 4.5rem 0;
  }
}

@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;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .btn {
    width: 100%;
  }
  .hero-cta-group {
    flex-direction: column;
  }
}
