/* =========================================================
   WebsDocs ASG Public Navigation + Light Footer
   File: /aig/css/asg-nav.css
   Purpose: ASG public header/footer, clean light shell, full-width 4K aligned
   ========================================================= */

:root {
  --aig-ink: #08142b;
  --aig-text: #111b31;
  --aig-muted: #526078;
  --aig-soft-muted: #6b768b;
  --aig-line: #dbe3ef;
  --aig-line-soft: rgba(28, 54, 94, 0.12);
  --aig-panel: #ffffff;
  --aig-panel-soft: #f7faff;
  --aig-blue: #075cff;
  --aig-blue-2: #145cff;
  --aig-navy: #071632;
  --aig-soft: #f5f8fc;
  --aig-green: #39f7a2;
  --aig-cyan: #61f2ff;
  --aig-shadow: 0 24px 72px rgba(10, 26, 52, 0.16);
  --aig-shadow-soft: 0 12px 34px rgba(10, 26, 52, 0.08);
  --aig-radius: 22px;

  /* Same page edge system as ASG content */
  --aig-edge: clamp(18px, 3vw, 92px);
}

.aig-nav *,
.aig-nav *::before,
.aig-nav *::after,
.aig-footer *,
.aig-footer *::before,
.aig-footer *::after {
  box-sizing: border-box;
}
/* =========================================================
   HEADER
   ========================================================= */

.aig-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(244, 248, 255, 0.96));
  border-bottom: 1px solid var(--aig-line-soft);
  box-shadow: var(--aig-shadow-soft);
  backdrop-filter: blur(18px);
}

.aig-nav-strip {
  width: 100%;
  max-width: none;
  min-height: 86px;
  margin: 0;
  padding-left: var(--aig-edge);
  padding-right: var(--aig-edge);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* =========================================================
   BRAND
   ========================================================= */

.aig-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  color: var(--aig-ink);
  text-decoration: none;
}

.aig-logo-wrap {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aig-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.aig-brand-copy {
  display: grid;
  line-height: 1.02;
}

.aig-brand-copy strong {
  color: var(--aig-ink);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.aig-brand-copy small {
  margin-top: 3px;
  color: var(--aig-blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* =========================================================
   NAV MENU
   ========================================================= */

.aig-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.aig-nav-item {
  position: relative;
}

.aig-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #253047;
  background: transparent;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.aig-nav-link i {
  font-size: 12px;
}

.aig-nav-link:hover,
.aig-nav-link[aria-expanded="true"],
.aig-nav-item.open .aig-nav-link {
  color: var(--aig-blue);
  background: rgba(7, 92, 255, 0.075);
}

/* =========================================================
   MEGA MENU
   ========================================================= */

.aig-mega {
  position: absolute;
  left: 110%;
  
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  z-index: 1002;

  display: none;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;

  width: min(1120px, calc(100vw - (var(--aig-edge) * 2)));
  padding: 16px;
  box-sizing: border-box;

  border: 1px solid rgba(28, 54, 94, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.99));
  box-shadow:
    0 28px 76px rgba(10, 26, 52, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.aig-nav-item.open .aig-mega {
  display: grid;
}

.aig-mega.small {
  width: min(820px, calc(100vw - (var(--aig-edge) * 2)));
  grid-template-columns: 1fr 1fr;
}

.aig-mega-platform {
  width: min(1120px, calc(100vw - (var(--aig-edge) * 2)));
  grid-template-columns: 1.15fr 1fr 1fr;
}

.aig-mega-client {
  width: min(1080px, calc(100vw - (var(--aig-edge) * 2)));
  grid-template-columns: 1.05fr 1fr 1fr;
}

.aig-mega-support {
  width: min(760px, calc(100vw - (var(--aig-edge) * 2)));
  grid-template-columns: 1fr 1fr;
}

.aig-mega-websdocs {
  width: min(820px, calc(100vw - (var(--aig-edge) * 2)));
  grid-template-columns: 1fr 1fr;
}

.aig-mega-col {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.aig-menu-label {
  color: var(--aig-soft-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ================= Feature Card ================= */

.aig-mega-col.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 16px;
  border: 1px solid rgba(7, 92, 255, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(7, 92, 255, 0.11), transparent 36%),
    linear-gradient(135deg, #f7fbff, #eef5ff);
  overflow: hidden;
}

.aig-mega-col.feature.slim {
  align-self: stretch;
  min-height: 0;
  height: auto;
}

.aig-mega-col.feature strong {
  display: block;
  color: var(--aig-ink);
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.aig-mega-col.feature p {
  margin: 0;
  color: var(--aig-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ================= Mega Links ================= */

.aig-mega-col > a:not(.aig-mega-cta) {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--aig-ink);
  text-decoration: none;
}

.aig-mega-col > a:not(.aig-mega-cta):hover {
  border-color: rgba(28, 54, 94, 0.12);
  background: rgba(7, 92, 255, 0.055);
}

.aig-mega-col > a i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: var(--aig-blue);
  background: rgba(7, 92, 255, 0.08);
}

.aig-mega-col b {
  display: block;
  color: var(--aig-ink);
  font-size: 14px;
  line-height: 1.18;
}

.aig-mega-col small {
  display: block;
  margin-top: 3px;
  color: var(--aig-muted);
  font-size: 12px;
  line-height: 1.35;
}

.aig-mega-col.feature .aig-mega-cta {
  align-self: start;
}
/* =========================================================
   BUTTONS
   ========================================================= */

.aig-mega-cta,
.aig-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  text-decoration: none;
  font-weight: 950;
  border-radius: 999px;
}

.aig-mega-cta {
  min-height: 40px;
  margin-top: 5px;
  padding: 0 15px;
  color: #ffffff;
  background: var(--aig-navy);
  box-shadow: 0 12px 26px rgba(7, 22, 50, 0.18);
}

.aig-mega-cta:hover {
  background: var(--aig-blue);
}

.aig-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aig-link-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(28, 54, 94, 0.14);
  color: var(--aig-ink);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 26, 52, 0.06);
  font-size: 13px;
  gap: 8px;
}

.aig-link-btn:hover {
  color: var(--aig-blue);
  border-color: rgba(7, 92, 255, 0.22);
}

.aig-link-btn.primary {
  color: #ffffff;
  background: var(--aig-blue);
  border-color: var(--aig-blue);
  box-shadow: 0 12px 28px rgba(7, 92, 255, 0.24);
}

.aig-link-btn.primary:hover {
  color: #ffffff;
  filter: brightness(1.06);
}

.aig-link-btn > i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
}

.aig-link-btn.ghost > i {
  color: var(--aig-ink);
}

.aig-link-btn.soft > i {
  color: var(--aig-blue);
}

.aig-link-btn.soft:hover > i {
  color: #ffffff;
}

.aig-link-btn.trial > i {
  color: #ffffff;
  font-size: 14px;
}

/* =========================================================
   MOBILE BUTTON
   ========================================================= */

.aig-mobile-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(28, 54, 94, 0.14);
  border-radius: 14px;
  background: #ffffff;
  place-items: center;
  gap: 4px;
  box-shadow: 0 8px 22px rgba(10, 26, 52, 0.06);
}

.aig-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #182338;
}

/* =========================================================
   LIGHT FOOTER
   ========================================================= */

.aig-footer {
  margin-top: 0;
}

.aig-footer-light {
  color: var(--aig-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(7, 92, 255, 0.08), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(97, 242, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-top: 1px solid rgba(28, 54, 94, 0.12);
}

.aig-footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 54px var(--aig-edge) 36px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(150px, 1fr));
  gap: clamp(22px, 3vw, 48px);
}

.aig-footer-brand {
  min-width: 0;
}

.aig-footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--aig-ink);
  text-decoration: none;
}

.aig-footer-logo-row .aig-logo-wrap {
  width: 58px;
  height: 58px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.aig-footer-logo-row .aig-logo {
  width: 58px;
  height: 58px;
}

.aig-footer-logo-row strong {
  display: block;
  color: var(--aig-ink);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.aig-footer-logo-row small {
  display: block;
  margin-top: 4px;
  color: var(--aig-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aig-footer-brand p {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--aig-muted);
  font-size: 14px;
  line-height: 1.65;
}

.aig-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.aig-footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(7, 92, 255, 0.12);
  border-radius: 999px;
  color: #24324a;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.aig-footer-badges i {
  color: var(--aig-blue);
}

.aig-footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.aig-footer-col strong {
  margin-bottom: 6px;
  color: var(--aig-ink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aig-footer-col a {
  color: var(--aig-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
}

.aig-footer-col a:hover {
  color: var(--aig-blue);
}

.aig-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px var(--aig-edge);
  border-top: 1px solid rgba(28, 54, 94, 0.1);
  color: #647086;
  font-size: 13px;
}

.aig-footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.aig-footer-bottom a {
  color: var(--aig-blue);
  text-decoration: none;
  font-weight: 850;
}

.aig-footer-bottom a:hover {
  text-decoration: underline;
}

/* =========================================================
   LARGE SCREEN TUNING
   ========================================================= */

@media (min-width: 1800px) {
  :root {
    --aig-edge: clamp(72px, 4vw, 150px);
  }

  .aig-nav-strip {
    min-height: 92px;
  }

  .aig-mega-platform {
    width: min(1260px, calc(100vw - (var(--aig-edge) * 2)));
  }

  .aig-mega-client {
    width: min(1180px, calc(100vw - (var(--aig-edge) * 2)));
  }

  .aig-mega-support {
    width: min(860px, calc(100vw - (var(--aig-edge) * 2)));
  }

  .aig-mega-websdocs {
    width: min(900px, calc(100vw - (var(--aig-edge) * 2)));
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .aig-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1120px) {
  :root {
    --aig-edge: 14px;
  }

  .aig-nav-strip {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    padding: 10px var(--aig-edge);
  }

  .aig-brand {
    min-width: auto;
  }

  .aig-mobile-toggle {
    display: grid;
    margin-left: auto;
  }

  .aig-nav-menu {
    display: none;
    order: 4;
    width: 100%;
    align-items: stretch;
    justify-content: start;
    flex-direction: column;
    gap: 8px;
  }

  .aig-nav.open .aig-nav-menu {
    display: flex;
  }

  .aig-nav-item {
    position: static;
  }

  .aig-nav-link {
    width: 100%;
    justify-content: space-between;
    background: #f7f9fc;
    border-radius: 14px;
  }

  .aig-mega,
  .aig-mega.small,
  .aig-mega-platform,
  .aig-mega-client,
  .aig-mega-support,
  .aig-mega-websdocs {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    margin: 6px 0 10px;
  }

  .aig-nav-actions {
    display: none;
  }
}

@media (max-width: 820px) {
  .aig-footer-inner {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .aig-footer-bottom {
    display: grid;
  }
}

@media (max-width: 560px) {
  .aig-logo-wrap,
  .aig-footer-logo-row .aig-logo-wrap {
    width: 46px;
    height: 46px;
  }

  .aig-logo,
  .aig-footer-logo-row .aig-logo {
    width: 46px;
    height: 46px;
  }

  .aig-brand {
    gap: 10px;
  }

  .aig-brand-copy strong {
    font-size: 17px;
  }

  .aig-brand-copy small {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .aig-mega {
    padding: 12px;
    border-radius: 20px;
  }

  .aig-mega-col.feature strong {
    font-size: 20px;
  }

  .aig-footer-bottom div {
    display: grid;
    gap: 8px;
  }
}

.aig-link-btn.soft {
  color: var(--aig-blue);
  background: rgba(7, 92, 255, 0.075);
  border-color: rgba(7, 92, 255, 0.14);
}

.aig-link-btn.soft:hover {
  color: #ffffff;
  background: var(--aig-blue);
  border-color: var(--aig-blue);
}

.aig-link-btn.trial {
  min-height: 50px;
  padding: 0 18px;
  color: #ffffff;
  gap: 10px;
  background: #145cff;
  border: 1px solid #145cff;
  box-shadow: 0 12px 28px rgba(20, 92, 255, 0.18);
}

.aig-link-btn.trial span {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.aig-link-btn.trial strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.aig-link-btn.trial small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aig-link-btn.trial:hover {
  color: #ffffff;
  background: #0f4fe0;
  border-color: #0f4fe0;
  transform: translateY(-1px);
}