/* ==========================================================================
   MedHelp Gestão de Carreiras Médicas — Design System Oficial
   Paleta: Deep Navy (#0b132b), Royal Blue (#01458e), Emerald Green (#68b42d)
   Tipografia: Plus Jakarta Sans (Google Fonts)
   Diretrizes: Mobile-First, WCAG AA, Private Banking & Healthcare Aesthetics
   ========================================================================== */

:root {
  /* Cores Canônicas da Marca */
  --bg-primary: #070c1a;
  --bg-secondary: #0b132b;
  --bg-card: #111d42;
  --bg-card-hover: #172654;
  --bg-glass: rgba(17, 29, 66, 0.75);

  --primary-blue: #01458e;
  --primary-blue-light: #1d70b8;
  --primary-blue-glow: rgba(1, 69, 142, 0.4);

  --accent-green: #68b42d;
  --accent-green-hover: #569e22;
  --accent-green-glow: rgba(104, 180, 45, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #86efac;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(104, 180, 45, 0.5);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px var(--primary-blue-glow);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tipografia */
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green {
  color: var(--accent-green);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(1, 69, 142, 0.25);
  border: 1px solid rgba(1, 69, 142, 0.6);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green {
  background: rgba(104, 180, 45, 0.15);
  border-color: rgba(104, 180, 45, 0.4);
  color: var(--text-accent);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition-smooth);
  text-align: center;
}

/* Skip link de acessibilidade (WCAG 2.1 §2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--accent-green);
  color: #070c1a;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  transition: top 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

/* Focus Visible Acessível */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

/* Botão Primário: Texto #070c1a sobre Verde = 7.58:1 (WCAG AAA) */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-green) 0%, #569e22 100%);
  color: #070c1a;
  box-shadow: 0 4px 20px var(--accent-green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(104, 180, 45, 0.5);
  background: linear-gradient(135deg, #74c733 0%, #5bb221 100%);
  color: #040810;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 12, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: var(--transition-fast);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-150%);
  transition: var(--transition-smooth);
  z-index: 99;
}

.mobile-nav.active {
  transform: translateY(0);
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-blue-glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge-wrapper {
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

/* Section Header */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
}

/* Seção Inimigo Estratégico (O Contraste) */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.compare-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

.compare-card.bad {
  background: rgba(17, 29, 66, 0.4);
  border-color: rgba(239, 68, 68, 0.2);
}

.compare-card.good {
  background: linear-gradient(145deg, #111d42 0%, #15275a 100%);
  border-color: rgba(104, 180, 45, 0.4);
  box-shadow: 0 10px 40px -10px rgba(1, 69, 142, 0.5);
}

.compare-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.compare-tag.bad { color: #f87171; }
.compare-tag.good { color: var(--text-accent); }

.compare-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.compare-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.compare-card.bad svg { color: #ef4444; }
.compare-card.good svg { color: var(--accent-green); }

/* Seção 4 Personas (Tabs Interativas) */
.tabs-container {
  margin-top: 2rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue-light);
  box-shadow: 0 4px 15px var(--primary-blue-glow);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.persona-info h3 {
  margin-bottom: 0.5rem;
}

.persona-subtitle {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.persona-quote {
  font-style: italic;
  padding-left: 1.25rem;
  border-left: 3px solid var(--primary-blue-light);
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.persona-deliverables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.deliverable-item {
  background: rgba(7, 12, 26, 0.6);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.deliverable-title {
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.deliverable-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Seção 6 Pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 69, 142, 0.8);
  box-shadow: var(--shadow-glow);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(1, 69, 142, 0.3);
  border: 1px solid rgba(1, 69, 142, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  margin-bottom: 1.5rem;
}

.pillar-title {
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pillar-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

/* Seção Med Assistente (Engineering as Marketing) */
.product-showcase {
  background: linear-gradient(145deg, #0b132b 0%, #111d42 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.product-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.product-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Mockup WhatsApp */
.chat-mockup {
  background: #0b141a;
  border-radius: 28px;
  padding: 1.25rem;
  border: 6px solid #222d34;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-width: 380px;
  margin: 0 auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f2c34;
  margin-bottom: 1rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.chat-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #e9edef;
}

.chat-status {
  font-size: 0.75rem;
  color: #8696a0;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  max-width: 85%;
  line-height: 1.4;
}

.chat-bubble.doctor {
  background: #005c4b;
  color: #e9edef;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.chat-bubble.assistant {
  background: #202c33;
  color: #d1d7db;
  margin-right: auto;
  border-bottom-left-radius: 2px;
}

.chat-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 4px;
}

/* Como Funciona */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(1, 69, 142, 0.35);
  margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--accent-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

/* CTA Final */
.cta-banner {
  background: radial-gradient(circle at center, #111d42 0%, #070c1a 100%);
  border: 1px solid rgba(1, 69, 142, 0.5);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
  margin-bottom: 1.25rem;
}

.cta-banner p {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Footer */
.footer {
  background: #04070e;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-disclaimer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #64748b;
  text-align: center;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries (Desktop & Tablet) */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .persona-deliverables {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .persona-card {
    grid-template-columns: 1.2fr 1fr;
  }
  .product-showcase {
    grid-template-columns: 1.1fr 1fr;
    padding: 4.5rem;
  }
}
