/* =========================================================
   CONNECT V2 — Product Experience Page
   Matches Resource Lab / Field Guides / Perspectives system
   ========================================================= */

.connect-v2 {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 24px clamp(88px, 10vw, 140px);
  background: #ffffff;
  color: var(--lrl-ink, #080b12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.connect-v2 *,
.connect-v2 *::before,
.connect-v2 *::after {
  box-sizing: border-box;
}

.connect-v2::before {
  content: "";
  position: absolute;
  top: 80px;
  right: -220px;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.13), transparent 62%);
  pointer-events: none;
}

.connect-v2::after {
  content: "";
  position: absolute;
  top: 620px;
  left: -260px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 64%);
  pointer-events: none;
}

.cv2-eyebrow {
  margin: 0 0 18px;
  color: var(--lrl-blue, #2563eb);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cv2-hero,
.cv2-section,
.cv2-closing {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin-inline: auto;
}

/* Page CTA buttons */

.connect-v2 .lrl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.connect-v2 .lrl-button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #5b4df5 55%, #14b8a6);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.22);
}

.connect-v2 .lrl-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.28);
}

.connect-v2 .lrl-button-secondary {
  color: var(--lrl-ink, #080b12);
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.connect-v2 .lrl-button-secondary:hover {
  transform: translateY(-2px);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.12);
}

/* Hero */

.cv2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  min-height: clamp(620px, 80vh, 820px);
  padding: clamp(34px, 5vw, 76px) 0 clamp(72px, 8vw, 112px);
}

.cv2-hero-copy {
  min-width: 0;
}

.cv2-hero-copy h1 {
  margin: 0;
  color: var(--lrl-ink, #080b12);
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
  font-weight: 620;
  text-wrap: balance;
}

.cv2-hero-copy h1 span {
  display: inline-block;
  padding-right: 0.08em;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #2563eb 0%, #5b4df5 46%, #7c3aed 72%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cv2-hero-copy > p:not(.cv2-eyebrow) {
  margin: 34px 0 0;
  max-width: 760px;
  color: var(--lrl-muted, #5f6472);
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.72;
}

.cv2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Hero animated visual */

.cv2-hero-stage {
  position: relative;
  min-height: 560px;
  border-radius: 46px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  background:
    radial-gradient(circle at 28% 22%, rgba(20, 184, 166, 0.14), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(37, 99, 235, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96));
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.cv2-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.7;
}

.cv2-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.9;
  animation: cv2Float 7s ease-in-out infinite;
}

.cv2-glow.glow-one {
  width: 190px;
  height: 190px;
  left: 72px;
  top: 76px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 64%);
}

.cv2-glow.glow-two {
  width: 230px;
  height: 230px;
  right: 44px;
  bottom: 56px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.24), transparent 64%);
  animation-delay: -2s;
}

.cv2-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.15);
  animation: cv2Spin 18s linear infinite;
}

.cv2-orbit.orbit-one {
  width: 320px;
  height: 320px;
  top: 112px;
  left: calc(50% - 160px);
}

.cv2-orbit.orbit-two {
  width: 420px;
  height: 420px;
  top: 62px;
  left: calc(50% - 210px);
  border-color: rgba(37, 99, 235, 0.14);
  animation-duration: 26s;
  animation-direction: reverse;
}

.cv2-float-card {
  position: absolute;
  width: min(280px, 74%);
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 56px rgba(17, 24, 39, 0.10);
  animation: cv2CardFloat 6s ease-in-out infinite;
}

.cv2-float-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.cv2-float-card strong {
  display: block;
  color: #080b12;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cv2-float-card p {
  margin: 10px 0 0;
  color: #5f6472;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cv2-float-card.card-a {
  top: 66px;
  left: 46px;
}

.cv2-float-card.card-b {
  top: 230px;
  right: 42px;
  animation-delay: -1.5s;
}

.cv2-float-card.card-c {
  left: 78px;
  bottom: 62px;
  animation-delay: -3s;
}

.cv2-signal-line {
  position: absolute;
  height: 2px;
  width: 180px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.5), transparent);
  opacity: 0.65;
  animation: cv2Pulse 2.8s ease-in-out infinite;
}

.cv2-signal-line.line-one {
  top: 202px;
  left: 180px;
  transform: rotate(20deg);
}

.cv2-signal-line.line-two {
  top: 336px;
  right: 152px;
  transform: rotate(-22deg);
  animation-delay: -0.8s;
}

.cv2-signal-line.line-three {
  bottom: 194px;
  left: 200px;
  transform: rotate(-10deg);
  animation-delay: -1.5s;
}

/* Sections */

.cv2-section {
  margin-top: clamp(74px, 9vw, 132px);
}

.cv2-section-header {
  max-width: 850px;
  margin-bottom: 34px;
}

.cv2-section-header h2,
.cv2-primary-copy h2,
.cv2-contact-copy h2,
.cv2-newsletter-copy h2,
.cv2-closing h2 {
  margin: 0;
  color: var(--lrl-ink, #080b12);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 560;
  text-wrap: balance;
}

.cv2-section-header p:not(.cv2-eyebrow),
.cv2-primary-copy p,
.cv2-contact-copy p,
.cv2-newsletter-copy p,
.cv2-closing p {
  margin: 22px 0 0;
  max-width: 780px;
  color: var(--lrl-muted, #5f6472);
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
  line-height: 1.72;
}

/* Primary LinkedIn card */

.cv2-primary-card,
.cv2-contact-card,
.cv2-newsletter-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 5vw, 62px);
  border-radius: 44px;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(124, 58, 237, 0.16), rgba(20, 184, 166, 0.18)) border-box;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.cv2-primary-copy p,
.cv2-contact-copy p,
.cv2-newsletter-copy p {
  margin-left: 0;
  margin-right: 0;
}

.cv2-primary-stack,
.cv2-contact-notes {
  display: grid;
  gap: 16px;
}

.cv2-primary-stack article,
.cv2-contact-notes article {
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.045);
}

.cv2-primary-stack span,
.cv2-contact-notes span {
  display: inline-flex;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cv2-primary-stack p,
.cv2-contact-notes p {
  margin: 16px 0 0;
  color: #5f6472;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Social cards */

.cv2-social-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr 0.925fr;
  gap: 18px;
}

.cv2-social-card,
.cv2-ecosystem-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 34%),
    #ffffff;
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.055);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.cv2-social-card.featured {
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.14), transparent 32%),
    radial-gradient(circle at 84% 78%, rgba(37, 99, 235, 0.10), transparent 36%),
    #ffffff;
}

.cv2-social-card:hover,
.cv2-ecosystem-card:hover {
  transform: translateY(-7px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 30px 76px rgba(37, 99, 235, 0.11);
}

.cv2-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cv2-card-topline span,
.cv2-ecosystem-card span {
  display: inline-flex;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cv2-card-topline span:first-child {
  font-size: 1rem;
}

.cv2-card-topline span:last-child {
  color: #14b8a6;
}

.cv2-social-card h3,
.cv2-ecosystem-card h3 {
  margin: 36px 0 0;
  color: #080b12;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 560;
}

.cv2-social-card p,
.cv2-ecosystem-card p {
  margin: 18px 0 0;
  color: #5f6472;
  font-size: 0.98rem;
  line-height: 1.62;
}

.cv2-social-card strong {
  width: fit-content;
  margin-top: auto;
  padding-top: 30px;
  color: #2563eb;
  font-weight: 900;
}

/* Contact card */

.cv2-contact-card {
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.11), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(20, 184, 166, 0.09), transparent 36%),
    #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.07);
}

/* Newsletter */

.cv2-newsletter-card {
  background:
    radial-gradient(circle at 28% 20%, rgba(37, 99, 235, 0.20), transparent 32%),
    radial-gradient(circle at 80% 82%, rgba(124, 58, 237, 0.14), transparent 36%),
    #111827;
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.20);
}

.cv2-newsletter-card .cv2-eyebrow,
.cv2-newsletter-card h2 {
  color: #ffffff;
}

.cv2-newsletter-card p {
  color: rgba(255, 255, 255, 0.76);
}

.cv2-topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

.cv2-topic-cloud span {
  display: inline-flex;
  padding: 12px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Ecosystem */

.cv2-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cv2-ecosystem-card {
  min-height: 300px;
}

/* Closing */

.cv2-closing {
  margin-top: clamp(80px, 10vw, 142px);
  padding: clamp(36px, 6vw, 70px);
  border-radius: 46px;
  text-align: center;
  border: 1px solid rgba(17, 24, 39, 0.07);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.12), transparent 40%),
    #ffffff;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.08);
}

.cv2-closing p {
  margin-left: auto;
  margin-right: auto;
}

.cv2-closing .cv2-actions {
  justify-content: center;
}

/* Animations */

@keyframes cv2Float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}

@keyframes cv2CardFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(0.6deg); }
}

@keyframes cv2Spin {
  to { transform: rotate(360deg); }
}

@keyframes cv2Pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* Responsive */

@media (max-width: 1080px) {
  .cv2-hero,
  .cv2-primary-card,
  .cv2-contact-card,
  .cv2-newsletter-card {
    grid-template-columns: 1fr;
  }

  .cv2-social-grid,
  .cv2-ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv2-hero-stage {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .connect-v2 {
    padding: 42px 18px 86px;
  }

  .cv2-hero {
    min-height: auto;
    padding: 36px 0 72px;
  }

  .cv2-hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .cv2-hero-stage {
    min-height: 520px;
    border-radius: 34px;
  }

  .cv2-section-header h2,
  .cv2-primary-copy h2,
  .cv2-contact-copy h2,
  .cv2-newsletter-copy h2,
  .cv2-closing h2 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .cv2-actions {
    flex-direction: column;
  }

  .connect-v2 .lrl-button {
    width: 100%;
  }

  .cv2-primary-card,
  .cv2-contact-card,
  .cv2-newsletter-card,
  .cv2-closing {
    border-radius: 34px;
  }

  .cv2-social-grid,
  .cv2-ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .cv2-social-card,
  .cv2-ecosystem-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .cv2-hero-stage {
    min-height: 470px;
  }

  .cv2-float-card {
    width: 78%;
    padding: 16px;
    border-radius: 22px;
  }

  .cv2-float-card.card-a {
    top: 44px;
    left: 22px;
  }

  .cv2-float-card.card-b {
    top: 188px;
    right: 18px;
  }

  .cv2-float-card.card-c {
    left: 28px;
    bottom: 42px;
  }

  .cv2-signal-line {
    display: none;
  }

  .cv2-social-card,
  .cv2-ecosystem-card {
    border-radius: 28px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv2-glow,
  .cv2-orbit,
  .cv2-float-card,
  .cv2-signal-line {
    animation: none !important;
  }

  .cv2-social-card:hover,
  .cv2-ecosystem-card:hover {
    transform: none;
  }
}
