/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  line-height: 1.6;
  color: #2e2554;
}

/* Top Header */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 20px 68px;
}

.logo {
  width: auto;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  padding: 120px 68px 80px;
  overflow: hidden;
  max-width: 1962px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 1792px;
  gap: 40px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  align-items: center;
}

.hero-text-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: normal;
  width: 50%;
  margin-left: 0;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
  gap: 32px;
  max-width: 600px;
}

.hero-titles {
  width: 100%;
}

.hero-title {
  color: rgba(113, 100, 176, 1);
  font-size: 96px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-subtitle {
  color: rgba(46, 46, 126, 1);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

.cta-button {
  border-radius: 100px;
  background-color: #7164b0;
  display: flex;
  padding: 24px 48px;
  gap: 24px;
  color: #FFF;
  text-align: center;
  font-family: Quicksand, -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #5a4d8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 100, 176, 0.2);
}

.cta-text {
  align-self: stretch;
  margin: auto 0;
  font-weight: 500;
  font-family: Quicksand, -apple-system, Roboto, Helvetica, sans-serif;
  color: #FFF;
  text-align: center;
  line-height: 100%;
}

.cta-arrow {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  align-self: stretch;
  margin: auto 0;
  flex-shrink: 0;
}

.hero-image-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: normal;
  width: 50%;
  margin-left: 20px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 1.39;
  object-fit: contain;
  object-position: center;
  margin-right: -4px;
}

/* Features Section */
.features-section {
  background-color: rgba(242, 242, 242, 1);
  display: flex;
  width: 100%;
  padding: 96px 80px;
  flex-direction: column;
  align-items: center;
  color: rgba(46, 37, 84, 1);
  text-align: center;
  justify-content: center;
}

.features-content {
  display: flex;
  width: 1216px;
  max-width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
}

.features-header {
  align-self: center;
  display: flex;
  width: 823px;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.features-title {
  font-size: 48px;
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.features-description {
  font-size: 18px;
  font-family:
    Inter,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  line-height: 29px;
  margin-top: 24px;
}

.description-text {
  color: rgba(46, 37, 84, 1);
}

.description-emphasis {
  font-style: italic;
  color: rgba(46, 37, 84, 1);
}

.features-grid {
  display: flex;
  margin-top: 54px;
  min-height: 283px;
  width: 100%;
  align-items: stretch;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-card {
  flex: 0 0 calc(33.333% - 27px);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
  padding: 40px 48px;
}

.feature-icon {
  width: 80px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 40px;
  align-self: center;
}

.feature-content {
  margin-top: 24px;
  width: 100%;
}

.feature-title {
  font-size: 32px;
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.feature-description {
  font-size: 18px;
  font-family:
    Inter,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  line-height: 26px;
  margin-top: 18px;
}

/* Signup Section */
.signup-section {
  background-color: rgba(113, 100, 176, 1);
  position: relative;
  display: flex;
  width: 100%;
  padding: 96px 80px;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.signup-content {
  z-index: 0;
  display: flex;
  min-width: 240px;
  margin: auto 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  width: 586px;
}

.signup-header {
  align-self: center;
  width: 539px;
  max-width: 100%;
  text-align: center;
}

.signup-title {
  color: rgba(245, 188, 173, 1);
  font-size: 48px;
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.signup-description {
  color: rgba(255, 255, 255, 1);
  font-size: 18px;
  font-family:
    Inter,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 16px;
}

.signup-form-container {
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  margin-top: 54px;
  width: 100%;
  padding: 24px 32px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.signup-form {
  width: 100%;
}

.form-fields {
  width: 100%;
  font-family:
    Inter,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 16px;
  color: rgba(79, 65, 138, 1);
  font-weight: 400;
  line-height: 1.6;
}

.form-field {
  width: 100%;
}

.form-field:not(:first-child) {
  margin-top: 24px;
}

.form-label {
  display: block;
  margin-bottom: 16px;
}

.form-input {
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(204, 204, 204, 1);
  display: flex;
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #7164b0;
  box-shadow: 0 0 0 2px rgba(113, 100, 176, 0.2);
}

.form-submit-button {
  color: #e1dff0;
  align-self: stretch;
  border-radius: 16px;
  background-color: rgba(79, 65, 138, 1);
  margin-top: 32px;
  width: 100%;
  padding: 16px;
  gap: 8px;
  overflow: hidden;
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}

.form-submit-button:hover {
  background-color: rgba(65, 51, 118, 1);
}

.form-submit-button.loading {
  background-color: #cccccc;
  cursor: not-allowed;
  pointer-events: none;
  color: transparent;
}

.form-submit-button.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #f3f3f3;
  border-top: 2px solid #444;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  z-index: 2;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Testimonials Section */
.testimonials-section {
  background-color: rgba(242, 242, 242, 1);
  display: flex;
  width: 100%;
  padding: 96px 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testimonials-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.testimonials-header {
  width: 833px;
  max-width: 100%;
  text-align: center;
}

.testimonials-title {
  color: #2e2554;
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.testimonials-description {
  color: rgba(46, 37, 84, 1);
  font-size: 18px;
  font-family:
    Inter,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 24px;
}

.testimonials-grid {
  display: flex;
  margin-top: 54px;
  gap: 24px;
  justify-content: center;
  flex-grow: 0;
  margin-left: auto;
  margin-right: auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  color: rgba(46, 37, 84, 1);
}

.testimonial-card {
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
  min-width: 240px;
  padding: 40px;
  width: 400px;
}

.testimonial-icon {
  width: 40px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}

.testimonial-content {
  margin-top: 24px;
  width: 100%;
}

.testimonial-quote {
  font-size: 18px;
  font-family:
    Inter,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  line-height: 31px;
  margin: 0;
}

.testimonial-author {
  font-size: 24px;
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 18px;
}

/* Footer */
.footer {
  background-color: rgba(25, 25, 24, 1);
  display: flex;
  width: 100%;
  padding: 32px 120px;
  align-items: center;
  gap: 40px 100px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo {
  width: 180px;
  aspect-ratio: 3.6;
  object-fit: contain;
  object-position: center;
  align-self: stretch;
  margin: auto 0;
  flex-shrink: 0;
}

.footer-content {
  align-self: stretch;
  display: flex;
  min-width: 240px;
  margin: auto 0;
  flex-direction: column;
  align-items: center;
  font-family:
    Quicksand,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  color: rgba(255, 255, 255, 1);
  font-weight: 400;
  line-height: 1.2;
  justify-content: flex-start;
  flex: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-tagline {
  font-size: 16px;
  text-align: center;
  align-self: start;
  width: 100%;
  margin: 0;
}

.footer-terms {
  display: flex;
  margin-top: 10px;
  width: 100%;
  align-items: start;
  gap: 40px;
  font-size: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: start;
}

.footer-link {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
  align-self: stretch;
  margin: auto 0;
}

.footer-link:hover {
  color: rgba(245, 188, 173, 1);
}

.footer-social {
  align-self: stretch;
  display: flex;
  margin: auto 0;
  align-items: center;
  gap: 20px;
  justify-content: start;
}

.social-link {
  display: block;
}

.social-icon {
  width: 40px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  align-self: stretch;
  margin: auto 0;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.8;
}

/* Media Queries */
@media (max-width: 991px) {
  .top-header {
    height: 70px;
    padding: 15px 40px;
  }
  
  .logo {
    height: 35px;
  }
  
  .hero-section {
    padding: 100px 40px 60px;
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 40px;
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .hero-text-column {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
  }

  .hero-titles {
    text-align: center;
    width: 100%;
  }

  .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero-image-column {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .cta-button {
    padding: 20px 40px;
    font-size: 32px;
  }

  .cta-text {
    font-size: 32px;
  }

  .cta-arrow {
    width: 32px;
    height: 32px;
  }

  .features-section {
    max-width: 100%;
    padding: 96px 20px;
  }

  .features-title {
    max-width: 100%;
    font-size: 40px;
  }

  .features-description {
    max-width: 100%;
  }

  .features-grid {
    max-width: 100%;
    margin-top: 40px;
  }

  .feature-card {
    flex: 0 0 calc(50% - 20px);
    padding: 40px 20px;
  }

  .signup-section {
    max-width: 100%;
    padding: 96px 20px;
  }

  .signup-title {
    max-width: 100%;
    font-size: 40px;
  }

  .signup-description {
    max-width: 100%;
  }

  .signup-form-container {
    padding: 24px 20px;
    margin-top: 40px;
  }

  .form-fields {
    max-width: 100%;
    white-space: initial;
  }

  .form-field {
    max-width: 100%;
    white-space: initial;
  }

  .form-label {
    max-width: 100%;
  }

  .form-input {
    max-width: 100%;
  }

  .form-submit-button {
    max-width: 100%;
    padding: 16px 20px;
  }

  .testimonials-section {
    max-width: 100%;
    padding: 96px 20px;
  }

  .testimonials-content {
    max-width: 100%;
  }

  .testimonials-title {
    max-width: 100%;
    font-size: 40px;
  }

  .testimonials-description {
    max-width: 100%;
  }

  .testimonials-grid {
    max-width: 100%;
    margin-top: 40px;
  }

  .testimonial-card {
    padding: 40px 20px;
  }

  .footer {
    max-width: 100%;
    padding: 32px 20px;
  }

  .footer-content {
    max-width: 100%;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-terms {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .top-header {
    height: 60px;
    padding: 10px 20px;
  }
  
  .logo {
    height: 30px;
  }
  
  .hero-section {
    padding: 80px 20px 40px;
  }
  
  .hero-content {
    gap: 32px;
  }
  
  .hero-text-column {
    width: 100%;
    text-align: center;
  }
  
  .hero-text-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-image-column {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .hero-image {
    width: 360px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 48px;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 24px;
    text-align: center;
  }
  
  .cta-button {
    padding: 16px 32px;
    font-size: 24px;
    gap: 16px;
  }
  
  .cta-text {
    font-size: 24px;
  }
  
  .cta-arrow {
    width: 24px;
    height: 24px;
  }

  .features-section {
    padding: 60px 20px;
  }

  .features-grid {
    gap: 24px;
  }

  .features-description {
    font-size: 14px;
  }

  .signup-section {
    padding: 60px 20px;
  }

  .testimonials-section {
    padding: 60px 20px;
  }

  .testimonials-description {
    font-size: 14px;
  }

  .footer {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-logo {
    width: 100px;
  }

  .footer-tagline {
    align-self: center;
  }

  .footer-terms {
    gap: 24px;
  }

  .feature-card {
    flex: 0 0 100%;
  }
}
