/* =========================================================
   eDigital Contabilidade — Design System
   ========================================================= */

/* ---------- Tokens / Variáveis ---------- */
:root {
  /* Marca */
  --brand-900: #081544;
  --brand-800: #0b1b4d;
  --brand-700: #122a7a;
  --brand-600: #1a37b0;
  --brand-500: #1e3fd0;
  --brand-400: #3a5cf0;
  --brand-300: #6f8bff;
  --accent: #20c4e0;
  --accent-2: #36e0c0;

  /* Tema claro (default) */
  --bg: #f4f7fc;
  --bg-soft: #eaf0fb;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.7);
  --text: #0e1733;
  --text-soft: #46506e;
  --text-muted: #6b7596;
  --border: rgba(20, 40, 110, 0.12);
  --shadow-sm: 0 2px 10px rgba(13, 27, 77, 0.08);
  --shadow-md: 0 12px 34px rgba(13, 27, 77, 0.12);
  --shadow-lg: 0 26px 60px rgba(13, 27, 77, 0.18);
  --ring: rgba(30, 63, 208, 0.35);

  --hero-grad: radial-gradient(1200px 600px at 80% -10%, rgba(54, 224, 192, .22), transparent 60%),
               radial-gradient(900px 500px at 0% 10%, rgba(32, 196, 224, .18), transparent 55%),
               linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 45%, var(--brand-500) 100%);

  --grad-brand: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  --grad-accent: linear-gradient(135deg, var(--accent), var(--brand-400));

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #060c22;
  --bg-soft: #0a1230;
  --surface: #0e1838;
  --surface-2: #111f47;
  --glass: rgba(18, 32, 74, 0.55);
  --glass-border: rgba(120, 150, 255, 0.18);
  --text: #eaf0ff;
  --text-soft: #b6c2e6;
  --text-muted: #8593bd;
  --border: rgba(130, 160, 255, 0.16);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --ring: rgba(111, 139, 255, 0.5);
  --hero-grad: radial-gradient(1200px 600px at 80% -10%, rgba(54, 224, 192, .18), transparent 60%),
               radial-gradient(900px 500px at 0% 10%, rgba(32, 196, 224, .14), transparent 55%),
               linear-gradient(135deg, #050a20 0%, var(--brand-800) 55%, var(--brand-700) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.text-grad {
  background: linear-gradient(120deg, var(--brand-400), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-400);
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-400) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-400) 25%, transparent);
}
.section-head { max-width: 680px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 16px 0 14px; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 26px rgba(30, 63, 208, .4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30, 63, 208, .52); }
.btn-wa { background: linear-gradient(135deg, #25d366, #128c5e); color: #fff; box-shadow: 0 10px 26px rgba(18, 140, 94, .4); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18, 140, 94, .52); }
.btn-ghost {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-border); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }

/* ---------- Cartão de vidro ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand b { font-size: 1.12rem; letter-spacing: -.02em; }
.brand span { color: var(--text-muted); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  padding: 9px 15px; border-radius: 10px; color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: color-mix(in srgb, var(--brand-400) 12%, transparent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
  transition: transform .25s var(--ease), background .25s;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.btn-portal { padding: 10px 18px; font-size: .9rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 110px;
  background: var(--hero-grad); color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-orbits { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero-orbits span {
  position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  animation: spin 28s linear infinite;
}
.hero-orbits span:nth-child(1) { width: 460px; height: 460px; top: -120px; right: -80px; }
.hero-orbits span:nth-child(2) { width: 300px; height: 300px; top: -40px; right: 0; border-style: dashed; animation-duration: 20s; animation-direction: reverse; }
.hero-orbits span:nth-child(3) { width: 620px; height: 620px; bottom: -260px; left: -160px; border-color: rgba(54,224,192,.18); animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin: 20px 0 18px; }
.hero h1 .text-grad { background: linear-gradient(120deg, #8effe0, #7fb0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: rgba(255,255,255,.9); max-width: 560px; }
.hero .eyebrow { color: #bfe9ff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255,255,255,.86); }
.hero-trust svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }

.hero-card {
  position: relative; padding: 30px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
}
.hero-card .fingerprint { width: 96px; height: 96px; margin-bottom: 18px; color: var(--accent-2); }
.hero-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.hero-card ul li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; color: rgba(255,255,255,.9); font-size: .98rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-card ul li:last-child { border-bottom: none; }
.hero-card ul svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); margin-top: 2px; }

/* =========================================================
   Stats / contadores
   ========================================================= */
.stats { margin-top: -60px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 28px 22px; text-align: center; border-radius: var(--radius); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; }
.stat .num .text-grad { display: inline; }
.stat p { margin-top: 8px; color: var(--text-soft); font-weight: 500; font-size: .95rem; }

/* =========================================================
   Cards / serviços
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  padding: 30px; border-radius: var(--radius); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--brand-400) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; margin-bottom: 20px; box-shadow: 0 10px 24px rgba(30,63,208,.32);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: .97rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-400); font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }
.card ul.ticks li { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; color: var(--text-soft); font-size: .95rem; }
.card ul.ticks svg { width: 18px; height: 18px; flex: none; color: var(--brand-400); margin-top: 3px; }

/* =========================================================
   Sobre / split
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 16px 0 16px; }
.split p { color: var(--text-soft); margin-bottom: 14px; }
.mvv { display: grid; gap: 16px; }
.mvv .glass { padding: 24px; border-radius: var(--radius); display: flex; gap: 16px; }
.mvv .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-accent); color: #fff; flex: none; }
.mvv .ic svg { width: 24px; height: 24px; }
.mvv h4 { font-size: 1.08rem; margin-bottom: 5px; }
.mvv p { font-size: .94rem; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.value-pill { text-align: center; padding: 22px 14px; border-radius: var(--radius-sm); }
.value-pill svg { width: 30px; height: 30px; color: var(--brand-400); margin-bottom: 10px; }
.value-pill b { font-family: var(--font-head); display: block; font-size: 1rem; }

/* ---------- Diferenciais ---------- */
.feature { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); }
.feature .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-400) 14%, transparent); color: var(--brand-400); flex: none; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h4 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--text-soft); font-size: .94rem; }

/* =========================================================
   Depoimentos
   ========================================================= */
.quote { padding: 32px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; }
.quote .stars { display: flex; gap: 3px; color: #ffb020; }
.quote .stars svg { width: 18px; height: 18px; }
.quote p { color: var(--text-soft); font-style: italic; font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad-brand); }
.quote .who b { font-family: var(--font-head); display: block; font-size: .98rem; }
.quote .who span { color: var(--text-muted); font-size: .85rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); text-align: center; background: var(--hero-grad); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 0; }

/* =========================================================
   Funil — passos de migração + faixa de oferta
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; padding: 34px 28px; border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-card .step-num { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 24px rgba(30,63,208,.32); margin-bottom: 18px; }
.step-card h4 { font-size: 1.18rem; margin-bottom: 9px; }
.step-card p { color: var(--text-soft); font-size: .96rem; }

.offer-cta {
  margin-top: 30px; padding: 28px 32px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: var(--grad-brand); color: #fff; box-shadow: 0 16px 40px rgba(30,63,208,.34);
}
.offer-cta .offer-text b { font-family: var(--font-head); font-size: 1.3rem; display: block; }
.offer-cta .offer-text span { color: rgba(255,255,255,.92); font-size: .98rem; }
.offer-cta .btn { flex: none; }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } .offer-cta .btn { width: 100%; } }

/* =========================================================
   Contato
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); align-items: center; transition: transform .3s var(--ease); }
.info-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-item .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex: none; }
.info-item .ic svg { width: 25px; height: 25px; }
.info-item small { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.info-item b { font-family: var(--font-head); font-size: 1.02rem; display: block; }

.form { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); font: inherit; font-size: .96rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--ring); }
.form .btn { width: 100%; margin-top: 6px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); margin-top: 36px; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.15); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--brand-900); color: #c9d4f5; padding: 70px 0 26px; margin-top: 0; }
[data-theme="dark"] .site-footer { background: #04081a; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand .brand b, .footer-brand .brand span { color: #fff; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand p { margin-top: 16px; color: #95a4d4; font-size: .94rem; max-width: 280px; }
.site-footer h5 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a, .footer-contact span { color: #a8b5e0; font-size: .94rem; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 3px; }
.socials { display: flex; gap: 11px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: transform .25s var(--ease), background .25s; }
.socials a:hover { transform: translateY(-3px); background: var(--brand-500); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #8493c4; font-size: .87rem; }

/* =========================================================
   Botão WhatsApp flutuante
   ========================================================= */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c5e); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(18,140,94,.5);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   Page hero (páginas internas)
   ========================================================= */
.page-hero { background: var(--hero-grad); color: #fff; padding: calc(var(--header-h) + 60px) 0 80px; position: relative; overflow: hidden; text-align: center; }
.page-hero .hero-orbits { opacity: .4; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin: 16px 0 14px; position: relative; z-index: 2; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto; position: relative; z-index: 2; font-size: 1.08rem; }
.page-hero .eyebrow { color: #bfe9ff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); position: relative; z-index: 2; }
.crumbs { position: relative; z-index: 2; margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }

/* =========================================================
   Blog — listagem
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.post-thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: var(--grad-brand); color: rgba(255,255,255,.9); overflow: hidden;
}
.post-thumb.alt { background: var(--grad-accent); }
.post-thumb.warm { background: linear-gradient(135deg, var(--brand-600), var(--accent)); }
.post-thumb svg { width: 64px; height: 64px; opacity: .35; }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(140px 140px at 80% 10%, rgba(255,255,255,.18), transparent 70%); }
.post-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: #fff;
  background: rgba(8, 21, 68, .5); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px);
}
.post-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .84rem; margin-bottom: 12px; }
.post-meta svg { width: 15px; height: 15px; flex: none; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.3; }
.post-card .excerpt { color: var(--text-soft); font-size: .95rem; margin-bottom: 18px; }
.post-card .read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--brand-400); font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.post-card .read-more svg { width: 16px; height: 16px; transition: transform .25s; }
.post-card:hover .read-more svg { transform: translateX(4px); }

/* Post em destaque */
.featured-post {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); margin-bottom: 40px;
}
.featured-post .post-thumb { aspect-ratio: auto; min-height: 320px; }
.featured-post .post-thumb svg { width: 96px; height: 96px; }
.featured-post .post-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.featured-post h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; line-height: 1.2; }
.featured-post .excerpt { font-size: 1.05rem; }
.featured-flag { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-400); font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.featured-flag svg { width: 17px; height: 17px; }

/* Newsletter / CTA do blog */
.blog-news {
  margin-top: 50px; padding: clamp(34px, 5vw, 56px); border-radius: var(--radius-lg);
  text-align: center; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-lg);
}
.blog-news h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.blog-news p { color: rgba(255,255,255,.92); max-width: 520px; margin: 0 auto 24px; }

/* =========================================================
   Blog — artigo individual
   ========================================================= */
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0 6px; color: var(--text-muted); font-size: .9rem; }
.article-meta .author { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-weight: 500; }
.article-meta .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad-brand); font-size: .85rem; }
.article-meta svg { width: 15px; height: 15px; }

.prose { color: var(--text-soft); font-size: 1.06rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--text); margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; color: var(--text); margin-top: 1.5em; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; padding-left: .2em; }
.prose li::marker { color: var(--brand-400); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand-400); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 4px solid var(--brand-400); padding: 6px 22px; margin-left: 0;
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-soft);
}
.prose img { border-radius: var(--radius); margin-block: 1.6em; }
.prose hr { border: none; border-top: 1px solid var(--border); margin-block: 2em; }

.article-share { display: flex; align-items: center; gap: 12px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.article-share b { font-family: var(--font-head); font-size: .95rem; }
.article-share a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border); transition: transform .25s var(--ease), background .25s, color .25s; }
.article-share a:hover { transform: translateY(-3px); background: var(--brand-500); color: #fff; }
.article-share svg { width: 19px; height: 19px; }

.editor-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 30px 0; padding: 18px 22px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand-400) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--brand-400) 40%, transparent);
  color: var(--text-soft); font-size: .92rem;
}
.editor-note svg { width: 22px; height: 22px; color: var(--brand-400); flex: none; margin-top: 2px; }

/* =========================================================
   Área do cliente / App
   ========================================================= */
.app-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.app-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0 16px; }
.app-grid > div > p { color: var(--text-soft); font-size: 1.06rem; margin-bottom: 8px; }

.app-features { margin: 22px 0 30px; display: grid; gap: 12px; }
.app-features li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); font-size: 1rem; }
.app-features svg { width: 22px; height: 22px; flex: none; color: var(--brand-400); margin-top: 2px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 14px; background: #0c1330; color: #fff;
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
[data-theme="light"] .store-btn { background: #0e1733; }
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn .lbl { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .lbl small { font-size: .68rem; letter-spacing: .04em; opacity: .82; }
.store-btn .lbl b { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; }

.app-web { margin-top: 26px; font-size: .96rem; color: var(--text-muted); }
.app-web a { color: var(--brand-400); font-weight: 600; }

/* Mockup de celular */
.phone-mock {
  position: relative; width: 270px; margin-inline: auto;
  aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 12px;
  background: linear-gradient(145deg, #1a2350, #0a1230);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone-mock::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 96px; height: 20px; border-radius: 0 0 14px 14px; background: #0a1230; z-index: 3; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: var(--hero-grad); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; text-align: center; padding: 24px;
}
.phone-screen img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow-md); }
.phone-screen b { font-family: var(--font-head); font-size: 1.2rem; }
.phone-screen span { font-size: .86rem; color: rgba(255,255,255,.82); }
.phone-screen .pill { margin-top: 6px; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-size: .82rem; font-family: var(--font-head); font-weight: 600; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .split, .contact-grid, .app-grid { grid-template-columns: 1fr; gap: 34px; }
  .app-grid .phone-mock { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-thumb { min-height: 220px; }
}
@media (max-width: 860px) {
  .nav, .btn-portal { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(18px);
    padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s;
  }
  body.nav-open .nav { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  body.nav-open .btn-portal { display: inline-flex; }
  .nav a { padding: 13px 16px; font-size: 1.02rem; }
  body.nav-open .nav .btn-portal { display: inline-flex; margin-top: 8px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-band .btn { flex: 1 1 auto; }
}

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