/* =========================================================
   DBSUPPORT — style.css
   Estilos base, variáveis, layout e componentes principais
   ========================================================= */

:root {
  /* Cores */
  --navy-950: #060e1c;
  --navy-900: #0a1830;
  --navy-800: #0f2140;
  --navy-700: #16305a;
  --blue-600: #2f6fed;
  --blue-500: #3b82f6;
  --blue-400: #5b93f5;
  --indigo-600: #6366f1;
  --violet-600: #7c5cf0;
  --skyblue-500: #38b6f1;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e5e9f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #4b5872;
  --gray-900: #0f172a;
  --white: #ffffff;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(15, 33, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 33, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 33, 64, 0.14);

  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-height: 84px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container { max-width: 1240px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

img, svg { max-width: 100%; display: block; }

::selection { background: var(--blue-500); color: var(--white); }

/* Custom bootstrap 5-col helper for footer / tech grid */
.col-lg-2-4 { position: relative; width: 100%; padding-right: 12px; padding-left: 12px; }
@media (min-width: 992px) {
  .col-lg-2-4 { flex: 0 0 auto; width: 20%; }
  .col-lg-2-8 { flex: 0 0 auto; width: 23%; }
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 46px; height: 46px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   TYPOGRAPHY / SHARED
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }

.text-accent { color: var(--blue-500); }

.section-text {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 16px;
}
.section-text.light { color: rgba(255,255,255,0.65); }
.section-text.mx-auto { margin-left: auto; margin-right: auto; }

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 60px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-600);
  transition: all var(--transition-base);
}
.btn-primary-custom:hover {
  background: #2559c9;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(47, 111, 237, 0.28);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  transition: all var(--transition-base);
  backdrop-filter: blur(6px);
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg-custom { padding: 15px 30px; font-size: 1rem; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar-custom {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-base), box-shadow var(--transition-base);
  padding: 14px 0;
}
/* O blur fica num pseudo-elemento (::before) em vez de ir direto no
   .navbar-custom: backdrop-filter no próprio elemento cria um novo
   "containing block" para os filhos com position:fixed (o .nav-links
   do menu mobile), fazendo o menu abrir fora de posição/tela ao rolar
   a página antes de tocar no botão. Isolando o blur no ::before, o
   .navbar-custom nunca ganha filter/backdrop-filter e o menu mobile
   sempre se posiciona corretamente em relação à viewport. */
.navbar-custom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.navbar-custom.scrolled::before { opacity: 1; }
.navbar-custom.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.navbar-custom.hero-dark:not(.scrolled) .nav-link { color: rgba(255,255,255,0.85); }
.navbar-custom.hero-dark:not(.scrolled) .nav-toggle span { background: var(--white); }

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

.logo { display: flex; align-items: center; }
.logo-img { height: 34px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color var(--transition-base);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width var(--transition-base);
}
.nav-link:hover { color: var(--blue-600); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--blue-600); }
.nav-link.active::after { width: 100%; }

.navbar-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
  padding-top: var(--navbar-height);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black 40%, transparent 90%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.glow-1 { width: 480px; height: 480px; background: var(--blue-600); top: -120px; right: 5%; }
.glow-2 { width: 380px; height: 380px; background: var(--indigo-600); bottom: -100px; left: 10%; opacity: 0.3; }

.hero-content { position: relative; z-index: 2; max-width: 880px; padding: 60px 0 90px; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--skyblue-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 182, 241, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.62);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.explore-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.explore-indicator i { animation: bounceDown 1.8s ease-in-out infinite; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.about-feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-600);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.about-feature-item h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 3px; }
.about-feature-item p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

.about-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image { width: 100%; height: auto; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-section { background: var(--white); }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 22px;
}
.bg-blue { background: linear-gradient(135deg, #3b82f6, #2f6fed); }
.bg-skyblue { background: linear-gradient(135deg, #38b6f1, #2f9ce8); }
.bg-indigo { background: linear-gradient(135deg, #7c8cf5, #6366f1); }
.bg-violet { background: linear-gradient(135deg, #8b6cf0, #6d4de0); }

.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.service-card > p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 22px; }

.service-list { display: grid; gap: 10px; }
.service-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--gray-600);
}
.service-list i { color: var(--blue-500); font-size: 0.7rem; }

/* =========================================================
   DIFFERENTIALS
   ========================================================= */
.differentials-section { background: var(--gray-50); }

.diff-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.diff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.diff-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-600);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.diff-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.diff-card p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }

/* =========================================================
   TECHNOLOGIES
   ========================================================= */
.tech-section { background: var(--white); }

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 14px;
  height: 100%;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-900);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.tech-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.tech-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-600);
  border-radius: 12px;
  font-size: 1.2rem;
}

/* =========================================================
   PROCESS / TIMELINE
   ========================================================= */
.process-section {
  background: var(--white);
}
.process-bg { display: none; }

.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(59,130,246,0) 0%,
    rgba(59,130,246,0.85) 10%,
    rgba(91,147,245,0.85) 50%,
    rgba(59,130,246,0.85) 90%,
    rgba(59,130,246,0) 100%);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline::after {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 90px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.10) 0%, rgba(59,130,246,0) 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.timeline-item {
  position: relative;
  z-index: 2;
  width: 50%;
  padding: 0 64px 70px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 14px; height: 14px;
  background: var(--blue-500);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.22), 0 0 16px 2px rgba(59,130,246,0.4);
  z-index: 3;
}
.timeline-item:nth-child(odd)::before { right: -7px; }
.timeline-item:nth-child(even)::before { left: -7px; }

.process-section .section-title.light { color: var(--gray-900); }
.process-section .section-text.light { color: var(--gray-500); }
.timeline-content h3 { color: var(--gray-900) !important; }
.timeline-content p { color: var(--gray-500) !important; }

.timeline-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
}
.timeline-content .eyebrow::before,
.timeline-content .eyebrow::after {
  content: none;
  width: 8px; height: 8px;
  flex-shrink: 0;
  background: var(--blue-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.timeline-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue-400);
  border-radius: 12px;
  font-size: 1.05rem;
  margin: 6px 0 14px;
}
.timeline-content h3 { color: var(--white); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.timeline-content p { color: rgba(255,255,255,0.55); font-size: 0.95rem; margin: 0; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section { background: var(--gray-50); }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stars { color: #f5a623; font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 3px; }
.testimonial-card p { color: var(--gray-600); font-size: 0.96rem; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-author h5 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.testimonial-author span { font-size: 0.82rem; color: var(--gray-500); }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-section {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
  padding: 120px 0;
}
.cta-content { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.cta-content .btn-primary-custom { margin-top: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-950);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-logo { margin-bottom: 18px; }
.footer-desc { font-size: 0.92rem; max-width: 320px; margin-bottom: 22px; line-height: 1.7; }

.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  color: var(--white);
  transition: all var(--transition-base);
}
.social-icons a:hover { background: var(--blue-600); transform: translateY(-3px); }

.footer-heading {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.footer-links { display: grid; gap: 13px; }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.55); transition: color var(--transition-base); }
.footer-links a:hover { color: var(--blue-400); }

.footer-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-width: 0; }
.footer-contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-base);
  min-width: 0;
}
.footer-contact-row a:hover { color: var(--blue-400); }
.footer-contact-row a i { color: var(--blue-400); font-size: 0.85rem; flex-shrink: 0; }

.footer-bottom {
  margin-top: 60px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.5); transition: color var(--transition-base); }
.footer-legal a:hover { color: var(--white); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
#backToTop {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 999;
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: #2559c9; }