/* VARIABLES & RESET */
:root {
  --primary: #E53935;       /* Vermelho Daruma */
  --primary-hover: #C62828;
  --primary-glow: rgba(229, 57, 53, 0.25);
  --bg-dark: #0B0D10;       /* Fundo mais profundo */
  --bg-card: #13171F;       /* Cards com tom levemente azulado/grafite */
  --bg-header: rgba(11, 13, 16, 0.9);
  --text-main: #F0F4F8;
  --text-muted: #8E9BAE;
  --border-color: #222834;
  --font-main: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.08) 0%, transparent 50%);
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0.8rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s;
}

.logo img:hover {
  transform: scale(1.03);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
}

nav a:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-header {
  background-color: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 0 15px var(--primary-glow);
  transition: all 0.3s;
}

.btn-header:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.5);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero {
  padding: 7rem 8% 2.5rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  max-width: 580px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 57, 53, 0.1);
  color: #FF5252;
  border: 1px solid rgba(229, 57, 53, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, #FF5252 0%, hsl(0, 65%, 51%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 57, 53, 0.5);
}

/* Ajuste da imagem dash.png no preview do Hero */
.chart-card img {
  width: auto;         /* Deixa a largura proporcional ao invés de ocupar 100% */
  height: auto;
  max-height: 220px;   /* Reduz a altura máxima para diminuir o tamanho */
  object-fit: contain;
  border-radius: 4px;
  margin: 8px auto 0 auto; /* Centraliza a imagem horizontalmente */
  display: block;
}

/* MOCKUP CONTAINER */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.dashboard-preview {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}

.dashboard-preview::before {
  content: '';
  position: absolute;
  top: -10px; right: -10px; bottom: -10px; left: -10px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  border-radius: 16px;
}

.preview-header {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.chart-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.9rem;
}

.chart-card h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.chart-card .val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* Ajuste da imagem dash.png no preview do Hero (Responsivo) */
.chart-card img {
  width: 100%;             /* Ocupa a largura total disponível do card */
  max-width: 100%;         /* Garante que não ultrapasse os limites em telas menores */
  height: auto;            /* Mantém a proporção correta da imagem */
  max-height: 220px;       /* Limite máximo de altura para não esticar a seção */
  object-fit: contain;     /* Preserva o conteúdo da imagem sem cortar */
  border-radius: 4px;
  margin: 8px auto 0 auto;
  display: block;
}

/* SEÇÕES COM ESPAÇAMENTOS REDUZIDOS */
.services, .about, .contact {
  padding: 4rem 8%;
  border-top: 1px solid var(--border-color);
}

.services {
  background: rgba(0, 0, 0, 0.2);
}

.section-title {
  text-align: left;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-service {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  border-radius: 10px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: transparent;
  transition: background 0.3s;
}

.card-service:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--primary-glow);
}

.card-service:hover::before {
  background: var(--primary);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s;
}

.card-service:hover .card-link {
  transform: translateX(4px);
}

.icon-box {
  width: 44px;
  height: 44px;
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.card-service h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.card-service p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* MODAL / POPUP OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0d10d9;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px var(--primary-glow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.modal-body-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.modal-body-content ul {
  list-style: disc;
  margin-left: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-body-content li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.modal-img-preview {
  width: 100%;
  height: 250px;
  background: rgba(229, 57, 53, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SOBRE NÓS */
.about {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: radial-gradient(circle at 100% 50%, rgba(229, 57, 53, 0.05) 0%, transparent 60%);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.stats-list {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SEÇÃO DE CLIENTES (Ajustada com fundo claro e logo maior) */
.clients {
  padding: 4rem 8%;
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.clients .section-title {
  margin-bottom: 2rem;
}

.clients-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.client-card {
  
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 190px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.client-card img {
  width: 140%;
  height: 140%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.3s ease;
}

.client-card:hover img {
  transform: scale(1.05);
}

/* CONTATO */
.contact {
  background: var(--bg-dark);
}

.contact-container {
  max-width: 550px;
  margin: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

button[type="submit"] {
  background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--primary-glow);
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

/* FOOTER */
footer {
  padding: 2rem 8%;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #080A0C;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  header { padding: 0.8rem 5%; }
  nav { display: none; }
  .logo img { height: 35px; }
  .hero { flex-direction: column; text-align: center; padding-top: 6rem; gap: 2rem; }
  .hero-content { max-width: 100%; }
  .section-title { text-align: center; border-left: none; padding-left: 0; border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; }
  .stats-list { justify-content: center; }
  .about { flex-direction: column; }
  .contact-container { margin: 0 auto; }
  .services, .about, .contact { padding: 3rem 5%; }
  .client-card { width: 100%; height: 150px; }
}