/* assets-global/css/landing-nav.css */
:root{
  --oa-bg0:#060913;
  --oa-bg1:#071226;
  --oa-bg2:#0a1b35;

  --oa-text:rgba(255,255,255,.92);
  --oa-muted:rgba(255,255,255,.68);

  --oa-stroke:rgba(255,255,255,.10);
  --oa-stroke2:rgba(255,255,255,.14);

  --oa-blue:#2bc4e3;
  --oa-red:#ff2d55;

  --oa-pill: 999px;
  --oa-radius: 18px;

  --oa-shadow: 0 20px 70px rgba(0,0,0,.55);
  --oa-shadow2: 0 14px 40px rgba(0,0,0,.45);
}

/* ---------- HEADER ---------- */
.oaHeader{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(to bottom, rgba(6,9,19,.80), rgba(6,9,19,.25));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.oaHeader.is-scrolled{
  background: rgba(6,9,19,.84);
  border-bottom-color: rgba(255,255,255,.10);
}

.oaHeader,
.oaHeader.is-scrolled{
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================================
   FIX: TRUE CENTER NAV
   left | center(nav) | right(ctas)
   ========================================= */
.oaHeader__inner{
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 18px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

/* Brand (LEFT) */
.oaBrand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color:#fff;
  justify-self: start;
  min-width: 190px;
}

.oaBrand__logo{
  width: 34px;
  height: 34px;
  display:block;
  filter: drop-shadow(0 0 18px rgba(43,196,227,.18));
}

.oaBrand__name{
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: .2px;
  color: var(--oa-text);
}

/* ---------- DESKTOP NAV (CENTER) ---------- */
.oaNavDesktop{
  display:none;
  align-items:center;
  gap: 14px;
  justify-self: center;   /* ✅ center in viewport */
  min-width: 0;
}

/* IMPORTANT: avoid cropping */
.oaPills{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center; /* ✅ internal centering */
  gap: 6px;
  padding: 8px;
  border-radius: var(--oa-pill);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 120px at 50% 0%, rgba(43,196,227,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--oa-shadow2);

  overflow: visible;
  min-width: 0;
  max-width: min(760px, 100%);
}

/* Animated highlight */
.oaPillGlow{
  position:absolute;
  left: 0;
  top: 0;
  width: 140px;
  margin: 8px;
  height: calc(100% - 16px);
  border-radius: var(--oa-pill);
  background: linear-gradient(90deg, rgba(43,196,227,.18), rgba(255,45,85,.14));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 18px 60px rgba(0,0,0,.35),
    0 0 24px rgba(43,196,227,.18);
  transform: translateX(0);
  transition: transform .52s cubic-bezier(.2,.9,.2,1), width .52s cubic-bezier(.2,.9,.2,1);
  pointer-events:none;
  z-index: 0;
}

.oaPill{
  position: relative;
  z-index: 1;
  display:inline-flex;
  align-items:center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--oa-pill);
  text-decoration:none;
  color: var(--oa-text);
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 520;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}

.oaPill i{
  font-size: 14px;
  color: rgba(255,255,255,.86);
  opacity: .9;
  transform: translateY(.2px);
}

.oaPill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.04);
}

.oaPill.is-active{
  color: rgba(255,255,255,.96);
}

/* CTA container (RIGHT) */
.oaNavCtas{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
  justify-self: end; /* ✅ sticks right without shifting center */
}

/* Buttons */
.oaBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--oa-pill);
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 650;
  font-size: 14px;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}

.oaBtn i{ font-size: 14px; opacity: .95; }

.oaBtn--ghost{
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.06);
}
.oaBtn--ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(43,196,227,.22);
  transform: translateY(-1px);
}

.oaBtn--primary{
  color: #081020;
  background: linear-gradient(90deg, rgba(43,196,227,.96), rgba(255,45,85,.90));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.oaBtn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

/* focus */
.oaBtn:focus-visible,
.oaPill:focus-visible,
.oaBurger:focus-visible,
.oaMobile__link:focus-visible{
  outline: 2px solid rgba(43,196,227,.9);
  outline-offset: 2px;
}

/* ---------- MOBILE BURGER ---------- */
.oaBurger{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 90px at 50% 0%, rgba(43,196,227,.12), transparent 60%),
    rgba(255,255,255,.06);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  cursor:pointer;
  position: relative;
  z-index: 120;
  justify-self: end; /* ✅ in grid, always right */
}

.oaBurger__lines{
  position:absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 14px;
  transform: translate(-50%,-50%);
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)) center/18px 2px no-repeat;
  transition: background-size .22s ease;
}

.oaBurger__lines::before,
.oaBurger__lines::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  border-radius: 2px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 22px rgba(43,196,227,.16);
  transition: transform .38s cubic-bezier(.2,.9,.2,1), top .38s cubic-bezier(.2,.9,.2,1), bottom .38s cubic-bezier(.2,.9,.2,1);
}

.oaBurger__lines::before{ top: 1px; }
.oaBurger__lines::after{ bottom: 1px; }

.oaBurger.is-open .oaBurger__lines{ background-size: 0 2px; }
.oaBurger.is-open .oaBurger__lines::before{ top: 6px; transform: rotate(45deg); }
.oaBurger.is-open .oaBurger__lines::after{ bottom: 6px; transform: rotate(-45deg); }

/* ---------- MOBILE OVERLAY ---------- */
.oaMobile{
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity .26s ease;
  background: linear-gradient(180deg, rgba(7,18,38,.98), rgba(6,9,19,.985));
}

.oaMobile.is-open{
  opacity: 1;
  pointer-events: auto;
}

.oaMobile__sheet{
  height: 100%;
  width: 100%;
  padding: 18px 16px 20px;
  padding-top: 18px;
  transform: translateY(-18px);
  transition: transform .55s cubic-bezier(.2,.9,.2,1);
}

.oaMobile.is-open .oaMobile__sheet{ transform: translateY(0); }

.oaMobile__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 8px 6px 14px;
}

.oaMobile__brand{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--oa-text);
  padding-right: 64px;
}

.oaMobile__links{
  margin-top: 8px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.oaMobile__link{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: .1px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.oaMobile__link i{ width: 18px; text-align:center; opacity: .95; }

.oaMobile__link:hover{
  transform: translateY(-1px);
  border-color: rgba(43,196,227,.22);
  background: rgba(255,255,255,.08);
}

.oaMobile__link.is-active{
  background: linear-gradient(90deg, rgba(43,196,227,.16), rgba(255,45,85,.12));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
}

.oaMobile__ctas{
  display:flex;
  gap: 10px;
  margin-top: 16px;
}

.oaBtn--full{
  flex: 1;
  padding: 12px 14px;
  border-radius: 16px;
}

.oaMobile__meta{
  margin-top: 18px;
  text-align:center;
  color: rgba(255,255,255,.62);
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ---------- BREAKPOINTS ---------- */
@media (min-width: 980px){
  .oaNavDesktop{ display:flex; }
  .oaBurger{ display:none; }
  .oaMobile{ display:none; }
}

/* Medium desktop */
@media (min-width: 980px) and (max-width: 1220px){
  .oaHeader__inner{ padding-left: 14px; padding-right: 14px; gap: 10px; }
  .oaBrand{ min-width: 170px; }
  .oaPills{ padding: 7px; gap: 5px; }
  .oaPill{ padding: 9px 11px; font-size: 13px; gap: 7px; }
  .oaBtn{ padding: 9px 12px; font-size: 13px; gap: 8px; }
}

/* Tight desktop */
@media (min-width: 980px) and (max-width: 1100px){
  .oaPill i{ display:none; }
  .oaBtn i{ display:none; }
}

/* Very small phones */
@media (max-width: 360px){
  .oaMobile__ctas{ flex-direction: column; }
  .oaBtn--full{ width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .oaPillGlow,
  .oaPill,
  .oaBtn,
  .oaMobile,
  .oaMobile__sheet,
  .oaBurger__lines,
  .oaBurger__lines::before,
  .oaBurger__lines::after{
    transition: none !important;
  }
}
