/* Private funding modal — landing footer */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(5, 10, 20, 0.96);
}

.modal-card__header,
.modal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-card__footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-card__body {
  padding: 22px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--text);
}

[data-theme="light"] .modal-card {
  background: rgba(255, 255, 255, 0.98);
}

.footer__link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.footer__link-btn:hover {
  color: var(--cyan);
}

/* Footer — Private Funding highlight */
.landing-pre-footer {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.landing-pre-footer__inner {
  width: 100%;
}

.landing-pre-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.footer__itr-cta {
  border-color: rgba(139, 92, 246, 0.28);
  background:
    linear-gradient(118deg, rgba(139, 92, 246, 0.14) 0%, rgba(99, 102, 241, 0.08) 38%, rgba(5, 10, 20, 0.92) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(139, 92, 246, 0.08);
}

.footer__itr-cta::before {
  background: linear-gradient(180deg, #a78bfa, #6366f1);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

.footer__itr-cta .footer__funding-cta__badge {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
}

.footer__itr-cta .footer__funding-cta__btn {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 4px 24px rgba(139, 92, 246, 0.35);
}

.footer__funding-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  padding: 24px 28px 24px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 255, 0.22);
  background:
    linear-gradient(118deg, rgba(0, 212, 255, 0.14) 0%, rgba(0, 114, 255, 0.08) 38%, rgba(5, 10, 20, 0.92) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 212, 255, 0.06);
  overflow: hidden;
  box-sizing: border-box;
}

.footer__funding-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.45);
}

.footer__funding-cta__glow {
  position: absolute;
  top: -40%;
  right: -8%;
  width: 42%;
  height: 140%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.footer__funding-cta__content {
  position: relative;
  z-index: 1;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 640px;
}

.footer__funding-cta__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__funding-cta__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.footer__funding-cta__text {
  margin: 0;
  max-width: 520px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer__funding-cta__btn {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-width: 168px;
  min-height: 50px;
  padding: 14px 22px 14px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 4px 24px rgba(0, 212, 255, 0.35);
}

.footer__funding-cta__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 48%);
  pointer-events: none;
  z-index: 0;
}

.footer__funding-cta__btn:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 8px 32px rgba(0, 212, 255, 0.45);
}

.footer__funding-cta__btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 12px rgba(0, 212, 255, 0.3);
}

.footer__funding-cta__btn:focus-visible {
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 4px 24px rgba(0, 212, 255, 0.35),
    0 0 0 3px rgba(0, 212, 255, 0.28);
}

.footer__funding-cta__btn-text,
.footer__funding-cta__btn-icon {
  position: relative;
  z-index: 1;
}

.footer__funding-cta__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.14);
  transition: transform 0.22s ease, background 0.22s ease;
}

.footer__funding-cta__btn:hover .footer__funding-cta__btn-icon {
  transform: translateX(2px);
  background: rgba(5, 10, 20, 0.2);
}

.footer__funding-cta__btn svg {
  display: block;
}

@media (max-width: 991px) {
  .landing-pre-footer {
    padding: 32px 16px 20px;
  }

  .landing-pre-footer__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer__funding-cta {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 18px 20px 24px;
    gap: 20px;
  }

  .footer__funding-cta__glow {
    top: auto;
    right: -20%;
    bottom: -30%;
    width: 70%;
    height: 80%;
  }

  .footer__funding-cta__content {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .footer__funding-cta__text {
    max-width: none;
    font-size: 0.88rem;
  }

  .footer__funding-cta__btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    justify-content: center;
    white-space: normal;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .landing-pre-footer {
    padding: 28px 12px 16px;
  }

  .footer__funding-cta {
    padding: 18px 16px 18px 20px;
    gap: 16px;
    border-radius: var(--radius);
  }

  .footer__funding-cta::before {
    top: 12px;
    bottom: 12px;
    width: 3px;
  }

  .footer__funding-cta__title {
    font-size: 1.25rem;
  }

  .footer__funding-cta__badge {
    font-size: 0.62rem;
    padding: 4px 10px;
  }

  .footer__funding-cta__btn {
    padding: 13px 18px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__funding-cta__btn:hover .footer__funding-cta__btn-icon {
    transform: none;
  }
}

.pf-modal-overlay {
  z-index: 1100;
}

.pf-modal-card {
  max-width: 640px;
}

.pf-form__intro {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pf-field--full {
  grid-column: 1 / -1;
}

.pf-form__alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.pf-form__alert--error {
  background: rgba(255, 138, 138, 0.12);
  border: 1px solid rgba(255, 138, 138, 0.35);
  color: #ffb4b4;
}

.pf-form__alert--success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

[data-theme="light"] .pf-form__alert--error {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.08);
}

[data-theme="light"] .pf-form__alert--success {
  color: #047857;
  background: rgba(5, 150, 105, 0.08);
}

@media (max-width: 600px) {
  .pf-form-grid {
    grid-template-columns: 1fr;
  }

  .pf-modal-card .modal-card__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pf-modal-card .modal-card__footer .btn {
    width: 100%;
    justify-content: center;
  }
}
