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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2b2d5e;
  line-height: 1.6;
  background: #f9f7fc;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #1b2a6e, #3a4eb8);
  box-shadow: 0 2px 12px rgba(27, 42, 110, 0.3);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8e4f0;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #c8c8e8;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e8e4f0;
  border-bottom-color: #e8e4f0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e8e0f0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections */
.section {
  padding: 6rem 1.5rem;
  scroll-margin-top: 64px;
}

.section:first-of-type {
  padding-top: 8rem;
}

.section-alt {
  background: linear-gradient(180deg, #eee8f5, #e4dff0);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1b2a6e;
}

p {
  font-size: 1.1rem;
  color: #4a4a6a;
  max-width: 640px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(27, 42, 110, 0.08);
  border-top: 3px solid #b8a0d8;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #3a4eb8;
}

.card p {
  font-size: 1rem;
}

.card ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  color: #4a4a6a;
  font-size: 1rem;
}

.card ul li {
  margin-bottom: 0.25rem;
}

/* About Layout */
.about-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-content {
  flex: 1;
}

.about-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(27, 42, 110, 0.15);
  border: 4px solid #b8a0d8;
}

/* Inline Links */
.inline-link {
  color: #3a4eb8;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.inline-link:hover {
  color: #6a5acd;
}

/* Get Started Layout */
.get-started-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.get-started-img {
  width: 280px;
  flex-shrink: 0;
  object-fit: contain;
}

.get-started-content {
  flex: 1;
}

/* Steps */
.steps {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3a4eb8, #6a5acd);
  color: #e8e4f0;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(58, 78, 184, 0.3);
}

.step h3 {
  margin-bottom: 0.4rem;
  color: #1b2a6e;
}

.step p {
  font-size: 1rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid #3a4eb8;
  border-radius: 6px;
  color: #3a4eb8;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: linear-gradient(135deg, #3a4eb8, #6a5acd);
  border-color: #6a5acd;
  color: #e8e4f0;
}

/* Follow Layout */
.follow-layout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.follow-content {
  flex: 1;
}

/* Carousel */
.carousel {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(27, 42, 110, 0.15);
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #1b2a6e;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27, 42, 110, 0.6);
  color: #e8e4f0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(27, 42, 110, 0.85);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232, 228, 240, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #e8e4f0;
}

/* FAQ */
#faq .container {
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(27, 42, 110, 0.06);
  border-left: 3px solid #b8a0d8;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #1b2a6e;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: #6a5acd;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 1rem;
  color: #4a4a6a;
}

/* Contact Form */
#contact .container {
  text-align: center;
}

#contact .container > p {
  margin: 0 auto 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 1rem auto 0;
  text-align: left;
}

.contact-form label {
  display: block;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #c8c0d8;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #6a5acd;
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.15);
}

.contact-form button {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #3a4eb8, #6a5acd);
  color: #e8e4f0;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(58, 78, 184, 0.3);
}

.form-status {
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.success {
  color: #2e7d32;
}

.form-status.error {
  color: #c62828;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #2e3fa0, #5a4abf);
  box-shadow: 0 4px 14px rgba(58, 78, 184, 0.4);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #0f1a4a, #1b2a6e);
  color: #9898c8;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #1b2a6e, #2a3a8e);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px rgba(27, 42, 110, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: none;
  }

  .follow-layout {
    flex-direction: column;
  }

  .carousel {
    width: 100%;
    max-width: 320px;
  }

  .about-layout {
    flex-direction: column-reverse;
  }

  .about-img {
    width: 180px;
    height: 180px;
  }

  .get-started-layout {
    flex-direction: column;
  }

  .get-started-img {
    width: 200px;
  }
}
