@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* =================================================
   RESET & BASE
================================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f4f6fb;
  color: #1a1a2e;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}

/* =================================================
   DARK MODE
================================================= */
body.dark { background: #0f0f1a; color: #e8eaf6; }
body.dark .card { background: #1a1a2e; color: #e8eaf6; border-color: rgba(255,255,255,.07); }
body.dark .card h3 { color: #e8eaf6; }
body.dark .stats { background: #1a1a2e; }
body.dark .features { background: #0f0f1a; }
body.dark .features h2 { color: #e8eaf6; }
body.dark .cta { background: #1a1a2e; }
body.dark .cta h2, body.dark .cta p { color: #e8eaf6; }
body.dark .testimonials { background: #13131f; }
body.dark .testimonials h2 { color: #e8eaf6; }
body.dark .testimonial-card { background: #1a1a2e; border-color: rgba(255,255,255,.07); }
body.dark .testimonial-card p { color: #c5c8e8; }
body.dark .t-info strong { color: #e8eaf6; }
body.dark .navbar.scrolled { background: rgba(15,15,26,.96); border-bottom-color: rgba(255,255,255,.06); }
body.dark .navbar.scrolled .logo { color: #e8eaf6; }
body.dark .navbar.scrolled nav a { color: #c5c8e8; }
body.dark .stat-box p { color: rgba(255,255,255,.45); }
body.dark .btn-cta-outline { border-color: rgba(255,255,255,.15); color: #c5c8e8; }

/* =================================================
   NAVBAR
================================================= */
/* NAVBAR */
.navbar {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  z-index: 1000;
  transition: all .35s;
}

.navbar.scrolled {
  background: rgba(244,246,251,.97);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(60,80,200,.08);
  border-bottom: 1px solid rgba(60,80,200,.08);
  padding: 12px 48px;
}

/* LOGO */
.logo {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff; /* 🔥 Mental = WHITE */
  letter-spacing: -.5px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Health color */
.logo span {
  color: #a5b4fc; /* 🔥 LIGHT BLUE */
}

/* When scroll */
.navbar.scrolled .logo {
  color: #1a1a2e; /* darker text */
}

.navbar.scrolled .logo span {
  color: #3147c4; /* stronger blue */
}

/* NAV CONTAINER */
.nav-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-left: 40px;
}

.nav-left,
.nav-right {
  display:flex;
  align-items:center;
  gap:28px;
}

/* LINKS */
.navbar nav a {
  text-decoration: none;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: color .2s, opacity .2s;
}

.navbar.scrolled nav a {
  color: #3a3a5c;
}

/* UNDERLINE EFFECT */
.navbar nav a::after {
  content:'';
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background: #818cf8;
  border-radius:2px;
  transition: width .25s;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
  width:100%;
}

/* language badges */
.lang-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:8px;
  font-size:11px; font-weight:700; letter-spacing:.5px;
  color: rgba(255,255,255,.65);
  border: 1.5px solid rgba(255,255,255,.2);
  text-decoration:none; transition:all .2s;
}
.lang-badge.active, .lang-badge:hover {
  background: rgba(255,255,255,.15);
  color: white; border-color: rgba(255,255,255,.5);
}
.navbar.scrolled .lang-badge { color:#6366f1; border-color:#ddd; }
.navbar.scrolled .lang-badge.active,
.navbar.scrolled .lang-badge:hover { background:#6366f1; color:white; border-color:#6366f1; }

/* theme toggle */
#themeToggle {
  width:36px; height:36px; border-radius:50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: all .25s;
}
#themeToggle i { font-size:16px; color:white; }
.navbar.scrolled #themeToggle { border-color:#ddd; background:#eef0ff; }
.navbar.scrolled #themeToggle i { color:#6366f1; }
#themeToggle:hover { transform:rotate(22deg); background:rgba(99,102,241,.15); border-color:#818cf8; }

/* nav CTA */
.nav-btn {
  background: white !important; color: #4a5dca !important;
  padding: 9px 22px !important; border-radius: 10px !important;
  font-weight: 700 !important; font-size: 13px !important;
  box-shadow: 0 4px 14px rgba(255,255,255,.2);
  transition: all .25s !important;
}
.nav-btn:hover { background:#eef0ff !important; transform:translateY(-2px) !important; box-shadow:0 8px 24px rgba(255,255,255,.25) !important; }
.navbar.scrolled .nav-btn { background:#4a5dca !important; color:white !important; box-shadow:0 4px 14px rgba(74,93,202,.25); }
.navbar.scrolled .nav-btn:hover { background:#3b4eb5 !important; }
.nav-btn::after { display:none !important; }

/* =================================================
   HERO
================================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 20px 80px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3b4cc0 0%, #1e1b8a 40%, #1a5fb4 70%, #2563eb 100%);
  background-size: 300% 300%;
  animation: gradientShift 16s ease infinite;
}

@keyframes gradientShift {
  0%  { background-position:0% 50%; }
  50% { background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}

/* grid mesh */
.hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:64px 64px;
}

/* glow orbs */
.hero-orb {
  position:absolute; border-radius:50%;
  filter:blur(90px); pointer-events:none; z-index:0;
}
.hero-orb-1 {
  width:480px; height:480px;
  background:radial-gradient(circle,rgba(139,92,246,.35) 0%,transparent 70%);
  top:-80px; right:5%;
  animation:orbFloat 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width:340px; height:340px;
  background:radial-gradient(circle,rgba(59,130,246,.3) 0%,transparent 70%);
  bottom:-40px; left:8%;
  animation:orbFloat 16s ease-in-out infinite alternate-reverse;
}
.hero-orb-3 {
  width:200px; height:200px;
  background:radial-gradient(circle,rgba(167,139,250,.2) 0%,transparent 70%);
  top:40%; left:30%;
  animation:orbFloat 10s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  0%  { transform:translate(0,0) scale(1); }
  100%{ transform:translate(20px,-30px) scale(1.1); }
}

.hero-container {
  display:flex; align-items:center; justify-content:space-between;
  max-width:1240px; width:100%; gap:60px;
  position:relative; z-index:1;
}

/* hero text — fade+slide in */
.hero-text {
  max-width:520px;
  animation: heroFadeUp .9s cubic-bezier(.16,1,.3,1) both;
}

@keyframes heroFadeUp {
  from{ opacity:0; transform:translateY(36px); }
  to  { opacity:1; transform:translateY(0); }
}

.hero-tag {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px; padding:6px 14px;
  font-size:11px; font-weight:700;
  letter-spacing:1.2px; text-transform:uppercase;
  color:rgba(255,255,255,.9); margin-bottom:24px;
  animation: heroFadeUp .9s .1s cubic-bezier(.16,1,.3,1) both;
}
.hero-tag-dot {
  width:6px; height:6px; border-radius:50%;
  background:#93c5fd; animation:blink 2s infinite;
}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:.25;}}

.hero-text h1 {
  font-family:'Nunito',sans-serif;
  font-size:clamp(40px,5.5vw,68px);
  font-weight:900; line-height:1.06;
  letter-spacing:-1px; color:white;
  margin-bottom:20px;
  animation: heroFadeUp .9s .15s cubic-bezier(.16,1,.3,1) both;
}

.hero-text p {
  font-size:17px; color:rgba(255,255,255,.78);
  margin-bottom:36px; line-height:1.7; font-weight:300;
  animation: heroFadeUp .9s .25s cubic-bezier(.16,1,.3,1) both;
}

.hero-buttons {
  display:flex; gap:14px; flex-wrap:wrap;
  animation: heroFadeUp .9s .35s cubic-bezier(.16,1,.3,1) both;
}

/* =================================================
   HERO SLIDER
================================================= */
.hero-slider {
  width:520px; height:380px;
  position:relative; overflow:hidden;
  border-radius:24px;
  box-shadow:0 40px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.1);
  flex-shrink:0;
  animation: sliderReveal 1s .2s cubic-bezier(.16,1,.3,1) both;
}

@keyframes sliderReveal {
  from{ opacity:0; transform:translateX(40px) scale(.97); }
  to  { opacity:1; transform:translateX(0) scale(1); }
}

.slide {
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  opacity:0;
  transition:opacity 1.2s ease, transform 8s ease;
  transform:scale(1.06);
}
.slide.active { opacity:1; transform:scale(1); }

/* slider dots */
.slider-dots {
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  display:flex; gap:6px; z-index:2;
}
.slider-dot {
  width:6px; height:6px; border-radius:3px;
  background:rgba(255,255,255,.4);
  transition:all .4s; cursor:pointer;
}
.slider-dot.active { width:20px; background:white; }

.slider-pill {
  position:absolute; bottom:48px; left:16px; right:16px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);
  border-radius:14px; padding:12px 16px;
  display:flex; align-items:center; gap:12px;
  box-shadow:0 8px 28px rgba(0,0,0,.15);
  animation:pillSlideUp .8s .8s cubic-bezier(.16,1,.3,1) both;
}
@keyframes pillSlideUp{
  from{opacity:0;transform:translateY(16px);}
  to{opacity:1;transform:translateY(0);}
}
.pill-icon{font-size:26px;flex-shrink:0;}
.pill-text strong{display:block;font-size:13px;font-weight:700;color:#1a1a2e;}
.pill-text span{font-size:12px;color:#6b7280;}

/* =================================================
   BUTTONS
================================================= */
.btn-primary {
  background:white; color:#3b4cc0;
  padding:13px 28px; border-radius:12px;
  text-decoration:none; font-weight:700; font-size:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
  display:inline-flex; align-items:center; gap:8px;
  transition:all .25s; font-family:'Poppins',sans-serif;
}
.btn-primary:hover {
  background:#eef0ff; color:#3b4cc0;
  transform:translateY(-3px);
  box-shadow:0 16px 36px rgba(0,0,0,.18);
}

.btn-outline {
  border:2px solid rgba(255,255,255,.5);
  color:white; padding:12px 26px; border-radius:12px;
  text-decoration:none; font-weight:600; font-size:14px;
  background:rgba(255,255,255,.08);
  display:inline-flex; align-items:center; gap:8px;
  transition:all .25s; font-family:'Poppins',sans-serif;
}
.btn-outline:hover {
  background:rgba(255,255,255,.18); border-color:white;
  transform:translateY(-3px);
}

/* =================================================
   STATS
================================================= */
.stats {
  padding:80px 20px; background:white;
  position:relative;
}
body.dark .stats { background:#1a1a2e; }

.stats::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg,#3b4cc0,#6366f1,#818cf8);
}

.stats-container {
  display:flex; justify-content:center; align-items:center;
  max-width:900px; margin:0 auto;
}

.stat-box {
  text-align:center; padding:16px 56px;
  position:relative; flex:1;
}
.stat-box:not(:last-child)::after {
  content:''; position:absolute;
  right:0; top:15%; bottom:15%;
  width:1px; background:#e8eaf6;
}
body.dark .stat-box:not(:last-child)::after { background:rgba(255,255,255,.07); }

.stat-box h2 {
  font-family:'Nunito',sans-serif;
  font-size:48px; font-weight:900;
  color:#3b4cc0; letter-spacing:-2px;
  line-height:1; margin-bottom:6px;
}
body.dark .stat-box h2 { color:#818cf8; }

.stat-box p { color:#9ca3af; font-size:13px; font-weight:500; }

/* =================================================
   FEATURES
================================================= */
.features { padding:100px 20px; background:#f4f6fb; }
body.dark .features { background:#0f0f1a; }

.section-header { text-align:center; margin-bottom:56px; }

.section-label {
  display:inline-block; font-size:11px; font-weight:700;
  letter-spacing:2px; text-transform:uppercase;
  color:#6366f1; margin-bottom:12px;
}

.features h2 {
  font-family:'Nunito',sans-serif;
  font-size:clamp(26px,3vw,40px); font-weight:900;
  text-align:center; color:#1a1a2e; margin-bottom:8px;
}

.features .sub { text-align:center; color:#9ca3af; font-size:15px; margin-bottom:52px; }

.cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:22px; max-width:1100px; margin:0 auto;
}

.card {
  background:white; padding:36px 28px;
  border-radius:20px;
  border:1px solid rgba(60,80,200,.07);
  box-shadow:0 4px 20px rgba(60,80,200,.05);
  transition:all .35s cubic-bezier(.16,1,.3,1);
  position:relative; overflow:hidden;
}
.card::after {
  content:''; position:absolute;
  top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,#3b4cc0,#818cf8);
  transform:scaleX(0); transform-origin:left;
  transition:transform .35s; border-radius:3px 3px 0 0;
}
.card:hover { transform:translateY(-8px); box-shadow:0 24px 48px rgba(60,80,200,.12); border-color:transparent; }
.card:hover::after { transform:scaleX(1); }

.card-icon-wrap {
  width:56px; height:56px; border-radius:16px;
  background:linear-gradient(135deg,#eef0ff,#dde2ff);
  display:flex; align-items:center; justify-content:center;
  font-size:26px; margin-bottom:20px;
  transition:transform .3s;
}
body.dark .card-icon-wrap { background:rgba(99,102,241,.15); }
.card:hover .card-icon-wrap { transform:scale(1.1) rotate(-4deg); }

.card h3 {
  font-family:'Nunito',sans-serif;
  font-size:18px; font-weight:800;
  color:#1a1a2e; margin-bottom:10px;
}
.card p { font-size:14px; color:#9ca3af; line-height:1.7; }

/* =================================================
   TESTIMONIALS
================================================= */
.testimonials { padding:100px 20px; background:#f0f2fc; position:relative; overflow:hidden; }
body.dark .testimonials { background:#13131f; }

.testimonials h2 {
  font-family:'Nunito',sans-serif;
  font-size:clamp(26px,3vw,40px); font-weight:900;
  text-align:center; color:#1a1a2e; margin-bottom:8px;
}

.testimonials .sub { text-align:center; color:#9ca3af; font-size:15px; margin-bottom:52px; }

.testimonial-container {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px; max-width:1060px; margin:0 auto;
}

.testimonial-card {
  background:white; padding:28px;
  border-radius:20px;
  border:1px solid rgba(60,80,200,.06);
  box-shadow:0 4px 20px rgba(60,80,200,.06);
  transition:all .3s cubic-bezier(.16,1,.3,1);
}
.testimonial-card:hover { transform:translateY(-6px); box-shadow:0 20px 40px rgba(60,80,200,.1); }

.t-stars { display:flex; gap:3px; margin-bottom:14px; }
.t-stars i { color:#f59e0b; font-size:15px; }

.testimonial-card p {
  font-size:14px; color:#4b5563; line-height:1.75;
  font-style:italic; margin-bottom:20px;
}

.t-author { display:flex; align-items:center; gap:12px; }
.t-avatar {
  width:42px; height:42px; border-radius:50%;
  object-fit:cover; border:2px solid #eef0ff;
}
.t-info strong { display:block; font-size:14px; font-weight:700; color:#1a1a2e; }
.t-info span { font-size:12px; color:#9ca3af; }

/* =================================================
   CTA
================================================= */
.cta { padding:110px 20px; text-align:center; background:white; position:relative; overflow:hidden; }
body.dark .cta { background:#1a1a2e; }

.cta::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 60% 70% at 50% 110%,rgba(99,102,241,.07) 0%,transparent 100%);
  pointer-events:none;
}

.cta-inner { max-width:620px; margin:0 auto; position:relative; z-index:1; }

.cta-badge {
  display:inline-flex; align-items:center; gap:7px;
  background:#eef0ff; border-radius:20px;
  padding:6px 14px; font-size:12px; font-weight:700;
  color:#6366f1; letter-spacing:.5px;
  text-transform:uppercase; margin-bottom:24px;
}

.cta h2 {
  font-family:'Nunito',sans-serif;
  font-size:clamp(28px,4vw,48px); font-weight:900;
  color:#1a1a2e; letter-spacing:-1px; line-height:1.1; margin-bottom:14px;
}

.cta p { font-size:16px; color:#9ca3af; margin-bottom:36px; font-weight:300; }

.cta-buttons { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.btn-cta-primary {
  background:linear-gradient(135deg,#3b4cc0,#6366f1);
  color:white; padding:14px 36px; border-radius:12px;
  text-decoration:none; font-weight:700; font-size:15px;
  box-shadow:0 8px 24px rgba(99,102,241,.3);
  display:inline-flex; align-items:center; gap:8px;
  transition:all .25s; font-family:'Poppins',sans-serif;
}
.btn-cta-primary:hover { transform:translateY(-3px); box-shadow:0 16px 36px rgba(99,102,241,.4); }

.btn-cta-outline {
  border:2px solid #e5e7eb; color:#3a3a5c;
  padding:13px 28px; border-radius:12px;
  text-decoration:none; font-weight:600; font-size:14px;
  display:inline-flex; align-items:center; gap:8px;
  transition:all .25s; font-family:'Poppins',sans-serif;
}
.btn-cta-outline:hover { border-color:#6366f1; color:#6366f1; transform:translateY(-2px); }

/* =================================================
   FOOTER
================================================= */
footer {
  background:#1a1a2e; color:rgba(255,255,255,.45);
  padding:32px 48px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px;
}

.footer-logo {
  font-family:'Nunito',sans-serif;
  font-size:18px; font-weight:900; color:white;
}
.footer-logo span { color:#818cf8; }

footer p { font-size:13px; }

.footer-links { display:flex; gap:18px; }
.footer-links a {
  color:rgba(255,255,255,.4); text-decoration:none;
  font-size:13px; transition:color .2s;
}
.footer-links a:hover { color:white; }

/* =================================================
   SCROLL REVEAL
================================================= */
.reveal {
  opacity:0; transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay:.1s; }
.reveal-d2 { transition-delay:.2s; }
.reveal-d3 { transition-delay:.3s; }

/* =================================================
   RESPONSIVE
================================================= */
@media(max-width:1024px){
  .hero-container { flex-direction:column; text-align:center; }
  .hero-buttons { justify-content:center; }
  .hero-slider { width:100%; max-width:480px; height:300px; }
  .navbar { padding:16px 28px; }
  .navbar.scrolled { padding:12px 28px; }
}
@media(max-width:768px){
  .nav-left { display:none; }
  .hero { padding:110px 20px 60px; }
  .stats-container { flex-direction:column; gap:20px; }
  .stat-box:not(:last-child)::after { display:none; }
  .stat-box { padding:10px 16px; }
  footer { padding:24px; flex-direction:column; text-align:center; }
  .footer-links { justify-content:center; }
}