html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #222;
}

.page-wrapper {
  position: relative;
}

header {
  /* background-color: #171588; */
  background-color: #11063e;
  padding: 1rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

h1 {
  margin-block: 0.67em;
  font-size: 2em;
}

.logo-and-toggle {
  background-color: #11063e;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  display: none;
  background: #ffffff22;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1100;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}

.bg-primary {
  background-color: #3a30c6;
  color: white;
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to right, #171588, #3a30c6);
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.cta-button {
  background-color: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #2a23a2;
}

a.cta-button {
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
}

.solution {
  padding: 4rem 2rem;
  margin: 0 auto;
}

.container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 2rem auto;
}

.container.flex-reverse {
  flex-direction: row-reverse;
}

.container div {
  width: 50%;
}

.container-text-left {
  padding-left: 4rem;
}

.container-text-right {
  padding-right: 4rem;
}

.container ul li {
  margin-bottom: 1rem;
}

.features {
  padding: 4rem 2rem;
  display: grid;
  gap: 2rem;
  /* max-width: 1000px; */
  margin: auto;
}

.feature {
  margin: 0 auto;
  width: 50%;
  max-width: 600px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background-color: #f9f9ff;
  color: #000;
}

.audience {
  padding: 4rem 2rem;
  margin: 0 auto;
}

.cta {
  background-color: #11063e;
  color: white;
  margin: 2rem auto 0;
  padding: 2rem 2rem 4rem 2rem;
  text-align: center;
}

.image-container {
  padding: 0 2rem;
}

/* Modal Alert Overlay */
.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.alert-modal {
  background: #11063e;
  color: white;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  margin: 20px;
  animation: slideIn 0.3s ease-out;
}

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

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 10px;
  border-bottom: 1px solid #eee;
}

.alert-title {
  color: #ffffff;
  margin: 0;
  font-size: 18px;
}

.alert-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.alert-close:hover {
  background: rgba(255,255,255,0.1);
}

.alert-body {
  color: #e0e0ff;
  padding: 20px;
}

.alert-message {
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.alert-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.alert-actions .cta-button {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

.alert-success .alert-title {
  color: #155724;
}

.alert-success .alert-header {
  border-bottom-color: #c3e6cb;
}

.alert-error .alert-title {
  color: #721c24;
}

.alert-error .alert-header {
  border-bottom-color: #f5c6cb;
}

.spinner {
  position: relative;
  top: 2px;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

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

.privacy {
  padding: 1rem 3rem 1rem 1rem;
}

.terms-of-service {
  padding: 1rem 1rem 1rem 3rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #f1f2f6;
  font-size: 0.9rem;
  color: #555;
}

.grecaptcha-badge {
  display: none !important;
}

/* Mobile styles */
@media (max-width: 600px) {
  nav#nav-links {
    display: block;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background-color: rgba(17, 6, 62, 0.95); 
    backdrop-filter: blur(6px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: max-height 0.6s ease, opacity 0.5s ease, transform 0.5s ease;
  }

  nav#nav-links.show {
    max-height: 500px; /* set high enough to fit all links */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
    z-index: 1100;
    transition: background 0.3s ease, color 0.3s ease;
  }

  header {
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    padding: 1rem;
  }

  .hero {
    padding: 2rem 2rem 4rem 2rem;
  }

  .logo-and-toggle {
    justify-content: space-between;
    width: 100%;
  }

  nav#nav-links a {
    margin: 2.5rem 0;
    font-weight: bold;
    text-decoration: none;
    display: block;
  }

  .solution {
    padding: 2rem 1rem;
  }

  .container {
    display: block;
  }

  .container div {
    width: auto;
  }

  .container-text-left {
    padding-left: inherit;
  }

  .audience {
    padding: 2rem 1rem;
  }

  .image-container {
    padding: 0 0.5rem;
  }

  .feature {
    width: calc(100% - 4rem);
    /* padding: 0; */
  }

  .alert-modal {
    width: 95%;
    margin: 10px;
  }

  .alert-header, .alert-body {
    padding: 15px;
  }

  .alert-title {
    font-size: 16px;
  }

  .alert-actions {
    flex-direction: column;
  }
}
