/* MilAPI.com site chrome — does not rely on Tailwind JIT for layout */

:root {
  --neon: #dfff00;
  --ink: #0b1220;
  --muted: #475569;
  --red: #e10600;
  --blue: #002868;
  --orange: #f05a28;
  --line: rgba(15, 23, 42, 0.1);
  --white: #ffffff;
}

.font-heading {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}
.font-body {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

body.site-body {
  background: #dfff00 !important;
  color: var(--ink);
  margin: 0;
}

/* ——— Header / Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--blue);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.06em;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark .dotcom {
  color: var(--red);
}

.desktop-nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.22);
}
.btn-cta:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.mobile-nav.is-open {
  display: block;
  pointer-events: auto;
}
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
}
.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 360px);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.mobile-nav__panel a {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  font-weight: 650;
  font-size: 1rem;
  color: var(--blue);
  text-decoration: none;
}
.mobile-nav__panel a:hover,
.mobile-nav__panel a.is-active {
  background: rgba(0, 40, 104, 0.08);
  color: var(--red);
}
.mobile-nav__close {
  align-self: flex-end;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

body.nav-open {
  overflow: hidden;
}

/* ——— Elite homepage ——— */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 820px);
  overflow: hidden;
  background: linear-gradient(145deg, #dfff00 0%, #f7ff8a 38%, #fff8e8 100%);
  padding: 3.5rem 1.25rem 4rem;
}
.home-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.home-hero__grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.home-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 36rem;
  background: linear-gradient(90deg, rgba(223, 255, 0, 0.92) 0%, rgba(223, 255, 0, 0.75) 70%, transparent 100%);
  padding: 0.5rem 1rem 0.5rem 0;
}
.home-brand,
.home-headline,
.home-support {
  color: #0b1220 !important;
  opacity: 1 !important;
}
@media (min-width: 960px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.home-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin: 0 0 0.65rem;
  color: var(--red) !important;
}
.home-brand .dotcom { color: var(--red) !important; }
.home-subhead {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue) !important;
  max-width: 36rem;
  line-height: 1.35;
}
.home-headline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
  max-width: 28ch;
}
.home-support {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--ink);
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
}

.home-stats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .home-stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.stat-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.65rem;
}
.stat-card__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0;
}
.stat-card__hint {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-panel {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}
.home-panel__grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .home-panel__grid { grid-template-columns: 1fr 1fr; }
}
.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.panel-card__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.panel-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.35rem;
}
.panel-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  margin: 0;
}
.panel-card a.more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.footer-explore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
}
.footer-explore a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-explore a:hover { color: #ffca28; }

/* ——— Infographic / blog helpers ——— */
.infographic-detail img {
  max-width: 100%;
  height: auto;
}

.blog-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.blog-list article {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.blog-list h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.blog-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-list h2 a:hover {
  color: var(--red);
}

.blog-list .meta,
.blog-post .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.blog-post h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.blog-post .prose,
.blog-list .prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.blog-post .prose p,
.blog-list .prose p {
  margin: 0 0 1.1rem;
}

.blog-post .prose a,
.blog-list .prose a {
  color: var(--blue);
  font-weight: 600;
}

.blog-post .prose a:hover,
.blog-list .prose a:hover {
  color: var(--red);
}

.blog-post .prose img,
.blog-list .prose img {
  max-width: 100%;
  height: auto;
}

/* ——— Enrichment: logos, PDF viewer, bases globe, blog covers ——— */
.company-logo,
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.company-logo { width: 36px; height: 36px; }
.company-logo--empty,
.brand-logo--empty {
  display: inline-block;
  background: #e8eef7;
}
.brand-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: transform 0.15s ease;
}
.brand-card:hover { transform: translateY(-2px); }

.pdf-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.pdf-viewer__toolbar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--blue);
}
.pdf-viewer__page { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-right: auto; }
.pdf-viewer__status { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; }
.pdf-viewer__stage {
  overflow: auto;
  max-height: 75vh;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #f4f7fb;
  text-align: center;
}
.pdf-viewer__stage canvas { max-width: 100%; height: auto; margin: 0 auto; }

.bases-globe {
  width: 100%;
  height: min(560px, 70vh);
  display: block;
}

.blog-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.25rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.blog-cover--hero { margin-bottom: 1.5rem; }
.blog-list__item { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.blog-post__body p { margin: 0 0 1.15rem; line-height: 1.75; color: #334155; }
