/* ============================================================
   G4D SERVICES — style.css
   Paleta: navy #070d1e · panel #111d3c · blue #3a6db5
   Base:   1rem = 16px (Bootstrap padrão)
   ============================================================ */

/* ── TOKENS ── */
:root {
  --navy:    #070d1e;
  --dark:    #0b1227;
  --mid:     #0f1a38;
  --panel:   #111d3c;
  --border:  #1c2d52;
  --blue:    #3a6db5;
  --bright:  #5b8fd4;
  --light:   #88b4e8;
  --ice:     #c2d8f0;
  --white:   #edf2f8;
  --muted:   #637592;
  --mono:    'DM Mono', monospace;
  --sans:    'DM Sans', sans-serif;
  --display: 'Syne', sans-serif;
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* grain de textura */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px;
}

section, nav, footer, header { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* ── DIVIDER ── */
.g-hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── BOTÕES ── */
.btn-g {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  padding: 0.72rem 1.65rem; border-radius: 7px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
  white-space: nowrap;
}
.btn-g-primary { background: var(--blue); color: #fff; }
.btn-g-primary:hover { background: var(--bright); color: #fff; transform: translateY(-2px); }
.btn-g-ghost { background: transparent; color: var(--ice); border: 1px solid var(--border); }
.btn-g-ghost:hover { border-color: var(--blue); background: rgba(58,109,181,0.07); color: var(--white); }

/* ── TAGS ── */
.tag {
  font-family: var(--mono); font-size: 0.59rem; font-weight: 400;
  padding: 0.1rem 0.48rem; border-radius: 3px;
  letter-spacing: 0.07em; text-transform: uppercase;
  border: 1px solid; display: inline-block;
}
.tag-blue  { color: var(--light);  border-color: rgba(58,109,181,0.3);   background: rgba(58,109,181,0.09); }
.tag-amber { color: #f5b942;        border-color: rgba(245,185,66,0.25);  background: rgba(245,185,66,0.07); }
.tag-ice   { color: var(--ice);     border-color: rgba(194,216,240,0.22); background: rgba(194,216,240,0.05); }
.tag-green { color: #4ade80;        border-color: rgba(74,222,128,0.25);  background: rgba(74,222,128,0.06); }

/* ── SECTION HEADER ── */
.s-label {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 400;
  color: var(--blue); letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.s-label::before { content: '//'; color: var(--muted); }

.s-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  color: var(--white); margin-bottom: 0.7rem;
}
.s-sub {
  font-size: 0.9rem; color: var(--muted);
  line-height: 1.75; max-width: 520px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.g-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,13,30,0.9);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.g-nav .container {
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-brand img { height: 34px; width: 34px; object-fit: contain; }
.nav-brand-name {
  font-family: var(--display); font-weight: 800; font-size: 0.88rem;
  letter-spacing: -0.03em; color: var(--white); white-space: nowrap;
}
.nav-brand-badge {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 400;
  color: var(--light); background: rgba(58,109,181,0.12);
  border: 1px solid rgba(58,109,181,0.28);
  padding: 0.1rem 0.45rem; border-radius: 3px;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.nav-toggle {
  display: none; background: transparent;
  border: 1px solid var(--border); color: var(--muted);
  padding: 0.35rem 0.6rem; border-radius: 5px;
  cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.nav-collapse { display: flex; align-items: center; gap: 0.2rem; }

.nav-link-item {
  font-size: 0.82rem; font-weight: 400; color: var(--muted);
  text-decoration: none; padding: 0.35rem 0.85rem; border-radius: 5px;
  transition: color .18s, background .18s;
}
.nav-link-item:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-cta {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  color: #fff; background: var(--blue);
  border: none; padding: 0.42rem 1.1rem;
  border-radius: 6px; text-decoration: none; margin-left: 0.4rem;
  transition: background .18s, transform .12s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--bright); color: #fff; transform: translateY(-1px); }

@media (max-width: 768px) {
  .nav-brand-name { font-size: 0.78rem; }
  .nav-brand-badge { display: none; }
  .nav-toggle { display: block; }
  .nav-collapse {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--dark); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem; gap: 0.2rem; display: none;
  }
  .nav-collapse.open { display: flex; }
  .nav-link-item { padding: 0.65rem 0.85rem; font-size: 0.9rem; }
  .nav-cta { margin: 0.3rem 0 0.4rem; text-align: center; padding: 0.7rem; font-size: 0.88rem; }
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  padding: 134px 0 88px;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(58,109,181,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,109,181,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
}

.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(90px);
}
.hero-glow-a {
  width: 560px; height: 420px; top: -100px; left: -140px;
  background: radial-gradient(ellipse, rgba(58,109,181,0.13) 0%, transparent 70%);
}
.hero-glow-b {
  width: 400px; height: 320px; bottom: -60px; right: -80px;
  background: radial-gradient(ellipse, rgba(30,50,110,0.16) 0%, transparent 70%);
}

.hero-inner { position: relative; z-index: 1; }

/* eyebrow com ponto pulsante */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 400;
  color: var(--light); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bright);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.65); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  color: var(--white); margin-bottom: 1.4rem;
}
.hero-title .accent { color: var(--bright); }

.hero-url {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.77rem; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border);
  padding: 0.4rem 0.95rem; border-radius: 5px; margin-bottom: 1.75rem;
}
.hero-url .host { color: var(--light); }

.hero-lead {
  font-size: 1rem; color: var(--muted);
  max-width: 490px; line-height: 1.82; margin-bottom: 2.4rem;
}
.hero-lead strong { color: var(--ice); font-weight: 500; }

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

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 2.8rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-item { flex: 0 0 auto; }
.hero-stat-num {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  color: var(--white); letter-spacing: -0.04em; display: block;
}
.hero-stat-label {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.04em;
}

/* painel direito hero */
.hero-visual {
  display: flex; flex-direction: column; gap: 0.9rem;
}

.hv-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.2rem;
  transition: border-color .2s, transform .2s;
}
.hv-card:hover { border-color: rgba(58,109,181,0.5); transform: translateX(5px); }

.hv-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.55rem;
}
.hv-card-name {
  font-family: var(--display); font-weight: 700; font-size: 0.84rem;
  color: var(--white);
}
.hv-card-status {
  font-family: var(--mono); font-size: 0.58rem; color: #4ade80;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.22);
  padding: 0.08rem 0.42rem; border-radius: 3px; letter-spacing: 0.1em;
}
.hv-card-url {
  font-family: var(--mono); font-size: 0.67rem;
  color: var(--muted); margin-bottom: 0.5rem;
}
.hv-card-tags { display: flex; gap: 0.32rem; flex-wrap: wrap; }

/* animações de entrada do hero */
.a1 { opacity: 0; animation: fu .6s .08s forwards; }
.a2 { opacity: 0; animation: fu .65s .18s forwards; }
.a3 { opacity: 0; animation: fu .65s .28s forwards; }
.a4 { opacity: 0; animation: fu .65s .38s forwards; }
.a5 { opacity: 0; animation: fu .65s .48s forwards; }
.a6 { opacity: 0; animation: fu .7s .6s forwards; }

@keyframes fu {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .hero { padding: 110px 0 64px; }
  .hero-visual { margin-top: 2.5rem; }
}
@media (max-width: 576px) {
  .hero { padding: 96px 0 56px; }
  .hero-stats { gap: 1.5rem; }
  .hero-lead { font-size: 0.95rem; }
}

/* ══════════════════════════════
   SERVIÇOS
══════════════════════════════ */
.services-section { padding: 6rem 0; }

.srv-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.6rem; height: 100%;
  position: relative; overflow: hidden;
  transition: border-color .22s, transform .18s, box-shadow .22s;
}
.srv-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--light));
  opacity: 0; transition: opacity .22s;
}
.srv-card:hover { border-color: rgba(58,109,181,0.45); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
.srv-card:hover::after { opacity: 1; }

.srv-icon {
  width: 42px; height: 42px; border-radius: 9px;
  background: rgba(58,109,181,0.1); border: 1px solid rgba(58,109,181,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--light); font-size: 1.1rem; margin-bottom: 1rem;
}
.srv-name {
  font-family: var(--display); font-weight: 700; font-size: 0.96rem;
  color: var(--white); margin-bottom: 0.45rem; letter-spacing: -0.01em;
}
.srv-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.68; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.1rem; }

/* ══════════════════════════════
   CONSULTORIA
══════════════════════════════ */
.consult-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
}

.consult-body { font-size: 0.9rem; color: var(--muted); line-height: 1.82; }
.consult-body strong { color: var(--ice); font-weight: 500; }
.consult-body + .consult-body { margin-top: 0.9rem; }

.check-list {
  list-style: none; padding: 0; margin-top: 1.6rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.87rem; color: var(--muted);
}
.check-list li i { color: var(--blue); font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; }
.check-list li strong { color: var(--white); font-weight: 500; }

.kpi-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem;
  position: relative; overflow: hidden;
}
.kpi-panel::before {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,109,181,0.12), transparent 70%);
  pointer-events: none;
}
.kpi-panel-title {
  font-family: var(--display); font-weight: 700; font-size: 0.92rem;
  color: var(--white); margin-bottom: 1.4rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.kpi-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
}
.kpi-row:last-child { border-bottom: none; padding-bottom: 0; }
.kpi-label { font-size: 0.78rem; color: var(--muted); }
.kpi-value {
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  color: var(--bright); letter-spacing: -0.03em;
}

/* ══════════════════════════════
   SISTEMAS — STEPS
══════════════════════════════ */
.systems-section { padding: 6rem 0; }

.step-card {
  background: var(--mid); border: 1px solid var(--border);
  border-radius: 9px; padding: 1.5rem; height: 100%;
  position: relative; overflow: hidden;
  transition: border-color .2s;
}
.step-card::before {
  content: attr(data-num);
  position: absolute; right: 1rem; top: 0.6rem;
  font-family: var(--display); font-weight: 800; font-size: 3.2rem;
  color: rgba(58,109,181,0.07); letter-spacing: -0.05em; line-height: 1;
  pointer-events: none;
}
.step-card:hover { border-color: rgba(58,109,181,0.38); }

.step-num-label {
  font-family: var(--mono); font-size: 0.62rem; color: var(--muted);
  letter-spacing: 0.1em; margin-bottom: 0.85rem;
}
.step-name {
  font-family: var(--display); font-weight: 700; font-size: 0.93rem;
  color: var(--white); margin-bottom: 0.5rem;
}
.step-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.62; }

/* ══════════════════════════════
   CTA FINAL
══════════════════════════════ */
.cta-section {
  padding: 7rem 0;
  position: relative; overflow: hidden;
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 65% at 50% 55%, rgba(58,109,181,0.1) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }

.cta-pre {
  font-family: var(--mono); font-size: 0.67rem; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.cta-title {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  color: var(--white); margin-bottom: 0.9rem;
}
.cta-title em { font-style: normal; color: var(--bright); }
.cta-sub {
  font-size: 0.95rem; color: var(--muted); line-height: 1.75;
  max-width: 460px; margin-bottom: 2rem;
}
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.cta-contact {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  margin-top: 1.2rem; display: flex; align-items: center; gap: 0.45rem;
}
.cta-contact a { color: var(--light); text-decoration: none; }
.cta-contact a:hover { color: var(--ice); }

@media (max-width: 576px) {
  .cta-section { padding: 5rem 0; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-g { justify-content: center; }
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.g-footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.65rem;
}
.footer-brand img { height: 30px; width: 30px; object-fit: contain; }
.footer-brand-name {
  font-family: var(--display); font-weight: 800; font-size: 0.86rem;
  color: var(--white);
}
.footer-tagline { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

.footer-right { text-align: right; }
.footer-url {
  font-family: var(--mono); font-size: 0.7rem;
}
.footer-url a { color: var(--light); text-decoration: none; }
.footer-url a:hover { color: var(--ice); }
.footer-copy { font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }

@media (max-width: 576px) {
  .footer-right { text-align: left; margin-top: 1rem; }
}


/* ============================================================
   21. LOADER — Tela de entrada com logomarca
   ============================================================ */

/* Overlay fullscreen */
#g4d-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Estado oculto — adicionado via JS após carregamento */
#g4d-loader.g4d-loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Wrapper interno centralizado */
.g4d-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Logo no loader */
.g4d-loader-logo {
  width: 160px;
  height: auto;
  animation: g4d-loader-pulse 0.9s ease-in-out infinite;
}

/* Barra de progresso container */
.g4d-loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

/* Progresso animado */
.g4d-loader-progress {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 2px;
  animation: g4d-loader-fill 1.4s ease forwards;
}

/* Animações do loader */
@keyframes g4d-loader-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.95); }
}

@keyframes g4d-loader-fill {
  0%   { width: 0%; }
  100% { width: 100%; }
}