/* ===== Bastion Intelligence, Shared Styles ===== */
/* Fonts are loaded via async <link> tags in each page's <head> for performance.
   Families used: Manrope (400/500/600/700/800), Inter (400/500/600/700),
   Source Code Pro (400/500). */

:root {
  --dark-blue: #0a2364;
  --site-blue: #25449c;
  --button-blue: #637cbd;
  --light-blue-bg: #e4f3fe;
  --orange: #e97d21;
  --light-orange: #f4a96c;
  --light-peach: #FDEBD0;
  --text-gray: #3c424f;
  --text-muted: #6b7280;
  --white: #ffffff;
  --off-white: #f8fafd;
  --cream: #faf7f2;
  --card-border: #e2e8f0;
  --navy-shadow: 0 8px 32px rgba(10,35,100,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica', sans-serif;
  color: var(--text-gray);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Manrope', sans-serif;
  color: var(--dark-blue);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--site-blue); text-decoration: none; }
a:hover { color: var(--dark-blue); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: inline-block;
}

/* ===== NAVIGATION ===== */
.ft-nav {
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.96);
}

.ft-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.ft-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--dark-blue);
  letter-spacing: -0.01em;
}

.ft-brand img { width: 40px; height: 40px; }

/* Footer keeps the same brand row but doesn't need to bump as large */
.ft-footer-brand .ft-brand { font-size: 20px; }

.ft-nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  align-items: center;
}

.ft-nav-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  transition: color 0.15s;
  position: relative;
  padding: 4px 0;
}

.ft-nav-links a:hover,
.ft-nav-links a.active {
  color: var(--dark-blue);
}

.ft-nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
}

.ft-nav-cta {
  background: var(--site-blue);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  transition: background 0.15s;
}

.ft-nav-cta:hover { background: var(--dark-blue); }
.ft-nav-cta::after { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: #d46b14;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(233,125,33,0.3);
}

.btn-secondary {
  background: var(--site-blue);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--dark-blue);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--site-blue);
  border: 2px solid var(--site-blue);
}
.btn-outline:hover { background: var(--site-blue); color: var(--white); }

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(ellipse 90% 60% at 85% -10%, rgba(233,125,33,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 80% at 10% 110%, rgba(99,124,189,0.42) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37,68,156,0.55) 0%, transparent 70%),
    linear-gradient(160deg, #061744 0%, #0a2364 38%, #143079 72%, #1c3d92 100%);
  color: var(--white);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

/* soft glow accent */
.hero::after {
  content: '';
  position: absolute;
  right: -240px;
  top: -240px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(244,169,108,0.22) 0%, rgba(233,125,33,0.10) 35%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  max-width: 880px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .kicker { color: var(--light-orange); }

/* ===== SECTIONS ===== */
section.block {
  padding: 88px 0;
}

section.block.tight { padding: 64px 0; }
section.block.cream { background: var(--cream); }
section.block.off-white { background: var(--off-white); }
section.block.navy {
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(233,125,33,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 10% 100%, rgba(99,124,189,0.35) 0%, transparent 60%),
    linear-gradient(160deg, #061744 0%, #0a2364 40%, #143079 75%, #1c3d92 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
section.block.navy h1, section.block.navy h2, section.block.navy h3 { color: var(--white); }
section.block.navy .kicker { color: var(--light-orange); }

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-gray);
  line-height: 1.6;
}

section.block.navy .section-head p { color: rgba(255,255,255,0.8); }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.15s;
}

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

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gray);
}

.card-accent {
  border-left: 4px solid var(--orange);
}

/* ===== GRIDS ===== */
.grid { display: grid; gap: 24px; }
.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; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--white);
}

.trust-label {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--dark-blue);
  margin-bottom: 40px;
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 40px;
  align-items: center;
  justify-items: center;
}

.trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
  max-width: 160px;
  opacity: 0.72;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.trust-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.trust-logo:hover { opacity: 1; filter: grayscale(0%); }

@media (max-width: 900px) {
  .trust-logos { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .trust-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Manrope', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--light-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); }
}

/* ===== CTA ===== */
.cta-band {
  background: var(--light-blue-bg);
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { font-size: 17px; max-width: 560px; margin: 0 auto 28px; }

/* ===== FOOTER ===== */
.ft-footer {
  background: #061744;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  font-size: 14px;
}

.ft-footer a { color: rgba(255,255,255,0.7); }
.ft-footer a:hover { color: var(--light-orange); }

.ft-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ft-footer-brand { max-width: 300px; }
.ft-footer-brand .ft-brand { color: var(--white); margin-bottom: 16px; }
.ft-footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }

.ft-footer .ft-col-title {
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.ft-footer ul { list-style: none; }
.ft-footer ul li { margin-bottom: 10px; }

.ft-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

.ft-footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }

.ms-partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.ms-squares {
  display: grid;
  grid-template-columns: 8px 8px;
  grid-template-rows: 8px 8px;
  gap: 2px;
}
.ms-squares span:nth-child(1) { background: #F25022; }
.ms-squares span:nth-child(2) { background: #7FBA00; }
.ms-squares span:nth-child(3) { background: #00A4EF; }
.ms-squares span:nth-child(4) { background: #FFB900; }

@media (max-width: 900px) {
  .ft-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE NAV ===== */
.ft-mobile-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.ft-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark-blue);
}

@media (max-width: 880px) {
  .ft-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--card-border);
    margin: 0;
  }
  .ft-nav-links.open { display: flex; }
  .ft-mobile-toggle { display: flex; }
  .ft-nav-cta { align-self: flex-start; }
}
