/* ================= CTA SECTION ================= */

.cta-section {
  width: 100%;
  padding: 120px 0;
  text-align: center;
}

.cta-container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.cta-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 35px;
  color: var(--text);
}

.cta-subtext {
  max-width: 700px;
  margin: 0 auto 70px;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
}

/* ================= CTA CARDS ================= */

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cta-card {
  position: relative;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);

  border-radius: 22px;
  padding: 36px 26px;
  min-height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: var(--text);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* darker glass in dark mode */
body.dark .cta-card {
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* gradient border */
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;

  background: linear-gradient(
    135deg,
    var(--brand-1),
    var(--brand-2)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* card content */
.cta-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;

  background: linear-gradient(
    90deg,
    var(--brand-1),
    var(--brand-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .cta-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cta-card::before {
    display: none;
  }

  .cta-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
  }

  body.dark .cta-card {
    background: rgba(0, 0, 0, 0.35);
  }

  section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (max-width: 600px) {
  .cta-card {
    padding: 20px 16px;
    min-height: 180px;
  }

  .cta-card h3 {
    font-size: 1.05rem;
  }

  .cta-card p {
    font-size: 0.9rem;
  }
}
