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

:root {
  --bg: #050d0a;
  --bg-alt: #0a1a12;
  --bg-card: rgba(12, 36, 24, 0.75);
  --text: #f0f7f0;
  --text-muted: #9cb89e;
  --accent: #f1c40f;          /* Amarelo da bandeira */
  --accent-hover: #d4ac0d;
  --accent-text: #0a1f14;     /* Texto escuro nos botões amarelos */
  --blue: #002776;            /* Azul da bandeira */
  --border: rgba(30, 61, 44, 0.8);
  --green: #009c3b;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: #020805;
  background-image:
    linear-gradient(180deg, rgba(2,8,5,0.75) 0%, rgba(2,8,5,0.55) 35%, rgba(2,8,5,0.8) 100%),
    radial-gradient(ellipse 50% 40% at 60% 50%, rgba(241, 196, 15, 0.12), transparent 70%),
    url('brazil-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Grid 3D moderno (profundidade) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 180, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 255, 0.05) 1px, transparent 1px);
  background-size: 55px 55px;
  transform: perspective(600px) rotateX(58deg) scale(2.2);
  transform-origin: center 85%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 65%);
}

.header,
.mobile-nav,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

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

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

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 13, 10, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(241, 196, 15, 0.12);
}

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

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--accent);
  color: var(--accent-text) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--accent-hover);
  color: var(--accent-text) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(13, 42, 26, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
}

.mobile-nav a:hover {
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  background: transparent;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(241, 196, 15, 0.06);
}

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

.section-alt {
  background: rgba(8, 22, 16, 0.55);
  backdrop-filter: blur(8px);
}

.section-header {
  margin-bottom: 56px;
  max-width: 640px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Cards Grid ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: rgba(12, 36, 24, 0.65);
  border: 1px solid rgba(241, 196, 15, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: rgba(241, 196, 15, 0.3);
  background: rgba(12, 36, 24, 0.8);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* ===== Feature Blocks ===== */
.feature-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.feature-block:last-of-type {
  border-bottom: none;
  margin-bottom: 40px;
  padding-bottom: 0;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1;
}

.feature-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 680px;
}

/* ===== Callout ===== */
.callout {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.12), rgba(241, 196, 15, 0.04));
  border: 1px solid rgba(241, 196, 15, 0.3);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 16px;
}

.callout h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.callout p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Vision Grid ===== */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.vision-item {
  background: rgba(12, 36, 24, 0.65);
  border: 1px solid rgba(241, 196, 15, 0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}

.vision-item:hover {
  border-color: rgba(241, 196, 15, 0.3);
  background: rgba(12, 36, 24, 0.8);
}

.vision-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.vision-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.vision-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== CTA ===== */
.section-cta {
  background: transparent;
  text-align: center;
  padding: 100px 0;
}

.cta-content {
  max-width: 560px;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.cta-note {
  font-size: 0.95rem !important;
  color: var(--accent) !important;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(241, 196, 15, 0.1);
  padding: 40px 0;
  background: rgba(5, 13, 10, 0.85);
  backdrop-filter: blur(12px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand strong {
  font-size: 1.05rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .feature-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-number {
    font-size: 1.5rem;
  }

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

  .hero {
    padding: 120px 0 70px;
  }

  .section {
    padding: 70px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
