/* =========================================================
   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;

  width: 100%;
  max-width: none;

  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);
  -webkit-backdrop-filter: blur(18px);
}

.aig-nav-strip {
  position: relative;

  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.04;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.aig-brand-copy strong {
  color: var(--aig-ink);
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1;
}

.aig-brand-copy small {
  margin-top: 4px;

  color: var(--aig-blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.15;
}
/* =========================================================
   NAV MENU — CRISP / PREMIUM TYPOGRAPHY
   ========================================================= */

.aig-nav-menu {
  position: static;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  flex: 1;
  min-width: 0;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

/* Important:
   nav item must be static so mega menu uses .aig-nav-strip as parent */
.aig-nav-item {
  position: static;
}

.aig-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 46px;
  padding: 0 14px;

  border: 0;
  border-radius: 999px;

  color: #253047;
  background: transparent;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;

  cursor: pointer;
  white-space: nowrap;

  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.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 — CENTER FROM FULL HEADER
   ========================================================= */

.aig-mega {
  position: absolute;

  left: 50%;
  right: auto;
  top: 100%;

  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)));
  max-width: 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;
  transform: translateX(-50%) translateY(0);
}

/* ================= MENU WIDTH TYPES ================= */

.aig-mega.small {
  width: min(820px, calc(100vw - (var(--aig-edge) * 2)));
  max-width: calc(100vw - (var(--aig-edge) * 2));
  grid-template-columns: 1fr 1fr;
}

.aig-mega-platform {
  width: min(1120px, calc(100vw - (var(--aig-edge) * 2)));
  max-width: calc(100vw - (var(--aig-edge) * 2));
  grid-template-columns: 1.15fr 1fr 1fr;
}

.aig-mega-agents {
  width: min(1120px, calc(100vw - (var(--aig-edge) * 2)));
  max-width: calc(100vw - (var(--aig-edge) * 2));
  grid-template-columns: 1fr 1fr 0.95fr;
}

.aig-mega-client {
  width: min(1080px, calc(100vw - (var(--aig-edge) * 2)));
  max-width: 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)));
  max-width: calc(100vw - (var(--aig-edge) * 2));
  grid-template-columns: 1fr 1fr;
}

.aig-mega-websdocs {
  width: min(920px, calc(100vw - (var(--aig-edge) * 2)));
  max-width: calc(100vw - (var(--aig-edge) * 2));
  grid-template-columns: 1fr 1fr;
}

/* =========================================================
   MEGA COLUMNS
   ========================================================= */

.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 — Crisp Typography ================= */

.aig-mega-col > a:not(.aig-mega-cta) {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;

  padding: 10px;

  border: 1px solid transparent;
  border-radius: 16px;

  color: var(--aig-ink);
  text-decoration: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.aig-mega-col > a:not(.aig-mega-cta):hover {
  border-color: rgba(28, 54, 94, 0.12);
  background: rgba(7, 92, 255, 0.055);
  transform: translateY(-1px);
}

.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);

  font-size: 14px;
}

.aig-menu-label {
  color: var(--aig-soft-muted);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aig-mega-col b {
  display: block;
  color: var(--aig-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.aig-mega-col small {
  display: block;
  margin-top: 4px;
  color: var(--aig-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0;
}

.aig-mega-col.feature strong {
  display: block;
  color: var(--aig-ink);
  font-size: 23px;
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.aig-mega-col.feature p {
  margin: 0;
  color: var(--aig-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

/* ================= CTA Buttons Inside Mega ================= */

.aig-mega-col.feature .aig-mega-cta {
  align-self: start;
}

.aig-mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: 100%;

  min-height: 42px;
  margin-top: 6px;
  padding: 0 17px;

  border-radius: 999px;

  color: #ffffff;
  background: var(--aig-navy);
  border: 1px solid rgba(8, 20, 43, 0.18);

  text-decoration: none;
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.004em;

  box-shadow: 0 14px 30px rgba(8, 20, 43, 0.18);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.aig-mega-cta:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: var(--aig-blue);
  box-shadow: 0 18px 38px rgba(7, 92, 255, 0.22);
}

/* ================= Agent Promo Column ================= */

.aig-agent-promo-col {
  justify-content: center;
}

.aig-agent-promo-col .aig-mega-cta {
  width: 100%;
}

.aig-agent-promo-col .aig-mega-cta + .aig-mega-cta {
  margin-top: 10px;
}

.aig-mega-cta-soft {
  color: var(--aig-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: none;
}

.aig-mega-cta-soft:hover {
  color: var(--aig-blue);
  background: #ffffff;
}

/* =========================================================
   HEADER ACTION BUTTONS — Crisp / Premium
   ========================================================= */

.aig-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aig-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: max-content;
  min-height: 42px;
  padding: 0 15px;

  border: 1px solid rgba(28, 54, 94, 0.14);
  border-radius: 999px;

  color: var(--aig-ink);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 26, 52, 0.06);

  text-decoration: none;
  font-size: 13px;
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.004em;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.aig-link-btn:hover {
  color: var(--aig-blue);
  border-color: rgba(7, 92, 255, 0.22);
  transform: translateY(-1px);
}

.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 {
  min-height: 50px;
  padding: 0 18px;
  gap: 10px;

  color: #ffffff;
  background: #145cff;
  border: 1px solid #145cff;
  box-shadow: 0 12px 28px rgba(20, 92, 255, 0.18);
}

.aig-link-btn.trial > i {
  color: #ffffff;
  font-size: 14px;
}

.aig-link-btn.trial span {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.aig-link-btn.trial strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.005em;
}

.aig-link-btn.trial small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aig-link-btn.trial:hover {
  color: #ffffff;
  background: #0f4fe0;
  border-color: #0f4fe0;
  transform: translateY(-1px);
}


/* =========================================================
   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 — CRISP / SHARP TYPOGRAPHY
   ========================================================= */

.aig-footer {
  margin-top: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.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;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.035em;
}

.aig-footer-logo-row small {
  display: block;
  margin-top: 4px;
  color: var(--aig-blue);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aig-footer-brand p {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--aig-muted);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

.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: 610;
  letter-spacing: 0.005em;
}

.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: 12.5px;
  font-weight: 760;
  letter-spacing: 0.145em;
  text-transform: uppercase;
}

.aig-footer-col a {
  color: var(--aig-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: 0.004em;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.aig-footer-col a:hover {
  color: var(--aig-blue);
  transform: translateX(2px);
}

.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;
  font-weight: 420;
  line-height: 1.5;
}

.aig-footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.aig-footer-bottom a {
  color: var(--aig-blue);
  text-decoration: none;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.aig-footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   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-agents,
  .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: 780;
  letter-spacing: -0.005em;
}

.aig-link-btn.trial small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  font-weight: 520;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aig-link-btn.trial:hover {
  color: #ffffff;
  background: #0f4fe0;
  border-color: #0f4fe0;
  transform: translateY(-1px);
}

/* =========================================================
   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-agents {
    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)));
  }
}
