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

:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d4f4a;
  --accent: #7c3aed;
  --bg: #fafaf9;
  --bg-alt: #f5f3ef;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-light: #a8a29e;
  --white: #ffffff;
  --border: #e7e5e4;
  --gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #7c3aed 100%);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,249,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 24px rgba(0,0,0,0.06); }
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.35rem;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
nav ul { list-style: none; display: flex; gap: 32px; }
nav a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 8px 20px; border-radius: 8px;
  -webkit-text-fill-color: white;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.lang-switch { font-size: 0.85rem; opacity: 0.7; }
.lang-switch a { padding: 2px 4px; }
.lang-switch a.active { font-weight: 700; opacity: 1; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(170deg, #fafaf9 0%, #ecfdf5 50%, #fafaf9 100%);
  position: relative; overflow: hidden;
}
.hero-inner { display: block; }
.hero-split {
  display: flex; align-items: center; gap: 48px;
}
.hero-content { max-width: 640px; position: relative; z-index: 2; flex: 1; }
.hero-photo {
  flex: 0 0 380px; position: relative; z-index: 2;
}
.hero-photo img {
  width: 100%; border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15,118,110,0.15);
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.hero .container { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary);
  background: rgba(15,118,110,0.08);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 36px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white);
  padding: 14px 32px; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(15,118,110,0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,118,110,0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 14px 28px; border-radius: 12px;
  font-size: 1rem; font-weight: 500;
  text-decoration: none; border: 1.5px solid var(--border);
  transition: all 0.25s;
}
.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

/* ---- STATS ---- */
.stats {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.stats::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(15,118,110,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.stats-header { text-align: center; margin-bottom: 56px; }
.stats-header .section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 12px;
}
.stats-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600; margin-bottom: 16px;
}
.stats-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.research-visual {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.rv-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}
.rv-bars { display: flex; flex-direction: column; gap: 14px; }
.rv-bar-row { display: flex; align-items: center; gap: 12px; }
.rv-bar-label { font-size: 0.85rem; color: var(--text-muted); min-width: 130px; flex-shrink: 0; }
.rv-bar-track { flex: 1; height: 28px; background: var(--bg-alt); border-radius: 14px; overflow: hidden; }
.rv-bar-fill {
  height: 100%; border-radius: 14px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.8rem; font-weight: 600; color: white;
  transition: width 1s ease;
}
.rv-ratings { display: flex; gap: 20px; }
.rv-rating-card {
  flex: 1; text-align: center;
  padding: 24px 16px;
  background: var(--bg-alt);
  border-radius: 16px;
}
.rv-rating-score {
  font-size: 2rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rv-rating-stars { color: var(--primary-light); font-size: 1.1rem; margin: 6px 0; }
.rv-rating-label { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .research-visual { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .rv-ratings { flex-direction: column; }
  .rv-bar-label { min-width: 100px; font-size: 0.78rem; }
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.stat-card { flex: 0 1 calc(33.333% - 22px); min-width: 200px; }
.stat-card {
  text-align: center; padding: 32px 16px;
  border-radius: 16px; background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.stat-number {
  font-size: 2.75rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1; margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem; color: var(--text-muted);
  font-weight: 500; line-height: 1.4;
}

/* ---- PROBLEMS ---- */
.problems {
  padding: 100px 0; background: var(--bg);
  position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 20% 80%, rgba(15,118,110,0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(124,58,237,0.03) 0%, transparent 50%);
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--primary);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600; margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.problem-photo {
  margin: -36px -28px 20px -28px;
  overflow: hidden; border-radius: 20px 20px 0 0;
}
.problem-photo img {
  width: 100%; height: auto; display: block;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
  opacity: 0; transition: opacity 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.problem-card:hover::before { opacity: 1; }
.problem-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.problem-icon svg { width: 26px; height: 26px; }
.problem-icon img { width: 36px; height: 36px; border-radius: 8px; }
.problem-card:nth-child(1) .problem-icon { background: #ecfdf5; }
.problem-card:nth-child(2) .problem-icon { background: #fef3c7; }
.problem-card:nth-child(3) .problem-icon { background: #ede9fe; }
.problem-card h3 {
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 10px;
}
.problem-stat {
  font-size: 0.85rem; font-weight: 600;
  color: var(--primary); margin-bottom: 12px;
}
.problem-card p {
  color: var(--text-muted); font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.features::before {
  content: ''; position: absolute; top: 50%; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15,118,110,0.03) 0%, transparent 60%);
  border-radius: 50%; transform: translateY(-50%);
}
.features::after {
  content: ''; position: absolute; top: 20%; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(124,58,237,0.03) 0%, transparent 60%);
  border-radius: 50%;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,118,110,0.1), rgba(124,58,237,0.1));
  margin-bottom: 16px; overflow: hidden;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; }
.feature-card h3 {
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted); font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(170deg, #f5f3ef 0%, #ecfdf5 100%);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem; line-height: 1;
  color: var(--primary-light);
  opacity: 0.3;
  position: absolute; top: 16px; left: 24px;
}
.testimonial-card p {
  font-size: 0.95rem; color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-top: 24px;
  font-style: italic;
}
.testimonial-footer {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.testimonial-author {
  font-size: 0.85rem; font-weight: 600;
  color: var(--primary);
}

/* ---- CTA ---- */
.cta {
  padding: 100px 0;
  background: linear-gradient(170deg, #ecfdf5 0%, #f0fdf4 40%, #ede9fe 100%);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15,118,110,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-photo {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 28px;
  display: block;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cta-box {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 60%, #1e1b4b 100%);
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  color: var(--white);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600; margin-bottom: 16px;
  position: relative;
}
.cta-box > p {
  font-size: 1.05rem; opacity: 0.85;
  max-width: 500px; margin: 0 auto 36px;
  position: relative;
}
.cta-form {
  display: flex; gap: 12px;
  max-width: 480px; margin: 0 auto;
  position: relative;
}
.cta-form input {
  flex: 1;
  padding: 14px 20px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form input:focus { border-color: rgba(255,255,255,0.5); }
.cta-form button {
  padding: 14px 28px; border-radius: 12px;
  background: var(--white);
  color: var(--primary-dark);
  font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.cta-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.cta-note {
  font-size: 0.8rem; opacity: 0.6;
  margin-top: 16px; position: relative;
}
.cta-contact {
  margin-top: 24px; font-size: 0.9rem;
  opacity: 0.7; position: relative;
}

/* ---- FOOTER ---- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer .container {
  display: flex; justify-content: space-between; align-items: center;
}
footer .logo { font-size: 1.1rem; }
footer p { font-size: 0.85rem; color: var(--text-light); }

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .problems-grid { gap: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-photo { flex: 0 0 300px; }
}
@media (max-width: 768px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .menu-toggle { display: block; }
  .hero-split { flex-direction: column; gap: 28px; }
  .hero-photo { flex: none; max-width: 280px; margin: 0 auto; }
  .hero-content { max-width: 100%; }
  .hero-visual { display: none; }
  .problem-photo { max-height: 300px; }
  .problems-grid,
  .features-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { justify-content: center; }
  .stat-card { flex: 0 1 calc(50% - 16px); }
  .cta-box { padding: 40px 24px; }
  .cta-form { flex-direction: column; }
  .hero { min-height: auto; padding: 100px 0 48px; }
  footer .container { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 0 48px; }
  .stat-card { flex: 0 1 100%; }
}

/* PLANS */
.plans { padding: 96px 0; background: var(--bg-alt); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}
.plan-card {
  background: #fff;
  border: 1px solid rgba(15,118,110,0.08);
  border-radius: 20px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,118,110,0.08);
}
.plan-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 32px rgba(15,118,110,0.12);
  transform: translateY(-8px);
}
.plan-card-featured:hover { transform: translateY(-12px); }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.plan-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--text);
}
.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}
.plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.plan-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  min-height: 48px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.plan-features li {
  padding: 8px 0 8px 26px;
  font-size: 0.92rem;
  color: var(--text);
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.plan-cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}
.plan-cta:hover { background: var(--primary-dark); }
.plan-card:not(.plan-card-featured) .plan-cta {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  padding: 12px 20px;
}
.plan-card:not(.plan-card-featured) .plan-cta:hover {
  background: var(--primary);
  color: #fff !important;
}
.plans-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; gap: 20px; }
  .plan-card-featured { transform: none; }
  .plan-card-featured:hover { transform: translateY(-4px); }
}

/* RTL adjustments for plans in HE */
html[dir="rtl"] .plan-features li { padding: 8px 26px 8px 0; }
html[dir="rtl"] .plan-features li::before { left: auto; right: 0; }
html[dir="rtl"] .plan-price span { margin-left: 0; margin-right: 4px; }
