.cm-ai-cta{
  --cm-ai-cta-text:#f6fbff;
  --cm-ai-cta-muted:#dbe8f7;
  --cm-ai-cta-line:rgba(213,231,255,.24);
  --cm-ai-cta-shadow:0 22px 48px rgba(0,0,0,.34);
  --cm-ai-cta-accent-rgb:34,211,238;
  --cm-ai-cta-accent-soft:rgba(var(--cm-ai-cta-accent-rgb),.18);
  --cm-ai-cta-accent-strong:rgba(var(--cm-ai-cta-accent-rgb),.28);
  margin:1.4rem 0;
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--cm-ai-cta-text);
}

.cm-ai-cta[data-accent="cyan"]{--cm-ai-cta-accent-rgb:34,211,238}
.cm-ai-cta[data-accent="emerald"]{--cm-ai-cta-accent-rgb:52,211,153}
.cm-ai-cta[data-accent="gold"]{--cm-ai-cta-accent-rgb:251,191,36}
.cm-ai-cta[data-accent="sky"]{--cm-ai-cta-accent-rgb:96,165,250}
.cm-ai-cta[data-accent="aqua"]{--cm-ai-cta-accent-rgb:34,211,238}
.cm-ai-cta[data-accent="violet"]{--cm-ai-cta-accent-rgb:167,139,250}
.cm-ai-cta[data-accent="rose"]{--cm-ai-cta-accent-rgb:244,114,182}

.cm-ai-cta *{
  box-sizing:border-box;
}

.cm-ai-cta__surface{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(220px,.78fr);
  gap:1rem;
  padding:1.2rem;
  border-radius:24px;
  border:1px solid var(--cm-ai-cta-line);
  background:
    radial-gradient(520px 260px at 12% 20%,rgba(var(--cm-ai-cta-accent-rgb),.20),transparent 46%),
    radial-gradient(420px 220px at 100% 0%,rgba(96,165,250,.16),transparent 40%),
    linear-gradient(135deg,#07111d 0%,#10203a 46%,#08121f 100%);
  box-shadow:var(--cm-ai-cta-shadow);
}

.cm-ai-cta__surface::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(7,15,27,.46),rgba(7,15,27,.68)),
    linear-gradient(115deg,rgba(var(--cm-ai-cta-accent-rgb),.18),rgba(34,211,238,.08),rgba(167,139,250,.12));
  pointer-events:none;
  z-index:0;
}

.cm-ai-cta__copy,
.cm-ai-cta__aside,
.cm-ai-cta__related{
  position:relative;
  z-index:1;
}

.cm-ai-cta__copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.95rem;
}

.cm-ai-cta__brandline{
  display:flex;
  align-items:center;
  gap:.8rem;
}

.cm-ai-cta__wordmark{
  font-size:1.06rem;
  font-weight:900;
  letter-spacing:.01em;
  line-height:1;
  background:linear-gradient(90deg,#93c5fd 0%,#e5e7eb 50%,#93c5fd 100%);
  background-size:200% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:cm-ai-cta-sheen 6s linear infinite;
}

.cm-ai-cta__logo-wrap{
  position:relative;
  display:inline-flex;
  width:48px;
  height:48px;
  flex:0 0 48px;
}

.cm-ai-cta__logo-core{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  border-radius:999px;
  overflow:hidden;
  background:#0b1226;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.06),0 2px 10px rgba(0,0,0,.38);
}

.cm-ai-cta__logo-core::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:3px;
  background:radial-gradient(closest-side,transparent 82%,rgba(147,197,253,.25) 83% 84%,transparent 85%);
}

.cm-ai-cta__logo-core::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:inherit;
  background:linear-gradient(120deg,rgba(255,255,255,.14),transparent 60%);
  mix-blend-mode:screen;
  opacity:.3;
  transform:translateX(-120%);
  animation:cm-ai-cta-gloss 5.4s ease-in-out infinite;
}

.cm-ai-cta__logo{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.cm-ai-cta__logo-badge{
  position:absolute;
  right:-7px;
  bottom:-7px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:22px;
  padding:.1rem .5rem;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(59,130,246,1),rgba(99,102,241,1));
  color:#eaf2ff;
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.08em;
  box-shadow:0 0 0 1px rgba(255,255,255,.16) inset,0 8px 18px rgba(0,0,0,.38),0 0 22px rgba(99,102,241,.34);
  text-transform:uppercase;
}

.cm-ai-cta__kicker-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.55rem;
}

.cm-ai-cta__brand,
.cm-ai-cta__eyebrow,
.cm-ai-cta__meta-pill,
.cm-ai-cta__related-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:.46rem .82rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#eef7ff;
  font-size:.78rem;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}

.cm-ai-cta__brand{
  background:linear-gradient(90deg,rgba(147,197,253,.18),rgba(var(--cm-ai-cta-accent-rgb),.18));
  border-color:rgba(147,197,253,.26);
}

.cm-ai-cta__eyebrow{
  color:#d9e7f8;
}

.cm-ai-cta__title{
  margin:0;
  color:#f8fbff;
  font-size:clamp(1.7rem,3vw,2.5rem);
  line-height:1.04;
  letter-spacing:-.03em;
  text-wrap:balance;
}

.cm-ai-cta__description{
  margin:0;
  max-width:62ch;
  color:var(--cm-ai-cta-muted);
  font-size:1rem;
  line-height:1.7;
  font-weight:600;
}

.cm-ai-cta__meta{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}

.cm-ai-cta__meta-pill{
  background:rgba(2,8,18,.42);
}

.cm-ai-cta__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.8rem;
}

.cm-ai-cta__button{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  min-height:48px;
  padding:.8rem 1rem;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(135deg,rgba(var(--cm-ai-cta-accent-rgb),.98),rgba(147,197,253,.92));
  color:#07111d;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 16px 28px rgba(0,0,0,.24);
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}

.cm-ai-cta__button:hover{
  transform:translateY(-2px);
  filter:saturate(1.06);
  box-shadow:0 18px 32px rgba(0,0,0,.28);
}

.cm-ai-cta__button strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(7,17,29,.12);
  font-size:.95rem;
}

.cm-ai-cta__button-text{
  display:inline;
}

.cm-ai-cta__hint{
  margin:0;
  color:#d8e7f8;
  font-size:.95rem;
  line-height:1.55;
  font-weight:600;
}

.cm-ai-cta__aside{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100%;
}

.cm-ai-cta__aside-card{
  position:relative;
  width:min(100%,280px);
  display:grid;
  justify-items:center;
  gap:.85rem;
  padding:1.15rem;
  border-radius:24px;
  border:1px solid rgba(213,231,255,.18);
  background:rgba(7,15,27,.72);
  backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 30px rgba(0,0,0,.22);
  text-align:center;
}

.cm-ai-cta__icon-shell{
  position:relative;
  width:94px;
  height:94px;
  border-radius:26px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 30% 25%,rgba(255,255,255,.12),transparent 36%),
    linear-gradient(145deg,rgba(var(--cm-ai-cta-accent-rgb),.22),rgba(255,255,255,.04));
  overflow:hidden;
}

.cm-ai-cta__icon-shell::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  animation:cm-ai-cta-spin 14s linear infinite;
}

.cm-ai-cta__icon-shell svg{
  position:relative;
  z-index:1;
  width:48px;
  height:48px;
  fill:none;
  stroke:#f8fbff;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.cm-ai-cta__aside-copy{
  display:grid;
  gap:.28rem;
}

.cm-ai-cta__aside-copy span{
  color:#d8e7f8;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.cm-ai-cta__aside-copy strong{
  color:#f8fbff;
  font-size:1.05rem;
  line-height:1.25;
}

.cm-ai-cta__aside-copy small{
  color:#d0def0;
  font-size:.9rem;
  line-height:1.45;
}

.cm-ai-cta__pulse{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(var(--cm-ai-cta-accent-rgb),.24);
  pointer-events:none;
  animation:cm-ai-cta-float 6.8s ease-in-out infinite;
}

.cm-ai-cta__pulse--one{
  top:10%;
  right:14%;
  width:68px;
  height:68px;
}

.cm-ai-cta__pulse--two{
  bottom:8%;
  left:8%;
  width:120px;
  height:120px;
  animation-duration:8.2s;
  animation-direction:reverse;
}

.cm-ai-cta__related{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem;
  margin-top:.9rem;
}

.cm-ai-cta__related-label{
  color:#42546d;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.cm-ai-cta__related-links{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}

.cm-ai-cta__related-link{
  border-color:rgba(148,163,184,.46);
  background:rgba(226,232,240,.92);
  color:#0f3b86;
  box-shadow:0 6px 14px rgba(15,23,42,.08);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}

.cm-ai-cta__related-link:hover{
  transform:translateY(-2px);
  border-color:rgba(var(--cm-ai-cta-accent-rgb),.42);
  background:rgba(var(--cm-ai-cta-accent-rgb),.18);
  color:#082a63;
  box-shadow:0 10px 20px rgba(15,23,42,.12);
}

.editor-styles-wrapper .cm-ai-cta,
.block-editor-block-preview__content .cm-ai-cta{
  margin:0;
}

.editor-styles-wrapper .cm-ai-cta .block-editor-rich-text__editable,
.editor-styles-wrapper .cm-ai-cta [contenteditable="true"]{
  cursor:text;
}

.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__brand.block-editor-rich-text__editable,
.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__eyebrow.block-editor-rich-text__editable,
.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__meta-pill.block-editor-rich-text__editable,
.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__button-text.block-editor-rich-text__editable{
  display:inline-flex;
  align-items:center;
}

.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__description.block-editor-rich-text__editable{
  display:block;
}

.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__brand.block-editor-rich-text__editable:focus,
.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__eyebrow.block-editor-rich-text__editable:focus,
.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__title.block-editor-rich-text__editable:focus,
.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__description.block-editor-rich-text__editable:focus,
.editor-styles-wrapper .cm-ai-cta .cm-ai-cta__button-text.block-editor-rich-text__editable:focus{
  outline:2px solid rgba(var(--cm-ai-cta-accent-rgb),.56);
  outline-offset:3px;
  border-radius:12px;
}

@keyframes cm-ai-cta-spin{
  to{transform:rotate(1turn)}
}

@keyframes cm-ai-cta-sheen{
  to{background-position:-200% 0}
}

@keyframes cm-ai-cta-gloss{
  0%{transform:translateX(-120%)}
  55%{transform:translateX(120%)}
  100%{transform:translateX(120%)}
}

@keyframes cm-ai-cta-float{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-10px) scale(1.04)}
}

@media (max-width:820px){
  .cm-ai-cta__surface{
    grid-template-columns:1fr;
  }

  .cm-ai-cta__aside{
    justify-content:flex-start;
  }

  .cm-ai-cta__aside-card{
    width:100%;
    justify-items:flex-start;
    text-align:left;
  }
}

@media (max-width:640px){
  .cm-ai-cta{
    margin:1rem 0;
  }

  .cm-ai-cta__surface{
    padding:1rem;
    border-radius:20px;
  }

  .cm-ai-cta__brandline{
    gap:.68rem;
  }

  .cm-ai-cta__wordmark{
    font-size:.98rem;
  }

  .cm-ai-cta__logo-wrap{
    width:44px;
    height:44px;
    flex-basis:44px;
  }

  .cm-ai-cta__title{
    font-size:clamp(1.4rem,7vw,2rem);
  }

  .cm-ai-cta__actions{
    align-items:stretch;
  }

  .cm-ai-cta__button{
    width:100%;
    justify-content:center;
  }

  .cm-ai-cta__hint{
    width:100%;
  }

  .cm-ai-cta__icon-shell{
    width:82px;
    height:82px;
    border-radius:22px;
  }

  .cm-ai-cta__icon-shell svg{
    width:42px;
    height:42px;
  }
}
