@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #22c55e;
  /* Vibrant Green */
  --primary-hover: #16a34a;
  --primary-light: #dcfce7;
  --bg-color: #0d1110;
  /* Very dark rich background */
  --card-bg: rgba(26, 34, 32, 0.7);
  /* Dark greenish gray */
  --text-main: #F9FAFB;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.1);
  --error: #ef4444;
  --success: #10b981;
  --blur: blur(20px);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Elements */
.background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 10s ease-in-out infinite alternate;
}

.top-left {
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
}

.bottom-right {
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  /* Emerald */
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, 60px) scale(1.1);
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 720px;
  padding: 2rem;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo */
.logo {
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
  animation: fadeInDown 0.8s ease-out;
}

.logo-svg {
  width: calc(20% + 1vw);
  margin: auto;
}

/* Main Content */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: -0.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #E2E8F0;
  margin-bottom: 2rem;
  backdrop-filter: var(--blur);
  animation: fadeInDown 0.8s ease-out;
}

.headline {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.highlight {
  background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Form */
.newsletter-form {
  width: 100%;
  max-width: 580px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.input-group {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.375rem;
  backdrop-filter: var(--blur);
  transition: all 0.3s ease;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25), 0 4px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.875rem 1.25rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  width: 100%;
}

.newsletter-form input::placeholder {
  color: #64748B;
}

.cta-button {
  background: var(--primary);
  color: #0d1110;
  border: none;
  border-radius: 8px;
  padding: 0 1.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.cta-button:active:not(:disabled) {
  transform: translateY(1px);
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-icon {
  transition: transform 0.2s ease;
}

.cta-button:hover:not(:disabled) .btn-icon {
  transform: translateX(3px);
}

/* Form Message */
.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.25rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.error {
  color: var(--error);
}

.form-message.success {
  color: var(--success);
}

/* Social Proof */
.social-proof {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--bg-color);
  object-fit: cover;
  margin-left: -12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, z-index 0.2s ease;
  position: relative;
  z-index: 1;
}

.avatar:hover {
  transform: translateY(-4px);
  z-index: 10;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.more {
  background: #334155;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 5;
  border: 3px solid var(--bg-color);
}

.proof-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.proof-text strong {
  color: #E2E8F0;
  font-weight: 600;
}

/* Animations defined */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive constraints */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem;
  }

  .logo {
    margin-bottom: 2.5rem;
  }

  .headline {
    font-size: 2.6rem;
  }

  .subheadline {
    font-size: 1.05rem;
  }

  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.875rem;
  }

  .input-group:focus-within {
    box-shadow: none;
  }

  .newsletter-form input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  }

  .cta-button {
    width: 100%;
    padding: 1.1rem;
    justify-content: center;
    border-radius: 12px;
  }
}