:root {
  --bg-dark: #09111e;
  --bg-surface: #111c2e;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --primary: #10b981;
  --primary-hover: #059669;
  --border: #e2e8f0;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* Foco visível para teclado e acessibilidade */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Cabeçalho */
header {
  background-color: rgba(9, 17, 30, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand span {
  color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  flex-wrap: wrap;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav a:hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

/* Botões */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Hero */
.hero {
  background: radial-gradient(circle at top right, #13294b 0%, var(--bg-dark) 65%);
  color: var(--text-light);
  padding: clamp(52px, 8vw, 88px) 0;
}

.badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: clamp(0.78rem, 1.5vw, 0.85rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  max-width: 780px;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-highlights > div {
  min-width: 0;
}

.hero-highlights strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-highlights span {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Seções */
section.section {
  padding: clamp(48px, 7vw, 76px) 0;
}

section.section-alt {
  background-color: #eef2f6;
}

.section-header {
  max-width: 700px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  min-width: 0;
  overflow-wrap: break-word;
}

.step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 14px;
}

.card h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  color: #0f172a;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.card ul {
  padding-left: 18px;
  margin-top: 10px;
}

.card li {
  margin-bottom: 6px;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #16324f 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 32px);
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.cta-box p {
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

/* Páginas jurídicas */
.legal-page {
  padding: clamp(36px, 6vw, 64px) 0;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  max-width: 880px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

.legal-card h1 {
  color: #0f172a;
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  line-height: 1.2;
}

.legal-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.legal-card h2 {
  color: #0f172a;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  margin: 26px 0 10px;
}

.legal-card p,
.legal-card li {
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 0.97rem;
}

.legal-card ul {
  padding-left: 20px;
}

/* Rodapé */
footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: clamp(36px, 6vw, 52px) 0 28px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid > div {
  min-width: 0;
  overflow-wrap: break-word;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 1rem;
}

footer p {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #64748b;
  overflow-wrap: break-word;
}

/* Tablets e telas médias */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

/* Celulares e telas estreitas */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 16px;
    gap: 12px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    white-space: normal;
    width: 100%;
    padding: 4px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .cta-box .btn-primary {
    width: 100%;
  }

  .grid-3,
  .grid-2,
  .hero-highlights,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Celulares muito pequenos (até 380px) */
@media (max-width: 380px) {
  .btn-primary,
  .btn-secondary {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .card {
    padding: 18px;
  }
}