/* =========================================================
   HUMANOID ROBOTS TODAY — NEWSLETTER V2
   Modern, premium and mobile-first
   Add after styles.css
   ========================================================= */

.newsletter-v2 {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 96px) 0;
  background:
    radial-gradient(circle at 14% 15%, rgba(39,96,255,.10), transparent 25%),
    radial-gradient(circle at 87% 85%, rgba(133,72,255,.12), transparent 28%),
    linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
}

.newsletter-v2-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(125deg, rgba(13,28,73,.98) 0%, rgba(24,46,111,.98) 49%, rgba(80,38,143,.98) 100%);
  box-shadow: 0 28px 80px rgba(24,38,94,.22), inset 0 1px 0 rgba(255,255,255,.13);
}

.newsletter-v2-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  top: -245px;
  right: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71,132,255,.34), transparent 68%);
  filter: blur(2px);
}

.newsletter-v2-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(135,180,255,.16);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-v2-orbit-a {
  width: 420px;
  height: 420px;
  right: -255px;
  top: -130px;
}

.newsletter-v2-orbit-b {
  width: 250px;
  height: 250px;
  right: -100px;
  top: -30px;
  border-color: rgba(191,153,255,.18);
}

.newsletter-v2-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.newsletter-v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #cdd9ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.newsletter-v2-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa7ff;
  box-shadow: 0 0 0 6px rgba(138,167,255,.11), 0 0 20px rgba(138,167,255,.65);
}

.newsletter-v2 h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(42px, 5.7vw, 74px);
  line-height: .98;
  letter-spacing: -.052em;
}

.newsletter-v2 h2 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #8eb5ff, #c29cff);
  -webkit-background-clip: text;
  background-clip: text;
}

.newsletter-v2-lead {
  max-width: 660px;
  margin: 0;
  color: #d2d9ef;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.63;
}

.newsletter-v2-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.newsletter-v2-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: #e5eaff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.newsletter-v2-panel {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3vw, 31px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background: rgba(255,255,255,.095);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 18px 45px rgba(5,12,36,.17);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.newsletter-v2-panel-head {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 20px;
}

.newsletter-v2-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(67,122,255,.9), rgba(151,75,255,.9));
  box-shadow: 0 10px 25px rgba(54,79,207,.35);
}

.newsletter-v2-icon svg { width: 23px; height: 23px; }

.newsletter-v2-panel-head strong,
.newsletter-v2-panel-head small { display: block; }

.newsletter-v2-panel-head strong { margin-bottom: 3px; font-size: 18px; }
.newsletter-v2-panel-head small { color: #cbd4ed; font-size: 13px; }

/* FORM */
.newsletter-v2-form {
  display: grid;
  gap: 11px;
}

.newsletter-v2-input-wrap { position: relative; }

.newsletter-v2-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #75819f;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Only the email input receives text-field styling. */
.newsletter-v2-form input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 13px 16px 13px 48px;
  color: #17213c;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 9px 26px rgba(4,11,36,.12);
  outline: none;
  font: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}

.newsletter-v2-form input[type="email"]::placeholder { color: #8b94aa; }

.newsletter-v2-form input[type="email"]:focus {
  box-shadow: 0 0 0 4px rgba(123,150,255,.18), 0 10px 30px rgba(4,11,36,.15);
}

.newsletter-v2-submit {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  color: #fff;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(100deg, #316cff, #8651ff);
  box-shadow: 0 12px 28px rgba(54,83,219,.36);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.newsletter-v2-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(54,83,219,.42);
}

.newsletter-v2-submit:active { transform: translateY(0); }
.newsletter-v2-submit:disabled { opacity: .66; cursor: wait; }

.newsletter-v2-submit svg {
  width: 20px;
  height: 20px;
  transition: transform .18s ease;
}

.newsletter-v2-submit:hover svg { transform: translateX(3px); }

.newsletter-v2-message {
  min-height: 19px;
  margin: 1px 2px 0;
  color: #cbd4ef;
  font-size: 12px;
  line-height: 1.5;
}

.newsletter-v2-message.is-success { color: #b9ffd6; }
.newsletter-v2-message.is-error { color: #ffd0d8; }

/* PRIVACY CONSENT */
.newsletter-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 5px 0 8px;
  padding: 0;
  color: #cbd4ed;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.newsletter-privacy input[type="checkbox"] {
  display: block;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 1px 0 0 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  accent-color: #5b70ff;
  cursor: pointer;
  -webkit-appearance: checkbox;
  appearance: auto;
}

.newsletter-privacy span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #cbd4ed;
  text-align: left;
}

.newsletter-privacy a {
  color: #a9c0ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter-privacy a:hover { color: #c29cff; }

.newsletter-privacy input[type="checkbox"]:focus-visible {
  outline: 2px solid #9cb6ff;
  outline-offset: 3px;
}

/* TRUST */
.newsletter-v2-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 9px;
  color: #bfc9e3;
  font-size: 11px;
  line-height: 1.45;
}

.newsletter-v2-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.newsletter-v2-trust span + span::before {
  content: "•";
  margin-right: 3px;
  opacity: .5;
}

.newsletter-v2-trust svg { width: 14px; height: 14px; }

/* TABLET */
@media (max-width: 980px) {
  .newsletter-v2-card { grid-template-columns: 1fr; }
  .newsletter-v2-copy { max-width: 720px; }
  .newsletter-v2-panel { max-width: 640px; }
}

/* MOBILE */
@media (max-width: 640px) {
  .newsletter-v2 { padding: 40px 0; }

  .newsletter-v2 .container {
    width: min(100% - 24px, var(--container, 1180px));
  }

  .newsletter-v2-card {
    gap: 30px;
    padding: 28px 20px 21px;
    border-radius: 25px;
  }

  .newsletter-v2-kicker {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: .1em;
  }

  .newsletter-v2 h2 { font-size: clamp(40px, 12vw, 58px); }
  .newsletter-v2-lead { font-size: 16px; }
  .newsletter-v2-benefits { margin-top: 21px; }

  .newsletter-v2-panel {
    margin: 0 -6px;
    padding: 18px;
    border-radius: 20px;
  }

  .newsletter-v2-form input[type="email"],
  .newsletter-v2-submit {
    min-height: 55px;
    border-radius: 14px;
  }

  .newsletter-privacy {
    gap: 9px;
    margin: 4px 0 8px;
    font-size: 11px;
    line-height: 1.45;
  }

  .newsletter-privacy input[type="checkbox"] {
    flex-basis: 17px;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    margin-top: 1px !important;
  }

  .newsletter-v2-trust { gap: 7px 11px; }

  .newsletter-v2-trust span + span::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-v2-submit,
  .newsletter-v2-submit svg,
  .newsletter-v2-form input[type="email"] {
    transition: none;
  }
}
