/* ===================== VARIÁVEIS & SETUP ===================== */
:root {
  /* Cores da Marca - Mais profundas e modernas */
  --primary: #0f62fe;          /* Azul IBM/Tech vibrante */
  --primary-dark: #0043ce;     /* Azul escuro para hover */
  --secondary: #002d9c;        /* Azul profundo */
  --accent: #00d6e6;           /* Ciano para detalhes subtis */
  
  /* Neutros */
  --text-main: #161616;
  --text-light: #525252;
  --background: #f2f4f8;
  --white: #ffffff;

  /* Sombras e Efeitos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===================== NAVBAR ===================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.8); /* Fundo claro translúcido */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Classe adicionada via JS ao fazer scroll */
nav.shrink {
  padding: 12px 6%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.left-links a {
  color: var(--text-main);
  text-decoration: none;
  margin-right: 32px;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}

.left-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.left-links a:hover::after {
  width: 100%;
}

.login-btn {
  padding: 10px 24px;
  background-color: var(--text-main);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.3);
}

/* ===================== HERO SECTION ===================== */
header.hero {
  position: relative;
  height: 90vh; /* Altura um pouco menor que 100vh para encorajar o scroll */
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: var(--white);
  overflow: hidden;
}

/* Tratamento da Imagem de Fundo */
header.hero .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Overlay Gradiente para legibilidade */
header.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg, 
    rgba(0, 45, 156, 0.9) 0%, 
    rgba(15, 98, 254, 0.7) 100%
  );
  z-index: -1;
}

header.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); /* Responsivo */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
  letter-spacing: -1px;
  animation: slideUp 0.8s ease-out;
}

header.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.cta-main {
  padding: 16px 42px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

.cta-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
}

/* ===================== FEATURES GRID ===================== */
section.features {
  padding: 100px 6%;
  margin-top: -80px; /* Efeito de sobreposição no Hero */
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Barra colorida no topo do card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===================== FOOTER ===================== */
footer {
  background-color: var(--white);
  color: var(--text-light);
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

/* ===================== ANIMAÇÕES ===================== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  nav {
    padding: 15px 5%;
  }
  
  nav .left-links {
    display: none; /* Em mobile, normalmente usaríamos um menu hambúrguer */
  }
  
  header.hero {
    padding: 0 20px;
    text-align: center;
    align-items: center;
  }
  
  section.features {
    margin-top: 40px;
    padding: 40px 20px;
  }
}