/* ============================================================
   NOVAMAX — Landing Page Styles
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary: #1a6ecc;
  --blue-bright:  #2b8ef0;
  --blue-glow:    #3aa0ff;
  --blue-accent:  #00c3ff;
  --silver:       #c8d8ee;
  --white:        #ffffff;
  --text-muted:   #a0b4c8;
  --highlight:    #4db8ff;
  --bg-dark:      #000000;
  --input-bg:     rgba(255,255,255,0.92);
  --btn-bg:       #1a6ecc;
  --btn-hover:    #1558a8;
  --success:      #22c55e;
  --error:        #f87171;
  --font:         'Outfit', sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ── Starfield Canvas ─────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Blue glow overlay ────────────────────────────────────── */
.glow-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%,
      rgba(26, 110, 204, 0.45) 0%,
      rgba(0, 195, 255, 0.1) 50%,
      transparent 75%),
    radial-gradient(ellipse 50% 25% at 50% 102%,
      rgba(43, 142, 240, 0.6) 0%,
      transparent 65%);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 820px;
  width: 100%;
  gap: 0;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  animation: fadeDown 0.8s ease both;
}

.logo-img {
  width: 320px;
  max-width: 85vw;
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 20px rgba(43, 142, 240, 0.5))
          drop-shadow(0 0 50px rgba(43, 142, 240, 0.2));
  animation: float 4s ease-in-out infinite;
}

/* ── Headline ─────────────────────────────────────────────── */
.headline {
  font-size: clamp(22px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 40px;
  animation: fadeUp 0.9s ease 0.15s both;
  max-width: 700px;
}

.headline .highlight {
  color: var(--blue-bright);
  text-shadow: 0 0 20px rgba(43, 142, 240, 0.6);
}

/* ── Form ─────────────────────────────────────────────────── */
.form-container {
  width: 100%;
  max-width: 660px;
  margin-bottom: 22px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.subscribe-form {
  width: 100%;
}

.input-group {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 8px 32px rgba(0,0,0,0.5),
    0 0 60px rgba(43, 142, 240, 0.15);
}

.email-input {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 400;
  color: #333;
  background: var(--input-bg);
  border: none;
  outline: none;
  border-radius: 0;
  transition: background 0.2s;
}

.email-input::placeholder {
  color: #7a8ea0;
}

.email-input:focus {
  background: #fff;
}

.btn-subscribe {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-primary) 100%);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: background 0.2s, transform 0.15s;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-subscribe:hover {
  background: linear-gradient(135deg, #3aa0ff 0%, var(--blue-bright) 100%);
  transform: translateX(1px);
}

.btn-subscribe:active {
  transform: scale(0.98);
}

.btn-subscribe.loading .btn-text {
  opacity: 0;
}

.btn-subscribe.loading .btn-spinner {
  display: block;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
}

/* Form error */
.form-error {
  margin-top: 10px;
  font-size: 14px;
  color: var(--error);
  min-height: 20px;
  text-align: center;
  font-weight: 500;
}

/* Success message */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.5s ease both;
}

.success-message.show {
  display: flex;
}

.success-icon {
  width: 52px;
  height: 52px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.success-message p {
  font-size: 17px;
  font-weight: 500;
  color: #d1fae5;
}

/* ── Social proof ─────────────────────────────────────────── */
.social-proof {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-style: italic;
  animation: fadeUp 0.9s ease 0.45s both;
  margin-bottom: 24px;
}

.social-proof strong {
  color: var(--white);
  font-weight: 700;
}

/* ── Trust badges ─────────────────────────────────────────── */
.trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s ease 0.6s both;
}

.badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 16px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s;
}

.badge:hover {
  border-color: rgba(43, 142, 240, 0.4);
  color: var(--white);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

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

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.recaptcha-notice {
  font-size: 11px;
  color: rgba(160, 180, 200, 0.6);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.recaptcha-notice a {
  color: rgba(160, 180, 200, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recaptcha-notice a:hover {
  color: var(--white);
}

.grecaptcha-badge {
  visibility: hidden !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 560px) {
  .input-group {
    flex-direction: column;
    border-radius: 10px;
    overflow: visible;
    gap: 10px;
    background: transparent;
    box-shadow: none;
  }

  .email-input {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    text-align: center;
  }

  .btn-subscribe {
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(43, 142, 240, 0.4);
  }

  .headline {
    font-size: 22px;
  }

  .trust-badges {
    gap: 8px;
  }
}
