/* Design Variables & Token System (Green Theme) */
:root {
  --bg-dark: #040c07;
  --card-bg: rgba(6, 20, 12, 0.55);
  --border-color: rgba(255, 255, 255, 0.07);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --primary-green: #10b981;
  --accent-glow-green: #059669;
  --light-mint: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.12);
  --font-family: "Outfit", sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & Body setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll globally */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-y: hidden; /* Disable vertical scroll on desktop */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Full-screen background image with elegant dark overlay for contrast */
.bg-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(4, 12, 7, 0.65), rgba(4, 12, 7, 0.7)), url("1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: -2;
  pointer-events: none;
}

/* Background animated green glow spots */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--primary-green) 0%,
    rgba(5, 150, 105, 0.08) 70%
  );
  top: -120px;
  left: -120px;
  animation: floatGlow1 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #064e3b 0%, rgba(52, 211, 153, 0.05) 75%);
  bottom: -150px;
  right: -100px;
  animation: floatGlow2 30s infinite alternate ease-in-out;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    var(--accent-glow-green) 0%,
    rgba(4, 12, 7, 0) 70%
  );
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatGlow3 20s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(120px, 90px) scale(1.15);
  }
}

@keyframes floatGlow2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-100px, -110px) scale(0.95);
  }
}

@keyframes floatGlow3 {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.25;
  }
  100% {
    transform: translate(-45%, -55%) scale(1.2);
    opacity: 0.5;
  }
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Header & Logo styling (Matching user image) */
.header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-section .logo-wrapper {
  justify-content: center;
  margin-bottom: 2.5rem;
}

.logo-wrapper img {
  max-height: 55px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transition: var(--transition-smooth);
}

.logo-wrapper img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.6));
}

.logo-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.logo-main-text {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 0.85;
}

.logo-sub-text {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #ffffff;
  opacity: 0.95;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.logo-right {
  display: flex;
  align-items: center;
}

.logo-x-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
  animation: xGlow 4s infinite alternate ease-in-out;
}

@keyframes xGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
  }
}

/* Main Content & Glass Card styling */
.main-content {
  width: 100%;
  max-width: 820px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  width: 100%;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  animation: cardAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardAppear {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
  transition: all 1.5s ease-in-out;
}

/* Remove box boundaries (background, border, shadow, shine) for the main content card */
.main-content .glass-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  overflow: visible; /* Prevent clipping/truncation of text */
}

.main-content .glass-card::before {
  display: none;
}

/* Badges & Titles */
.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  color: var(--light-mint);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.main-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2.75rem;
  position: relative;
  color: #ffffff;
  text-shadow:
    0 0 25px rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap; /* Keep on 1 line on desktop */
}

/* Glowing accent underline */
.main-title::before {
  content: "";
  position: absolute;
  bottom: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(52, 211, 153, 0) 0%,
    var(--light-mint) 50%,
    rgba(52, 211, 153, 0) 100%
  );
  box-shadow:
    0 0 15px rgba(52, 211, 153, 0.9),
    0 0 5px rgba(52, 211, 153, 0.5);
  border-radius: 99px;
}

.main-title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 140%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(16, 185, 129, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
  filter: blur(15px);
}

.gradient-text {
  background: linear-gradient(
    120deg,
    #ffffff 20%,
    var(--light-mint) 50%,
    #ffffff 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 15px rgba(52, 211, 153, 0.45));
  animation: shineText 5s linear infinite;
  display: inline;
}

@keyframes shineText {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

.description-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 3rem auto;
}

/* Countdown component styling */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 20, 12, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 18px;
  padding: 1.25rem;
  min-width: 105px;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.countdown-box:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow:
    0 15px 35px rgba(16, 185, 129, 0.15),
    0 0 20px rgba(52, 211, 153, 0.1);
}

.countdown-value {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, var(--light-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.25));
  font-family: "Outfit", monospace;
}

.countdown-divider {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--light-mint);
  opacity: 0.8;
  margin-top: -1.5rem;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
  animation: blinkDivider 1.5s infinite alternate ease-in-out;
}

@keyframes blinkDivider {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.95;
  }
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Subscription Form styling */
.signup-container {
  max-width: 520px;
  margin: 0 auto;
}

.signup-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.subscribe-form {
  position: relative;
}

.input-group {
  display: flex;
  background: rgba(6, 20, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 50px;
  padding: 0.35rem;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-group:focus-within {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.12);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
}

.email-input::placeholder {
  color: #4b5563;
}

.submit-btn {
  background: linear-gradient(
    135deg,
    var(--light-mint) 0%,
    var(--primary-green) 100%
  );
  border: none;
  outline: none;
  color: #030805;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: var(--transition-smooth);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.form-message {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
  transition: var(--transition-smooth);
  opacity: 0;
  text-align: center;
}

.form-message.success {
  color: #34d399;
  opacity: 1;
}

.form-message.error {
  color: #f87171;
  opacity: 1;
}

/* Footer Section */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--light-mint);
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--light-mint);
  transform: translateY(-2px);
}

/* Branding tagline matching the image bottom logo */
.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  opacity: 0.75;
  margin-top: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
}

/* Modal Overlay & Modal Window design */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 10, 6, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 500px;
  width: 90%;
  padding: 3rem;
  border-radius: 20px;
  text-align: left;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: #ffffff;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body p {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Contact Footer styling */
.contact-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  margin-top: auto; /* Push it to the bottom of container */
  padding-top: 1.5rem;
  z-index: 2;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.contact-icon {
  color: var(--light-mint);
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.4));
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.contact-link:hover {
  color: var(--light-mint);
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.contact-sep {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

.contact-divider-vertical {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

/* Page sections to split layout and reveal the background center logo */
.top-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1rem;
}

.bottom-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1rem;
}

/* Mobile Responsiveness queries (Consolidated & Optimized) */
@media (max-width: 768px) {
  .bg-watermark {
    background-image:
      linear-gradient(rgba(4, 12, 7, 0.65), rgba(4, 12, 7, 0.7)), url("moblie.png");
  }

  body {
    display: block; /* Disable flex centering on mobile to avoid overflow cuts */
    height: auto;
    min-height: 100vh;
    overflow-y: auto; /* Enable scroll if needed on short screens */
  }

  .container {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 2.25rem 1rem;
    box-sizing: border-box;
  }

  .logo-wrapper img {
    max-height: 44px; /* Scaled down logo */
  }

  .top-section .logo-wrapper {
    margin-bottom: 1.5rem; /* Reduced spacing on mobile */
  }

  .main-title {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem); /* Dynamically scales to prevent cutting off */
    line-height: 1.35;
    white-space: normal;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
  }

  .main-title::before {
    width: 100px;
    bottom: -0.75rem;
  }

  .signup-container {
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .signup-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

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

  .email-input {
    width: 100%;
    background: rgba(6, 20, 12, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    padding: 0.95rem 1.5rem;
    text-align: center;
  }

  .email-input:focus {
    border-color: rgba(16, 185, 129, 0.4);
  }

  .submit-btn {
    width: 100%;
    border-radius: 50px;
    padding: 0.95rem 1.5rem;
    justify-content: center;
  }

  .top-section {
    margin-top: 1rem;
  }

  .bottom-section {
    gap: 1.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .contact-footer {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 1.5rem;
  }

  .contact-divider-vertical {
    display: none;
  }

  .contact-links {
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
  }

  .contact-sep {
    display: none;
  }
}
