:root {
  --navy: #00134e;
  --navy-soft: #1c3266;
  --blue: #0060e6;
  --blue-dark: #0057cc;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e3e7f0;
  --text: #00134e;
  --text-muted: #4b5675;
  --radius: 12px;
  --max-width: 1180px;
  --focus-ring: 3px solid #0057cc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

a { color: var(--blue); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 32px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.signin-inactive {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: not-allowed;
  user-select: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-on-dark {
  background: #fff;
  color: var(--navy);
}
.btn-on-dark:hover { background: #e9edf7; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}
.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { display: block; }
.mock-window {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.mock-brand { display: inline-flex; }
.mock-label { font-size: 0.75rem; font-weight: 700; color: var(--navy); }
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.mock-grid-2 { grid-template-columns: 1fr 1fr; }
.mock-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 64px;
  padding: 10px;
}
.mock-chart { background: linear-gradient(135deg, #eaf1ff, #fff); }
.mock-bars { background: linear-gradient(0deg, #cfe0ff 20%, #fff 20%); }
.mock-donut { border-radius: 50%; aspect-ratio: 1/1; min-height: 0; background: conic-gradient(var(--blue) 0 40%, var(--border) 0); }
.mock-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 8px;
}
.mock-line.short { width: 60%; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.alt-bg { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 32px;
}
.section-title.center { text-align: center; }

.feature-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.feature-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.feature-card h3 { margin: 0; font-size: 1rem; font-weight: 700; }

.solutions-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.solutions-copy p { color: var(--text-muted); }

.org-chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.org-node {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 16px;
  max-width: 220px;
}
.org-node span {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.org-children {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.org-children .org-node { margin: 0; max-width: none; }

.controls-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.control-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.control-card h3 { margin: 0; font-size: 1rem; font-weight: 800; }

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta-band h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); }

.about p, .contact p { color: var(--text-muted); max-width: 68ch; }

.contact-pending {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 20px 22px;
}
.contact-pending p { margin: 0 0 10px; }
.contact-pending p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd6ee;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
}
.footer-brand img { height: 28px; width: auto; }
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0; padding: 0;
}
.site-footer nav a {
  color: #cdd6ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-footer nav a:hover { color: #fff; }
.footer-copyright { margin: 0; font-size: 0.85rem; color: #9fb0d9; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .controls-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; }
  .solutions-inner { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    display: none;
    gap: 18px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
