/* styles.css */
/* Gradient accent colors */
:root {
  --gradient-start: #4f46e5; /* indigo */
  --gradient-end: #7c3aed;   /* violet */
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}


.hero .subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.lead-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  width: 100%;
}

.lead-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gradient-start);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.lead-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lead-form button:hover {
  opacity: 0.9;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.animation {
  padding: 2rem;
  display: flex;
  justify-content: center;
}

/* Reviews carousel - horizontal responsive */
.reviews-carousel {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  justify-content: center;
  align-items: center; /* vertically center */
  margin-bottom: 1.5rem;
  min-height: 4rem; /* ensure visible height */
}
.review {
  flex: 0 0 100%;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4rem; /* give space for text */
}
.review.active { opacity: 1; }
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 0.25rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(3, 30px);
  gap: 5px;
}

.cell {
  width: 30px;
  height: 30px;
  background: var(--gradient-start);
  opacity: 0.2;
  animation: grow 1.5s infinite ease-in-out;
}

.cell:nth-child(odd) { animation-delay: 0.2s; }
.cell:nth-child(even) { animation-delay: 0.4s; }

@keyframes grow {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
/* Added styles for modal and hero adjustments */
.hero h1 {
  position: relative;
  z-index: 2;
  color: var(--text);
  margin-top: 1rem;
}
.reviews-carousel { margin-bottom: 1.5rem; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden { display: none; }
.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
}
.close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
}
