:root {
  /* Surface */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8f9fa;
  --bg-tertiary:   #f1f3f5;
  --bg-dark:       #0f172a;
  --bg-dark-alt:   #1e293b;
  --bg-risk:       #1a0505;

  /* Text */
  --text-primary:   #1a1a2e;
  --text-secondary: #4b5563;
  --text-tertiary:  #9ca3af;
  --text-inverse:   #ffffff;
  --text-inverse-muted: #cbd5e1;

  /* Accent — HealthSail teal */
  --accent:         #2EC4B6;
  --accent-hover:   #25a99d;
  --accent-muted:   rgba(46, 196, 182, 0.12);
  --accent-strong:  #0d9488;

  /* Status */
  --success:  #16a34a;
  --danger:   #dc2626;
  --danger-muted: rgba(220, 38, 38, 0.08);
  --warning:  #f59e0b;

  /* Borders */
  --border:        #e5e7eb;
  --border-soft:   #f0f0f0;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Type scale */
  --fs-xs:      0.75rem;
  --fs-sm:      0.875rem;
  --fs-base:    1rem;
  --fs-md:      1.0625rem;
  --fs-lg:      1.125rem;
  --fs-xl:      1.25rem;
  --fs-2xl:     clamp(1.5rem, 2.5vw, 1.75rem);
  --fs-3xl:     clamp(1.75rem, 3vw, 2.25rem);
  --fs-4xl:     clamp(2rem, 4vw, 3rem);
  --fs-hero:    clamp(2.25rem, 5vw, 3.5rem);

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px;  --sp-8: 48px;
  --sp-9: 64px; --sp-10: 80px; --sp-11: 96px; --sp-12: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 820px;
  --container-px: clamp(20px, 5vw, 40px);
  --section-py: clamp(64px, 10vw, 120px);

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.12);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 300ms;

  /* Z-index */
  --z-header: 50;
  --z-sticky: 40;
}

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

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

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
figure { margin: 0; }
blockquote { margin: 0; }
