html.adex-landing-html,
html.adex-landing-html body,
body.adex-landing-active{
  margin:0!important;
  padding:0!important;
  width:100%!important;
  max-width:none!important;
  min-height:100%!important;
  background:#020713!important;
  overflow-x:hidden!important;
}

/* Dedicated landing-page takeover: once #agentsmith-page is found, hide all
   WordPress/theme/page-builder chrome that sits beside it as a body child. */
body.adex-landing-active > *:not(#agentsmith-page):not(#adexLeadPopup):not(script):not(style):not(link):not(noscript){
  display:none!important;
}

body.adex-landing-active > #agentsmith-page{
  display:block!important;
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  max-width:none!important;
  min-height:100vh!important;
  margin:0!important;
  padding:0!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}

body.adex-popup-lock{overflow:hidden!important}

#adexLeadPopup{
  position:fixed!important;
  inset:0!important;
  z-index:2147483647!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:20px!important;
  background:rgba(2,8,18,.78)!important;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
#adexLeadPopup.adex-active{
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#adexLeadPopup *{box-sizing:border-box}
#adexLeadPopup .adex-popup-card{
  position:relative;
  width:min(560px,100%);
  max-height:min(90vh,820px);
  overflow:auto;
  padding:34px 30px 26px;
  border-radius:28px;
  background:
    radial-gradient(circle at top left, rgba(37,153,255,.23), transparent 34%),
    radial-gradient(circle at top right, rgba(84,232,183,.10), transparent 26%),
    linear-gradient(180deg,#031225 0%,#07162b 100%);
  color:#fff;
  border:1px solid rgba(112,194,255,.22);
  box-shadow:0 44px 130px rgba(0,0,0,.58);
  font-family:Inter,Arial,Helvetica,sans-serif;
  scrollbar-width:thin;
  scrollbar-color:rgba(120,180,255,.45) rgba(255,255,255,.06);
}
#adexLeadPopup .adex-popup-card::-webkit-scrollbar{width:10px}
#adexLeadPopup .adex-popup-card::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px}
#adexLeadPopup .adex-popup-card::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(108,182,255,.8),rgba(35,124,255,.75));border-radius:999px}
#adexLeadPopup .adex-popup-close{
  position:absolute;
  right:18px;
  top:18px;
  width:52px;
  height:52px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:28px;
  font-weight:700;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}
#adexLeadPopup .adex-popup-close:hover{transform:scale(1.04);background:rgba(255,255,255,.14);box-shadow:0 10px 26px rgba(0,0,0,.22)}
#adexLeadPopup .adex-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(32,141,255,.22),rgba(16,82,170,.16));
  color:#8fd5ff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}
#adexLeadPopup h2{
  font-size:clamp(30px,5vw,58px);
  line-height:.95;
  margin:16px 64px 14px 0;
  letter-spacing:-.05em;
}
#adexLeadPopup .adex-sub{
  color:#b7c9de;
  font-size:17px;
  line-height:1.65;
  margin:0 0 20px;
  max-width:92%;
}
#adexLeadPopup .adex-points{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0 0 22px;
}
#adexLeadPopup .adex-points div{
  background:rgba(14,31,52,.9);
  border:1px solid rgba(59,114,168,.65);
  border-radius:14px;
  padding:14px 14px;
  font-size:13px;
  color:#e0ebf8;
  min-height:54px;
  display:flex;
  align-items:center;
}
#adexLeadPopup label{
  display:block;
  font-size:15px;
  font-weight:800;
  margin:14px 0 8px;
  color:#fff;
}
#adexLeadPopup input{
  width:100%;
  height:66px;
  border:1.5px solid #21486f;
  border-radius:18px;
  background:#091a2e;
  color:#fff;
  padding:0 18px;
  outline:none;
  font-size:17px;
}
#adexLeadPopup input::placeholder{color:#91a1b3}
#adexLeadPopup input:focus{border-color:#1f8eff;box-shadow:0 0 0 4px rgba(24,135,255,.14)}
#adexLeadPopup .adex-submit{
  width:100%;
  min-height:74px;
  margin-top:24px;
  border:0;
  border-radius:18px;
  background:linear-gradient(180deg,#2fa4ff,#1066f0);
  color:#fff;
  font-weight:950;
  font-size:18px;
  letter-spacing:-.01em;
  box-shadow:0 20px 48px rgba(0,103,255,.26);
  cursor:pointer;
}
#adexLeadPopup .adex-submit:disabled{opacity:.65;cursor:wait}
#adexLeadPopup .adex-msg{min-height:22px;margin-top:12px;text-align:center;color:#ff9d9d;font-size:13px}
#adexLeadPopup .adex-secure{text-align:center;color:#8fa4bb;font-size:12px;margin:12px 0 0}
#adexLeadPopup .adex-hp{position:absolute!important;left:-99999px!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}

@media(max-width:820px){
  #adexLeadPopup{padding:14px!important}
  #adexLeadPopup .adex-popup-card{width:min(100%,620px)}
}
@media(max-width:680px){
  #adexLeadPopup{padding:10px!important;align-items:flex-end!important}
  #adexLeadPopup .adex-popup-card{
    width:100%;
    max-height:92vh;
    padding:24px 16px 18px;
    border-radius:22px 22px 0 0;
  }
  #adexLeadPopup .adex-popup-close{right:12px;top:12px;width:46px;height:46px;font-size:24px}
  #adexLeadPopup h2{font-size:clamp(28px,11vw,42px);margin:14px 54px 12px 0}
  #adexLeadPopup .adex-sub{font-size:15px;max-width:100%;margin-bottom:16px}
  #adexLeadPopup .adex-points{grid-template-columns:1fr;gap:10px}
  #adexLeadPopup .adex-points div{min-height:auto;padding:12px 12px}
  #adexLeadPopup label{font-size:14px}
  #adexLeadPopup input{height:58px;font-size:16px;border-radius:16px}
  #adexLeadPopup .adex-submit{min-height:64px;font-size:17px;border-radius:16px;margin-top:20px}
}
