/* === VARIÁVEIS DE COR === */
:root {
  --azul: #0d47a1;
  --azul-claro: #1565c0;
  --laranja: #ff6f00;
  --fundo: #f5f7fa;
  --texto: #333;
  --muted: #666;
}

/* === BASE === */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: Segoe UI, Roboto, Arial, sans-serif;
}

/* === LINKS === */
a {
  text-decoration: none;
  color: inherit;
}

/* === CONTAINER PADRÃO === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* === CABEÇALHO === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--azul);
  color: #fff;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  background: #0c3e91; /* ligeiramente mais escuro ao fazer scroll */
}

body {
  padding-top: 70px; /* compensar o cabeçalho fixo */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  height: 36px;
  width: auto;
}

/* === NAVEGAÇÃO === */
.nav {
  display: flex;
  gap: 14px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--laranja);
}

.nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--laranja);
  border-radius: 2px;
  animation: underline 0.3s ease-in-out forwards;
}

@keyframes underline {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* === BOTÃO HAMBÚRGUER === */
.menu-toggle {
  display: none;
  background: var(--azul);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.menu-toggle:hover {
  background: var(--laranja);
}

/* === CONTEÚDO PRINCIPAL === */
.hero {
  padding: 40px 0;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* === TIPOGRAFIA === */
h1, h2 {
  margin: 0 0 12px 0;
  color: var(--azul);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

/* === BOTÕES === */
.btn {
  background: var(--azul);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
}

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

/* === INPUTS === */
.input, textarea, select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--texto);
  outline: none;
}

.input:focus, textarea:focus, select:focus {
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 2px rgba(21,101,192,.2);
}

/* === GRIDS === */
.grid {
  display: grid;
  gap: 12px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* === TABELAS === */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th, .table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

/* === RODAPÉ === */
.footer {
  text-align: center;
  padding: 10px;
  color: var(--muted);
  margin-top: 30px;
}

/* === MENSAGENS === */
.success {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.error {
  background: #ffebee;
  border: 1px solid #e57373;
  color: #c62828;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* === SEÇÕES COM TEXTO + IMAGEM === */
.secao-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* texto + imagem */
  gap: 30px;
  align-items: center;
  margin: 40px 0;
}

.secao-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.secao-texto h1 {
  color: var(--azul);
  margin-bottom: 10px;
}

.secao-texto p {
  color: var(--muted);
  line-height: 1.7;
}

/* Imagem com limite */
.secao-img img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.secao-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
  .container { padding: 10px; }
}

@media (max-width: 900px) {
  .secao-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .secao-img img {
    max-width: 90%;
    margin: 0 auto 20px;
  }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { flex-direction: column; width: 100%; background: var(--azul); border-radius: 8px; overflow: hidden; }
  .nav a { padding: 12px; display: block; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; animation: slideDown 0.3s ease-out; }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4em; }
  h2 { font-size: 1.2em; }
  p { font-size: 0.95em; }
  .footer { font-size: 13px; padding: 12px; }
}
.texto {
  white-space: normal;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
  margin-top: 10px;
}

/* === ANIMAÇÕES DE ENTRADA === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === ANIMAÇÕES FLUTUANTES === */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotateZ(2deg); }
  50% { transform: translateY(-20px) rotateZ(-2deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes rainbowGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmerWave {
  0% { left: -1000px; }
  100% { left: 1000px; }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.3) rotate(-180deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes jiggle {
  0%, 100% { transform: rotateZ(-1deg); }
  50% { transform: rotateZ(1deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,111,0,0.7); }
  50% { box-shadow: 0 0 0 20px rgba(255,111,0,0); }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,111,0,0.5); }
  50% { text-shadow: 0 0 30px rgba(255,111,0,1); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* === EFEITO DE PARTICULAS === */
@keyframes particle {
  0% { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
  100% { opacity: 0; transform: translateY(-100px) translateX(var(--tx)) scale(0); }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f8 100%);
  animation: bgShift 15s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="5" fill="rgba(255,111,0,0.1)"/><circle cx="80" cy="30" r="3" fill="rgba(13,71,161,0.1)"/><circle cx="50" cy="70" r="4" fill="rgba(255,111,0,0.08)"/></svg>');
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

/* === SECÇÕES COM EFEITOS === */
.secao-grid {
  animation: slideInUp 0.8s ease-out;
}

.secao-texto {
  animation: slideInLeft 0.8s ease-out;
}

.secao-texto h1 {
  animation: glow 3s ease-in-out infinite;
}

.secao-img {
  animation: slideInRight 0.8s ease-out;
}

.secao-img img {
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(13,71,161,0.2));
  transition: all 0.3s ease;
}

.secao-img img:hover {
  animation: spin 3s linear 1;
  filter: drop-shadow(0 20px 50px rgba(255,111,0,0.5));
}

/* === CARDS COM MEGA EFEITOS === */
.card {
  position: relative;
  overflow: hidden;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: shimmerWave 3s infinite;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,111,0,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  animation: pulse 1.5s ease-out;
}

/* === BOTÕES COM MEGA EFEITOS === */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  animation: shimmerWave 2s infinite;
  z-index: -1;
}

.btn:hover {
  animation: jiggle 0.3s ease-in-out;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* === ÍCONES DINÂMICOS === */
[data-icon] {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
  font-size: 2em;
  margin-right: 8px;
}

[data-icon="tools"] { animation-delay: 0s; }
[data-icon="check"] { animation-delay: 0.1s; }
[data-icon="speed"] { animation-delay: 0.2s; }
[data-icon="shield"] { animation-delay: 0.3s; }
[data-icon="star"] { animation-delay: 0.4s; }

/* === TEXTO COM EFEITO TYPEWRITER === */
.typewriter {
  overflow: hidden;
  animation: typewriter 4s steps(40, end) 1s forwards;
  white-space: nowrap;
  border-right: 3px solid var(--azul);
}

/* === INPUTS COM EFEITOS === */
.input, textarea, select {
  position: relative;
  animation: slideInUp 0.6s ease-out backwards;
}

.input:nth-child(1) { animation-delay: 0.1s; }
.input:nth-child(2) { animation-delay: 0.2s; }
.input:nth-child(3) { animation-delay: 0.3s; }
.input:nth-child(4) { animation-delay: 0.4s; }
.input:nth-child(5) { animation-delay: 0.5s; }

.input::placeholder {
  animation: fadeInUp 0.8s ease-out;
}

/* === TABELAS COM EFEITOS === */
.table {
  animation: slideInUp 0.8s ease-out;
}

.table tr {
  animation: slideInRight 0.6s ease-out backwards;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.table tr:nth-child(1) { animation-delay: 0.05s; }
.table tr:nth-child(2) { animation-delay: 0.1s; }
.table tr:nth-child(3) { animation-delay: 0.15s; }
.table tr:nth-child(4) { animation-delay: 0.2s; }
.table tr:nth-child(5) { animation-delay: 0.25s; }

.table tr:hover {
  background: linear-gradient(90deg, transparent, rgba(255,111,0,0.2), transparent) !important;
  border-bottom-color: var(--laranja);
  transform: scaleX(1.02);
}

/* === MÉTRICA COM CONTADOR === */
.metric {
  animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.metric:nth-child(1) { animation-delay: 0.1s; }
.metric:nth-child(2) { animation-delay: 0.2s; }
.metric:nth-child(3) { animation-delay: 0.3s; }
.metric:nth-child(4) { animation-delay: 0.4s; }

.metric-number {
  font-size: 2.5em;
  font-weight: 700;
  animation: glow 2s ease-in-out infinite;
}

/* === GRID COM CASCATA === */
.grid > * {
  animation: slideInUp 0.6s ease-out backwards;
}

.grid > *:nth-child(1) { animation-delay: 0.05s; }
.grid > *:nth-child(2) { animation-delay: 0.1s; }
.grid > *:nth-child(3) { animation-delay: 0.15s; }
.grid > *:nth-child(4) { animation-delay: 0.2s; }
.grid > *:nth-child(5) { animation-delay: 0.25s; }
.grid > *:nth-child(6) { animation-delay: 0.3s; }

/* === FOOTER METRICS === */
.footer-metrics {
  position: relative;
  overflow: hidden;
  animation: slideInUp 1s ease-out;
}

.footer-metrics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--laranja), transparent);
  animation: shimmerWave 2s infinite;
}

/* === HEADER COM EFEITO === */
.header {
  animation: slideInDown 0.6s ease-out;
}

.nav a {
  position: relative;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.nav a:nth-child(1) { animation-delay: 0.1s; }
.nav a:nth-child(2) { animation-delay: 0.2s; }
.nav a:nth-child(3) { animation-delay: 0.3s; }
.nav a:nth-child(4) { animation-delay: 0.4s; }
.nav a:nth-child(5) { animation-delay: 0.5s; }
.nav a:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CONTAINER DECORATIVO === */
.container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(255,111,0,0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 50%, rgba(13,71,161,0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

