:root {
  --primary: #7E57C2;
  --primary-dark: #5E35B1;
  --secondary: #26A69A;
  --light: #F5F3FF;
  --dark: #1A202C;
  --gray-100: #F7FAFC;
  --gray-200: #EDF2F7;
  --gray-400: #CBD5E0;
  --gray-600: #718096;
  --gray-700: #4A5568;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

/* ================== HEADER ================== */
.site-header {
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  margin-right: 8px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease-in-out;
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

.nav a:hover { color: var(--primary); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

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

.btn--dark { background: var(--primary); color: white !important; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.nav-toggle { display: none; }

/* ================== HERO ================== */
.hero {
  background: radial-gradient(circle at 50% 0%, #F9FAFB, #FFFFFF);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-copy, .hero-visual { flex: 1; }

.eyebrow {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.grad {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.cta-form { display: flex; gap: 1rem; }
.cta-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-400);
  border-radius: 8px;
  font-size: 1rem;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.2);
}

.user-profiles {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
}

.profile-avatars { display: flex; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -12px;
  overflow: hidden;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.avatar:first-child { margin-left: 0; }
.profile-avatars:hover .avatar { transform: translateX(-4px); }
.avatar:hover { transform: scale(1.15) translateX(0) !important; z-index: 10;}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { font-size: 1rem; color: var(--gray-600); font-weight: 500; }

.trust { gap: 1.5rem; color: var(--gray-600); font-size: 0.875rem; margin-top: 2rem; }
.shield { display: inline-flex; align-items: center; }
.shield::before { content: "🛡️"; margin-right: 0.5rem; }

.mock {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.mock-header { padding: 1rem; background: var(--gray-100); display: flex; gap: 0.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--gray-200); }
.chip { padding: 0.5rem 1rem; background: white; border-radius: 20px; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--gray-200); }
.mock-body { padding: 1.5rem; }
.timeline { height: 4px; background: var(--gray-200); border-radius: 2px; position: relative; margin-bottom: 2rem; }
.band { position: absolute; height: 100%; border-radius: 2px; top: 0; }
.band--hes { background: var(--secondary); opacity: 0.7; }
.band--con { background: var(--primary); opacity: 0.7; }
.marker { position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 50%; transform: translate(-50%, -50%); }
.m-click { background: var(--primary); }
.m-input { background: var(--secondary); }
.m-error { background: #E53E3E; }
.scrubber { position: absolute; width: 2px; height: 20px; background: #3182CE; top: 50%; transform: translateY(-50%); }
.insights { list-style: none; padding: 0; margin: 0; }
.insights li { padding: 1rem; background: var(--gray-100); border-radius: 8px; margin-bottom: 0.5rem; position: relative; overflow: hidden; font-size: 0.9rem; }
.insight-overlay {
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(126, 87, 194, 0), rgba(126, 87, 194, 0.2), rgba(126, 87, 194, 0));
  pointer-events: none;
}

/* ================== GENERIC SECTION STYLES ================== */
section { padding: 6rem 0; }
section:nth-of-type(even) {
  background-color: var(--gray-100);
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; color: var(--gray-700); }

/* ================== SOCIAL PROOF (LOGOS) ================== */
.logos { padding: 4rem 0; background-color: #fff; }
.logos-inner p { font-weight: 600; color: var(--gray-600); margin-bottom: 2rem; text-align: center;}

/* Logo Scroller Animation */
.logo-scroller {
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}
.logo-scroller-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  animation: scroll 30s linear infinite;
}
.logo-scroller-inner span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}
@keyframes scroll {
  to {
    transform: translate(calc(-50% - 1.5rem));
  }
}

/* ================== CTA TREE SECTION ================== */
.cta-tree {
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

/* Rainfall Animation */
.rainfall-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.raindrop {
  position: absolute;
  width: 2px;
  height: 15px;
  background: linear-gradient(to bottom, 
    rgba(126, 87, 194, 0.6), 
    rgba(38, 166, 154, 0.3));
  border-radius: 0 0 2px 2px;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.cta-tree-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}
.cta-tree-visual, .cta-tree-copy { flex: 1; }
.cta-tree-visual {
  display: flex;
  justify-content: center;
}
.tree-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.cta-tree-copy h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}
.cta-tree-copy p {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
}
.rating {
  display: block;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.stars {
  gap: 0.25rem;
}
.star {
  color: #FFA500;
  font-size: 1.25rem;
}
.rating-text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ================== FEATURES ================== */
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light);
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card p { color: var(--gray-700); }

/* ================== HOW IT WORKS ================== */
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 2rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-image: linear-gradient(to right, var(--gray-400) 50%, transparent 50%);
  background-size: 16px 2px;
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 4px solid var(--gray-100);
}
.step h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step p { color: var(--gray-700); }

/* ================== TESTIMONIALS ================== */
.testimonials .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.testimonial-card p:first-child {
  flex-grow: 1;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
}
.testimonial-card .author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 1rem;
}
.author .name { font-weight: 600; color: var(--dark); }
.author .title { font-size: 0.875rem; color: var(--gray-600); }

/* ================== COMMUNITY & BENEFITS ================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.community-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}
.community-card h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.community-card p { color: var(--gray-700); }

/* ================== CTA ================== */
.cta-section { padding: 0; }
.cta {
  background: linear-gradient(135deg, #f600ff, var(--primary-dark));
  color: #fff;
  padding: 5rem 0;
  border-radius: 20px;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}
.cta-copy h2 { color: #fff; font-size: 2.25rem; }
.cta-copy p { font-size: 1.125rem; opacity: 0.9; max-width: 500px; }
.cta-form--inline {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 450px;
}
.cta-form--inline input { background: rgba(255,255,255,0.2); border-color: transparent; color: #fff; }
.cta-form--inline input::placeholder { color: rgba(255,255,255,0.7); }
.cta-form--inline .btn { background: #fff; color: var(--primary); }
.cta-form--inline .btn:hover { background: var(--gray-200); }

/* ================== FAQ ================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.faq-grid details {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--gray-200);
}
.faq-grid details[open] {
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-grid summary {
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: '＋';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq-grid details[open] summary::after {
  transform: rotate(45deg);
}
.faq-grid p {
  margin-top: 1rem;
  color: var(--gray-700);
}

/* ================== FOOTER ================== */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 4rem 0 3rem;
  margin-top: 6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.footer-inner .logo { color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.foot-nav a { color: var(--gray-400); text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.copyright { color: var(--gray-600); font-size: 0.875rem; margin-top: 1rem; }

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 992px) {
  h1 { font-size: 2.75rem; }
  .hero { padding-top: 5rem; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-copy { order: 2; max-width: 100%; margin-top: 2rem; }
  .hero-visual { order: 1; width: 100%;}
  .sub, .cta-form { max-width: 100%; margin-left: auto; margin-right: auto; }
  .user-profiles, .trust, .cta-form { justify-content: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-form--inline { flex-direction: column; }
  .cta-tree-inner { flex-direction: column; }
  .cta-tree-copy { text-align: center; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  .nav-toggle:focus { outline: none; }
  .nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--dark);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .nav.nav--visible {
    transform: translateX(0);
  }
  .nav a { font-size: 1.25rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  section { padding: 4rem 0; }
  .steps { flex-direction: column; }
  .steps::before { display: none; }
}