:root {
  color-scheme: light;
  scroll-padding-top: 80px;

  /* Color Palette */
  --accent-50: #f7f9f7;
  --accent-100: #e8ede7;
  --accent-200: #d4dfd2;
  --accent-300: #b8cdb4;
  --accent-400: #98b593;
  --accent-400-rgb: 152, 181, 147;
  --accent-500: #7a9d75;
  --accent-500-rgb: 122, 157, 117;
  --accent-600: #5f7e5b;
  --accent-600-rgb: 95, 126, 91;
  --accent-700: #4d654a;
  --accent-800: #3f523d;
  --accent-900: #364535;
  --accent-950: #1b251a;
  --navy: #1A254B;
  --slate-blue-500: #4b7dae;
  --logo-teal: #1A4D4D;
  --logo-sage: #B8CDB4;

  /* Typography Scale - Modular Scale (1.250 - Major Third) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.563rem;    /* 25px */
  --text-3xl: 1.953rem;    /* 31px */
  --text-4xl: 2.441rem;    /* 39px */
  --text-5xl: 3.052rem;    /* 49px */
  --text-6xl: 3.815rem;    /* 61px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  --tracking-brand: 0.28em;

  /* Spacing Scale - Consistent Vertical Rhythm */
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 0.75rem;     /* 12px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  --space-2xl: 3rem;       /* 48px */
  --space-3xl: 4rem;       /* 64px */
  --space-4xl: 6rem;       /* 96px */
  --space-5xl: 8rem;       /* 128px */

  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F7F9FC;
  color: #212529;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, .h1 {
  font-size: var(--text-5xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: rgb(15 23 42);
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: rgb(15 23 42);
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: rgb(15 23 42);
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.text-body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* Brand Text - Tighter Kerning */
.brand-text {
  letter-spacing: var(--tracking-brand);
  text-transform: uppercase;
}

.gradient-bg {
  background: linear-gradient(315deg, #3d8080 0%, var(--logo-teal) 50%, #0a2020 100%) !important;
}

.gradient-bg-reverse {
  background: linear-gradient(135deg, #3d8080 0%, var(--logo-teal) 50%, #0a2020 100%) !important;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.focus-ring:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  padding: 0.625rem 1.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: #06121d;
  border: 1px solid rgba(8, 28, 43, 0.1);
  box-shadow:
    0 14px 28px -18px rgba(8, 28, 43, 0.5),
    0 12px 20px -15px rgba(var(--accent-500-rgb), 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px -18px rgba(8, 28, 43, 0.55),
    0 14px 24px -16px rgba(var(--accent-500-rgb), 0.5);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
}

.btn-secondary {
  background: white;
  color: rgb(15 23 42);
  border: 1px solid rgb(226 232 240);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: rgb(248 250 252);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Navigation Links with Enhanced Hover */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: var(--text-sm);
  color: rgb(71 85 105);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: rgb(15 23 42);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--accent-400);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: rgb(15 23 42);
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Link with Arrow Icon */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-600);
  transition: gap 0.2s ease, color 0.2s ease;
}

.link-arrow:hover {
  gap: 0.75rem;
  color: var(--accent-700);
}

.link-arrow::after {
  content: '→';
  font-size: 1.25em;
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

/* Card Component */
.card {
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-compact {
  padding: var(--space-lg);
}

/* Section Spacing */
.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-sm {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-lg {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* Container */
.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.modal-open {
  overflow: hidden;
}

/* Improved Footer Styling */
footer {
  border-top: 2px solid rgb(226 232 240);
}

footer .footer-section {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgb(241 245 249);
}

footer .footer-bottom {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

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

