/* ═══════════════════════════════════════════════════════
   ALIDA HEALTH — Design System (Minimalist Light Theme)
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@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');

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --color-primary: #2969E5;
  --color-primary-light: #5289F7;
  --color-primary-dark: #1B4DB8;
  --color-accent: #2a9d8f;
  --color-accent-dark: #21867a; /* Darker shade */
  --color-medvi-green: #1f776d; /* Dark green hero bg */
  --color-medvi-green-light: #2a9d8f;
  --color-black: #000000;
  --color-white: #FFFFFF;
  
  --color-gray-50: #fbfbfd;
  --color-gray-100: #f5f5f7;  /* Mac body background base */
  --color-gray-200: #e8e8ed;
  --color-gray-300: #d2d2d7;
  --color-gray-400: #86868b;
  --color-gray-500: #515154;
  --color-gray-600: #333336;
  --color-gray-700: #1d1d1f;  /* Standard Apple pure dark text */
  --color-gray-800: #000000;

  /* Surfaces */
  --surface-primary: #ffffff;
  --surface-elevated: #fbfbfd;
  --surface-card: #ffffff;
  --surface-card-hover: rgba(0, 0, 0, 0.02);
  --surface-glass: rgba(255, 255, 255, 0.85);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  --gradient-mixed: linear-gradient(135deg, var(--color-primary), var(--color-accent));

  /* Typography */
  /* Prioritize Apple's native SF Pro fonts for the true Apple aesthetic */
  --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Soft Shadows (Apple Style) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.2, 0, 0, 1);
  --transition-base: 400ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 600ms cubic-bezier(0.2, 0, 0, 1);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-700);
  background-color: var(--surface-primary);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-black);
  letter-spacing: -0.04em;
}

h1 { font-size: var(--text-7xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h4 { font-size: var(--text-2xl); }

.text-gradient {
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--color-gray-500);
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(41, 105, 229, 0.08); /* Soft primary bg */
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-xl);
  color: var(--color-gray-500);
  max-width: 650px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 14px; /* Less rounded, not full pill */
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-gray-700);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-black);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 16px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll-triggered animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0, 0, 1),
              transform 1s cubic-bezier(0.2, 0, 0, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-2xl); }
  .section { padding: var(--space-20) 0; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  
  body {
    font-size: 16px; /* Base size larger for readability */
  }

  h1 { 
    font-size: 38px; 
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  
  h2 { 
    font-size: 32px; 
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  
  h3 { 
    font-size: 22px; 
    line-height: 1.3;
  }
  
  .section { padding: var(--space-12) 0; }
  .container { padding: 0 28px; } /* Increased lateral margin */
  
  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-header h2 {
    margin-bottom: var(--space-3);
  }

  .section-header p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Touch Targets & Buttons */
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: 16px;
  }

  /* Animations – reduce delay stagger on mobile for snappier feel */
  .reveal-delay-4 { transition-delay: 300ms; }
  .reveal-delay-5 { transition-delay: 350ms; }
  .reveal-delay-6 { transition-delay: 400ms; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .container { padding: 0 var(--space-4); }
}
