:root {
  --ofn-bg: #f6f8fb;
  --ofn-ink: #1b2430;
  --ofn-muted: #5f6d7a;
  --ofn-primary: #0c6cfd;
  --ofn-primary-dark: #0758cf;
  --ofn-border: #d9e0e8;
  --ofn-card: #ffffff;
}

.ofn-page {
  background: var(--ofn-bg);
  color: var(--ofn-ink);
}

.ofn-shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.ofn-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ofn-top-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(21, 53, 96, 0.12);
  box-shadow: 0 6px 24px rgba(14, 35, 62, 0.12);
}

.ofn-brand {
  padding: 0 !important;
  margin-right: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.ofn-brand-stack {
  position: relative;
  width: 186px;
  height: 44px;
  display: inline-block;
}

.ofn-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.28s ease;
}

.ofn-logo-dark {
  opacity: 1;
}

.ofn-logo-light {
  opacity: 0;
}

.ofn-top-nav.scrolled .ofn-logo-dark {
  opacity: 0;
}

.ofn-top-nav.scrolled .ofn-logo-light {
  opacity: 1;
}

.ofn-nav-links {
  align-items: center;
  gap: 4px;
}

.ofn-nav-links .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 10px 12px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ofn-top-nav.scrolled .nav-link {
  color: #16365f !important;
  text-shadow: none;
}

.ofn-nav-cta {
  margin-left: 10px;
  padding: 9px 16px;
}

.ofn-top-nav.scrolled .ofn-nav-cta {
  color: #fff !important;
}

.ofn-toggler {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.13);
}

.ofn-toggler .fa-bars {
  color: #fff;
}

.ofn-top-nav.scrolled .ofn-toggler {
  border-color: #b8c9de;
  background: #f3f8ff;
}

.ofn-top-nav.scrolled .ofn-toggler .fa-bars {
  color: #1a4578;
}

.ofn-hero {
  padding: 118px 0 54px;
  background:
    linear-gradient(130deg, rgba(8, 35, 74, 0.78), rgba(15, 72, 148, 0.72)),
    url("/img/navigation/3d-satellite.jpg");
  background-size: cover;
  background-position: center;
}

.ofn-section {
  padding: 68px 0;
}

.ofn-section-alt {
  background: #eef3f8;
}

.ofn-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.ofn-grid-reverse {
  grid-template-columns: 1fr 1fr;
}

.ofn-copy h2,
.ofn-copy-wide h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: #111a25;
}

.ofn-copy h3,
.ofn-copy-wide h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  margin: 22px 0 12px;
}

.ofn-copy p,
.ofn-copy-wide p {
  color: var(--ofn-muted);
  line-height: 1.72;
  margin: 0 0 15px;
}

.ofn-hero .ofn-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.ofn-hero .ofn-copy p {
  color: #d9e7fa;
}

.ofn-hero .ofn-eyebrow {
  color: #a9caf8;
}

.ofn-hero .ofn-image-wrap img {
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.ofn-copy ul,
.ofn-copy-wide ul,
.ofn-resource-link-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ofn-muted);
}

.ofn-copy li,
.ofn-copy-wide li,
.ofn-resource-link-grid li {
  margin: 8px 0;
}

.ofn-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a4cb0;
  margin-bottom: 10px;
}

.ofn-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.ofn-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.ofn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ofn-btn:hover {
  transform: translateY(-1px);
}

.ofn-btn-primary {
  color: #fff;
  background: var(--ofn-primary);
  box-shadow: 0 8px 20px rgba(12, 108, 253, 0.28);
}

.ofn-btn-primary:hover {
  color: #fff;
  background: var(--ofn-primary-dark);
}

.ofn-btn-secondary {
  color: #12335f;
  background: #dceafe;
  border: 1px solid #c1dafd;
}

.ofn-btn-secondary:hover {
  color: #0d284c;
  background: #cee1ff;
}

.ofn-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.ofn-trust li {
  background: #f3f7ff;
  border: 1px solid #cadbf7;
  color: #244267;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
  margin: 0;
}

.ofn-anchor-nav-wrap {
  position: sticky;
  top: 66px;
  z-index: 16;
  background: #f2f6fb;
  border-top: 1px solid #dfebfc;
  border-bottom: 1px solid #dfebfc;
}

.ofn-anchor-nav {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: thin;
}

.ofn-anchor-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: #12478c;
  font-weight: 600;
  border: 1px solid #c5daf9;
  background: #edf5ff;
  border-radius: 999px;
  padding: 8px 12px;
}

.ofn-feature-map-section .ofn-copy-wide {
  margin-bottom: 20px;
}

.ofn-feature-map-section .ofn-shell {
  width: min(1380px, 98vw);
}

.ofn-fm {
  position: relative;
  min-height: 700px;
  background: #f6f9ff;
  border: 1px solid #cfdcf0;
  border-radius: 18px;
  padding: 28px;
  overflow: visible;
}

.ofn-fm-image-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64%, 760px);
  transform: translate(-50%, -50%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(16, 43, 84, 0.22);
  border: 1px solid #d6e0ef;
  z-index: 3;
}

.ofn-fm-image-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.ofn-fm-callout {
  position: absolute;
  left: calc(var(--cx) * 1%);
  top: calc(var(--cy) * 1%);
  transform: translate(-50%, -50%);
  width: clamp(220px, 20vw, 300px);
  border: 1px solid #ccd9ee;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 7px 22px rgba(24, 52, 93, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ofn-fm-callout:hover,
.ofn-fm-callout:focus-visible,
.ofn-fm-callout.is-active {
  border-color: #2e7bfd;
  box-shadow: 0 10px 24px rgba(8, 69, 165, 0.22);
}

.ofn-fm-callout:focus-visible {
  outline: 2px solid #2e7bfd;
  outline-offset: 2px;
}

.ofn-fm-title {
  display: block;
  font-weight: 700;
  color: #1a355c;
  font-size: 0.95rem;
}

.ofn-fm-detail {
  display: block;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: #4d627d;
  line-height: 1.45;
  font-size: 0.86rem;
  transition: max-height 0.22s ease, margin-top 0.22s ease, opacity 0.22s ease;
}

.ofn-fm-callout.is-active .ofn-fm-detail,
.ofn-fm-callout:hover .ofn-fm-detail,
.ofn-fm-callout:focus-visible .ofn-fm-detail {
  margin-top: 7px;
  max-height: 120px;
  opacity: 1;
}

.ofn-fm-line {
  position: absolute;
  height: 2px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(12, 108, 253, 0.7), rgba(12, 108, 253, 0.2));
  z-index: 4;
  opacity: 0.55;
  pointer-events: none;
}

.ofn-fm-line.is-active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(12, 108, 253, 1), rgba(12, 108, 253, 0.36));
}

.ofn-fm-target {
  position: absolute;
  left: calc(var(--tx) * 1%);
  top: calc(var(--ty) * 1%);
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  margin-top: -5.5px;
  border-radius: 50%;
  border: 2px solid #0a63ea;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0 rgba(12, 108, 253, 0.34);
  z-index: 5;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ofn-fm-target.is-active {
  transform: scale(1.15);
  background: #0c6cfd;
  box-shadow: 0 0 0 10px rgba(12, 108, 253, 0.17);
}

.ofn-search-mock {
  border: 1px solid #c7d8ea;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  color: #7b8794;
  margin: 16px 0 12px;
  font-size: 0.98rem;
}

.ofn-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
}

.ofn-example-list li {
  background: #ffffff;
  border: 1px solid var(--ofn-border);
  border-radius: 10px;
  color: #304257;
  padding: 8px 10px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.87rem;
  margin: 0;
}

.ofn-inline-cta {
  padding: 16px 0 6px;
}

.ofn-inline-cta-box,
.ofn-final-cta .ofn-shell {
  background: linear-gradient(145deg, #0f3f85 0%, #1553a9 100%);
  color: #f6fbff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 14px 34px rgba(15, 63, 133, 0.3);
}

.ofn-inline-cta-box h2,
.ofn-final-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.ofn-inline-cta-box p,
.ofn-final-cta p {
  margin: 0;
  color: #dbeaff;
}

.ofn-inline-cta-box .ofn-btn-secondary,
.ofn-final-cta .ofn-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.ofn-inline-cta-box .ofn-btn-secondary:hover,
.ofn-final-cta .ofn-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ofn-copy-wide {
  max-width: 920px;
}

.ofn-cards-3 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ofn-card {
  background: var(--ofn-card);
  border: 1px solid var(--ofn-border);
  border-radius: 14px;
  padding: 20px;
}

.ofn-card h3 {
  font-size: 1.2rem;
  margin: 0 0 9px;
}

.ofn-card p {
  color: var(--ofn-muted);
  margin: 0;
  line-height: 1.6;
}

.ofn-final-cta {
  padding: 52px 0 38px;
}

.ofn-resource-links {
  padding: 0 0 72px;
}

.ofn-resource-link-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  border: 1px solid var(--ofn-border);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}

.ofn-resource-link-grid h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.ofn-resource-link-grid a {
  color: #16539f;
  text-decoration: none;
}

.ofn-resource-link-grid a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .ofn-top-nav {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(21, 53, 96, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .ofn-nav-links .nav-link {
    color: #16365f !important;
    text-shadow: none;
  }

  .ofn-nav-cta {
    margin: 10px 0 2px;
  }

  .ofn-toggler,
  .ofn-top-nav.scrolled .ofn-toggler {
    border-color: #b8c9de;
    background: #f3f8ff;
  }

  .ofn-toggler .fa-bars,
  .ofn-top-nav.scrolled .ofn-toggler .fa-bars {
    color: #1a4578;
  }

  .ofn-grid-2,
  .ofn-grid-reverse {
    grid-template-columns: 1fr;
  }

  .ofn-grid-reverse .ofn-image-wrap {
    order: -1;
  }

  .ofn-cards-3 {
    grid-template-columns: 1fr;
  }

  .ofn-resource-link-grid {
    grid-template-columns: 1fr;
  }

  .ofn-fm {
    min-height: unset;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .ofn-feature-map-section .ofn-shell {
    width: min(1180px, 92vw);
  }

  .ofn-fm-image-panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    border-radius: 12px;
  }

  .ofn-fm-target,
  .ofn-fm-line {
    display: none;
  }

  .ofn-fm-callout {
    position: static;
    width: 100%;
    transform: none;
  }

  .ofn-fm-detail {
    max-height: 0;
    opacity: 0;
  }

  .ofn-fm-callout.is-active .ofn-fm-detail {
    margin-top: 7px;
    max-height: 120px;
    opacity: 1;
  }

  .ofn-hero {
    padding-top: 106px;
  }

  .ofn-section {
    padding: 52px 0;
  }

  .ofn-anchor-nav-wrap {
    top: 62px;
  }
}
