/* ===== CSS Variables ===== */
:root {
  --purple-dark: #3B2E71;
  --purple-medium: #5A4EAC;
  --purple-light: #E8E7F8;
  --text-dark: #2F2E4E;
  --text-light: #444;
  --white: #fff;
  --border-radius: 4px;
  --transition-duration: 0.2s;
  --max-width: 1200px;
}

/* ===== Reset and Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Layout Components ===== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 5vw 1rem 2rem 1rem;
}

.hero-text .logo {
  max-height: 5rem;
  max-width: 60vw;
  margin: 0 auto 1rem auto;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--purple-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text .quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-light);
}

/* ===== Signup Form ===== */
.signup-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 0 1rem;
}

.signup-content h3 {
  font-size: 1.3rem;
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}

.signup-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.signup-form input[type="email"] {
  flex: 1 1 250px;
  max-width: 300px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--purple-medium);
  border-radius: var(--border-radius);
  font-size: 1rem;
  outline: none;
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-light);
}

.signup-form button,
.btn-primary {
  flex: 0 0 auto;
  background: var(--purple-dark);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-duration);
}

.signup-form button:hover,
.btn-primary:hover {
  background: var(--purple-medium);
}

.signup-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Scroll Down Button ===== */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-down a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: color var(--transition-duration);
}

.scroll-down a:hover {
  color: var(--purple-medium);
}

.scroll-down .material-icons {
  font-size: 24px;
}

/* ===== Particles Background ===== */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 10vw;
  height: 10vh;
  margin: 0;
  z-index: 0;
}

/* ===== Solution Section ===== */
.solution {
  background: var(--purple-light);
  padding: 4rem 0;
  z-index: 1;
  position: relative;
}

.solution-content {
  max-width: 80vw;
  margin: 0 auto;
  text-align: center;
}

.solution-content .avatar {
  width: 10rem;
  margin-bottom: 0;
}

.solution-content h2 {
  font-size: 3rem;
  color: var(--purple-dark);
  margin-bottom: 1rem;
}

.solution-content h2 small {
  display: block;
  font-size: 1rem;
  color: var(--purple-medium);
  margin-top: 0;
}

.solution-content p {
  margin-bottom: 1.5rem;
}

.solution-content h3 {
  color: var(--purple-dark);
  margin-bottom: 1rem;
}

.solution-button {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

/* ===== Features Grid ===== */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.feature {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

.feature h4 {
  font-size: 1rem;
  color: var(--purple-medium);
}

/* ===== Benefits Section ===== */
.benefits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4rem 0;
  z-index: 1;
  position: relative;
  background: var(--white);
}

.benefits-list {
  flex: 1;
  min-width: 300px;
}

.benefits-list h2 {
  font-size: 2rem;
  color: var(--purple-dark);
  margin-bottom: 1rem;
}

.benefits-list ul {
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.benefits-list .material-icons {
  font-size: 24px;
  margin-right: 0.75rem;
}

.benefits-list li p {
  margin: 0;
}

.benefits-image {
  flex: 1;
  min-width: 300px;
  text-align: right;
  margin-right: 0;
}

.benefits-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1px;
}

/* ===== Footer ===== */
footer {
  background: var(--purple-dark);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

footer p {
  margin-bottom: 1rem;
}

.social-icons {
  margin: 1rem 0;
}

.social-icons a {
  margin: 0 0.5rem;
  display: inline-block;
}

.social-icons .material-icons {
  font-size: 32px;
  transition: color var(--transition-duration);
}

.social-icons a:hover .material-icons {
  color: var(--purple-light);
}

.legal-links {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.legal-links a {
  text-decoration: underline;
  color: inherit;
  margin-right: 1rem;
}

/* ===== Media Queries ===== */

/* Tablet and Desktop */
@media (min-width: 768px) {
  .hero {
    padding: 2rem 0;
  }
  
  .hero-text {
    max-width: 70vw;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .hero-text .quote,
  .hero-text p {
    font-size: 1.125rem;
  }
  
  .signup-content {
    margin-top: 0;
  }
  
  .signup-form input[type="email"],
  .signup-form button {
    font-size: 1.125rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero-text {
    text-align: left;
    padding: 5vw 1rem 2rem 1rem;
  }
  
  .signup-content {
    text-align: left;
    padding: 0 1rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text .quote,
  .hero-text p {
    font-size: 0.9rem;
  }
  
  .hero-text .logo {
    max-width: 60vw;
  }
  
  .signup-form {
    margin-top: 0;
    gap: 1rem;
  }
  
  .signup-form input[type="email"],
  .signup-form button {
    width: 100%;
    max-width: none;
  }
  
  .solution-content h2 {
    font-size: 2rem;
  }
  
  .benefits {
    flex-direction: column;
    text-align: center;
  }
  
  .benefits-image {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .solution-content h2 {
    font-size: 1.8rem;
  }
  
  .benefits-list h2 {
    font-size: 1.5rem;
  }
  
  .features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    max-width: 100%;
    width: 100%;
  }
}
