/* ==========================================================================
   HOSPEDAGRATIS - MODERN DESIGN SYSTEM 2026
   Foco em Premium UX, Glassmorphism, Velocidade e Alta Conversão
   ========================================================================== */

/* --- VARIÁVEIS / TOKENS --- */
:root {
  --primary-color: #003366; /* Azul profundo corporativo, idêntico ao antigo padrão base */
  --primary-light: #39549f; /* Azul suavizado que existia no painel e barras */
  --secondary-color: #007bff; /* Azul vibrante / conversivo para CTAs */
  --accent-color: #39549f; /* Ajustado para harmonia */
  
  --bg-color: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 51, 102, 0.05);

  --trans-fast: 0.2s ease-in-out;
  --trans-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  
  --max-width: 1200px;
}

/* --- RESET & FOUNDATION --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-fast);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4, .text-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 24px; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- BOTÕES & CTAS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--trans-smooth);
  font-family: var(--font-base);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0056b3 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 14px 0 rgba(0, 123, 255, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* --- HEADER / NAVBAR --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--trans-fast);
}

.site-header.scrolled {
  padding: 10px 0;
  box-shadow: var(--glass-shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand span {
  color: var(--secondary-color);
}

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

.navbar-menu a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1rem;
}

.navbar-menu a:hover {
  color: var(--secondary-color);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
  padding: 10px 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--white);
  min-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--trans-smooth);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 24px;
  display: block;
}

.dropdown-menu a:hover {
  background: rgba(0, 143, 17, 0.05);
  color: var(--secondary-color);
}

/* Badges */
.badge {
  background: var(--secondary-color);
  color: white;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: bold;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-new {
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(0, 143, 17, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 143, 17, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 143, 17, 0); }
}

/* Tooltip Base */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
}
.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: var(--white);
    color: var(--text-dark);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 15px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    line-height: 1.4;
    border: 1px solid var(--glass-border);
}
.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.tooltip-container .tooltip-text a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none; border: none; color: var(--primary-color);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  padding: 160px 0 80px;
  background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.05) 0%, rgba(248, 250, 252, 1) 60%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- RECURSOS / FEATURES GRID --- */
.features-section {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--trans-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  background: var(--white);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 24px;
}

/* --- PLANOS / PRICING --- */
.pricing-section {
  padding: 100px 0;
  background: var(--primary-color);
  color: var(--white);
}

.pricing-section h2, .pricing-section h3 {
  color: var(--white);
}
.pricing-section p {
  color: rgba(255,255,255,0.7);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

.pricing-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  backdrop-filter: blur(10px);
}

.pricing-card.popular {
  background: var(--white);
  color: var(--text-dark);
  transform: scale(1.05);
}

.pricing-card.popular h3 { color: var(--primary-color); }
.pricing-card.popular p { color: var(--text-muted); }
.pricing-card.popular .btn { width: 100%; }

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 20px 0;
  font-family: var(--font-display);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
}

.features-list {
  margin: 30px 0;
  text-align: left;
}

.features-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li i {
  color: var(--secondary-color);
}

/* --- FOOTER --- */
.site-footer {
  background: #06101c;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-heading {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trust-badges {
  display: flex;
  gap: 16px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.4);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    clip-path: circle(0% at top right);
    transition: var(--trans-smooth);
  }
  .navbar-menu.active {
    clip-path: circle(150% at top right);
  }
  .mobile-toggle {
    display: block;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .pricing-card.popular {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.25rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}
