/* =========================================================
   BE.ON Consultoria em Tecnologia — style.css
   Paleta: Azul primário #1B75D0 · Navy #1A3A6B · Cinza escuro #2D2D2D
   ========================================================= */

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

:root {
  --blue:        #1B75D0;
  --blue-light:  #3A9FE8;
  --blue-dark:   #1A3A6B;
  --blue-glow:   rgba(27, 117, 208, 0.18);
  --dark:        #0B0E14;
  --dark-2:      #111520;
  --dark-card:   #161C2A;
  --dark-border: rgba(255,255,255,0.07);
  --gray-muted:  #5A6479;
  --gray-light:  #9AA3B5;
  --white:       #F4F7FC;
  --font-main:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius:      12px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Tipografia ---------- */
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--gray-light); line-height: 1.75; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 7rem 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 117, 208, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--dark-border);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-border);
  padding: 1rem 0;
}

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

.navbar-logo img { height: 60px; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--white); }

.navbar-cta { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(27, 117, 208, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(26, 58, 107, 0.15) 0%, transparent 60%);
}

/* Grid sutil no hero */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 580px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(27, 117, 208, 0.1);
  border: 1px solid rgba(27, 117, 208, 0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-label span { font-size: 0.78rem; font-weight: 600; color: var(--blue-light); letter-spacing: 0.1em; }

.hero-title {
  margin-bottom: 1.4rem;
  color: var(--white);
}

.hero-title .highlight {
  color: var(--blue-light);
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 340px;
  height: 320px;
}

.hero-card {
  position: absolute;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-card-main {
  top: 0; left: 0;
  width: 100%;
  z-index: 3;
}

.hero-card-back1 {
  top: 20px; left: 20px;
  width: 90%;
  z-index: 2;
  opacity: 0.6;
}

.hero-card-back2 {
  top: 40px; left: 40px;
  width: 80%;
  z-index: 1;
  opacity: 0.3;
}

.card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  margin-bottom: 1rem;
}

.card-metric {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.card-metric-label {
  font-size: 0.8rem;
  color: var(--gray-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-bar-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }

.card-bar-item { display: flex; flex-direction: column; gap: 0.25rem; }
.card-bar-label { font-size: 0.72rem; color: var(--gray-muted); }
.card-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.card-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

/* ---------- Stats / Numbers ---------- */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-number span { color: var(--blue-light); }

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ---------- Serviços ---------- */
.services { background: var(--dark-2); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header .label { display: block; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; color: var(--white); }
.section-header p { font-size: 1.05rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(27, 117, 208, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(27, 117, 208, 0.1);
}

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

.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(27, 117, 208, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Mac OS Diferencial ---------- */
.macos-section {
  background: var(--dark);
  overflow: hidden;
  position: relative;
}

.macos-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(27, 117, 208, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.macos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.macos-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.macos-device {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.macos-device:hover {
  border-color: rgba(27, 117, 208, 0.3);
  transform: translateX(6px);
}

.device-icon {
  font-size: 1.8rem;
  min-width: 42px;
  text-align: center;
}

.device-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.device-desc {
  font-size: 0.78rem;
  color: var(--gray-muted);
  margin-top: 0.15rem;
}

.macos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(27, 117, 208, 0.1);
  border: 1px solid rgba(27, 117, 208, 0.25);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  width: fit-content;
}

.macos-content .label { display: block; margin-bottom: 0.75rem; }
.macos-content h2 { color: var(--white); margin-bottom: 1rem; }
.macos-content p { margin-bottom: 1.25rem; }

.macos-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.macos-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.macos-feature-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(27, 117, 208, 0.15);
  border: 1px solid rgba(27, 117, 208, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.65rem;
  color: var(--blue-light);
}

.macos-feature-text {
  font-size: 0.92rem;
  color: var(--gray-light);
}

/* ---------- IA Section ---------- */
.ai-section { background: var(--dark-2); position: relative; overflow: hidden; }

.ai-section::after {
  content: 'AI';
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  font-size: 18rem;
  font-weight: 900;
  color: rgba(27, 117, 208, 0.025);
  letter-spacing: -0.05em;
  pointer-events: none;
  line-height: 1;
}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ai-content .label { display: block; margin-bottom: 0.75rem; }
.ai-content h2 { color: var(--white); margin-bottom: 1rem; }
.ai-content p { margin-bottom: 1.5rem; }

.ai-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2rem;
}

.pipeline-step:last-child { padding-bottom: 0; }

.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 1px;
  background: var(--dark-border);
}

.pipeline-node {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: rgba(27, 117, 208, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pipeline-info h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pipeline-info p {
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Stack ---------- */
.stack-section { background: var(--dark); }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.stack-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.stack-group {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: var(--gray-light);
  font-weight: 500;
  transition: var(--transition);
}

.stack-tag:hover {
  border-color: rgba(27, 117, 208, 0.4);
  color: var(--blue-light);
  background: rgba(27, 117, 208, 0.06);
}

/* ---------- Sobre ---------- */
.about-section { background: var(--dark-2); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about-logo { opacity: 0.9; }
.about-logo img { width: 260px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-stat {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.about-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
}

.about-stat-desc {
  font-size: 0.8rem;
  color: var(--gray-muted);
  margin-top: 0.3rem;
}

.about-content .label { display: block; margin-bottom: 0.75rem; }
.about-content h2 { color: var(--white); margin-bottom: 1rem; }
.about-content p { margin-bottom: 1rem; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(27, 117, 208, 0.12), rgba(26, 58, 107, 0.18));
  border: 1px solid rgba(27, 117, 208, 0.2);
  border-radius: 20px;
  padding: 5rem 3rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(27, 117, 208, 0.06), transparent 60%);
  pointer-events: none;
}

.cta-box .label { display: block; margin-bottom: 1rem; }
.cta-box h2 { color: var(--white); margin-bottom: 1rem; }
.cta-box p { margin-bottom: 2rem; font-size: 1.05rem; }

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  min-width: 230px;
}

.cta-contact-item:hover {
  border-color: rgba(27, 117, 208, 0.35);
  background: rgba(27, 117, 208, 0.06);
  transform: translateY(-2px);
}

.cta-contact-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.05);
}

.cta-contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(27, 117, 208, 0.1);
  border: 1px solid rgba(27, 117, 208, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cta-contact-icon-wa {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.2);
}

.cta-contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 0.2rem;
}

.cta-contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.cta-wa-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-weight: 600;
  white-space: nowrap;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

/* ---------- Footer ---------- */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand img { height: 36px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--gray-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--gray-muted);
}

/* ---------- Animações de entrada ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); border-radius: 3px; }

/* ---------- Banner de Cookies ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: rgba(17, 21, 32, 0.97);
  border-top: 1px solid var(--dark-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 260px;
}

.cookie-text p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-light);
  margin: 0;
}

.cookie-text a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-text a:hover { color: var(--white); }

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

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

.cookie-btn-outline {
  background: transparent;
  color: var(--gray-light);
  border: 1px solid var(--dark-border);
}
.cookie-btn-outline:hover {
  border-color: var(--gray-muted);
  color: var(--white);
}

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Botão flutuante WhatsApp ---------- */
#float-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 5rem;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#float-whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
}

/* ---------- Botão voltar ao topo ---------- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(27, 117, 208, 0.15);
  border: 1px solid rgba(27, 117, 208, 0.3);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: rgba(27, 117, 208, 0.28);
  border-color: rgba(27, 117, 208, 0.55);
}

/* ---- Highlight de texto ---- */
::selection { background: rgba(27, 117, 208, 0.35); color: var(--white); }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .macos-inner { grid-template-columns: 1fr; }
  .macos-visual { order: -1; }
  .ai-inner { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-logo { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }

  /* Navbar mobile */
  .navbar-links { display: none; }
  .navbar-cta { display: none; }
  .hamburger { display: flex; }
  .navbar { padding: 0.9rem 0; }
  .navbar.scrolled { padding: 0.75rem 0; }

  /* Serviços */
  .services-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats .container { grid-template-columns: repeat(2, 1fr); }

  /* Stack */
  .stack-grid { grid-template-columns: 1fr 1fr; }

  /* Hero */
  .hero-title { font-size: 2.4rem; }

  /* Contato cards */
  .cta-contacts {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cta-contact-item {
    min-width: unset;
    width: 100%;
  }
  .cta-wa-badge { display: none; }
  .cta-contact-value { font-size: 0.9rem; white-space: nowrap; }

  /* Botões CTA */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn,
  .cta-actions .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  /* CTA box */
  .cta-box { padding: 3rem 1.5rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats .container { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
