/* =========================================================
   Elite Blue — Base + Design System
   Deep Navy + Elite Blue + Signal Blue
   ========================================================= */

:root {
  /* Color tokens (per blueprint) */
  --navy: #071526;
  --navy-2: #0a1d33;
  --navy-3: #0f253f;
  --eb-primary: #0B5CAD;
  --eb-primary-hover: #0A4F95;
  --signal: #26A7FF;
  --signal-soft: rgba(38, 167, 255, 0.12);
  --ice: #EAF5FF;
  --slate: #182230;
  --slate-2: #3a4757;
  --slate-3: #6c7787;
  --cloud: #F7FBFF;
  --steel: #D6E3F0;
  --steel-2: #E8EFF7;
  --white: #ffffff;

  /* Typography scale */
  --font-display: "Cabinet Grotesk", "General Sans", "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Satoshi", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

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

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Header */
  --header-h: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(7, 21, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(7, 21, 38, 0.08);
  --shadow-navy: 0 12px 40px rgba(7, 21, 38, 0.35);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--cloud);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-4) 0;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-4) 0; }
p.lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--slate-2);
  max-width: 62ch;
}

a {
  color: var(--eb-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--eb-primary-hover); }

ul { padding-left: 1.1rem; margin: 0 0 var(--space-4) 0; }
li { margin-bottom: var(--space-2); }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eb-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--eb-primary);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--signal); }
.eyebrow.on-dark::before { background: var(--signal); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
section { padding: var(--space-9) 0; }
section.tight { padding: var(--space-7) 0; }
section.dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 {
  color: var(--white);
}
section.ice {
  background: var(--ice);
}

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: var(--space-7) 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--steel);
}
.btn-secondary:hover { border-color: var(--eb-primary); color: var(--eb-primary); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--signal); color: var(--white); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--eb-primary);
}
.btn-link::after {
  content: "→";
  transition: transform 0.15s ease;
}
.btn-link:hover::after { transform: translateX(3px); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--eb-primary);
  box-shadow: var(--shadow-md);
}
.card .card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--eb-primary);
  margin-bottom: var(--space-3);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--slate-2); font-size: 0.98rem; }
.card ul.outputs {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-4) 0;
  border-top: 1px solid var(--steel-2);
  padding-top: var(--space-4);
}
.card ul.outputs li {
  font-size: 0.92rem;
  color: var(--slate-2);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.card ul.outputs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--eb-primary);
}

.card.dark {
  background: var(--navy-2);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}
.card.dark h1, .card.dark h2, .card.dark h3, .card.dark h4 { color: var(--white); }
.card.dark p { color: rgba(255, 255, 255, 0.72); }
.card.dark .card-label { color: var(--signal); }
.card.dark ul.outputs { border-top-color: rgba(255, 255, 255, 0.08); }
.card.dark ul.outputs li { color: rgba(255, 255, 255, 0.7); }
.card.dark ul.outputs li::before { background: var(--signal); }
.card.dark:hover { border-color: var(--signal); }

/* Pills / badges */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--eb-primary);
  border: 1px solid var(--steel);
}
.pill.dark {
  background: rgba(38, 167, 255, 0.12);
  color: var(--signal);
  border-color: rgba(38, 167, 255, 0.25);
}

/* Page hero */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-8);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 167, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 167, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: rgba(255, 255, 255, 0.78); }
.page-hero .eyebrow { color: var(--signal); }
.page-hero .eyebrow::before { background: var(--signal); }
.page-hero .hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

/* Trust strip */
.proof-strip {
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.proof-strip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.proof-strip li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.proof-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .proof-strip ul { grid-template-columns: repeat(2, 1fr); }
}

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
  align-items: end;
}
.section-head .head-right p { color: var(--slate-2); margin: 0; }
section.dark .section-head .head-right p { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
}

/* Two col split (asymmetric) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.split.right-narrow { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .split, .split.right-narrow { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-9) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(38, 167, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 167, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 50%, transparent 100%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 60ch; }
.cta-band .actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }

/* Signature phrase */
.signature {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-3);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--eb-primary);
  box-shadow: 0 0 0 3px rgba(11, 92, 173, 0.15);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--slate-2);
}
.checkbox input { margin-top: 4px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Misc utilities */
.text-muted { color: var(--slate-2); }
.text-mono { font-family: var(--font-mono); }
.tracking-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.divider {
  border: 0;
  height: 1px;
  background: var(--steel);
  margin: var(--space-7) 0;
}
.divider.dark { background: rgba(255, 255, 255, 0.1); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
