/* ============================================================
   shared.css — tokens, header, footer, botões e utilitários
   comuns a index.html, blog.html e blog-post.html.
   (admin/index.html tem seu próprio CSS, é uma tela à parte)
   ============================================================ */

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

:root {
  --blue: #0C69EA;
  --blue-dark: #014CC3;
  --blue-light: #4D93F5;
  --cyan: #3F8CF2;
  --bg: #0A0B0D;
  --bg-2: #101216;
  --bg-3: #16181D;
  --graphite: #2D2D2F;
  --gray: #64666C;
  --gray-light: #A1A2A4;
  --white: #F5F6F7;
  --silver: #C8C6C8;
  --border: rgba(161, 162, 164, 0.14);
  --glow: rgba(12, 105, 234, 0.35);
  --font-display: 'Michroma', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

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

::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--blue-dark)); border-radius: 8px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--white); line-height: 1.22; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============ PROGRESS BAR ============ */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 1001;
  box-shadow: 0 0 12px var(--glow);
}

/* ============ HEADER ============ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
  transition: background .35s, backdrop-filter .35s, border-color .35s, padding .35s;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
header.scrolled { padding: 10px 0; }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-cube-img { width: 46px; height: auto; filter: drop-shadow(0 4px 12px rgba(12, 105, 234, 0.35)); }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.logo-wordmark-img { width: 152px; height: auto; }
.logo-tagline-img { width: 138px; height: auto; margin-left: 2px; }

nav.desktop { display: flex; align-items: center; gap: 28px; }
nav.desktop a {
  font-size: 14px; font-weight: 500; color: var(--gray-light);
  position: relative; padding: 4px 0; transition: color .25s;
}
nav.desktop a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .3s; border-radius: 2px;
}
nav.desktop a:hover, nav.desktop a.active { color: var(--white); }
nav.desktop a:hover::after, nav.desktop a.active::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 12.5px; letter-spacing: 0.4px;
  padding: 13px 26px; border-radius: 12px; cursor: pointer; border: none;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  position: relative; overflow: hidden; white-space: normal;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 24px var(--glow);
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  transition: left .6s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 34px var(--glow); }
.btn-primary:hover::before { left: 130%; }
.btn-outline {
  background: rgba(12, 105, 234, 0.06);
  color: var(--white);
  border: 1px solid rgba(77, 147, 245, 0.35);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { transform: translateY(-3px); border-color: var(--blue-light); background: rgba(12, 105, 234, 0.14); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 1002;
}
.hamburger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  z-index: 1001; opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--silver);
  padding: 12px; transition: color .25s, transform .25s;
  opacity: 0; transform: translateY(16px);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); transition: opacity .4s, transform .4s, color .25s; }
.mobile-menu a:hover { color: var(--blue-light); }

/* ============ SEÇÕES ============ */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-kicker {
  display: inline-block; font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 14px;
  position: relative; padding: 0 46px;
}
.section-kicker::before, .section-kicker::after {
  content: ''; position: absolute; top: 50%; width: 32px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--blue));
}
.section-kicker::before { left: 0; }
.section-kicker::after { right: 0; transform: scaleX(-1); }
.section-head h2, .section-head h1 { font-size: clamp(22px, 2.8vw, 34px); margin-bottom: 16px; letter-spacing: 0.5px; }
.section-head h2 .grad, .section-head h1 .grad, .grad {
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--gray-light); font-size: 16.5px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ FOOTER ============ */
footer {
  background: #070C18;
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(12,105,234,0.1), transparent 70%);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 54px;
  position: relative; z-index: 1;
}
.footer-brand p { font-size: 14px; color: var(--gray); margin: 18px 0 24px; max-width: 300px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(12, 105, 234, 0.08);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, border-color .25s, background .25s;
}
.social-row a:hover { transform: translateY(-4px); border-color: var(--blue); background: rgba(12,105,234,0.18); }
.social-row svg { width: 18px; height: 18px; fill: var(--gray-light); transition: fill .25s; }
.social-row a:hover svg { fill: var(--white); }
.footer-col h4 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14px; color: var(--gray); transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: var(--blue-light); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray);
  position: relative; z-index: 1;
}
.footer-bottom .made b { color: var(--blue-light); }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(18, 140, 126, 0.45);
  transition: transform .3s;
  animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.12); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 28px rgba(18,140,126,0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 8px 28px rgba(18,140,126,0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 28px rgba(18,140,126,0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mobile-menu a { font-weight: 400; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav.desktop, .header-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  /* Ritmo vertical mais compacto no celular — mesmo ajuste do index.html */
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }
  footer { padding: 48px 0 0; }
}
