/* ══════════════════════════════════════════
   Syronica — Design System
   Medical SaaS • White + Soft Blue Palette
   ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2BBCB3;
  --primary-dark: #1B9AAA;
  --primary-light: #E0F7F5;
  --navy: #1B3A5C;
  --navy-dark: #143048;
  --white: #FFFFFF;
  --bg-light: #F8FAFB;
  --bg-blue: #EEF5FB;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

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

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

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(43,188,179,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,188,179,0.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  background: transparent; color: var(--navy);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 2px solid var(--border); transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm {
  padding: 10px 24px; font-size: 14px;
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 36px; }
.nav-brand-name {
  font-size: 22px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.5px;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login {
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding: 10px 20px; border-radius: var(--radius-full);
  transition: all 0.2s;
}
.nav-login:hover { background: var(--bg-light); }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--primary); }
.lang-btn img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 160px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all 0.2s;
  overflow: hidden;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; color: var(--text-primary);
  transition: background 0.15s; cursor: pointer;
}
.lang-option:hover { background: var(--bg-light); }
.lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.lang-option img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }

/* Mobile hamburger */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white); padding: 24px; z-index: 99;
  flex-direction: column; gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px; font-weight: 500; color: var(--text-primary);
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}

/* ── Hero ── */
.hero {
  padding: 140px 0 80px; position: relative;
  background: linear-gradient(180deg, var(--bg-blue) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,188,179,0.08) 0%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.1;
  color: var(--navy); letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 18px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 36px; max-width: 500px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
}
.hero-image img { width: 100%; border-radius: var(--radius-xl); }

/* ── Stats Bar ── */
.stats-bar {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-value {
  font-size: 36px; font-weight: 800; color: var(--navy);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 14px; color: var(--text-muted); margin-top: 4px; font-weight: 500;
}

/* ── Section Common ── */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-light); }
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--primary); margin-bottom: 12px;
}
.section-title {
  font-size: 40px; font-weight: 800; color: var(--navy);
  letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px; color: var(--text-secondary); max-width: 600px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

/* ── How It Works ── */
.steps-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 60px; position: relative;
}
.steps-row::before {
  content: ''; position: absolute; top: 40px; left: 15%; right: 15%;
  height: 2px; background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
}
.step-item { text-align: center; position: relative; }
.step-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; position: relative; z-index: 2;
  box-shadow: 0 8px 24px rgba(43,188,179,0.25);
}
.step-item h3 {
  font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px;
}
.step-item p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  max-width: 300px; margin: 0 auto;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.pricing-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px 32px;
  text-align: center; transition: all 0.3s; position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary); box-shadow: 0 8px 32px rgba(43,188,179,0.15);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-size: 12px; font-weight: 700;
  padding: 6px 20px; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 1px;
}
.pricing-name {
  font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.pricing-price {
  font-size: 48px; font-weight: 800; color: var(--navy);
  letter-spacing: -2px; margin-bottom: 4px;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-desc {
  font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
}
.pricing-features { margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.pricing-features li i { color: var(--primary); flex-shrink: 0; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; color: #F59E0B; }
.testimonial-text {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; color: var(--primary); font-size: 16px;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 60px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; width: 100%;
  background: none; border: none; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--navy);
  font-family: inherit; transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question i { transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 0 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ── CTA Banner ── */
.cta-banner {
  padding: 100px 0; text-align: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,188,179,0.15) 0%, transparent 70%);
}
.cta-banner h2 {
  font-size: 40px; font-weight: 800; color: var(--white);
  letter-spacing: -1px; margin-bottom: 16px;
}
.cta-banner p {
  font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 36px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: var(--radius-full);
  background: var(--white); color: var(--navy);
  font-weight: 700; font-size: 16px; border: none; cursor: pointer;
  transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ── Footer ── */
.footer {
  background: var(--navy-dark); padding: 64px 0 32px; color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer h4 {
  font-size: 14px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.footer ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .section-title { font-size: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card:last-child { grid-column: span 2; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero { padding: 110px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-image { max-width: 500px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .steps-row::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 60px auto 0; }
  .pricing-card:last-child { grid-column: auto; max-width: none; }
  .pricing-card.featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .cta-banner h2 { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── RTL ── */
[dir="rtl"] { font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; }
[dir="rtl"] .hero-grid { direction: rtl; }
[dir="rtl"] .nav-links { direction: rtl; }
[dir="rtl"] .feature-card { text-align: right; }
[dir="rtl"] .step-item { text-align: center; }
[dir="rtl"] .faq-question { text-align: right; }
[dir="rtl"] .pricing-features li { flex-direction: row-reverse; }
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
