/* ==========================================================================
   cta.css — "Stay in the loop" with dark sky/cloud background
   Source: alex-wbs.framer.website — video frame 38
   ========================================================================== */

.cta-section {
  position: relative;
  padding: 120px var(--gutter);
  background: #0a1a2a;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--cta-bg, url('https://images.unsplash.com/photo-1518391846015-55a9cc003b25?w=1920&q=80'));
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  filter: hue-rotate(190deg) saturate(0.9) brightness(0.6);
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg,
    rgba(10, 26, 42, 0.7) 0%,
    rgba(20, 40, 60, 0.4) 50%,
    rgba(10, 26, 42, 0.6) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 540px;
  width: 100%;
}

.cta-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.cta-title .line-white { color: var(--white); display: block; }
.cta-title .line-red { color: var(--red); display: block; }

.cta-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  margin-top: 12px;
}

.cta-form__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.cta-form__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-form__input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.15);
}

.cta-form__submit {
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.cta-form__submit:hover {
  background: var(--white);
  color: var(--text);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .cta-section .container { justify-content: center; }
  .cta-content { text-align: center; align-items: center; }
}

@media (max-width: 640px) {
  .cta-section { padding: 80px var(--gutter); }
  .cta-form { flex-direction: column; }
}
