/* ============================================================
   GB CONSTRUTORA — visual futurista dark
   Fontes: Space Grotesk (display) + Archivo (texto)
   ============================================================ */

:root {
  --bg: #05080d;
  --bg-2: #0a111c;
  --panel: #0d1624;
  --panel-2: #101b2c;
  --line: rgba(148, 180, 255, 0.10);
  --line-strong: rgba(148, 180, 255, 0.22);
  --txt: #eaf1fb;
  --muted: #8da3c0;
  --accent: #3b82ff;
  --accent-2: #38d4ff;
  --accent-soft: rgba(59, 130, 255, 0.12);
  --warm: #ffb454;
  --grad: linear-gradient(92deg, #3b82ff, #38d4ff);
  --radius: 18px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Archivo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2c44; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

/* ============================================================
   UTILITÁRIOS / ANIMAÇÕES BASE
   ============================================================ */

.accent-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.show { opacity: 1; transform: translateY(0); }

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.9); opacity: .35; }
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1.5%); }
}
@keyframes scanMove {
  0% { top: -20%; opacity: 0; }
  12% { opacity: .5; }
  88% { opacity: .5; }
  100% { top: 120%; opacity: 0; }
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes glowSweep {
  0% { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(230%) skewX(-18deg); }
}
@keyframes pingRing {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes hintDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes beamSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   LOADER
   ============================================================ */

.global-loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}
.global-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 3s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.loader-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  width: min(320px, 80vw);
}
.loader-logo {
  width: 150px;
  filter: invert(1) drop-shadow(0 0 24px rgba(59,130,255,.5));
  animation: floatY 2.4s ease-in-out infinite;
}
.loader-bar {
  width: 100%; height: 3px; border-radius: 4px;
  background: rgba(148,180,255,.12); overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(56,212,255,.8);
  transition: width .25s ease;
}
.loader-meta {
  width: 100%; display: flex; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: .22em; color: var(--muted);
}
.loader-pct { color: var(--accent-2); }

/* ============================================================
   SCROLL PROGRESS + CURSOR
   ============================================================ */

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--grad); z-index: 900;
  box-shadow: 0 0 12px rgba(56,212,255,.7);
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 950;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent-2); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(56,212,255,.5);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  background: rgba(56,212,255,.08);
  border-color: rgba(56,212,255,.9);
}
@media (hover: none), (max-width: 860px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   BOTÕES
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px; letter-spacing: .04em;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 15px; border-radius: 14px; }

.btn-primary {
  background: var(--grad);
  color: #021022;
  box-shadow: 0 6px 24px rgba(59,130,255,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(59,130,255,.5); }

.btn-glow {
  position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: glowSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { color: var(--txt); border-color: var(--accent); transform: translateY(-2px); }

.btn-outline-white {
  color: var(--txt);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.btn-outline-white:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-3px); }

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  padding: 14px 0;
  transition: background .4s ease, padding .4s ease, border-color .4s ease, box-shadow .4s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(5,8,13,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding: 8px 0;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.topbar-wrap { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,.4);
  transition: transform .3s ease;
}
.brand:hover .brand-logo-wrap { transform: rotate(-4deg) scale(1.05); }
.brand-logo { width: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: .18em; }

.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  position: relative;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 500; letter-spacing: .06em;
  color: var(--muted);
  border-radius: 10px;
  transition: color .25s ease, background .25s ease;
}
.menu a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.menu a:hover, .menu a.active { color: var(--txt); }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }

.topbar-actions { display: flex; gap: 10px; }

.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 12px 11px; cursor: pointer;
}
.menu-toggle span {
  width: 20px; height: 2px; background: var(--txt); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.topbar.mobile-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.mobile-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.mobile-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; }
.hero-slider .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 9s ease-out forwards;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,13,.72) 0%, rgba(5,8,13,.38) 45%, rgba(5,8,13,.94) 100%),
    linear-gradient(90deg, rgba(5,8,13,.85) 0%, rgba(5,8,13,.25) 60%, rgba(5,8,13,.4) 100%);
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; }

.hero-gridlines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 75%, transparent 100%);
}

.hero-scanline {
  position: absolute; left: 0; right: 0; height: 140px; top: -20%;
  background: linear-gradient(180deg, transparent, rgba(56,212,255,.07), transparent);
  animation: scanMove 7s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 0;
  flex: 1;
}

.hero-copy { max-width: 780px; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; letter-spacing: .26em;
  color: var(--accent-2);
  padding: 9px 16px;
  border: 1px solid rgba(56,212,255,.3);
  border-radius: 999px;
  background: rgba(56,212,255,.06);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.kicker-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask .line {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
}
.hero.loaded .line-mask .line { transform: translateY(0); }
.hero.loaded .line-mask:nth-child(2) .line { transition-delay: .12s; }
.hero.loaded .line-mask:nth-child(3) .line { transition-delay: .24s; }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #c2d2e8;
  max-width: 560px;
  margin-bottom: 34px;
  transition-delay: .35s;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; transition-delay: .45s; }

.hero-chips {
  display: flex; align-items: center; gap: 26px;
  margin-top: 46px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10,17,28,.55);
  backdrop-filter: blur(12px);
  width: fit-content;
  transition-delay: .55s;
}
.chip { display: flex; flex-direction: column; }
.chip strong {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chip span { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.chip-divider { width: 1px; height: 38px; background: var(--line-strong); }

.hero-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 0 28px;
}

.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 26px; height: 4px; border-radius: 4px;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.22);
  transition: background .3s ease, width .3s ease;
}
.hero-dot.active { background: var(--accent-2); width: 44px; box-shadow: 0 0 10px rgba(56,212,255,.6); }

.scroll-hint {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: .3em; color: var(--muted);
}
.scroll-hint-track {
  width: 22px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-hint-dot {
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--accent-2);
  animation: hintDrop 1.8s ease-in-out infinite;
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
}
.marquee-track {
  display: flex; align-items: center; gap: 38px;
  width: max-content;
  animation: marqueeMove 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: .3em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i {
  color: var(--accent); font-style: normal; font-size: 10px;
  animation: spinSlow 6s linear infinite;
}

/* ============================================================
   SEÇÕES — base
   ============================================================ */

.section { position: relative; padding: 110px 0; }

.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .26em;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-lead { color: var(--muted); font-size: 16.5px; max-width: 420px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

/* ============================================================
   MÉTRICAS
   ============================================================ */

.metrics { padding: 90px 0; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.metric-card {
  position: relative;
  padding: 34px 30px;
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.metric-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(59,130,255,.15);
}
.metric-index {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .3em; color: var(--accent);
  display: block; margin-bottom: 18px;
}
.metric-card strong {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px); font-weight: 700;
  display: block; margin-bottom: 10px; line-height: 1.1;
}
.metric-card strong em {
  font-style: normal; font-size: .55em; vertical-align: super;
  color: var(--accent-2);
}
.metric-desc { color: var(--muted); font-size: 15px; }
.metric-beam {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  overflow: hidden;
}
.metric-beam::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad);
  transform: translateX(-100%);
}
.metric-card:hover .metric-beam::after { animation: beamSlide 1.2s ease forwards; }

/* ============================================================
   EMPRESA
   ============================================================ */

.section-empresa {
  background:
    radial-gradient(ellipse 700px 500px at 8% 20%, rgba(59,130,255,.07), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empresa-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.empresa-sticky { position: sticky; top: 110px; }
.empresa-sticky .section-lead { margin-top: 18px; max-width: none; }

.empresa-badge {
  display: flex; align-items: center; gap: 14px;
  margin-top: 34px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  width: fit-content;
}
.empresa-badge img {
  width: 56px; background: #fff; border-radius: 10px; padding: 5px;
}
.empresa-badge strong { font-family: var(--font-display); display: block; font-size: 15px; }
.empresa-badge span { font-size: 12.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.empresa-flow { position: relative; padding-left: 36px; }
.empresa-flow::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(56,212,255,.12) 60%, transparent);
}

.flow-item { position: relative; padding-bottom: 34px; }
.flow-item::before {
  content: ''; position: absolute; left: -36px; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 14px rgba(59,130,255,.5);
}
.flow-item p { color: #b9c8de; font-size: 16px; }
.flow-item:first-child p {
  font-size: 19px; color: var(--txt); font-weight: 500;
}

/* ============================================================
   SEGMENTOS
   ============================================================ */

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.segment-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transform-style: preserve-3d;
  transition: border-color .35s ease, box-shadow .35s ease;
  cursor: pointer;
}
.segment-card:hover {
  border-color: rgba(59,130,255,.45);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px rgba(59,130,255,.12);
}

.segment-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.segment-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease;
  filter: saturate(.85) brightness(.9);
}
.segment-card:hover .segment-media img { transform: scale(1.09); filter: saturate(1.05) brightness(1); }

.segment-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,22,36,.95) 100%);
}

.segment-num {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .2em;
  color: rgba(255,255,255,.85);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(5,8,13,.45);
  backdrop-filter: blur(8px);
}

.segment-body { position: relative; padding: 24px 24px 26px; }
.segment-body h3 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.segment-arrow {
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--accent-2);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
  flex: none;
}
.segment-card:hover .segment-arrow {
  transform: rotate(45deg);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.segment-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; min-height: 44px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500; letter-spacing: .1em;
  color: #a9c3f5;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,255,.28);
  background: rgba(59,130,255,.08);
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */

.section-diff { overflow: hidden; }
.diff-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 400px at 90% 10%, rgba(56,212,255,.06), transparent),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(59,130,255,.06), transparent);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.diff-card {
  background: var(--bg);
  padding: 36px 28px 40px;
  position: relative;
  transition: background .4s ease;
}
.diff-card:hover { background: var(--panel); }
.diff-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.diff-card:hover::before { transform: scaleX(1); }

.diff-num {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148,180,255,.35);
  margin-bottom: 20px;
  transition: color .4s ease;
}
.diff-card:hover .diff-num {
  color: var(--accent);
  -webkit-text-stroke: 1px transparent;
}
.diff-card strong {
  font-family: var(--font-display);
  font-size: 18px; display: block; margin-bottom: 10px;
}
.diff-card span { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   GALERIA
   ============================================================ */

.section-galeria {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.gallery-tab {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted);
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: all .3s ease;
}
.gallery-tab:hover { color: var(--txt); border-color: var(--accent); transform: translateY(-2px); }
.gallery-tab.active {
  color: #021022;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(59,130,255,.4);
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: panelIn .5s cubic-bezier(.16,1,.3,1); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--panel);
  padding: 0;
  aspect-ratio: 16 / 11;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover {
  border-color: rgba(59,130,255,.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: '⤢';
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(5,8,13,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }

.gallery-empty {
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

/* ============================================================
   CONTATO
   ============================================================ */

.contact-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(36px, 5vw, 70px);
  background: linear-gradient(150deg, var(--panel-2) 0%, var(--bg-2) 70%);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  overflow: hidden;
}
.contact-glow {
  position: absolute; top: -160px; right: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,255,.18), transparent 65%);
  animation: floatY 5s ease-in-out infinite;
  pointer-events: none;
}
.contact-copy p { color: var(--muted); margin: 16px 0 30px; max-width: 420px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  align-self: center;
}
.contact-item {
  background: rgba(5,8,13,.55);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .3s ease;
}
.contact-item:hover { background: rgba(13,22,36,.9); }
.contact-item strong {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: .22em;
  color: var(--accent-2);
}
.contact-item a, .contact-item span { font-size: 14.5px; color: #c8d6ea; }
.contact-item a:hover { color: var(--accent-2); }

/* ============================================================
   FOOTER + WHATSAPP
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: var(--bg);
}
.footer-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13.5px; }
.footer-brand img { width: 44px; background: #fff; border-radius: 9px; padding: 4px; }
.footer-credit { color: var(--muted); font-size: 13px; }
.footer-credit a { color: var(--accent-2); }
.footer-credit a:hover { text-decoration: underline; }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 850;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1fbe5f;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(31,190,95,.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 40px rgba(31,190,95,.6); }
.whatsapp-ping {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1fbe5f;
  animation: pingRing 1.8s ease-out infinite;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(3,5,9,.92);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-content {
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  display: flex; flex-direction: column; gap: 14px;
  transform: scale(.94);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-content img {
  max-width: 100%; max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.lightbox-caption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .12em;
  color: var(--muted);
}

.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-strong);
  color: #fff; font-size: 26px; cursor: pointer;
  transition: all .25s ease;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-strong);
  color: #fff; font-size: 26px; cursor: pointer;
  transition: all .25s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-prev { left: 26px; }
.lightbox-next { right: 26px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1080px) {
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }

  .menu {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    background: rgba(7,11,18,.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    flex-direction: column;
    padding: 110px 30px 30px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.16,1,.3,1);
    z-index: 890;
  }
  .menu a { font-size: 18px; padding: 14px 16px; }
  .topbar.mobile-open .menu { transform: translateX(0); }

  .menu-toggle { display: flex; margin-left: auto; position: relative; z-index: 895; }
  .topbar-actions { display: none; }
  .brand-text span { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 40px; }

  .metrics-grid { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .empresa-layout { grid-template-columns: 1fr; }
  .empresa-sticky { position: static; }

  .hero-chips { gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
  .chip strong { font-size: 24px; }
  .chip-divider { display: none; }

  .hero-footer { flex-direction: column; align-items: flex-start; gap: 22px; }
  .scroll-hint { display: none; }

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

  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .2s !important;
  }
  html { scroll-behavior: auto; }
}
