.newsletter-overlay {
  --modal-bg: #081726;
  --modal-bg-deep: #06121f;
  --line: rgba(91, 174, 225, 0.56);
  --line-soft: rgba(118, 189, 232, 0.22);
  --text: #f4f8fb;
  --text-muted: #a8bdd0;
  --cyan: #2ed3e6;

  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(2, 9, 16, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.newsletter-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.newsletter-modal {
  position: relative;
  display: grid;
  grid-template-columns: 47% 53%;
  width: min(960px, 100%);
  min-height: 600px;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 42%, rgba(23, 109, 166, 0.09), transparent 38%),
    linear-gradient(120deg, var(--modal-bg-deep), var(--modal-bg));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  animation: newsletter-enter 300ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.newsletter-modal::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 47%;
  width: 1px;
  content: "";
  background: linear-gradient(transparent 4%, rgba(255,255,255,0.035) 28%, rgba(255,255,255,0.035) 72%, transparent 96%);
}

.newsletter-close {
  position: absolute;
  z-index: 4;
  top: 19px;
  right: 19px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #bcd2e2;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.newsletter-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  transform: rotate(3deg);
}

.newsletter-close:focus-visible,
.newsletter-form input:focus-visible,
.newsletter-form button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.newsletter-close span {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.newsletter-close span:first-child {
  transform: rotate(45deg);
}

.newsletter-close span:last-child {
  transform: rotate(-45deg);
}

.newsletter-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 600px;
  padding: 36px 26px 40px;
  overflow: hidden;
  isolation: isolate;
}

.newsletter-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(84%, 430px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 56% 53%, rgba(46, 211, 230, 0.18), transparent 34%),
    radial-gradient(circle at 67% 63%, rgba(118, 87, 255, 0.14), transparent 28%);
  filter: blur(17px);
}

.newsletter-visual img {
  position: relative;
  z-index: 1;
  width: min(92%, 460px);
  max-height: 460px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, 0.34));
}

.newsletter-visual-caption {
  position: absolute;
  z-index: 2;
  left: 46px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #8fa9bd;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.31em;
}

.newsletter-visual-caption i {
  width: 36px;
  height: 1px;
  margin: 3px 0 7px;
  background: rgba(110, 183, 222, 0.65);
}

.newsletter-visual-caption i:last-child {
  margin: 8px 0 0;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 68px 50px 58px 56px;
}

.newsletter-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 44px;
  color: #f3f7fa;
  font-size: 22px;
  font-weight: 350;
  line-height: 1;
  letter-spacing: 0.22em;
}

.newsletter-brand-mark {
  display: inline-block;
  margin-right: -1px;
  color: var(--cyan);
  font-weight: 300;
  transform: scaleX(0.7);
  transform-origin: right center;
}

.newsletter-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(35px, 3.2vw, 45px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.newsletter-copy p {
  max-width: 440px;
  margin: 24px 0 30px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.newsletter-form {
  display: grid;
  gap: 15px;
}

.newsletter-form input,
.newsletter-form button {
  font: inherit;
}

.newsletter-form input {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  color: var(--text);
  caret-color: var(--cyan);
  background: rgba(5, 17, 29, 0.74);
  border: 1px solid rgba(114, 180, 219, 0.67);
  border-radius: 10px;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.16);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.newsletter-form input::placeholder {
  color: #7f99ae;
  opacity: 1;
}

.newsletter-form input:hover,
.newsletter-form input:focus {
  border-color: rgba(46, 211, 230, 0.9);
  box-shadow: 0 0 0 3px rgba(46, 211, 230, 0.08);
}

.newsletter-honeypot {
  position: absolute;
  left: -9999px;
}

.newsletter-form button {
  position: relative;
  height: 58px;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(100deg, #2fc8e8 0%, #159cf3 52%, #126cff 100%);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 102, 255, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.newsletter-form button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, rgba(255,255,255,0.16), transparent 38%);
  pointer-events: none;
}

.newsletter-form button:hover {
  filter: saturate(1.08) brightness(1.07);
  box-shadow: 0 17px 34px rgba(0, 102, 255, 0.26);
  transform: translateY(-1px);
}

.newsletter-form button:active {
  transform: translateY(0);
}

.newsletter-fine-print {
  margin: 5px 0 0;
  color: #839aaf;
  font-size: 14px;
  text-align: center;
}

.newsletter-error {
  margin: 0;
  color: #ff9ea0;
  font-size: 14px;
  text-align: center;
}

.newsletter-success {
  padding: 26px 24px;
  text-align: center;
  background: rgba(8, 28, 44, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.newsletter-success[hidden],
.newsletter-error[hidden] {
  display: none;
}

.newsletter-success-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 13px;
  color: #04121d;
  font-weight: 800;
  background: var(--cyan);
  border-radius: 50%;
}

.newsletter-success h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.newsletter-success p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

body.argenox-popup-lock {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes newsletter-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}

@media (max-width: 820px) {
  .newsletter-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 20px;
  }

  .newsletter-modal {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    min-height: 0;
  }

  .newsletter-modal::after {
    display: none;
  }

  .newsletter-visual {
    min-height: 300px;
    padding: 22px 20px 10px;
  }

  .newsletter-visual img {
    width: min(90%, 380px);
    max-height: 340px;
  }

  .newsletter-visual-caption {
    display: none;
  }

  .newsletter-content {
    padding: 14px 34px 36px;
    text-align: center;
  }

  .newsletter-brand {
    justify-content: center;
    margin-bottom: 26px;
  }

  .newsletter-copy p {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .newsletter-overlay {
    padding: 12px;
  }

  .newsletter-modal {
    border-radius: 17px;
  }

  .newsletter-visual {
    min-height: 240px;
    padding: 14px 12px 4px;
  }

  .newsletter-visual img {
    width: min(88%, 300px);
    max-height: 260px;
  }

  .newsletter-content {
    padding: 8px 22px 26px;
  }

  .newsletter-brand {
    margin-bottom: 21px;
    font-size: 18px;
  }

  .newsletter-copy h2 {
    font-size: 32px;
  }

  .newsletter-copy p {
    margin: 17px auto 23px;
    font-size: 15px;
    line-height: 1.55;
  }

  .newsletter-form input,
  .newsletter-form button {
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
