/* Home: final call-to-action (#agh-cta). Prefix: agh-cta-. Tokens: css/site/tokens.css */

.agh-cta { background: var(--ag-bg); }

/* ---------- Card ---------- */
.agh-cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  border-radius: 28px;
  padding: clamp(40px, 5.5vw, 72px) clamp(24px, 5vw, 72px);
  color: #fff;
  background: var(--ag-grad);
  background-size: 200% 200%;
  animation: ag-gradient-pan 18s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 70px -28px rgba(5, 102, 79, .55), 0 12px 28px -18px rgba(2, 44, 34, .45);
}

/* soft glass light from the top edge */
.agh-cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 38%);
}

/* pointer spotlight (data-ag-spotlight sets --ag-mx / --ag-my) */
.agh-cta-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--ag-mx, 70%) var(--ag-my, 30%), rgba(255, 255, 255, .12), transparent 45%);
  opacity: .9;
}

html[data-theme="dark"] .agh-cta-card {
  border-color: rgba(110, 231, 183, .25);
  box-shadow: 0 0 0 1px rgba(110, 231, 183, .06), 0 0 60px -6px rgba(52, 211, 153, .28), 0 30px 80px -30px rgba(16, 185, 129, .45);
}

/* ---------- Decorations ---------- */
.agh-cta-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.agh-cta-blob {
  position: absolute; display: block; filter: blur(46px); opacity: .55;
  animation: ag-blob 22s ease-in-out infinite;
}
.agh-cta-blob-1 { width: 340px; height: 300px; top: -120px; right: -60px; background: radial-gradient(circle at 40% 40%, #6EE7B7, rgba(110, 231, 183, 0) 70%); }
.agh-cta-blob-2 { width: 380px; height: 320px; bottom: -170px; left: -90px; background: radial-gradient(circle at 50% 50%, #10B981, rgba(16, 185, 129, 0) 70%); animation-duration: 26s; animation-delay: -8s; opacity: .6; }
.agh-cta-blob-3 { width: 240px; height: 220px; top: 30%; left: 46%; background: radial-gradient(circle at 50% 50%, rgba(245, 181, 63, .75), rgba(245, 181, 63, 0) 70%); animation-duration: 30s; animation-delay: -15s; opacity: .28; }

/* logo-swoosh ribbon: stretches with the card (strokes stay thin), drifts slowly */
.agh-cta-sw {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
  animation: agh-cta-drift 24s ease-in-out infinite alternate;
}
@keyframes agh-cta-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-22px, 10px, 0) rotate(-.6deg); }
}

/* thin solid ring with a faint inner ring; a conic sheen travels slowly around it */
.agh-cta-ring {
  position: absolute; display: block; width: 360px; height: 360px; right: -120px; bottom: -170px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 26px rgba(255, 255, 255, .025);
}
.agh-cta-ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg 210deg, rgba(255, 255, 255, .45) 296deg, rgba(209, 250, 229, .95) 322deg, rgba(255, 255, 255, 0) 344deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: ag-spin-slow 18s linear infinite;
}
.agh-cta-ring::after {
  content: ""; position: absolute; inset: 26px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}

.agh-cta-ico {
  position: absolute; display: block; line-height: 1; color: #fff; opacity: .14;
  animation: ag-float 7s ease-in-out infinite;
}
.agh-cta-ico .bi { display: block; }
.agh-cta-ico-1 { top: 12%; left: 4%; font-size: 2.6rem; rotate: -14deg; animation-duration: 8s; }
.agh-cta-ico-2 { bottom: 12%; left: 34%; font-size: 1.7rem; rotate: 10deg; animation-delay: -2s; opacity: .12; }
.agh-cta-ico-4 { top: 9%; right: 5%; font-size: 2.1rem; rotate: 12deg; animation-duration: 9s; animation-delay: -4s; }
.agh-cta-ico-5 { bottom: 14%; right: 9%; font-size: 1.8rem; rotate: -8deg; animation-duration: 7.5s; animation-delay: -3s; opacity: .16; }

/* ---------- Content ---------- */
.agh-cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: clamp(28px, 4vw, 56px);
}

.agh-cta-title {
  font-family: var(--ag-font); font-weight: 800; color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.85rem); line-height: 1.14; letter-spacing: -.02em;
  margin: 0 0 16px; text-wrap: balance;
}
.agh-cta-mark { position: relative; display: inline-block; white-space: nowrap; color: #ECFDF5; }
.agh-cta-swoosh {
  position: absolute; left: -2%; bottom: -.32em; width: 104%; height: .42em;
  overflow: visible; pointer-events: none;
  transform-origin: 0 50%;
}
html.ag-js .agh-cta-swoosh { transform: scaleX(0); opacity: 0; transition: transform 1.1s var(--ag-ease) .45s, opacity .4s ease .45s; }
html.ag-js .agh-cta-card.is-in .agh-cta-swoosh { transform: scaleX(1); opacity: 1; }

.agh-cta-text { margin: 0; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; color: rgba(255, 255, 255, .86); max-width: 34em; }

.agh-cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.agh-cta-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }

/* Primary: white pill, brand-green text, periodic sheen */
.agh-cta-btn-main {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; color: #05664F; font-weight: 700; padding: 15px 30px;
  box-shadow: 0 14px 30px -10px rgba(2, 44, 34, .55), 0 0 0 4px rgba(255, 255, 255, .12);
}
.agh-cta-btn-main::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(110, 231, 183, 0), rgba(110, 231, 183, .55), rgba(110, 231, 183, 0));
  transform: translateX(-130%) skewX(-20deg);
  animation: agh-cta-sheen 4.8s ease-in-out infinite 1.2s;
}
.agh-cta-btn-main:hover,
.agh-cta-btn-main:focus-visible { background: #fff; color: #034D3B; transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(2, 44, 34, .6), 0 0 0 6px rgba(255, 255, 255, .16); }
.agh-cta-btn-arrow { transition: transform .3s var(--ag-ease); }
.agh-cta-btn-main:hover .agh-cta-btn-arrow,
.agh-cta-btn-main:focus-visible .agh-cta-btn-arrow { transform: translateX(4px); }

@keyframes agh-cta-sheen {
  0% { transform: translateX(-130%) skewX(-20deg); }
  38%, 100% { transform: translateX(260%) skewX(-20deg); }
}

.agh-cta-btn-alt { padding: 14px 26px; }

.agh-cta-card .agh-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.agh-cta-ticks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px;
  font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .88);
}
.agh-cta-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.agh-cta-ticks .bi { color: #6EE7B7; font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .agh-cta-inner { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .agh-cta-text { margin-inline: auto; }
  .agh-cta-actions { align-items: center; }
  .agh-cta-btns, .agh-cta-ticks { justify-content: center; }
  .agh-cta-ico-2 { left: 8%; bottom: 8%; }
}

@media (max-width: 575.98px) {
  .agh-cta-card { border-radius: 22px; padding: 40px 20px; }
  .agh-cta-mark { white-space: normal; }
  .agh-cta-btns { flex-direction: column; align-items: stretch; width: 100%; }
  .agh-cta-btns .agh-btn { width: 100%; }
  .agh-cta-ticks { flex-direction: column; align-items: center; gap: 8px; }
  .agh-cta-ico-1 { font-size: 2rem; top: 5%; }
  .agh-cta-ico-4 { font-size: 1.6rem; top: 4%; }
  .agh-cta-ico-5, .agh-cta-ring { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .agh-cta-card, .agh-cta-blob, .agh-cta-sw, .agh-cta-ring::before, .agh-cta-ico, .agh-cta-btn-main::after { animation: none !important; }
  html.ag-js .agh-cta-swoosh { transform: none; opacity: 1; transition: none; }
  .agh-cta-btn-main::after { display: none; }
}
