 :root {
  --bg: #ffffff;
  --bg-alt: #f6faf8;
  --bg-dark: #0a2e20;
  --bg-darker: #061f15;
  --text: #0b1f17;
  --text-muted: #475d54;
  --primary: #147a52;
  --primary-forest: #0d3b29;
  --primary-dark: #092c1e;
  --primary-soft: #eafaf2;
  --primary-mint: #42e695;
  --primary-glow: #5ef2a8;
  --border: #dce8e2;
  --radius: 20px;
  --shadow: 0 14px 34px -10px rgba(13, 59, 41, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-only-link {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Seletor de Idiomas */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--primary-forest);
}

.lang-btn.active {
  background: var(--primary-forest);
  color: #ffffff;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-forest);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 59, 41, 0.22);
}

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

.btn-portal {
  background: var(--primary-soft);
  color: var(--primary-forest);
  border: 1px solid rgba(20, 122, 82, 0.25);
}

.btn-portal:hover {
  background: #d5f5e5;
  border-color: var(--primary);
}

.btn-outline {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-forest);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: radial-gradient(circle at top right, var(--primary-soft) 0%, #ffffff 58%);
}

.hero-watermark {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 380px;
  height: 380px;
  opacity: 0.05;
  pointer-events: none;
  object-fit: contain;
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary-forest);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(20, 122, 82, 0.2);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Cartão Visual do Associado */
.member-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0d3b29 0%, #061f15 100%);
  color: #ffffff;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 24px 48px -12px rgba(13, 59, 41, 0.38);
  border: 1px solid rgba(66, 230, 149, 0.28);
}

.member-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(66, 230, 149, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.member-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.card-symbol {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border-radius: 12px;
}

.card-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(66, 230, 149, 0.16);
  color: var(--primary-glow);
  border: 1px solid rgba(66, 230, 149, 0.3);
}

.member-card-body {
  margin-bottom: 28px;
}

.card-subtitle {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.member-card-body strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.member-card-body p {
  font-size: 0.92rem;
  color: #d1fae5;
  margin-bottom: 0;
  line-height: 1.5;
}

.member-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.member-card-footer small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  margin-bottom: 4px;
}

.member-card-footer span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Seções Gerais */
.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.section-header {
  max-width: 660px;
  margin-bottom: 52px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.eyebrow-light {
  color: var(--primary-glow);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Grid 3 Colunas */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-forest);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-large {
  grid-column: span 2;
  background: linear-gradient(135deg, #0d3b29 0%, #0a2e20 100%);
  color: #ffffff;
  border: none;
}

.bento-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-glow);
  margin-bottom: 10px;
}

.bento-wide {
  grid-column: span 2;
}

.bento-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.bento-item p {
  line-height: 1.6;
  color: var(--text-muted);
}

.bento-large p {
  color: #d1fae5;
}

/* Planos */
.plan-switcher {
  display: inline-flex;
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-top: 28px;
}

.switch-btn {
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.switch-btn.active {
  background: var(--primary-forest);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 59, 41, 0.2);
}

.plans-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plans-grid.active {
  display: grid;
  animation: fadeInPlans 0.3s ease forwards;
}

@keyframes fadeInPlans {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-tier {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-forest);
}

.plan-price {
  margin: 14px 0 10px;
}

.plan-price strong {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.plan-price span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* Governança */
.gov-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.gov-text p {
  color: #a7f3d0;
  margin-top: 8px;
}

.gov-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.doc-link {
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(66, 230, 149, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(66, 230, 149, 0.25);
  transition: background 0.2s;
}

.doc-link:hover {
  background: rgba(66, 230, 149, 0.22);
}

/* CTA Box */
.cta-box {
  background: var(--primary-soft);
  border: 1px solid rgba(20, 122, 82, 0.22);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-info h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-info p {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.form-feedback {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-forest);
}

/* Rodapé */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-darker);
  color: #cbd5e1;
  padding: 64px 0 32px;
  border-top: 4px solid var(--primary-mint);
}

.footer-watermark {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.05;
  pointer-events: none;
  object-fit: contain;
}

.footer-brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  object-fit: contain;
}

.footer-tagline {
  color: #94a3b8;
  max-width: 440px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col a, .footer-col p {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--primary-glow);
}

.footer-bottom {
  padding-top: 24px;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* Responsividade */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .bento-grid, .plans-grid.active, .cta-box, .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-large, .bento-wide {
    grid-column: span 1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-only-link {
    display: block;
    color: var(--primary-forest) !important;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 560px) {
  .portal-label {
    display: none;
  }
}
