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

:root {
  --navy: #0A1A4F;
  --royal: #0B2E59;
  --cyan: #00A6D6;
  --teal: #007C82;
  --orange: #F28C28;
  --white: #FFFFFF;
  --light-bg: #F0F4FA;
  --mid-bg: #E4ECF7;
  --text-dark: #0A1A3F;
  --text-mid: #3B4A6B;
  --text-light: #6B7A9A;
  --border: rgba(0,166,214,0.2);
  --nav-height: 76px;
  --ticker-height: 40px;
  --nav-logo-tagline-size: 0.58rem;
  --nav-menu-font-size: 0.88rem;
  --nav-ticker-font-size: calc(0.76rem + 1px);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 26, 79, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  min-height: var(--nav-height);
  border-bottom: 1px solid rgba(0, 166, 214, 0.3);
  box-shadow: 0 8px 32px rgba(5, 12, 40, 0.22);
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none;
  height: 44px; border-radius: 999px; overflow: visible; flex-shrink: 0;
  background: linear-gradient(90deg, #0D3B6E 0%, var(--royal) 52px, var(--royal) 100%);
  border: 1px solid rgba(0,166,214,0.28);
  padding-right: 18px;
}
.nav-logo-icon {
  width: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-circle {
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.logo-shield-icon { height: 38px; width: auto; display: block; object-fit: contain; }
.nav-logo-divider {
  width: 1px; height: 28px; background: var(--cyan); opacity: 0.65; flex-shrink: 0;
}
.nav-logo-text { padding: 3px 0 0 12px; line-height: 1; overflow: visible; }
.nav-logo-title {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.12rem;
  color: var(--white); letter-spacing: 0.04em; white-space: nowrap;
  overflow: visible;
}
.nav-logo-i {
  position: relative; display: inline-block;
  font-size: 0.92em; font-weight: 800;
  overflow: visible;
}
.nav-logo-i::before {
  content: ''; position: absolute; top: -0.30em; left: 50%;
  transform: translateX(-50%);
  width: 0.38em; height: 0.38em; min-width: 4px; min-height: 4px;
  background: var(--cyan); border-radius: 50%;
}
.nav-logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: var(--nav-logo-tagline-size); font-weight: 600;
  letter-spacing: 0.06em; text-transform: none;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 4px; white-space: nowrap; line-height: 1.2;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; flex-wrap: nowrap; justify-content: flex-end;
  margin-left: 20px;
}
.nav-links li { flex-shrink: 0; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: var(--nav-menu-font-size); font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none; letter-spacing: 0.01em;
  padding: 9px 13px;
  border-radius: 8px;
  border-bottom: none;
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, transform 0.2s ease;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(0, 166, 214, 0.16);
  transform: translateY(-1px);
}
.nav-cta {
  background: linear-gradient(135deg, var(--orange) 0%, #e07a18 100%) !important;
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em !important;
  margin-left: 6px;
  box-shadow: 0 4px 16px rgba(242, 140, 40, 0.38) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(242, 140, 40, 0.48) !important;
  background: linear-gradient(135deg, #f59a3d 0%, var(--orange) 100%) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid rgba(0, 166, 214, 0.35);
  border-radius: 8px;
  background: rgba(0, 166, 214, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover {
  background: rgba(0, 166, 214, 0.2);
  border-color: rgba(0, 166, 214, 0.5);
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-nav.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-nav.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-menu-open { overflow: hidden; }

/* TICKER — scrolling strip at bottom of homepage hero only */
#hero .nav-ticker {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  height: var(--ticker-height);
  background: linear-gradient(90deg, #0D3B6E 0%, var(--royal) 50%, #0D3B6E 100%);
  border-bottom: 1px solid rgba(0, 166, 214, 0.28);
  overflow: hidden;
  display: flex; align-items: center;
}
#hero .nav-ticker-track {
  display: flex;
  width: max-content;
  animation: nav-ticker-scroll 45s linear infinite;
}
#hero .nav-ticker-group {
  display: flex; align-items: center;
  flex-shrink: 0;
}
#hero .nav-ticker-item {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: var(--nav-ticker-font-size); font-weight: 600;
  letter-spacing: 0.01em; text-transform: none;
  color: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
  padding: 0 28px;
}
#hero .nav-ticker-item::after {
  content: '◆';
  margin-left: 28px;
  font-size: 0.45rem;
  color: var(--cyan);
  opacity: 0.85;
}
@keyframes nav-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  #hero .nav-ticker-track { animation: none; }
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  padding: 14px 30px; border-radius: 6px;
  text-decoration: none; letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  padding: 13px 30px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.35);
  text-decoration: none; letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--cyan); background: rgba(0,166,214,0.08); }

section { padding: 96px 40px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--text-dark);
  line-height: 1.2; margin-bottom: 16px;
}
.section-lead {
  font-size: 1rem; color: var(--text-mid);
  margin-bottom: 56px;
}

.downloads-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.download-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--light-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.download-card:hover {
  border-color: var(--cyan); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,166,214,0.1);
}
.download-card.is-downloading { opacity: 0.7; pointer-events: none; }
.download-icon {
  flex-shrink: 0; width: 48px; height: 56px;
  background: var(--navy); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 0.62rem; font-weight: 800;
  color: var(--cyan); letter-spacing: 0.04em;
}
.download-body { flex: 1; min-width: 0; }
.download-title {
  font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 6px;
}
.download-desc {
  font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 10px;
}
.download-meta {
  font-size: 0.72rem; font-weight: 600; color: var(--cyan); letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer {
  background: linear-gradient(180deg, #08122e 0%, #050c22 100%);
  padding: 48px 40px 32px;
  border-top: 1px solid rgba(0,166,214,0.22);
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 20%, var(--orange) 50%, var(--cyan) 80%, transparent 100%);
  opacity: 0.75;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 64px;
  align-items: start;
  padding-bottom: 32px;
}
.footer-brand {
  display: flex; flex-direction: column;
  gap: 14px; max-width: 420px;
}
.footer-logo { flex-shrink: 0; align-self: flex-start; }
.footer-desc {
  font-size: 0.88rem; line-height: 1.65;
  color: rgba(255,255,255,0.52);
  margin: 0; max-width: 380px;
}
.footer-contact { text-align: right; }
.footer-contact-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 14px;
}
.footer-divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.12) 80%, transparent);
}
.footer-legal {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-top: 22px;
}
.footer-copy {
  font-size: 0.8rem; color: rgba(255,255,255,0.38);
  margin: 0; line-height: 1.5;
}
.footer-links {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none; white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}
.footer-links a:hover { color: var(--cyan); transform: translateX(-2px); }
.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); text-align: right;
  margin: 0; line-height: 1.5;
  opacity: 0.92;
}

@media (max-width: 768px) {
  footer { padding: 40px 20px 28px; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px; padding-bottom: 28px;
  }
  .footer-brand { align-items: center; text-align: center; max-width: none; }
  .footer-logo { align-self: center; }
  .footer-desc { max-width: none; }
  .footer-contact { text-align: center; }
  .footer-links { align-items: center; }
  .footer-links a:hover { transform: none; }
  .footer-legal {
    flex-direction: column; align-items: center;
    text-align: center; gap: 14px; padding-top: 20px;
  }
  .footer-tagline { text-align: center; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px 0 32px;
    width: 100%;
    border-top: 1px solid rgba(0, 166, 214, 0.25);
    overflow-y: auto;
  }

  .site-nav.nav-open {
    position: fixed;
    inset: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    z-index: 1000;
    padding-bottom: 24px;
  }

  .site-nav.nav-open .nav-links {
    display: flex;
    flex: 1 1 100%;
    position: static;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
    white-space: normal;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center;
  }
}
@media (max-width: 600px) {
  nav.site-nav { padding: 0 20px; min-height: 68px; }
  :root {
    --nav-height: 68px;
    --ticker-height: 36px;
    --nav-menu-font-size: 0.82rem;
    --nav-logo-tagline-size: 0.52rem;
    --nav-ticker-font-size: calc(0.7rem + 1px);
  }
}
