    /* =============================================
   PharmaSuite – Main Stylesheet
   Light pharma-tech aesthetic · Plus Jakarta Sans
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg: hsl(210, 33%, 98%);
  --fg: hsl(210, 29%, 18%);
  --card: hsl(0, 0%, 100%);
  --card-fg: hsl(210, 29%, 18%);
  --primary: hsl(199, 89%, 38%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary: hsl(168, 50%, 45%);
  --secondary-fg: hsl(0, 0%, 100%);
  --muted: hsl(210, 25%, 95%);
  --muted-fg: hsl(210, 10%, 50%);
  --accent: hsl(199, 70%, 94%);
  --accent-fg: hsl(199, 89%, 28%);
  --border: hsl(210, 20%, 90%);
  --radius: 0.625rem;

  --gradient-hero: linear-gradient(135deg, hsl(199, 89%, 38%) 0%, hsl(168, 50%, 45%) 100%);
  --gradient-surface: linear-gradient(180deg, hsl(210, 33%, 98%) 0%, hsl(199, 70%, 97%) 100%);
  --shadow-card: 0 1px 3px hsl(210 29% 18% / 0.06), 0 4px 12px hsl(210 29% 18% / 0.04);
  --shadow-card-hover: 0 4px 16px hsl(199 89% 38% / 0.1), 0 8px 32px hsl(210 29% 18% / 0.06);
  --shadow-hero: 0 8px 30px hsl(199 89% 38% / 0.15);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Utilities ---------- */
.text-primary { color: var(--primary); }
.gradient-hero { background: var(--gradient-hero); }
.gradient-surface { background: var(--gradient-surface); }
.icon-sm { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-up { opacity: 0; animation: fadeUp 0.6s ease-out forwards; }
.fade-in { opacity: 0; animation: fadeIn 0.5s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-sm { font-size: 0.875rem; padding: 0.5rem 1rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 1.75rem; }

.btn-hero {
  background: var(--gradient-hero);
  color: var(--primary-fg);
  box-shadow: var(--shadow-hero);
}
.btn-hero:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-hero-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-hero-outline:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--muted-fg);
}
.btn-ghost:hover { color: var(--primary); background: var(--muted); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-fg);
  font-weight: 700; font-size: 0.8rem;
}
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--fg); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a,
.nav-links .nav-dropdown > .nav-dropdown-trigger {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a:hover,
.nav-links .nav-dropdown:hover > .nav-dropdown-trigger { color: var(--primary); }
.nav-links a.active,
.nav-links .nav-dropdown.active > .nav-dropdown-trigger { color: var(--primary); font-weight: 600; }

/* --- Dropdown --- */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-dropdown-trigger svg.dd-chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger svg.dd-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px hsl(210 29% 18% / 0.1);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(4px);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--accent);
  color: var(--primary);
}
.nav-dropdown-menu .dd-separator {
  height: 1px;
  background: var(--border);
  margin: 0.375rem 0;
}

.nav-actions { display: flex; gap: 0.75rem; }

.mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--fg); cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; animation: fadeIn 0.3s ease; }
.mobile-menu a {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .mobile-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.mobile-menu .mobile-section-label:first-child { border-top: none; margin-top: 0; }
.mobile-menu-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.mobile-menu-actions .btn { flex: 1; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
  background: var(--gradient-surface);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-surface);
  opacity: 0.6;
}
.hero-content { position: relative; z-index: 1; }
.hero-text { max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-fg);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========== FEATURES ========== */
.features { padding: 6rem 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.125rem; color: var(--muted-fg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(199, 89%, 38%, 0.2);
}
.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
  background: var(--gradient-hero);
  color: var(--primary-fg);
}

/* ========== STATS ========== */
.stats { padding: 5rem 0; }
.stats-bar {
  border-radius: 1rem;
  padding: 3rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat { text-align: center; }
.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-fg);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.875rem;
  color: hsl(0, 0%, 100%, 0.8);
  font-weight: 500;
}

/* ========== CTA ========== */
.cta { padding: 6rem 0; }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}
.cta-inner p {
  font-size: 1.125rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--card);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-top: 1rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ========== COOKIE CONSENT BANNER (CMP) ========== */
.cmp-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px hsl(210 29% 18% / 0.1);
  padding: 1.25rem 2rem;
  display: none;
  animation: cmpSlideUp 0.4s ease forwards;
}
.cmp-banner.show { display: block; }

@keyframes cmpSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cmp-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cmp-text {
  flex: 1;
  min-width: 280px;
}
.cmp-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cmp-text p {
  font-size: 0.775rem;
  color: var(--muted-fg);
  line-height: 1.5;
}
.cmp-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.cmp-actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}
.cmp-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cmp-btn-accept {
  background: var(--gradient-hero);
  color: var(--primary-fg);
  box-shadow: var(--shadow-hero);
}
.cmp-btn-accept:hover { opacity: 0.9; }
.cmp-btn-reject {
  background: transparent;
  color: var(--muted-fg);
  border: 1px solid var(--border);
}
.cmp-btn-reject:hover { background: var(--muted); color: var(--fg); }
.cmp-btn-settings {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cmp-btn-settings:hover { background: var(--accent); }

/* CMP Settings Modal */
.cmp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: hsl(210 29% 18% / 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
}
.cmp-modal-overlay.show { display: flex; }

.cmp-modal {
  background: var(--card);
  border-radius: 0.75rem;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 16px 48px hsl(210 29% 18% / 0.2);
}
.cmp-modal h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.cmp-modal > p {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cmp-category {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.cmp-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cmp-category-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}
.cmp-category-header .cmp-tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--muted-fg);
}
.cmp-category-header .cmp-tag.required {
  background: var(--accent);
  color: var(--accent-fg);
}
.cmp-category p {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.375rem;
  line-height: 1.5;
}

/* Toggle switch */
.cmp-toggle {
  position: relative;
  width: 36px; height: 20px;
}
.cmp-toggle input { opacity: 0; width: 0; height: 0; }
.cmp-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.cmp-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  left: 2px; bottom: 2px;
  background: var(--card);
  transition: transform 0.2s;
}
.cmp-toggle input:checked + .cmp-toggle-slider { background: var(--primary); }
.cmp-toggle input:checked + .cmp-toggle-slider::before { transform: translateX(16px); }
.cmp-toggle input:disabled + .cmp-toggle-slider { opacity: 0.6; cursor: not-allowed; }

.cmp-modal-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

@media (max-width: 600px) {
  .cmp-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cmp-actions { justify-content: center; }
  .cmp-modal-actions { flex-direction: column; }
  .cmp-btn { width: 100%; text-align: center; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
}
