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

:root {
  --primary: #57A8D2;
  --primary-dark: #3d8ab8;
  --primary-light: #57A8D2;
  --secondary: #3d8ab8;
  --accent: #7bc4e8;
  --dark: #ffffff;
  --dark-2: #f1f5f9;
  --dark-3: #e2e8f0;
  --light: #0f172a;
  --light-2: #334155;
  --text: #1e293b;
  --text-light: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --transition: .3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--light);
}

.nav-logo img { height: 70px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(87,168,210,.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(87,168,210,.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(61,138,184,.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(87,168,210,.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title .pharma-color {
  color: #1F536A;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(87,168,210,.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(0,0,0,.15);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.06);
  cursor: pointer;
}

.hero-image img {
  width: 100%;
  transition: transform .5s ease;
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-dark {
  background: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(87,168,210,.1);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(87,168,210,.2);
}

.section-badge-light {
  background: rgba(87,168,210,.08);
  border-color: rgba(87,168,210,.15);
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--light);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.about-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.about-card:hover {
  border-color: rgba(87,168,210,.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.about-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(87,168,210,.12);
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.about-card h3 {
  color: var(--light);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.6;
}

/* Dashboards */
.dashboard-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.dashboard-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.dashboard-item.reverse {
  direction: rtl;
}

.dashboard-item.reverse > * {
  direction: ltr;
}

.dashboard-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 12px;
}

.dashboard-info > p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.dashboard-info ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: .95rem;
}

.dashboard-info li i {
  color: var(--primary);
  font-size: 1rem;
}

.dashboard-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.06);
  cursor: pointer;
}

.dashboard-img img {
  width: 100%;
  transition: transform .5s ease;
}

.dashboard-img:hover img {
  transform: scale(1.03);
}

/* Modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.module-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.module-card:hover {
  border-color: rgba(87,168,210,.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}

.module-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(87,168,210,.1);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.module-card h3 {
  color: var(--light);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.module-card p {
  color: var(--text-light);
  font-size: .85rem;
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.06);
  aspect-ratio: 16/10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: .7;
  transition: var(--transition);
  z-index: 1;
}

.modal-close:hover {
  opacity: 1;
}

.modal-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

/* CTA */
.section-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(87,168,210,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 100% 50%, rgba(61,138,184,.03) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-logo {
  margin-bottom: 24px;
}

.cta-logo img {
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--light);
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-desc strong {
  color: var(--primary);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 60px 0 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: .9rem;
  max-width: 280px;
}

.footer-links h4 {
  color: var(--light);
  font-size: .95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links li {
  color: var(--text-light);
  font-size: .88rem;
  margin-bottom: 8px;
  cursor: default;
  transition: var(--transition);
}

.footer-powered {
  text-align: right;
}

.footer-powered img {
  margin-left: auto;
  margin-bottom: 12px;
}

.footer-powered p {
  color: var(--text-light);
  font-size: .85rem;
}

/* Acesso Modal */
#acessoModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#acessoModal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

.acesso-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.acesso-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.acesso-close:hover {
  color: var(--text);
}

.acesso-header {
  text-align: center;
  margin-bottom: 28px;
}

.acesso-header img {
  margin: 0 auto 16px;
}

.acesso-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 6px;
}

.acesso-header p {
  font-size: .9rem;
  color: var(--text-light);
}

.acesso-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.acesso-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--dark-3);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  margin-bottom: 20px;
  outline: none;
}

.acesso-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(87,168,210,.15);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Scroll Top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(87,168,210,.3);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .dashboard-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dashboard-item.reverse {
    direction: ltr;
  }

  .dashboard-info {
    text-align: center;
  }

  .dashboard-info ul {
    align-items: center;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-powered {
    text-align: left;
    grid-column: 1 / -1;
  }

  .footer-powered img {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,.06);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }

  .section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .modules-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
