/* =========================================================
   Di Imagem — Landing Page Provisória
   Design: Clínico Premium · Azul Diagnóstico
   ========================================================= */

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

:root {
  --blue-900: #1a2e5a;
  --blue-800: #1e3a6e;
  --blue-600: #2563b0;
  --blue-500: #3b82d8;
  --blue-400: #5b9bef;
  --blue-300: #93c5fd;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-400: #4ade80;

  --font: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(26,46,90,0.1), 0 2px 6px rgba(26,46,90,0.06);
  --shadow-lg: 0 20px 60px rgba(26,46,90,0.15), 0 8px 24px rgba(26,46,90,0.08);
  --shadow-glow-blue: 0 0 40px rgba(59,130,216,0.25);
  --shadow-glow-green: 0 0 40px rgba(34,197,94,0.25);
}

/* ---- BASE ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #f0f6ff;
  color: var(--blue-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ---- BACKGROUND MESH ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(59,130,216,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(45,212,191,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255,255,255,0.6) 0%, transparent 70%),
    linear-gradient(160deg, #e8f0fe 0%, #f0f9ff 40%, #f8fafc 100%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400), var(--teal-400));
  z-index: 100;
}

/* ---- PARTICLES ---- */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--blue-400);
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.08; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ---- HEADER ---- */
.header {
  position: relative;
  z-index: 10;
  padding: 28px 40px 20px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 20px rgba(26,46,90,0.06);
}

.header-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(26,46,90,0.12));
  transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.02); }

/* ---- MAIN ---- */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 80px;
  text-align: center;
}

/* ---- BADGE ---- */
.badge-wrapper {
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(59,130,216,0.2);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(45,212,191,0.5);
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(45,212,191,0); }
}

/* ---- HERO TITLE ---- */
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-900);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 40%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- HERO SUBTITLE ---- */
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.br-desktop { display: inline; }

/* ---- DIVIDER ---- */
.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400));
  border-radius: 100px;
  margin-bottom: 48px;
}

/* ---- CTA GRID ---- */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---- CTA CARD BASE ---- */
.cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* WhatsApp — Verde */
.cta-whatsapp {
  background: linear-gradient(135deg, #1a7a43 0%, #25a455 50%, #2dc760 100%);
  box-shadow: 0 8px 32px rgba(34,197,94,0.3), 0 2px 8px rgba(34,197,94,0.2);
  color: var(--white);
}
.cta-whatsapp:hover {
  box-shadow: 0 20px 50px rgba(34,197,94,0.45), 0 4px 16px rgba(34,197,94,0.3);
}

/* Portal — Azul */
.cta-portal {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700, #1e40af) 50%, var(--blue-600) 100%);
  box-shadow: 0 8px 32px rgba(37,99,176,0.35), 0 2px 8px rgba(37,99,176,0.2);
  color: var(--white);
}
.cta-portal:hover {
  box-shadow: 0 20px 50px rgba(37,99,176,0.5), 0 4px 16px rgba(37,99,176,0.3);
}

/* Ícone do CTA */
.cta-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.cta-icon {
  width: 26px;
  height: 26px;
  color: var(--white);
}

/* Texto CTA */
.cta-text {
  flex: 1;
  text-align: left;
}

.cta-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.cta-desc {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 3px;
}

/* Seta CTA */
.cta-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
  transition: transform 0.3s ease;
}
.cta-card:hover .cta-arrow { transform: translateX(4px); }

/* ---- CHIPS ---- */
.chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(59,130,216,0.15);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.chip svg {
  width: 15px;
  height: 15px;
  stroke: var(--teal-500);
}

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--blue-900);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 16px;
  display: block;
}

.footer-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

.footer-list li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--teal-400);
}

.footer-list a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-list a:hover { color: var(--teal-400); }

.footer-links li {
  padding: 4px 0;
}
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}

/* ---- RESPONSIVE FOOTER ---- */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 40px 24px 32px;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 16px 24px; }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 36px 20px 28px;
  }
  .footer-brand { grid-column: auto; }
}


/* ---- ANIMATIONS ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-down"] { transform: translateY(-20px); }
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .header { padding: 20px 20px 16px; }
  .logo { height: 42px; }
  .main { padding: 48px 16px 64px; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.97rem; }
  .br-desktop { display: none; }

  .cta-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .chips { gap: 8px; }
  .chip { font-size: 12px; padding: 6px 14px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .cta-grid { max-width: 560px; }
}

/* ---- GLASS CARD ---- */
.glass-card {
  width: min(740px, 92vw);
  background: rgba(255,255,255,0.45);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-lg);
  padding: 48px 52px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 600px) {
  .glass-card {
    padding: 36px 24px 40px;
    width: 95vw;
  }
}
