/* ==========================================================================
   Rapid Acquisition Marketplace — Design System
   Palette: Deep Navy #07122F, Midnight #020713, RAM Blue #2D6BFF,
   Steel Blue #6E85A8, Off White #F5F7FA, Cool Gray #D9DEE8, Signal Green #4AD295
   ========================================================================== */

:root {
  --navy: #07122F;
  --midnight: #020713;
  --blue: #2D6BFF;
  --steel: #6E85A8;
  --offwhite: #F5F7FA;
  --gray: #D9DEE8;
  --green: #4AD295;
  --card-bg: rgba(245, 247, 250, 0.04);
  --card-border: rgba(110, 133, 168, 0.25);
  --font-heading: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --container: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 26ch; margin-bottom: 1rem; }

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

a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.section { padding: 96px 0; }

.section-label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 0.9rem;
}

.section-body { color: var(--gray); max-width: 64ch; font-size: 1.05rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--offwhite);
}
.btn-primary:hover {
  background: #4a7eff;
  box-shadow: 0 6px 24px rgba(45, 107, 255, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--offwhite);
  border-color: var(--steel);
}
.btn-secondary:hover {
  border-color: var(--offwhite);
  transform: translateY(-1px);
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(2, 7, 19, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(110, 133, 168, 0.25);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Official lockup is white-on-transparent; aligned with the content gutter. */
.brand-logo {
  height: 64px;
  width: auto;
}

.brand-logo-sm { height: 44px; margin-left: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: var(--offwhite); }

.main-nav a.active {
  color: var(--offwhite);
  position: relative;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-cta { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--offwhite);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--navy) 70%);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 133, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 133, 168, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero-paths { position: absolute; inset: 0; width: 100%; height: 100%; }

.flow-path {
  stroke-dasharray: 6 10;
  animation: flow 22s linear infinite;
}
.flow-node { animation: pulse 3.2s ease-in-out infinite; }
.delay-1 { animation-delay: 1.2s; }
.delay-2 { animation-delay: 2.4s; }

@keyframes flow { to { stroke-dashoffset: -320; } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .flow-path, .flow-node { animation: none; }
  html { scroll-behavior: auto; }
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 2.6rem;
}

.hero-video { min-width: 0; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(45, 107, 255, 0.35);
  background: var(--midnight);
  box-shadow: 0 24px 64px rgba(2, 7, 19, 0.65), 0 0 0 1px rgba(45, 107, 255, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--steel);
}

.hero-kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 21ch;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--gray);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2.6rem; }

.hero-support { color: var(--steel); font-size: 0.95rem; max-width: 60ch; }

.proof-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}
.proof-chips li {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--gray);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.proof-chips li:hover {
  border-color: var(--blue);
  color: var(--offwhite);
  transform: translateY(-2px);
}

/* ============ Metrics ============ */
.metrics {
  background: var(--midnight);
  border-top: 1px solid rgba(110, 133, 168, 0.18);
  border-bottom: 1px solid rgba(110, 133, 168, 0.18);
  padding: 72px 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.metric-card { padding: 8px 4px; }

.metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 700;
  color: var(--offwhite);
  margin-bottom: 0.3rem;
}

.metric-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.metric-card p { color: var(--steel); font-size: 0.9rem; }

/* ============ Generic cards ============ */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.outcomes-row { grid-template-columns: repeat(4, 1fr); }

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.info-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.info-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.info-card p { color: var(--gray); font-size: 0.95rem; }

/* ============ Model cards ============ */
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.model-card {
  text-align: left;
  font-family: var(--font-body);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 30px 28px;
  color: var(--offwhite);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.model-card:hover, .model-card:focus-visible {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(2, 7, 19, 0.5);
}

.model-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(45, 107, 255, 0.12);
  border: 1px solid rgba(45, 107, 255, 0.3);
  margin-bottom: 1.1rem;
}

.model-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.model-card > p { color: var(--gray); font-size: 0.97rem; }

.model-expand {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: var(--steel);
  font-size: 0.92rem;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}
.model-card:hover .model-expand,
.model-card[aria-expanded="true"] .model-expand {
  max-height: 8em;
  margin-top: 0.8rem;
}

/* ============ Starting point split ============ */
.starting-point { background: var(--midnight); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-text .btn { margin-top: 1.6rem; }

.ui-card {
  background: linear-gradient(160deg, rgba(245, 247, 250, 0.06), rgba(245, 247, 250, 0.02));
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(2, 7, 19, 0.6);
}

.ui-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}
.ui-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); opacity: 0.5; }
.ui-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
  color: var(--gray);
}
.ui-status {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(74, 210, 149, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.ui-video {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 40%, rgba(45, 107, 255, 0.25), transparent 60%),
    var(--navy);
  border: 1px solid rgba(45, 107, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ui-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(45, 107, 255, 0.85);
  padding-left: 4px;
}
.ui-video-label { font-size: 0.85rem; color: var(--gray); }

.ui-checklist { list-style: none; margin-bottom: 18px; }
.ui-checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.8rem;
  font-size: 0.92rem;
  color: var(--gray);
  border-bottom: 1px solid rgba(110, 133, 168, 0.15);
}
.ui-checklist li:last-child { border-bottom: none; }
.ui-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.ui-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--steel);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* ============ Process ============ */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.process-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.process-steps {
  list-style: none;
  position: relative;
  padding-left: 0;
}
.process-steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), rgba(110, 133, 168, 0.25));
}

.process-step {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  background: var(--navy);
  border: 1px solid rgba(45, 107, 255, 0.45);
  position: relative;
  z-index: 1;
}

.process-step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--gray); font-size: 0.97rem; max-width: 52ch; }

/* ============ Marketplaces ============ */
.marketplaces { background: var(--midnight); }

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.marketplace-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.marketplace-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(45, 107, 255, 0.3), 0 14px 40px rgba(2, 7, 19, 0.55);
  transform: translateY(-3px);
}

.marketplace-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.marketplace-card > p { color: var(--gray); font-size: 0.96rem; margin-bottom: 1.2rem; }

.card-cta {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  text-decoration: none;
}
.card-cta::after { content: " \2192"; transition: margin-left 0.15s ease; }
.card-cta:hover::after { margin-left: 4px; }

/* ============ Impact pillars ============ */
.impact { background: var(--midnight); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover { border-color: rgba(74, 210, 149, 0.5); transform: translateY(-3px); }

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(74, 210, 149, 0.1);
  border: 1px solid rgba(74, 210, 149, 0.3);
  margin-bottom: 1rem;
}

.pillar-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.pillar-card p { color: var(--gray); font-size: 0.92rem; }

/* ============ Audience split ============ */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 3rem;
}

.audience-card {
  background: linear-gradient(170deg, rgba(45, 107, 255, 0.08), rgba(245, 247, 250, 0.02));
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.audience-tag {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.audience-card h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.audience-card > p { color: var(--gray); margin-bottom: 1.4rem; }

.audience-card ul {
  list-style: none;
  margin-bottom: 2rem;
}
.audience-card li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.7rem;
  color: var(--gray);
  font-size: 0.96rem;
}
.audience-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.audience-card .btn { margin-top: auto; align-self: flex-start; }

/* ============ FAQ ============ */
.faq { background: var(--midnight); }

.faq-list { margin-top: 2.4rem; }

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary { color: var(--blue); }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--gray);
  font-size: 0.97rem;
  max-width: 70ch;
}

/* ============ Final CTA / Contact ============ */
.final-cta {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--midnight) 100%);
  overflow: hidden;
}

.cta-bg { position: absolute; inset: 0; }
.cta-bg .grid-overlay {
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 100%);
}

.final-cta .container { position: relative; z-index: 1; }

.cta-header { text-align: center; margin-bottom: 3.5rem; }
.cta-header h2 { margin-left: auto; margin-right: auto; }
.cta-header .section-body { margin: 0 auto; }

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(2, 7, 19, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-form h3 {
  font-size: 1.35rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 1.8rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
}

.form-grid .full { grid-column: 1 / -1; }

.form-grid input,
.form-grid select,
.form-grid textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--offwhite);
  background: rgba(245, 247, 250, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 7px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 107, 255, 0.2);
}

.form-grid select option { background: var(--navy); }

.consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.contact-form .btn { display: block; width: 100%; }

.form-confirmation {
  margin-top: 1.4rem;
  text-align: center;
  color: var(--green);
  font-weight: 500;
}

/* Shown when the submission could not be delivered. */
.form-confirmation.is-error { color: #FF9A8B; }

/* ============ Footer ============ */
.site-footer {
  background: var(--midnight);
  border-top: 1px solid rgba(110, 133, 168, 0.2);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--steel);
  font-size: 0.92rem;
  max-width: 44ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--offwhite); }

.footer-bottom {
  border-top: 1px solid rgba(110, 133, 168, 0.15);
  padding-top: 22px;
  color: var(--steel);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-parent { margin-top: 6px !important; }
.footer-parent a { color: var(--gray); text-decoration: underline; text-underline-offset: 3px; }
.footer-parent a:hover { color: var(--offwhite); }

/* ============ Cookie consent (mirrors the ARI banner, RAM palette) ============ */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 420px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-card {
  background: var(--navy);
  color: var(--offwhite);
  border: 1px solid rgba(110, 133, 168, 0.35);
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 24px 60px rgba(2, 7, 19, 0.6);
}
.cookie-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--offwhite);
}
.cookie-text { margin: 0 0 1rem; font-size: 0.85rem; line-height: 1.55; color: var(--gray); }
.cookie-text a { color: var(--offwhite); text-decoration: underline; text-underline-offset: 3px; }
.cookie-text a:hover { color: var(--green); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 0.6rem 1.35rem; font-size: 0.86rem; }
.cookie-prefs {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-prefs:hover { color: var(--offwhite); }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ============ Page hero (interior pages) ============ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 0 72px;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--navy) 100%);
  overflow: hidden;
}

.page-hero .grid-overlay {
  mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, black 20%, transparent 100%);
}

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

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 24ch;
  margin-bottom: 1.1rem;
}

.page-hero .hero-sub { margin-bottom: 0; }
.page-hero .hero-ctas { margin: 1.8rem 0 0; }

/* ============ CTA band (interior pages) ============ */
.cta-band { text-align: center; }
.cta-band h2 { margin-left: auto; margin-right: auto; }
.cta-band .section-body { margin: 0 auto; }

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2rem;
}

/* ============ Resource cards ============ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.resource-card:hover { border-color: var(--blue); transform: translateY(-3px); }

.resource-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.resource-card > p { color: var(--gray); font-size: 0.93rem; margin-bottom: 1.2rem; }

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.2rem;
}
.resource-meta span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.resource-meta .audience { color: var(--green); border-color: rgba(74, 210, 149, 0.35); }

.resource-card .card-cta { margin-top: auto; }

/* ============ Featured link band ============ */
.featured-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(170deg, rgba(45, 107, 255, 0.1), rgba(245, 247, 250, 0.02));
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 36px 40px;
  margin-top: 3rem;
}
.featured-link h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.featured-link p { color: var(--gray); font-size: 0.95rem; max-width: 56ch; }

/* ============ Contact path cards ============ */
.contact-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.contact-path-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 30px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-path-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.contact-path-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.contact-path-card p { color: var(--gray); font-size: 0.94rem; }

/* ============ Recognition ============ */
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.recognition-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 26px 26px;
  transition: border-color 0.2s ease;
}
.recognition-card:hover { border-color: rgba(74, 210, 149, 0.5); }

.recognition-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(74, 210, 149, 0.1);
  border: 1px solid rgba(74, 210, 149, 0.3);
}

.recognition-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.recognition-card p { color: var(--gray); font-size: 0.92rem; }

/* ============ Explanation band ============ */
.explain-band {
  background: linear-gradient(170deg, rgba(45, 107, 255, 0.08), rgba(245, 247, 250, 0.02));
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 40px 44px;
  margin-top: 3.5rem;
}
.explain-band h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.explain-band p { color: var(--gray); max-width: 70ch; }

/* ============ Process step bullets ============ */
.process-step ul {
  list-style: none;
  margin-top: 0.7rem;
}
.process-step ul li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.6rem;
  color: var(--gray);
  font-size: 0.94rem;
}
.process-step ul li a {
  color: var(--gray);
  text-decoration: underline;
  text-decoration-color: rgba(45, 107, 255, 0.5);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.process-step ul li a:hover { color: var(--offwhite); }
.process-step ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Brief components: BLUF, metric note, pathways, explainers
   ========================================================================== */

/* BLUF "What RAM Does" statement + callout */
.statement {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--offwhite);
  max-width: 60ch;
}
.statement strong { color: var(--blue); font-weight: 600; }

.callout-box {
  margin-top: 2rem;
  background: linear-gradient(170deg, rgba(45, 107, 255, 0.1), rgba(245, 247, 250, 0.02));
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 26px 30px;
  color: var(--gray);
  font-size: 1.02rem;
  max-width: 78ch;
}

/* Note line below the metric strip */
.metric-note {
  margin-top: 2.4rem;
  text-align: center;
  color: var(--steel);
  font-size: 0.92rem;
  max-width: 90ch;
  margin-left: auto;
  margin-right: auto;
}

/* Contact path cards act as email links */
a.contact-path-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
a.contact-path-card .card-cta { margin-top: 1rem; }

/* Agency logo grid — each cell shows the approved logo file, or falls back to
   the agency name until that file is added to assets/agencies/. */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.agency-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 22px 18px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.agency-logo:hover { border-color: var(--steel); transform: translateY(-2px); }

/* Every logo file is centred on an identical 2.5:1 transparent canvas, so a
   full-width image gives each mark the same footprint and optical weight. */
.agency-logo img {
  width: 100%;
  height: auto;
}

.agency-logo .agency-name {
  display: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  color: var(--gray);
}
.agency-logo.logo-missing .agency-name { display: block; }

/* Caption above the marketplace-sponsors grid */
.org-caption {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--steel);
  margin: 2.4rem 0 1rem;
}

/* Innovator pathway accent (green) to distinguish from government (blue) */
.process.pathway-innovator .process-steps::before {
  background: linear-gradient(180deg, var(--green), rgba(110, 133, 168, 0.25));
}
.process.pathway-innovator .step-number {
  color: var(--green);
  border-color: rgba(74, 210, 149, 0.5);
}
.process.pathway-innovator .process-step ul li::before {
  border-left-color: var(--green);
  border-bottom-color: var(--green);
}

/* Awardable / acquisition-authority explainer emphasis */
.explain-band.accent {
  border-left: 4px solid var(--green);
}
.explain-band p + p { margin-top: 0.9rem; }

/* ==========================================================================
   Aug 2026: audience-routed layout components
   ========================================================================== */

/* Standalone overview-video section (video no longer lives in the hero) */
.video-section { background: var(--midnight); text-align: center; }
.video-section h2 { margin: 0 auto 2.4rem; }
.video-section .video-frame { max-width: 860px; margin: 0 auto; }
.video-section .proof-chips { max-width: 860px; margin: 2.4rem auto 0; }

/* Compact marketplace preview (Home) — names only, no descriptions */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 2.6rem 0 0;
}

.mini-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 92px;
  padding: 18px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--gray);
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mini-card:hover {
  border-color: var(--blue);
  color: var(--offwhite);
  transform: translateY(-2px);
}

/* "What do you need to do?" task cards on the audience pages */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.task-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 30px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.task-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.task-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.task-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.4rem; }
.task-card .btn { margin-top: auto; align-self: flex-start; }

/* Marketplace cards on the industry page carry a single action button */
.marketplace-card .btn { margin-top: auto; align-self: flex-start; }

/* Contact routing cards now drive the form rather than opening mail */
.contact-path-card .btn { margin-top: 1.4rem; align-self: flex-start; }
.contact-path-card { display: flex; flex-direction: column; }

/* Inquiry subtype is revealed only when the chosen type has subtypes */
.form-field-hidden { display: none !important; }

@media (max-width: 1024px) {
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
  .task-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .outcomes-row { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .agency-grid { grid-template-columns: repeat(3, 1fr); }
  .card-row { grid-template-columns: 1fr; }
  .model-cards { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-paths { grid-template-columns: 1fr; }
  .recognition-grid { grid-template-columns: 1fr; }
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-intro { position: static; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(2, 7, 19, 0.97);
    border-bottom: 1px solid rgba(110, 133, 168, 0.25);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }
  .main-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .main-nav a:not(.btn) {
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(110, 133, 168, 0.12);
  }
  .nav-cta { margin-top: 16px; text-align: center; }

  .menu-toggle { display: flex; }

  .proof-chips { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .audience-grid { grid-template-columns: 1fr; }
  .marketplace-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .brand-logo { height: 44px; }
  .metric-grid { grid-template-columns: 1fr; gap: 28px; }
  .outcomes-row, .pillar-grid, .proof-chips { grid-template-columns: 1fr; }
  .agency-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .resource-grid { grid-template-columns: 1fr; }
  .featured-link { padding: 28px 24px; }
  .explain-band { padding: 28px 24px; }
  .audience-card { padding: 30px 24px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
