﻿/* =============================================
   IAPI Consultoria — CSS Parallax Theme
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:    #6366f1;
  --purple-d:  #4f46e5;
  --purple-l:  #818cf8;
  --blue:      #3b82f6;
  --cyan:      #06b6d4;
  --green:     #10b981;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --bg:        #03040c;
  --bg-2:      #070919;
  --bg-3:      #0d0f20;
  --bg-card:   rgba(13,15,32,.85);
  --border:    rgba(255,255,255,.07);
  --border-l:  rgba(255,255,255,.12);
  --text:      #e2e8f0;
  --text-muted:#8892a4;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 8px 40px rgba(99,102,241,.22);
  --font:      'Inter', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

/* =============================================
   TEMA CLARO
   ============================================= */
body.light-theme {
  --bg:        #f0f2fa;
  --bg-2:      #e8ecf7;
  --bg-3:      #dde2f4;
  --bg-card:   rgba(255,255,255,.92);
  --border:    rgba(0,0,0,.08);
  --border-l:  rgba(0,0,0,.14);
  --text:      #0f172a;
  --text-muted:#4b5563;
  --shadow:    0 8px 40px rgba(99,102,241,.15);
}

body.light-theme::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,   rgba(99,102,241,.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(6,182,212,.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(16,185,129,.04) 0%, transparent 60%),
    var(--bg);
}

body.light-theme::after {
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
}

body.light-theme .navbar {
  background: transparent;
  border-bottom-color: transparent;
}

body.light-theme .navbar.scrolled {
  background: rgba(240,242,250,.92);
  border-bottom-color: rgba(0,0,0,.08);
}

body.light-theme .navbar__links a { color: var(--text-muted); }
body.light-theme .navbar__links a:hover { color: var(--purple); }
body.light-theme .navbar__toggle span { background: var(--text); }

/* Dashboard do hero — mantém cores brancas independente do tema */
body.light-theme .hero__dashboard {
  background: rgba(13,15,32,.95);
  border-color: rgba(255,255,255,.1);
}
body.light-theme .hero__float-badge {
  background: rgba(13,15,32,.92);
  border-color: rgba(255,255,255,.12);
  color: #e2e8f0;
}
body.light-theme .btn--white {
  background: #0f172a;
  color: #fff;
}
body.light-theme .btn--white:hover {
  background: #1e293b;
}
body.light-theme .btn--primary {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
body.light-theme .btn--primary:hover {
  background: #1e293b;
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
}
body.light-theme .hd__title { color: rgba(255,255,255,.55); }
body.light-theme .hd__topbar { background: rgba(255,255,255,.03); border-bottom-color: rgba(255,255,255,.06); }
body.light-theme .hd__chart-block { border-bottom-color: rgba(255,255,255,.05); }

body.light-theme .hero__code-block,
body.light-theme .hd__inner {
  background: rgba(255,255,255,.85);
  border-color: rgba(0,0,0,.10);
}

body.light-theme .mod__card,
body.light-theme .feat__card,
body.light-theme .dep__card,
body.light-theme .sobre__stat,
body.light-theme .proc__step {
  background: rgba(255,255,255,.90);
  border-color: rgba(0,0,0,.08);
}

body.light-theme .contato__form {
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.08);
}

body.light-theme input,
body.light-theme textarea,
body.light-theme select {
  background: #f8faff;
  border-color: rgba(0,0,0,.12);
  color: var(--text);
}

body.light-theme .footer {
  background: #dde2f4;
  border-top-color: rgba(0,0,0,.08);
}

/* Botão toggle de tema */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-l);
  border-radius: 50px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background .2s, border-color .2s, transform .2s;
  color: var(--text-muted);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--border);
  color: var(--text);
  transform: rotate(20deg);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* Fundo global */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,   rgba(99,102,241,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(6,182,212,.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(16,185,129,.05) 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* =============================================
   PARALLAX
   ============================================= */
.parallax-layer {
  position: absolute; inset: 0;
  pointer-events: none; will-change: transform;
}
.hero__grid-layer {
  background-image:
    linear-gradient(rgba(99,102,241,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0;
  animation: orb-fade-in 1.5s ease forwards;
}
.orb--1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(99,102,241,.55) 0%, transparent 70%);
  top: -180px; left: -140px; animation-delay: .2s;
}
.orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.45) 0%, transparent 70%);
  bottom: -200px; right: -100px; animation-delay: .5s;
}
.orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16,185,129,.3) 0%, transparent 70%);
  top: 50%; left: 55%; animation-delay: .8s;
}
@keyframes orb-fade-in { to { opacity: 1; } }

.hero__ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(99,102,241,.15);
  animation: ring-pulse 6s ease-in-out infinite;
}
.hero__ring--1 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hero__ring--2 { width: 900px; height: 900px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-color: rgba(6,182,212,.08); animation-delay: 2s; }
@keyframes ring-pulse {
  0%,100% { opacity: .4; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: .8; transform: translate(-50%,-50%) scale(1.04); }
}

.section-parallax-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; will-change: transform; }
.sp-orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .18; }
.sp-orb--purple { width: 500px; height: 500px; background: var(--purple); top: -100px; left: -80px; }
.sp-orb--blue   { width: 400px; height: 400px; background: var(--blue);   bottom: -60px; right: -60px; }
.sp-orb--cyan   { width: 450px; height: 450px; background: var(--cyan);   top: 0; right: -100px; }
.sp-orb--green  { width: 380px; height: 380px; background: var(--green);  bottom: -80px; left: 20%; }
.sp-orb--amber  { width: 420px; height: 420px; background: var(--amber);  top: -60px; left: 40%; opacity: .12; }

/* =============================================
   PARTÍCULAS
   ============================================= */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; width: 3px; height: 3px;
  border-radius: 50%; background: rgba(255,255,255,.6);
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

/* =============================================
   REVEAL
   ============================================= */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* =============================================
   GRADIENT TEXT
   ============================================= */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-l) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none;
  transition: all .28s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; font-family: var(--font);
  position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.08); opacity: 0; transition: opacity .2s; }
.btn:hover::after { opacity: 1; }

.btn--primary { background: linear-gradient(135deg, var(--purple), var(--cyan)); color: #fff; box-shadow: 0 4px 24px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.15); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 10px 34px rgba(99,102,241,.55); }

.btn--outline { background: rgba(255,255,255,.04); color: var(--text); border: 1.5px solid var(--border-l); backdrop-filter: blur(12px); }
.btn--outline:hover { border-color: var(--purple-l); color: #fff; background: rgba(99,102,241,.12); transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--bg); font-weight: 700; }
.btn--white:hover { background: #e2e8f0; transform: translateY(-2px); }

.btn--lg { padding: 16px 36px; font-size: 1.02rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--ghost { background: transparent; color: var(--purple-l); border: 1.5px solid rgba(99,102,241,.35); padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s; font-family: var(--font); }
.btn--ghost:hover { background: rgba(99,102,241,.12); border-color: var(--purple-l); transform: translateY(-1px); }
.btn--ghost-blue  { color: var(--cyan);  border-color: rgba(6,182,212,.35); }
.btn--ghost-blue:hover  { background: rgba(6,182,212,.1); border-color: var(--cyan); }
.btn--ghost-green { color: var(--green); border-color: rgba(16,185,129,.35); }
.btn--ghost-green:hover { background: rgba(16,185,129,.1); border-color: var(--green); }

.btn--primary-blue  { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: .88rem; border: none; transition: all .2s; font-family: var(--font); box-shadow: 0 4px 20px rgba(6,182,212,.38); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.btn--primary-blue:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(6,182,212,.5); }
.btn--primary-green { background: linear-gradient(135deg, var(--green), var(--cyan)); color: #fff; padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: .88rem; border: none; transition: all .2s; font-family: var(--font); box-shadow: 0 4px 20px rgba(16,185,129,.38); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.btn--primary-green:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,185,129,.5); }

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; background: rgba(99,102,241,.13); color: var(--purple-l); border: 1px solid rgba(99,102,241,.28); padding: 5px 18px; border-radius: 50px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em; }
.section-desc { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all .35s ease; }
.navbar.scrolled { background: rgba(3,4,12,.82); backdrop-filter: blur(24px) saturate(180%); border-bottom: 1px solid var(--border); padding: 6px 0; box-shadow: 0 4px 32px rgba(0,0,0,.4); }
.navbar.scrolled .navbar__logo-img { height: 48px; }
.navbar__inner { display: flex; align-items: center; gap: 40px; }
.navbar__logo { display: flex; align-items: center; }
.navbar__logo-img {
  height: 110px;
  width: auto;
  display: block;
  object-fit: contain;
  transform-origin: center center;
  transition: height .35s ease, transform .22s cubic-bezier(.4,0,.6,1), opacity .22s ease;
}
.navbar__logo-img.logo--collapse {
  transform: scaleY(0) scaleX(0.7);
  opacity: 0;
}
.logo-icon { background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 1.6rem; }
.navbar__links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.navbar__links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; transition: color .2s; position: relative; }
.navbar__links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1.5px; background: linear-gradient(90deg, var(--purple), var(--cyan)); transform: scaleX(0); transition: transform .25s ease; border-radius: 2px; }
.navbar__links a:hover { color: #fff; }
.navbar__links a:hover::after { transform: scaleX(1); }
.navbar__blog-link { color: var(--cyan) !important; border: 1px solid rgba(6,182,212,.35); border-radius: 6px; padding: 5px 14px !important; font-weight: 600 !important; transition: color .2s, background .2s, border-color .2s !important; }
.navbar__blog-link:hover { color: #fff !important; background: rgba(6,182,212,.15); border-color: var(--cyan); }
.navbar__blog-link::after { display: none !important; }
.navbar__cta { margin-left: 16px; padding: 10px 24px; font-size: .88rem; }
.navbar__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; padding: 4px; }
.navbar__toggle span { display: block; width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* =============================================
   HERO
   ============================================= */
/* =============================================
   HERO — Split Layout
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0 100px;
  isolation: isolate;
}

/* Grid 2 colunas: texto | visual */
.hero__inner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: flex-start;
  max-width: 1160px;
  width: 100%;
}

/* --- Coluna Texto --- */
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }

/* Intro código Python */
.hero__code-intro {
  font-family: 'Courier New', Consolas, monospace;
  font-size: clamp(.85rem, 1.2vw, 1rem);
  line-height: 1.9;
  color: #a5f3fc;
  opacity: 1;
  transition: opacity .7s ease, transform .7s ease;
  margin-bottom: 0;
}
.hero__code-intro.ci--hide {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  position: absolute;
}
.hc__kw { color: #c084fc; }
.hc__fn { color: #60a5fa; }
.hc__cm { color: #475569; }
.hc__st { color: #86efac; }

/* Título e subtítulo começam escondidos */
#heroTitle, #heroSubtitle {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}
#heroTitle.hi--show, #heroSubtitle.hi--show {
  opacity: 1;
  transform: translateY(0);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.28);
  padding: 9px 20px; border-radius: 50px; font-size: .83rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 32px; backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 10px rgba(16,185,129,.8); animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { transform: scale(1); box-shadow: 0 0 10px rgba(16,185,129,.8); }
  50%      { transform: scale(1.4); box-shadow: 0 0 18px rgba(16,185,129,.5); }
}

/* --- Terminal Python intro --- */
.hero__terminal,
.hero__content,
.ht__topbar, .ht__dot, .ht__dot--red, .ht__dot--amber,
.ht__dot--green, .ht__filename, .ht__code, .ht__cursor,
.hc--show { display: none; } /* limpa legado */

/* --- Decode effect nos textos do hero --- */
#heroTitle, #heroSubtitle {
  opacity: 0;
  transition: opacity .1s;
}
#heroTitle.decoding, #heroSubtitle.decoding { opacity: 1; }

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.04em; margin-bottom: 24px;
  text-align: left;
}
.hero__subtitle {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 40px;
  line-height: 1.75;
  text-align: left;
}
.hero__actions {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 52px;
  justify-content: flex-start;
}

/* Stats Bar — faixa full-width abaixo do hero */
.hero__stats-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  background: rgba(255,255,255,.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero__stats {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.stat { text-align: center; flex: 1; padding: 36px 24px; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border);
}
.stat strong {
  display: block; font-family: var(--font-head);
  font-size: 2.1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--purple-l), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 5px;
}
.stat span { font-size: .8rem; color: var(--text-muted); max-width: 130px; display: block; margin: 0 auto; }

/* --- Coluna Visual / Dashboard --- */
.hero__visual {
  position: relative;
  perspective: 900px;
}

.hero__dashboard {
  background: rgba(13,15,32,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,.6),
    0 0 0 1px rgba(99,102,241,.12),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform .08s linear, box-shadow .15s ease;
  will-change: transform;
}

.hero__dashboard.is-tilting {
  box-shadow:
    0 60px 120px rgba(0,0,0,.7),
    0 0 0 1px rgba(99,102,241,.22),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* Barra de título */
.hd__topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hd__dot { width: 12px; height: 12px; border-radius: 50%; }
.hd__dot--red   { background: #ef4444; }
.hd__dot--amber { background: #f59e0b; }
.hd__dot--green { background: #10b981; }
.hd__title { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-left: 8px; }

/* ---- GRÁFICOS ---- */
.hd__charts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hd__chart-block {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hd__chart-block:last-child { border-bottom: none; }

/* Gráfico de linha */
.hd__linechart {
  width: 100%; height: 80px; display: block; overflow: visible;
}
.hd__area {
  animation: chart-draw-area 1.4s ease both;
  transform-origin: left;
}
.hd__line--purple {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: chart-draw-line 1.6s ease forwards .2s;
}
@keyframes chart-draw-line {
  to { stroke-dashoffset: 0; }
}
@keyframes chart-draw-area {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hd__dot-point {
  opacity: 0;
  animation: dot-pop .3s ease forwards;
}
.hd__dot-point:nth-child(5) { animation-delay: .8s; }
.hd__dot-point:nth-child(6) { animation-delay: 1.0s; }
.hd__dot-point:nth-child(7) { animation-delay: 1.2s; }
.hd__dot-point:nth-child(8) { animation-delay: 1.4s; }
@keyframes dot-pop {
  from { opacity: 0; r: 1px; }
  to   { opacity: 1; r: 3.5px; }
}

/* Gráfico de barras verticais */
.hd__chart-block--bars { padding-bottom: 20px; }
.hd__barchart { width: 100%; height: 80px; display: block; }
.hd__vbar {
  transform-origin: bottom;
  animation: bar-grow .8s cubic-bezier(.4,0,.2,1) both;
  transform-box: fill-box;
}
.hd__vbar:nth-child(1) { animation-delay: .1s; }
.hd__vbar:nth-child(2) { animation-delay: .2s; }
.hd__vbar:nth-child(3) { animation-delay: .3s; }
.hd__vbar:nth-child(4) { animation-delay: .4s; }
.hd__vbar:nth-child(5) { animation-delay: .5s; }
.hd__vbar:nth-child(6) { animation-delay: .6s; }
.hd__vbar:nth-child(7) { animation-delay: .7s; }
@keyframes bar-grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Gráfico donut */
.hd__chart-block--donut {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}
.hd__donut {
  width: 80px; height: 80px; flex-shrink: 0;
  transform: rotate(-90deg);
}
.hd__donut-seg {
  stroke-dashoffset: 0;
  animation: donut-fill 1.2s ease both;
}
.hd__donut-seg--purple { animation-delay: .3s; }
.hd__donut-seg--cyan   { animation-delay: .6s; }
.hd__donut-seg--green  { animation-delay: .9s; }
@keyframes donut-fill {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hd__donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hd__legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: block;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-badge 2.5s infinite;
}
.hd__legend-dot:nth-child(2) { animation-delay: .8s; }
.hd__legend-dot:nth-child(3) { animation-delay: 1.6s; }

/* Badges flutuantes */
.hero__float-badge {
  position: absolute;
  background: rgba(13,15,32,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: .78rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
  color: var(--text);
  animation: float 3.5s ease-in-out infinite;
}
.hero__float-badge--1 { top: -18px; right: -10px; animation-delay: 0s; }
.hero__float-badge--2 { bottom: -16px; left: 10px; animation-delay: 1.6s; }

/* =============================================
   HERO RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .hero__visual { order: -1; }
  .hero__float-badge--1 { top: -14px; right: 10px; }
  .hero__float-badge--2 { bottom: -14px; left: 10px; }
}
@media (max-width: 700px) {
  .hero { padding: 110px 0 60px; }
  .hero__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero__subtitle { font-size: .92rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero__float-badge { display: none; }
  .hero__code-intro { font-size: .78rem; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 0 56px; }
  .hero__stats { flex-direction: column; }
  .stat + .stat::before { display: none; }
  .stat { border-top: 1px solid var(--border); }
  .stat:first-child { border-top: none; }
}

/* =============================================
   SEÇÕES parallax base
   ============================================= */
.solucoes, .sobre, .processo, .depoimentos, .contato { position: relative; overflow: hidden; isolation: isolate; }

/* =============================================
   SOLUÇÕES — 6 Cards
   ============================================= */
.solucoes { padding: 110px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1200px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  transition: border-color .28s ease, box-shadow .28s ease;
  will-change: transform;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -20%, rgba(99,102,241,.07), transparent);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.service-card.is-tilting {
  border-color: rgba(99,102,241,.3);
  box-shadow: 0 24px 60px rgba(99,102,241,.18);
}
.service-card.is-tilting::before { opacity: 1; }

/* Ícone */
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.service-card__icon--purple { background: rgba(99,102,241,.15); }
.service-card__icon--blue   { background: rgba(59,130,246,.15);  }
.service-card__icon--violet { background: rgba(139,92,246,.15);  }
.service-card__icon--cyan   { background: rgba(6,182,212,.15);   }
.service-card__icon--green  { background: rgba(16,185,129,.15);  }
.service-card__icon--amber  { background: rgba(245,158,11,.15);  }

/* Título */
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

/* Descrição */
.service-card__desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.72;
  flex: 1;
}

/* Tag de categoria */
.service-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 4px;
}

@media (max-width: 1050px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SOBRE
   ============================================= */
.sobre { padding: 110px 0; }
.sobre__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.sobre__text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.78; }
.sobre__text .section-title { margin-bottom: 22px; }
.sobre__visual { position: relative; }
.sobre__mockup { background: var(--bg-card); border: 1px solid var(--border-l); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.mockup-bar { background: rgba(255,255,255,.04); padding: 13px 16px; display: flex; gap: 8px; border-bottom: 1px solid var(--border); }
.mockup-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.mockup-bar span:nth-child(1) { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: var(--amber); }
.mockup-bar span:nth-child(3) { background: var(--green); }
.mockup-content { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.mockup-line { height: 10px; background: var(--border); border-radius: 50px; animation: shimmer 2.5s infinite; }
.mockup-line--title { width: 60%; height: 18px; }
.mockup-line--short { width: 40%; }
.mockup-line--mid   { width: 65%; }
.mockup-line--full  { flex: 1; }
@keyframes shimmer { 0%,100% { opacity: .4; } 50% { opacity: .85; } }
.mockup-cards { display: flex; gap: 12px; }
.mockup-card  { flex: 1; height: 64px; border-radius: var(--radius-sm); opacity: .28; animation: shimmer 2.5s infinite; }
.mc--purple { background: var(--purple); animation-delay: .2s; }
.mc--blue   { background: var(--blue);   animation-delay: .4s; }
.mc--green  { background: var(--green);  animation-delay: .6s; }
.mockup-pulse { display: flex; align-items: center; gap: 10px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse-badge 2s infinite; box-shadow: 0 0 8px rgba(16,185,129,.7); }
.pulse-dot--blue { background: var(--blue); animation-delay: .8s; box-shadow: 0 0 8px rgba(59,130,246,.7); }
.sobre__badge-float { position: absolute; background: var(--bg-card); border: 1px solid var(--border-l); border-radius: 50px; padding: 11px 20px; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 7px; white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,.4); backdrop-filter: blur(16px); animation: float 3.5s ease-in-out infinite; }
.sobre__badge-float--1 { top: -18px; right: 20px; }
.sobre__badge-float--2 { bottom: 24px; left: -24px; animation-delay: 1.8s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(.5deg); } }
.sobre__features { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; width: 48px; height: 48px; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.feature-item strong { display: block; font-weight: 700; margin-bottom: 5px; }
.feature-item p { color: var(--text-muted); font-size: .9rem; margin: 0; line-height: 1.55; }

/* =============================================
   PROCESSO
   ============================================= */
.processo { padding: 110px 0; }
.steps { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; }
.step { flex: 1; min-width: 200px; max-width: 250px; text-align: center; padding: 36px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); position: relative; transition: transform .3s, border-color .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(99,102,241,.3); box-shadow: 0 16px 40px rgba(99,102,241,.15); }
.step__num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 900; background: linear-gradient(135deg, var(--purple-l), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 14px; }
.step__content h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.step__content p  { color: var(--text-muted); font-size: .85rem; line-height: 1.65; }
.step__arrow { font-size: 1.6rem; color: var(--text-muted); align-self: center; padding: 0 8px; opacity: .3; }

/* =============================================
   DEPOIMENTOS
   ============================================= */
.depoimentos { padding: 110px 0; }
.depo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.depo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; backdrop-filter: blur(14px); transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.depo-card::before { content: '"'; position: absolute; top: -10px; left: 20px; font-size: 8rem; font-weight: 900; color: rgba(99,102,241,.08); font-family: Georgia, serif; line-height: 1; pointer-events: none; }
.depo-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(99,102,241,.15); border-color: rgba(99,102,241,.25); }
.depo-card--featured { background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.08)); border-color: rgba(99,102,241,.3); box-shadow: 0 0 0 1px rgba(99,102,241,.1); }
.depo-stars { color: var(--amber); font-size: 1rem; margin-bottom: 18px; letter-spacing: 3px; }
.depo-card > p { color: var(--text-muted); font-size: .93rem; line-height: 1.75; margin-bottom: 26px; font-style: italic; position: relative; z-index: 1; }
.depo-author { display: flex; align-items: center; gap: 14px; }
.depo-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.depo-avatar--1 { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.depo-avatar--2 { background: linear-gradient(135deg, var(--cyan), var(--green)); }
.depo-avatar--3 { background: linear-gradient(135deg, var(--amber), var(--red)); }
.depo-author strong { display: block; font-size: .93rem; }
.depo-author span   { color: var(--text-muted); font-size: .78rem; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner { position: relative; padding: 100px 0; overflow: hidden; isolation: isolate; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(99,102,241,.2) 0%, rgba(6,182,212,.15) 100%); border-top: 1px solid rgba(99,102,241,.15); border-bottom: 1px solid rgba(6,182,212,.1); }
.cta-banner__glow { position: absolute; inset: -80%; background: radial-gradient(ellipse at center, rgba(99,102,241,.18) 0%, transparent 65%); pointer-events: none; animation: glow-pulse 4s ease-in-out infinite; }
@keyframes glow-pulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.cta-banner__inner { position: relative; text-align: center; z-index: 1; }
.cta-banner__inner h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: 18px; letter-spacing: -.02em; }
.cta-banner__inner p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* =============================================
   CONTATO
   ============================================= */
.contato { padding: 110px 0; }
.contato__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contato__info .section-title { margin-bottom: 18px; }
.contato__info > p { color: var(--text-muted); line-height: 1.78; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .93rem; }
.contact-icon { font-size: 1.1rem; }
.contato__form { background: var(--bg-card); border: 1px solid var(--border-l); border-radius: var(--radius); padding: 44px 40px; display: flex; flex-direction: column; gap: 20px; backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05); }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.form-group input, .form-group select, .form-group textarea { background: rgba(255,255,255,.04); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; color: var(--text); font-family: var(--font); font-size: .93rem; transition: border-color .2s, background .2s, box-shadow .2s; outline: none; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--purple); background: rgba(99,102,241,.06); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.form-group select option { background: var(--bg-3); }
.form-disclaimer { text-align: center; color: var(--text-muted); font-size: .76rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent); opacity: .4; }
.footer__inner { display: flex; gap: 64px; flex-wrap: wrap; padding-bottom: 52px; }
.footer__brand { flex: 1; min-width: 220px; }
.footer__brand p { color: var(--text-muted); font-size: .9rem; margin-top: 13px; max-width: 280px; line-height: 1.7; }
.footer__logo-img { height: 70px; width: auto; }
.footer__links { display: flex; gap: 64px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h5 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 6px; }
.footer__col a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { color: var(--text-muted); font-size: .8rem; }

/* =============================================
   WHATSAPP FLUTUANTE
   ============================================= */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; align-items: center; gap: 10px; background: #25D366; color: #fff; font-weight: 700; font-size: .9rem; padding: 14px 24px 14px 18px; border-radius: 50px; box-shadow: 0 6px 32px rgba(37,211,102,.5); transition: transform .28s ease, box-shadow .28s ease; text-decoration: none; max-width: 230px; }
.whatsapp-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.whatsapp-float span { white-space: nowrap; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 12px 44px rgba(37,211,102,.6); }
@media (max-width: 500px) { .whatsapp-float { padding: 14px; max-width: 58px; } .whatsapp-float span { display: none; } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1050px) { .modules-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
@media (max-width: 900px) {
  .sobre__inner { grid-template-columns: 1fr; gap: 52px; }
  .sobre__visual { order: -1; }
  .depo-grid { grid-template-columns: 1fr; }
  .contato__inner { grid-template-columns: 1fr; gap: 52px; }
  .steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); padding: 6px 0; }
  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__links { gap: 36px; }
}
@media (max-width: 700px) {
  .navbar__links, .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__logo-img { height: 60px; }
  .navbar { padding: 14px 0; }
  .navbar.scrolled { padding: 10px 0; }
  .navbar__links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: rgba(3,4,12,.96); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); padding: 28px 24px; gap: 22px; z-index: 999; }
  .contato__form { padding: 28px 18px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .sobre__inner { gap: 36px; }
  .footer__links { flex-direction: column; gap: 24px; }
}

/* =============================================
   MOBILE PEQUENO (≤480px)
   ============================================= */
@media (max-width: 480px) {
  /* Seções — padding reduzido */
  .solucoes, .sobre, .processo, .depoimentos, .contato { padding: 72px 0; }
  .footer { padding: 48px 0 0; }

  /* Hero */
  .hero { padding: 90px 0 52px; }
  .hero__title { font-size: 1.85rem; line-height: 1.15; }
  .hero__subtitle { font-size: .88rem; }
  .hero__code-intro { font-size: .72rem; line-height: 1.7; }

  /* Navbar */
  .navbar__logo-img { height: 60px; }

  /* Dashboard */
  .hd__charts { gap: 10px; }
  .hd__chart-block { padding: 12px 10px; }

  /* Títulos de seção */
  .section-title { font-size: 1.7rem; }
  .section-badge { font-size: .68rem; }

  /* Stats */
  .stat { padding: 24px 16px; }
  .stat strong { font-size: 2rem; }

  /* Cards */
  .service-card { padding: 26px 20px; }

  /* Processo steps */
  .step { padding: 28px 20px; }

  /* Depoimentos */
  .depo-card { padding: 28px 20px; }

  /* Contato */
  .contato__info { gap: 20px; }
  .info-item { flex-direction: column; gap: 10px; }

  /* Footer */
  .footer__inner { gap: 28px; }
  .footer__links { flex-direction: column; gap: 20px; }
  .footer__col { gap: 10px; }
}