/* =====================================================================
   Meridian: a corporate template. Navy header, structured cards, Inter.
   Light theme first, dark theme below. Change colours here only.
   ===================================================================== */
:root, [data-theme="light"] {
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: var(--font-body);
  --head-weight: 700; --head-tracking: -0.015em;
  --container: 75rem;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 16px; --radius-btn: 8px; --radius-pill: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14);

  --bg: #f5f7fb; --surface: #ffffff; --surface-alt: #eef2f8; --input-bg: #ffffff;
  --text: #334155; --text-strong: #0f172a; --muted: #5b6b82; --subtle: #8392a8;
  --border: #e2e8f0; --border-strong: #cbd5e1;
  --primary: #1d4ed8; --primary-hover: #1e40af; --on-primary: #ffffff;
  --primary-soft: #e6eefe; --primary-text: #1e40af; --primary-ring: rgba(29, 78, 216, .2);
  --accent: #f59e0b; --accent-hover: #d97706; --on-accent: #111827;
  --link: #1d4ed8; --link-hover: #1e3a8a; --focus: #2563eb;
  --success: #15803d; --success-soft: #dcfce7; --success-text: #166534;
  --warning-soft: #fef3c7; --warning-text: #92400e;
  --danger: #dc2626; --danger-soft: #fee2e2; --danger-text: #b91c1c;

  --header-bg: #0f1f3d; --header-text: #e2e8f0; --header-border: rgba(255, 255, 255, .08);
  --header-brand: #ffffff; --header-link: #cbd5e1; --header-link-hover: #ffffff;
  --brand-mark-bg: #1d4ed8; --brand-mark-text: #ffffff;
  --footer-bg: #0f1f3d; --footer-text: #cbd5e1; --footer-muted: #94a3b8; --footer-heading: #ffffff;
  --footer-link: #cbd5e1; --footer-link-hover: #ffffff; --footer-border: rgba(255, 255, 255, .1);
  --hero-bg: linear-gradient(180deg, #0f1f3d 0%, #16305e 100%); --hero-text: #e2e8f0; --hero-heading: #ffffff; --hero-muted: #b8c4d6;
  --cta-bg: #0f1f3d; --cta-text: #e2e8f0; --cta-heading: #ffffff; --cta-muted: #b8c4d6;
  --card-hover-border: #93b4f5; --card-hover-shadow: 0 10px 28px rgba(29, 78, 216, .12);
  color-scheme: light;
}

[data-theme="dark"] {
  --shadow-sm: none; --shadow: 0 4px 16px rgba(0, 0, 0, .35); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .5);
  --bg: #0b1220; --surface: #111a2c; --surface-alt: #18233a; --input-bg: #0e1626;
  --text: #c5cfdd; --text-strong: #f1f5f9; --muted: #94a3b8; --subtle: #6f7f96;
  --border: #22304a; --border-strong: #334561;
  --primary: #4f83f1; --primary-hover: #6b97f4; --on-primary: #0b1220;
  --primary-soft: rgba(79, 131, 241, .15); --primary-text: #93b4f5; --primary-ring: rgba(79, 131, 241, .3);
  --link: #8fb0f7; --link-hover: #b9cefa; --focus: #6b97f4;
  --success: #22c55e; --success-soft: rgba(34, 197, 94, .14); --success-text: #86efac;
  --warning-soft: rgba(245, 158, 11, .15); --warning-text: #fcd34d;
  --danger: #ef4444; --danger-soft: rgba(239, 68, 68, .15); --danger-text: #fca5a5;
  --header-bg: #080e1a; --footer-bg: #080e1a; --cta-bg: #16233d;
  --hero-bg: linear-gradient(180deg, #080e1a 0%, #0f1c34 100%);
  --card-hover-border: #3b5d9c; --card-hover-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --shadow-sm: none; --shadow: 0 4px 16px rgba(0, 0, 0, .35); --shadow-lg: 0 14px 36px rgba(0, 0, 0, .5);
    --bg: #0b1220; --surface: #111a2c; --surface-alt: #18233a; --input-bg: #0e1626;
    --text: #c5cfdd; --text-strong: #f1f5f9; --muted: #94a3b8; --subtle: #6f7f96;
    --border: #22304a; --border-strong: #334561;
    --primary: #4f83f1; --primary-hover: #6b97f4; --on-primary: #0b1220;
    --primary-soft: rgba(79, 131, 241, .15); --primary-text: #93b4f5; --primary-ring: rgba(79, 131, 241, .3);
    --link: #8fb0f7; --link-hover: #b9cefa; --focus: #6b97f4;
    --success: #22c55e; --success-soft: rgba(34, 197, 94, .14); --success-text: #86efac;
    --warning-soft: rgba(245, 158, 11, .15); --warning-text: #fcd34d;
    --danger: #ef4444; --danger-soft: rgba(239, 68, 68, .15); --danger-text: #fca5a5;
    --header-bg: #080e1a; --footer-bg: #080e1a; --cta-bg: #16233d;
    --hero-bg: linear-gradient(180deg, #080e1a 0%, #0f1c34 100%);
    --card-hover-border: #3b5d9c; --card-hover-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ---- Meridian's own touches ---- */
.nav a.is-current { color: #ffffff; background: rgba(255, 255, 255, .08); }
.site-header .btn-outline { border-color: rgba(255, 255, 255, .25); color: #ffffff; }
.site-header .btn-outline:hover { border-color: #ffffff; color: #ffffff; }
.hero { padding-block: 5rem 5.5rem; }
.hero-inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.hero-exts { justify-content: center; }
.hero .pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #e2e8f0; }
.hero .pill:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #cbd5e1; font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem; }
.feature.card { padding: 2rem 1.5rem; }
.domain-card:hover { transform: translateY(-2px); }
.page-banner { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: 2.25rem; margin-bottom: 2rem; }
.page-banner .breadcrumbs { margin-bottom: .75rem; }
