/* TKM do Digital — estilos compartilhados */
:root {
  --bg: #0b0f0d;
  --bg-2: #111714;
  --card: #151c18;
  --line: #22302a;
  --text: #e8efe9;
  --muted: #9aa8a0;
  --accent: #2ee59d;
  --accent-ink: #04160d;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo img { height: 36px; width: auto; display: block; }
.logo-text span { color: var(--accent); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--muted); font-size: 0.95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5af0b3; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.nav .btn { padding: 10px 16px; color: var(--accent-ink); }

/* Hero */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(46,229,157,.18), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(46,229,157,.35); background: rgba(46,229,157,.08);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(46,229,157,.45); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(46,229,157,.1); color: var(--accent); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: .97rem; }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.card li { color: var(--muted); font-size: .93rem; padding-left: 22px; position: relative; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.step-num { font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; letter-spacing: .05em; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--muted); margin-bottom: 16px; }
.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: .95rem; }
.info-list span:first-child { color: var(--muted); }
.info-list span:last-child { text-align: right; font-weight: 500; }

/* CTA */
.cta {
  background: linear-gradient(135deg, rgba(46,229,157,.14), rgba(46,229,157,.03));
  border: 1px solid rgba(46,229,157,.3); border-radius: 24px; padding: 56px 40px; text-align: center;
}
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.cta p { color: var(--muted); margin: 0 auto 28px; max-width: 560px; }
.cta .hero-actions { justify-content: center; }

/* Blog */
.post-card { display: block; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.article { max-width: 760px; margin: 0 auto; padding: 70px 20px 90px; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.03em; margin: 12px 0 18px; }
.article .lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 36px; }
.article h2 { font-size: 1.45rem; margin: 40px 0 14px; letter-spacing: -0.02em; }
.article p, .article li { color: #c9d4cd; font-size: 1.05rem; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 22px; display: grid; gap: 8px; }
.article strong { color: var(--text); }
.back { color: var(--accent); font-size: .95rem; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 70px 20px 90px; }
.legal h1 { font-size: 2.2rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { color: #c9d4cd; }
.legal ul { margin: 0 0 16px 22px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: var(--text); font-size: .95rem; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border: 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .hero { padding: 80px 0 70px; }
  .cta { padding: 40px 22px; }
}

/* ===== Mascote ===== */
.has-mascot { position: relative; }
.mascot {
  position: absolute; z-index: 6; pointer-events: none; width: 170px;
  opacity: 0; transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s ease;
}
.mascot img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.45));
}
.mascot.in { opacity: 1; transform: translate(0,0) !important; }

/* estados iniciais (de onde desliza) */
.m-left  { transform: translateX(-130%); }
.m-right { transform: translateX(130%); }
.m-up    { transform: translateY(60%); }

/* ---- posições (cada um preso num ponto de contato real) ---- */

/* sentado: dentro do conteúdo de "Serviços". O assento (66,6% da altura)
   fica na borda de cima da seção: -90px do padding + -160px do assento */
.m-sit   { top: -250px; right: 20px; width: 190px; }

/* espiando: os dedos ficam rentes à borda da tela */
.m-edge-right { top: 18%; right: 0; width: 150px; }
.m-edge-left  { top: -120px; left: 0; width: 135px; }
.m-edge-right img, .m-edge-left img {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}

/* escorado: cotovelo na borda direita da lista de dados, pés na linha de baixo da seção */
.m-lean  { right: 0; bottom: -90px; width: 165px; }
@media (min-width: 921px) {
  .about.has-mascot { padding-right: 166px; }
}

/* por cima: dentro do card de contato, mãos 14px sobre a borda de cima do card */
.m-peek-over { top: -146px; right: 14%; width: 165px; }

/* ---- movimento parado no lugar: gira em volta do ponto de contato, sem descolar ---- */
.mascot.in img { animation: 5s ease-in-out infinite; }
.m-sit.in img        { transform-origin: 40% 66.6%; animation-name: m-sway; }
.m-edge-right.in img { transform-origin: 100% 60.6%; animation-name: m-peek-r; animation-duration: 4.2s; }
.m-edge-left.in img  { transform-origin: 0% 60.6%;   animation-name: m-peek-l; animation-duration: 4.6s; }
.m-lean.in img       { transform-origin: 50% 100%;   animation-name: m-breathe; animation-duration: 4.4s; }
.m-peek-over.in img  { transform-origin: 50% 100%;   animation-name: m-tilt; animation-duration: 3.8s; }

@keyframes m-sway    { 0%,100% { transform: rotate(0deg); }  50% { transform: rotate(-1.6deg); } }
@keyframes m-peek-r  { 0%,100% { transform: rotate(0deg); }  50% { transform: rotate(-3deg); } }
@keyframes m-peek-l  { 0%,100% { transform: rotate(0deg); }  50% { transform: rotate(3deg); } }
@keyframes m-breathe { 0%,100% { transform: scaleY(1); }     50% { transform: scaleY(1.012); } }
@keyframes m-tilt    { 0%,100% { transform: rotate(0deg); }  30% { transform: rotate(2.5deg); } 70% { transform: rotate(-2.5deg); } }

@media (prefers-reduced-motion: reduce) {
  .mascot { transition: opacity .4s ease; transform: none !important; }
  .mascot img, .mascot.in img { animation: none !important; }
}

/* some no celular para não cobrir texto */
@media (max-width: 920px) {
  .mascot { display: none; }
}
