/* ========================
   RESET & BASE
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

img {
  width: 100%;
  border-radius: 12px;
}

section {
  padding: 100px 0;
}


/* ========================
   NAVBAR
======================== */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #4c6fff;
}

.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4c6fff;
}

.mobile-signup {
  display: none;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}


/* ========================
   BUTTONS
======================== */
.btn-primary {
  background: #4c6fff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #3a5ce0;
  transform: translateY(-2px);
}

.btn-purple {
  background: #a54cff;
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn-purple:hover {
  background: #8f3de6;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: #333;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* ========================
   HERO
======================== */
.hero-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  width: 100%;

}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.15;
}

.hero span {
  color: #4c6fff;
}

.hero p {
  margin: 20px 0;
  color: #555;
  max-width: 450px;
}

.hero-img {
  flex: 1;
  min-width: 0;
  margin-top: -50px;
  margin-bottom: -50px;
  top: 10%;
}

.hero-text {
  flex: 1;
}


/* ========================
   FEATURES
======================== */
.features {
  text-align: center;
}

.subtitle {
  color: #777;
  margin-top: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.card {
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.features h2,
.testimonials h2 {
  font-size: 38px;
}

.card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 26px;
  line-height: 1;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 17px;
}


/* ========================
   ABOUT
======================== */
.about {
  display: flex;
  align-items: center;
  gap: 60px;
  
}

.about-img,
.about-text {
  flex: 1;
  min-width: 0;
}

.about span {
  color: #a54cff;
}

.about ul {
  margin-top: 20px;
  list-style: none;
}

.about li {
  margin: 10px 0;
  color: #444;
}

.about-text h2 {
  font-size: 38px;
  line-height: 1.2;
}

.about-text p {
  margin-top: 16px;
  color: #555;
}

.about-text .btn-purple {
  margin-top: 28px;
}


/* ========================
   TESTIMONIALS
======================== */
.testimonials {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.testimonial {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #4c6fff, #a54cff); */
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role {
  font-size: 13px;
  color: #888;
}

.stars {
  margin-left: auto;
  color: #f5a623;
  font-size: 14px;
}

.testimonial > p {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}


/* ========================
   CTA
======================== */
.cta {
  background: linear-gradient(90deg, #5b6cff, #b347ff);
  color: #fff;
  text-align: center;
  padding: 120px 0;
}

.cta h2 {
  font-size: 36px;
}

.cta p {
  margin-top: 14px;
  font-size: 16px;
  opacity: 0.9;
}

.cta-note {
  margin-top: 12px !important;
  font-size: 13px !important;
  opacity: 0.7 !important;
}


/* ========================
   FOOTER
======================== */
footer {
  background: #050c2e;
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-brand p {
  color: #bbb;
  margin-top: 10px;
  font-size: 14px;
}

footer h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #fff;
}

footer a {
  display: block;
  color: #bbb;
  text-decoration: none;
  margin-top: 8px;
  font-size: 14px;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  color: #aaa;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s, transform 0.2s;
  margin: 0 !important;
  overflow: visible;
}

.social-icon svg {
  display: block;
  flex-shrink: 0;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}


/* ========================
   SCROLL ANIMATION
======================== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card animation */
.card,
.testimonial {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

.card.active,
.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

/* Text element animations */
.anim-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-text.active {
  opacity: 1;
  transform: translateY(0);
}

.anim-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-left.active {
  opacity: 1;
  transform: translateX(0);
}

.anim-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-right.active {
  opacity: 1;
  transform: translateX(0);
}


/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
  .hero-img {
    margin-top: 10px;
  }
}

/* Fix hero top spacing on mobile */
@media (max-width: 900px) {
  .hero-section {
    padding: 0;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
/* Center about section on mobile */
@media (max-width: 900px) {
  .about {
    text-align: center;
  }

  .about ul {
    display: inline-block;
    text-align: left;
  }

  .about-text .btn-purple {
    display: block;
    margin: 28px auto 0;
  }
}
@media (max-width: 900px) {
  .hero-img {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .hero-img img {
    max-height: 280px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
  }

  .hero-section {
    overflow: hidden;
    padding-bottom: 40px;
  }
}
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-img {
    width: 100%;
  }

  .about {
    flex-direction: column;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-right > .btn-primary {
    display: none;
  }

  .desktop-signup {
    display: none;
  }

  .mobile-signup {
    display: inline-block !important;
    margin-top: 14px;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta h2 {
    font-size: 26px;
  }
}


/* ========================
   SIGN UP MODAL
======================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 50, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 24px 60px rgba(76, 111, 255, 0.18);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: #333; }

.modal-logo {
  font-size: 22px;
  font-weight: 700;
  color: #4c6fff;
  margin-bottom: 16px;
  text-align: center;
}

.modal-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  text-align: center;
}

.modal-subtitle {
  color: #666;
  font-size: 15px;
  margin-bottom: 28px;
  text-align: center;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  padding: 0;
  margin-left: 02%;
  text-align: left;
  width: 100%;
}

.optional {
  font-weight: 400;
  color: #aaa;
}

.input-group input {
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

.input-group input:focus {
  border-color: #4c6fff;
  box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.12);
}

.input-group input.field-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.field-error-msg {
  color: #e53e3e;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-error-msg.show {
  display: block;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding-right: 42px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.toggle-pw:hover { opacity: 1; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #555;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #4c6fff;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.checkbox-row a {
  color: #4c6fff;
  text-decoration: none;
}

.error-msg {
  color: #e53e3e;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

.btn-modal-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #4c6fff, #a54cff);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  font-family: inherit;
}

.btn-modal-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.modal-login {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #777;
}

.modal-login a {
  color: #4c6fff;
  text-decoration: none;
  font-weight: 600;
}

/* Success screen */
.success-icon {
  font-size: 56px;
  text-align: center;
  margin-bottom: 16px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

#successView .modal-title,
#successView .modal-subtitle {
  text-align: center;
}

.success-info {
  background: linear-gradient(135deg, #f0f4ff, #faf5ff);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #444;
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid #e0e8ff;
}

@media (max-width: 600px) {
  .modal-box {
    padding: 32px 22px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}