/* PflegeDesk — Global Styles */
:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #EDE9FE;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --text: #1F2937;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --success: #10B981;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(124,58,237,0.08);
  --shadow-lg: 0 12px 40px rgba(124,58,237,0.15);
}

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

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

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800;
  color: var(--primary); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #F5F3FF 0%, #FFFBEB 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary-light); color: var(--primary);
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  color: var(--text); max-width: 800px; margin: 0 auto 1.5rem;
  line-height: 1.2;
}
.hero h1 .highlight { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-img {
  margin-top: 4rem; max-width: 900px; margin-left: auto; margin-right: auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.hero-img img { width: 100%; display: block; }

/* STATS */
.stats {
  background: var(--primary); color: #fff;
  padding: 2.5rem 2rem;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 900; }
.stat-label { font-size: .9rem; opacity: .85; margin-top: .3rem; }

/* SECTIONS */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: .3rem .9rem; border-radius: 6px; font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all .3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.6rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .7rem; }
.feature-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }
.feature-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.feature-tag {
  background: var(--bg-alt); color: var(--text-muted);
  padding: .2rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 600;
}

/* COMPLIANCE */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.compliance-card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.compliance-card .badge { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.compliance-card h3 { font-weight: 700; margin-bottom: .5rem; font-size: 1rem; }
.compliance-card p { color: var(--text-muted); font-size: .875rem; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.pricing-card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem 2rem; position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: .3rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-weight: 800; font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.pricing-price { font-size: 2.8rem; font-weight: 900; color: var(--text); margin: .5rem 0; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* TESTIMONIALS */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
}
.testimonial blockquote { font-size: 1rem; line-height: 1.7; color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-role { font-size: .8rem; color: var(--text-muted); }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #5B21B6 100%);
  color: #fff; text-align: center; padding: 5rem 2rem;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #F9FAFB; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }

/* FOOTER */
.footer { background: #111827; color: #9CA3AF; padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: #9CA3AF; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
