:root {
  --primary: #0052FF;
  --primary-hover: #003ECC;
  --dark: #111827;
  --gray-bg: #F8FAFC;
  --text-main: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: #fff;
  color: var(--text-main);
  line-height: 1.6;
}

/* Topbar */
.topbar {
  background: #20272F;
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar a:hover {
  color: #fff;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 48px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-whatsapp {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-whatsapp:hover {
  background: var(--primary);
  color: #fff;
}

/* Slider Hero */
.hero-slider {
  position: relative;
  background: #0b0f19;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 8%;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Efeito TV CRT (Scanlines + Micropontos Pixelados) no Desktop */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.72) 20%, transparent 22%),
    linear-gradient(rgba(11, 15, 25, 0.5) 50%, rgba(0, 0, 0, 0.7) 50%);
  background-size: 3px 3px, 100% 3px;
  z-index: 1;
  pointer-events: none;
}

/* Card destacado na frente da sobreposição */
.slide-content {
  position: relative;
  z-index: 10;
  max-width: 620px;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-left: 5px solid var(--primary);
  border-radius: 6px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.slide-content h2 {
  color: #ffffff !important;
  font-size: 2.3rem;
  line-height: 1.25;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 span {
  color: #38bdf8 !important;
}

.slide-content p {
  color: #f1f5f9 !important;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-hero {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-hero:hover {
  background: var(--primary-hover);
}

/* Seções */
section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h3 {
  font-size: 2rem;
  color: var(--dark);
}

.section-title h3 span {
  color: var(--primary);
}

.section-title p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 10px auto 0;
}

/* Grids de Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 35px 25px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px -5px rgba(0,0,0,0.08);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-btn {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-btn:hover {
  text-decoration: underline;
}

/* Card Especial Orbizone */
.card-featured {
  border: 2px solid var(--primary);
  background: #F0F6FF;
  position: relative;
}

.card-badge {
  position: absolute;
  top: -12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Seção Experiência */
.exp-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.exp-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
}

.exp-item h4 {
  color: var(--dark);
  margin-bottom: 8px;
}

.exp-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exp-cta-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
}

/* Seção Newsletter VIP */
.newsletter-wrapper {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 50px 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.newsletter-wrapper h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.newsletter-wrapper p {
  color: #94a3b8;
  margin-bottom: 25px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 260px;
  padding: 14px 18px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #090d16;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 14px 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--primary-hover);
}

#newsletter-msg {
  margin-top: 15px;
  font-size: 0.95rem;
}

/* Rodapé */
footer {
  background: #000;
  color: #94a3b8;
  padding: 60px 20px 20px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--primary);
}

.footer-col p, .footer-col ul {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   SLIDE CLOUD (DESKTOP)
   ========================================================================== */
.slide.slide-cloud {
  background-image: linear-gradient(90deg, #0b0f19 0%, #0b0f19 28%, rgba(11, 15, 25, 0.75) 42%, transparent 58%), url('uploads/image3.jpg');
  background-position: left center, right 65%;
  background-size: 100% 100%, auto 115%;
  background-repeat: no-repeat;
}

/* ==========================================================================
   RESPONSIVIDADE GERAL (MOBILE & TABLET <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Topbar */
  .topbar {
    padding: 10px 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .topbar-left, .topbar-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
  }

  /* 2. Header */
  .nav-container {
    flex-direction: column;
    padding: 12px 15px;
    gap: 12px;
  }

  .logo img {
    max-height: 40px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
    font-size: 0.88rem;
  }

  .btn-whatsapp {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  /* 3. Slider Hero */
  .hero-slider {
    min-height: 590px;
    align-items: flex-end;
  }

  .slide {
    padding: 16px 14px;
    align-items: flex-end;
    background-size: cover !important;
  }

  .slide:nth-child(1) {
    background-position: 62% center !important;
  }

  .slide:nth-child(2) {
    background-position: center center !important;
  }

  .slide.slide-cloud,
  .slide:nth-child(3) {
    background-image: url('uploads/image3.jpg') !important;
    background-position: 76% center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .slide:nth-child(4) {
    background-position: center center !important;
  }

  /* Efeito CRT Pixelado + Vinheta Vertical de Cinema no Mobile */
  .slide::before {
    background-image: 
      radial-gradient(rgba(0, 0, 0, 0.72) 20%, transparent 22%),
      linear-gradient(0deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.3) 55%, rgba(11, 15, 25, 0.55) 100%) !important;
    background-size: 3px 3px, 100% 100% !important;
    z-index: 1;
    pointer-events: none;
  }

  .slide-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 8px;
    background: rgba(10, 15, 29, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  }

  .slide-content h2 {
    font-size: 1.25rem !important;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .slide-content p {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .btn-hero {
    padding: 9px 16px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  /* 4. Grades e seções */
  section {
    padding: 45px 15px;
  }

  .section-title h3 {
    font-size: 1.6rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .exp-container {
    grid-template-columns: 1fr;
  }

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

  /* 5. Newsletter */
  .newsletter-wrapper {
    padding: 35px 20px;
  }

  .newsletter-wrapper h3 {
    font-size: 1.4rem;
  }

  .newsletter-form input {
    min-width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }

  /* 6. Rodapé */
  footer {
    padding: 40px 15px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}