/* ===================================================================
   DeltaMark · styles.css — v2 (redesign 2026)
   Space Grotesk + Inter, base deep-dark, ritmo dark→light→dark,
   gradiente azul→roxo como assinatura, curva de crescimento,
   botões neon pill, beams no hero.
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #030B1C;
  --bg-2: #040D24;
  --bg-3: #07112E;
  --bg-elev: #0A1532;

  --light: #F4F6FB;
  --light-2: #FBFCFF;
  --light-3: #EDF1F9;

  --primary: #0D71F8;
  --secondary: #321BC7;
  --grad: linear-gradient(135deg, #0D71F8 0%, #321BC7 100%);
  --grad-soft: linear-gradient(135deg, rgba(13, 113, 248, .15), rgba(50, 27, 199, .15));

  --on-dark: #EEF2FC;
  --on-dark-mut: #9CA9CC;
  --on-dark-faint: #66739A;

  --on-light: #0A1430;
  --on-light-mut: #475173;
  --on-light-faint: #6B7696;

  --bd-dark: rgba(255, 255, 255, .08);
  --bd-dark-strong: rgba(255, 255, 255, .14);
  --bd-light: rgba(10, 20, 48, .10);
  --bd-light-strong: rgba(10, 20, 48, .16);

  --font-d: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-btn: 12px;
  --r-pill: 999px;
  --shadow-blue: 0 14px 40px rgba(13, 113, 248, .28);
  --shadow-card-dark: 0 24px 60px rgba(0, 0, 0, .45);
  --shadow-card-light: 0 20px 50px rgba(10, 20, 48, .10);

  --container: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --z-nav: 50;
  --z-spot: 1;

  /* aliases legados (página de diagnóstico) */
  --text: var(--on-dark);
  --muted: var(--on-dark-mut);
  --surface: rgba(255, 255, 255, .03);
  --border: var(--bd-dark);
  --border2: var(--bd-dark-strong);
  --blue: var(--primary);
  --brand-blue: var(--primary);
  --brand-purple: var(--secondary);
  --r-card: var(--radius);
  --r-btn: var(--radius-btn);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
html.has-lenis { scroll-behavior: auto; }

body {
  background: var(--bg); color: var(--on-dark); font-family: var(--font-b);
  font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(13, 113, 248, .35); color: #fff; }

h1, h2, h3, h4, h5 { font-family: var(--font-d); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

.sec-dark { background: var(--bg); color: var(--on-dark); }
.sec-light { background: var(--light); color: var(--on-light); }
.sec-light::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--bd-light-strong), transparent); }
.sec-pad { padding: clamp(76px, 11vw, 150px) 0; }

/* ---------- Spotlight do mouse ---------- */
.mouse-spotlight {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: var(--z-spot);
  background: radial-gradient(circle, rgba(13, 113, 248, .10) 0%, transparent 60%);
  opacity: 0; transition: opacity .5s ease; will-change: transform;
}
body:hover .mouse-spotlight { opacity: 1; }

/* ---------- Kicker / Badge ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--grad); border-radius: 2px; }
.sec-light .kicker { color: var(--secondary); }

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--bd-dark-strong); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; color: var(--on-dark-mut); letter-spacing: .01em;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(13, 113, 248, .18); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Títulos ---------- */
.section-title { font-family: var(--font-d); font-size: clamp(31px, 5.2vw, 56px); font-weight: 600; max-width: 16ch; margin-bottom: 22px; }
.sec-light .section-title { color: var(--on-light); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.text-broken { color: var(--on-dark); opacity: .55; text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, .6); text-decoration-thickness: 2px; }
.sec-light .text-broken { color: var(--on-light); }

.lead { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.65; color: var(--on-dark-mut); max-width: 56ch; }
.sec-light .lead { color: var(--on-light-mut); }
.lead strong { color: var(--on-dark); font-weight: 600; }
.sec-light .lead strong { color: var(--on-light); }

/* ---------- Botões (neon pill) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .3s ease, background .25s ease, border-color .25s ease; white-space: nowrap; will-change: transform;
}
.btn svg, .btn span { position: relative; z-index: 1; }
.btn svg { transition: transform .3s var(--ease); }
.btn::before, .btn::after {
  content: ""; position: absolute; left: 0; right: 0; margin: 0 auto; width: 72%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transition: opacity .5s ease; pointer-events: none;
}
.btn::before { top: -1px; opacity: 0; }
.btn::after { bottom: -1px; opacity: .5; }
.btn:hover::before { opacity: 1; }
.btn:hover::after { opacity: .18; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary::before, .btn-primary::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); }
.btn-primary:hover { box-shadow: 0 18px 48px rgba(13, 113, 248, .42); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--on-dark); border: 1px solid var(--bd-dark-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.sec-light .btn-ghost { background: rgba(10, 20, 48, .02); color: var(--on-light); border-color: var(--bd-light-strong); }
.sec-light .btn-ghost:hover { background: rgba(10, 20, 48, .05); }
.sec-light .btn-ghost::after { background: linear-gradient(90deg, transparent, var(--secondary), transparent); }

.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ===================================================================
   NAV
   =================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); padding: 18px 0; transition: padding .35s var(--ease); }
.nav-wrap {
  width: calc(100% - 32px); max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 14px 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent; transition: all .35s var(--ease);
}
.nav.is-scrolled { padding: 12px 0; }
.nav.is-scrolled .nav-wrap { background: rgba(6, 14, 36, .72); backdrop-filter: blur(18px) saturate(140%); border-color: var(--bd-dark); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--on-dark-mut); transition: color .2s ease; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--grad); transition: width .28s var(--ease); }
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 11px 18px; font-size: 14px; }
.nav-cta svg { width: 15px; height: 15px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#hero-beams { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(15px); }
.hero-beams-overlay { position: absolute; inset: 0; background: rgba(3, 11, 28, .05); backdrop-filter: blur(40px); animation: heroOverlayPulse 10s ease-in-out infinite; }
@keyframes heroOverlayPulse { 0%, 100% { opacity: .05; } 50% { opacity: .16; } }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.hero-orb-4 { width: 600px; height: 600px; top: -10%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(50, 27, 199, .35), transparent 70%); }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero::before { content: ""; position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 900px; height: 500px; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at center, rgba(13, 113, 248, .22), transparent 65%); }

.hero-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(38px, 7vw, 80px); font-weight: 700; letter-spacing: -.03em; margin: 26px 0 0; max-width: 16ch; }
.rotator-wrap { display: inline-flex; align-items: baseline; }
.word-rotator { position: relative; display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; text-align: center; }
.word {
  position: absolute; left: 0; right: 0; top: 0; white-space: nowrap; text-align: center;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0; transform: translateY(130%);
  transition: transform .85s cubic-bezier(.34, 1.4, .5, 1), opacity .45s ease;
}
.word.is-active { opacity: 1; transform: translateY(0); }
.word.is-up { opacity: 0; transform: translateY(-130%); }

.hero-sub { margin: 30px auto 0; max-width: 50ch; font-size: clamp(17px, 2.2vw, 21px); color: var(--on-dark-mut); }
.hero-sub strong { color: var(--on-dark); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

/* curva de crescimento */
.growth { position: relative; z-index: 2; width: 100%; max-width: 980px; margin: clamp(48px, 7vw, 88px) auto 0; }
.growth svg { width: 100%; height: auto; overflow: visible; }
.growth-line { fill: none; stroke: url(#growthGrad); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(13, 113, 248, .5)); }
.growth-area { fill: url(#growthArea); opacity: .9; }
.growth-dot { fill: #07112E; stroke: url(#growthGrad); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(50, 27, 199, .6)); }
.growth-grid line { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.growth-label { font-family: var(--font-d); font-size: 13px; font-weight: 500; fill: var(--on-dark-mut); }
.growth-chip {
  position: absolute; top: 0; right: 3%; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 14px; background: rgba(10, 21, 50, .85); backdrop-filter: blur(12px);
  border: 1px solid var(--bd-dark-strong); box-shadow: var(--shadow-card-dark);
}
.growth-chip-val { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-d); font-size: 22px; font-weight: 700; color: #fff; }
.growth-chip-up { font-size: 13px; font-weight: 600; color: #4ade80; }
.growth-chip-label { font-size: 11.5px; color: var(--on-dark-mut); }

/* ===================================================================
   STACK STRIP
   =================================================================== */
.stack { padding: 40px 0 12px; background: var(--bg); }
.stack-label { text-align: center; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 26px; }
.stack-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.stack-item {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--bd-dark); background: rgba(255, 255, 255, .02); color: var(--on-dark-mut);
  font-size: 14px; font-weight: 500; transition: border-color .25s ease, color .25s ease;
}
.stack-item svg { width: 17px; height: 17px; color: var(--primary); }
.stack-item:hover { border-color: var(--bd-dark-strong); color: var(--on-dark); }

/* ===================================================================
   PROBLEMA (dark)
   =================================================================== */
.flow-chaos { margin: 56px auto 0; max-width: 920px; }
.flow-row { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
.flow-row-rev { flex-direction: row-reverse; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; flex: 0 0 auto; width: 150px; padding: 18px 10px; border-radius: var(--radius); border: 1px solid var(--bd-dark); background: rgba(255, 255, 255, .02); }
.flow-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.flow-icon svg { width: 22px; height: 22px; }
.flow-node span { font-size: 13.5px; font-weight: 500; color: var(--on-dark-mut); }
.flow-node-start .flow-icon, .flow-node-lead .flow-icon { color: var(--primary); }
.flow-node-fail .flow-icon, .flow-node-end .flow-icon { color: #f8717188; }
.flow-node-fail span, .flow-node-end span { color: var(--on-dark-faint); }
.flow-line { flex: 1 1 auto; height: 2px; min-width: 22px; transform-origin: left center; border-radius: 2px; }
.flow-line-ok { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.flow-line-break { background: repeating-linear-gradient(90deg, rgba(248, 113, 113, .5) 0 6px, transparent 6px 12px); }
.flow-bend { height: 26px; }
.flow-clock-hand { transform-box: view-box; transform-origin: 12px 12px; animation: flow-clock-spin 3s linear infinite; }
.flow-clock-hand-min { animation-duration: .75s; }
@keyframes flow-clock-spin { to { transform: rotate(360deg); } }
.problema-conclusion { margin: 48px auto 0; text-align: center; font-size: clamp(18px, 2.4vw, 24px); font-weight: 500; line-height: 1.5; color: var(--on-dark-mut); max-width: 32ch; }
.problema-conclusion strong { color: var(--on-dark); font-weight: 600; }

/* ===================================================================
   SOLUÇÃO + ECOSSISTEMA (light)
   =================================================================== */
.solucao-text { margin-top: 4px; }
.solucao-highlight { margin-top: 22px; font-size: clamp(19px, 2.5vw, 26px); font-weight: 500; line-height: 1.45; max-width: 30ch; color: var(--on-light); }
.solucao-highlight strong { color: var(--secondary); font-weight: 700; }

.eco-pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.eco-node {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: var(--radius);
  background: var(--light-2); border: 1px solid var(--bd-light); box-shadow: 0 1px 2px rgba(10, 20, 48, .03);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease; overflow: hidden; will-change: transform;
}
.eco-node::before {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 0); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(13, 113, 248, .10), transparent 65%); opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.eco-node:hover { box-shadow: var(--shadow-card-light); border-color: var(--bd-light-strong); }
.eco-node:hover::before { opacity: 1; }
.eco-node > * { position: relative; z-index: 1; }
.eco-node-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: var(--shadow-blue); }
.eco-node-icon svg { width: 25px; height: 25px; }
.eco-node h3 { font-size: 19px; font-weight: 600; color: var(--on-light); }
.eco-node p { font-size: 14.5px; line-height: 1.55; color: var(--on-light-mut); }

/* ===================================================================
   SISTEMA OPERANDO (dark)
   =================================================================== */
.live-panel {
  position: relative; margin: 52px auto 0; max-width: 880px; border-radius: var(--radius-lg); border: 1px solid var(--bd-dark-strong);
  background: linear-gradient(180deg, rgba(10, 21, 50, .9), rgba(4, 13, 36, .9)); box-shadow: var(--shadow-card-dark); overflow: hidden;
}
.live-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(13, 113, 248, .5), transparent 40%, transparent 60%, rgba(50, 27, 199, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.live-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--bd-dark); }
.live-dots { display: flex; gap: 7px; }
.live-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.live-head-title { font-family: var(--font-d); font-size: 14px; font-weight: 500; color: var(--on-dark-mut); }
.live-head-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #4ade80; letter-spacing: .04em; text-transform: uppercase; }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.live-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.live-chat { min-height: 280px; padding: 24px 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; border-right: 1px solid var(--bd-dark); overflow: hidden; }
.live-msg { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.live-msg-in { align-self: flex-start; background: rgba(255, 255, 255, .06); color: var(--on-dark); border-bottom-left-radius: 5px; }
.live-msg-out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.live-msg.is-enter { opacity: 0; transform: translateY(12px) scale(.96); }
.live-msg.is-leave { opacity: 0; transform: translateY(-10px); }
.live-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.live-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .7); animation: typing 1.2s infinite; }
.live-typing i:nth-child(2) { animation-delay: .2s; }
.live-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.live-pipe { padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.live-pipe-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-family: var(--font-d); font-size: 14px; font-weight: 500; color: var(--on-dark-faint); border: 1px solid transparent; transition: all .4s var(--ease); }
.live-pipe-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); transition: all .4s var(--ease); flex: 0 0 auto; }
.live-pipe-step.is-active { color: var(--on-dark); background: rgba(13, 113, 248, .08); border-color: rgba(13, 113, 248, .3); }
.live-pipe-step.is-active .live-pipe-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(13, 113, 248, .2); }
.live-foot { padding: 18px 22px; border-top: 1px solid var(--bd-dark); }
.live-metric { display: flex; align-items: baseline; gap: 12px; }
.live-metric-num { font-family: var(--font-d); font-size: 30px; font-weight: 700; color: #fff; transition: transform .3s var(--ease); display: inline-block; }
.live-metric-num.tick { animation: tick .4s var(--ease); }
@keyframes tick { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--primary); } 100% { transform: scale(1); } }
.live-metric-label { font-size: 13.5px; color: var(--on-dark-mut); max-width: 30ch; }

/* ===================================================================
   COMPARAÇÃO (light) + mini-gráficos
   =================================================================== */
/* cabeçalho em duas colunas (título + intro) */
.compare-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.compare-head .section-title { margin-bottom: 0; }
.compare-head-r { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--on-light-mut); max-width: 34ch; padding-bottom: 6px; }
.compare-head-r strong { color: var(--primary); font-weight: 600; }

.compare { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; }
.compare-col { position: relative; padding: 30px; border-radius: var(--radius-lg); overflow: hidden; }
.compare-old { background: var(--light-3); border: 1px solid var(--bd-light); }
.compare-new { background: var(--bg-2); border: 1px solid var(--bd-dark-strong); box-shadow: var(--shadow-blue); }
.compare-new::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .92; pointer-events: none; }
.compare-new::after { content: ""; position: absolute; top: -30%; right: -15%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }
.compare-col > * { position: relative; z-index: 1; }

/* cabeçalho de cada card */
.compare-card-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--bd-light); }
.compare-new .compare-card-head { border-bottom-color: rgba(255, 255, 255, .18); }
.compare-ic { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; }
.compare-ic-old { background: rgba(10, 20, 48, .05); color: var(--on-light-faint); }
.compare-ic-new { background: #fff; box-shadow: 0 8px 20px rgba(3, 11, 28, .25); }
.compare-card-head h3 { font-family: var(--font-d); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.compare-old .compare-card-head h3 { color: var(--on-light); }
.compare-new .compare-card-head h3 { color: #fff; }
.compare-card-head p { font-size: 14px; line-height: 1.35; margin-top: 3px; }
.compare-old .compare-card-head p { color: var(--on-light-faint); }
.compare-new .compare-card-head p { color: rgba(255, 255, 255, .72); }

/* itens em linha tipo painel */
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare-col li { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: 13px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.compare-col li > span { flex: 1; }
.compare-old li { color: var(--on-light-mut); background: rgba(10, 20, 48, .035); }
.compare-new li { color: #fff; background: rgba(255, 255, 255, .10); }
.compare-old li::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(10, 20, 48, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7696' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 12px no-repeat; }
.compare-new li::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #2ecc71 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 3px 10px rgba(46, 204, 113, .4); }
.compare-new .li-ic { flex: 0 0 auto; color: rgba(255, 255, 255, .65); }

/* badge VS no centro */
.compare-vs { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(10, 20, 48, .16); font-family: var(--font-d); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--on-light); }

/* banner de fechamento */
.compare-banner { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 22px 28px; border-radius: var(--radius-lg); background: var(--light-2); border: 1px solid var(--bd-light); box-shadow: var(--shadow-card-light); }
.compare-banner-ic { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); color: var(--primary); }
.compare-banner p { font-size: 16px; line-height: 1.5; color: var(--on-light-mut); }
.compare-banner strong { color: var(--on-light); font-weight: 600; }
.compare-banner b { color: var(--primary); font-weight: 600; }

/* mini-gráficos da comparação */
.compare-viz { position: relative; margin-bottom: 24px; padding: 14px 14px 26px; border-radius: 12px; overflow: hidden; }
.viz-old { background: rgba(10, 20, 48, .04); border: 1px solid var(--bd-light); }
.viz-new { background: rgba(13, 113, 248, .06); border: 1px solid rgba(13, 113, 248, .22); position: relative; z-index: 1; }
.viz-svg { width: 100%; height: 72px; display: block; overflow: visible; }
.viz-grid { fill: none; stroke: rgba(10, 20, 48, .08); stroke-width: 1; }
.viz-new .viz-grid { stroke: rgba(255, 255, 255, .07); }
.viz-old-line { fill: none; stroke: rgba(239, 68, 68, .75); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.viz-new-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(13, 113, 248, .55)); }
.viz-new-pulse { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: blur(3px); opacity: 0; animation: vizGlow 2.6s ease-in-out infinite; }
@keyframes vizGlow { 0%, 100% { opacity: 0; } 50% { opacity: .5; } }
.viz-dot { stroke-width: 1.6; }
.viz-dot-bad { fill: rgba(239, 68, 68, .9); stroke: var(--light-3); }
.viz-dot-good { fill: var(--primary); stroke: var(--bg-2); filter: drop-shadow(0 0 5px rgba(13, 113, 248, .7)); animation: vizDot 2.6s ease-in-out infinite; }
.viz-dot-good.d2 { animation-delay: .18s; }
.viz-dot-good.d3 { animation-delay: .36s; }
.viz-dot-good.d4 { animation-delay: .54s; }
@keyframes vizDot { 0%, 100% { r: 4.5; } 50% { r: 6; } }
.viz-label { position: absolute; bottom: 7px; right: 14px; font-family: var(--font-d); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.viz-label-bad { color: rgba(239, 68, 68, .9); }
.viz-label-good { color: #6db0ff; }

/* ===================================================================
   PROCESSO (light)
   =================================================================== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--light-2); border: 1px solid var(--bd-light); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.step:hover { box-shadow: var(--shadow-card-light); transform: translateY(-3px); }
.step:hover::after { transform: scaleX(1); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-num { font-family: var(--font-d); font-size: 28px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { font-size: 18px; font-weight: 600; color: var(--on-light); }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--on-light-mut); }

/* ===================================================================
   CTA FINAL (dark)
   =================================================================== */
.cta-final { position: relative; overflow: hidden; background: var(--bg); text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-final::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse at center, rgba(50, 27, 199, .3), transparent 65%); }
.cta-final-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-final .section-title { max-width: 18ch; }
.cta-lead { margin: 22px auto 36px; max-width: 52ch; font-size: clamp(16px, 2.1vw, 19px); color: var(--on-dark-mut); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--bg-2); border-top: 1px solid var(--bd-dark); padding: 64px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 26px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; color: var(--on-dark-mut); line-height: 1.6; }
.footer-cnpj { display: block; margin-top: 14px; font-size: 12.5px; color: var(--on-dark-faint); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-family: var(--font-d); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 16px; font-weight: 600; }
.footer-cols a { display: block; font-size: 14.5px; color: var(--on-dark-mut); margin-bottom: 11px; transition: color .2s ease; }
.footer-cols a:hover { color: var(--on-dark); }
.footer-base { max-width: var(--container); margin: 48px auto 0; padding: 24px 24px 0; border-top: 1px solid var(--bd-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-faint); }

/* ===================================================================
   REVEAL
   =================================================================== */
.reveal { opacity: 0; }
.reveal.is-in, html.no-reveal .reveal { opacity: 1; }

/* ===================================================================
   PÁGINA DE DIAGNÓSTICO (dark, refinada)
   =================================================================== */
.page-diag { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.diag-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.diag-orb { position: absolute; width: 700px; height: 700px; border-radius: 50%; filter: blur(90px); opacity: .4; background: radial-gradient(circle, rgba(13, 113, 248, .5) 0%, transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); }
.diag-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px); background-size: 60px 60px; -webkit-mask-image: radial-gradient(ellipse at top, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse at top, #000 0%, transparent 75%); }
.diag-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; max-width: 760px; width: 100%; margin: 0 auto; }
.diag-logo img { height: 26px; width: auto; }
.diag-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--border); background: var(--surface); transition: all .3s; }
.diag-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--border2); }
.diag-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 680px; width: 100%; margin: 0 auto; padding: 40px 32px 80px; }
.diag-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 44px; }
.diag-progress-text { font-family: var(--font-d); font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.diag-progress-track { flex: 1; height: 4px; background: rgba(255, 255, 255, .06); border-radius: var(--r-pill); overflow: hidden; }
.diag-progress-bar { height: 100%; width: 20%; background: var(--grad); border-radius: var(--r-pill); transition: width .6s var(--ease); box-shadow: 0 0 12px rgba(13, 113, 248, .7); }
.diag-progress-percent { font-family: var(--font-d); font-weight: 700; font-size: 13px; color: var(--blue); min-width: 38px; text-align: right; }
.diag-step { display: none; }
.diag-step.is-active { display: block; animation: fStepIn .5s var(--ease); }
@keyframes fStepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.diag-card { display: flex; flex-direction: column; }
.diag-tag { display: inline-block; align-self: flex-start; font-family: var(--font-d); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--grad-soft); border: 1px solid rgba(13, 113, 248, .3); color: var(--blue); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 20px; }
.diag-tag-last { background: var(--grad); color: #fff; border-color: transparent; }
.diag-q { font-family: var(--font-d); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 12px; }
.diag-sub { font-size: 15px; color: var(--muted); margin-bottom: 30px; line-height: 1.5; }
.diag-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; font-family: var(--font-b); font-size: 16px; color: var(--text); outline: none; transition: border-color .3s, background .3s, box-shadow .3s; }
.diag-input::placeholder { color: rgba(248, 250, 252, .3); }
.diag-input:focus { border-color: var(--brand-blue); background: rgba(13, 113, 248, .05); box-shadow: 0 0 0 4px rgba(13, 113, 248, .12); }
.diag-input.is-invalid { border-color: #ef4444; }
.diag-textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.diag-options { display: flex; flex-direction: column; gap: 10px; }
.diag-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: border-color .3s, background .3s, transform .2s; }
.diag-option:hover { border-color: var(--border2); background: rgba(13, 113, 248, .04); transform: translateY(-1px); }
.diag-option input { position: absolute; opacity: 0; pointer-events: none; }
.diag-option-num { font-family: var(--font-d); font-weight: 600; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; transition: all .3s; }
.diag-option-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.diag-option-text strong { font-weight: 600; font-size: 15px; color: var(--text); }
.diag-option-text span { font-size: 13px; color: var(--muted); }
.diag-option-radio, .diag-option-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border2); display: grid; place-items: center; transition: all .3s; }
.diag-option-check { border-radius: 7px; }
.diag-option-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.diag-option-check::after { content: ''; width: 11px; height: 7px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease); }
.diag-option:has(input:checked) { border-color: var(--brand-blue); background: linear-gradient(135deg, rgba(13, 113, 248, .1), rgba(50, 27, 199, .1)); }
.diag-option:has(input:checked) .diag-option-num { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(13, 113, 248, .35); }
.diag-option:has(input:checked) .diag-option-radio, .diag-option:has(input:checked) .diag-option-check { border-color: var(--brand-blue); background: var(--grad); }
.diag-option:has(input:checked) .diag-option-check::after { transform: rotate(-45deg) scale(1); }
.diag-option:has(input[type=radio]:checked) .diag-option-radio::after { transform: scale(1); }
.diag-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 32px; }
.diag-actions .btn { border-radius: var(--r-pill); padding: 16px 26px; }
.diag-btn-next, .diag-btn-submit { margin-left: auto; }
.diag-success { text-align: center; max-width: 560px; margin: 0 auto; animation: formIn .6s var(--ease); }
@keyframes formIn { from { opacity: 0; transform: scale(.96) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.diag-success-card { display: flex; flex-direction: column; align-items: center; }
.diag-success-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 8px 0 16px; }
.diag-success-sub { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 440px; margin-bottom: 32px; }
.diag-success-note { font-size: 13px; color: var(--muted); margin-top: 18px; opacity: .7; }
@media (max-width: 640px) {
  .diag-main { padding: 24px 18px 64px; }
  .diag-q { font-size: 24px; }
  .diag-option { padding: 14px 16px; gap: 12px; }
  .diag-option-num { width: 32px; height: 32px; font-size: 11px; }
  .diag-actions { flex-direction: column-reverse; }
  .diag-actions .btn { width: 100%; justify-content: center; }
  .diag-btn-next, .diag-btn-submit { margin-left: 0; }
}

/* ===================================================================
   BRIEFING DE SITE (multi-campo por etapa, áudio, autosave)
   =================================================================== */
.brief-field { margin-top: 24px; }
.brief-field:first-of-type { margin-top: 18px; }
.brief-label { display: block; font-family: var(--font-d); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: var(--text); margin-bottom: 6px; }
.brief-req { color: var(--blue); margin-left: 4px; }
.brief-hint { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.brief-other { margin-top: 10px; }

/* Botão de áudio */
.brief-audio-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.brief-audio {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill);
  font-family: var(--font-d); font-weight: 600; font-size: 13px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border2); color: var(--muted);
  cursor: pointer; transition: color .25s, border-color .25s, background .25s, box-shadow .25s;
}
.brief-audio:hover { color: var(--text); border-color: var(--brand-blue); background: rgba(13, 113, 248, .06); }
.brief-audio svg { transition: transform .25s var(--ease); }
.brief-audio.is-recording { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ef4444, #b91c1c); animation: briefPulse 1.5s infinite; }
.brief-audio.is-busy { opacity: .65; cursor: wait; }
.brief-audio:disabled { opacity: .4; cursor: not-allowed; }
@keyframes briefPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 50% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
.brief-audio-status { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Banner de retomada (autosave) */
.brief-restore {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--grad-soft); border: 1px solid rgba(13, 113, 248, .3);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 26px;
  font-size: 14px; line-height: 1.45; color: var(--text);
}
.brief-restore strong { font-family: var(--font-d); font-weight: 600; }
.brief-restore-actions { margin-left: auto; }
.brief-restore-btn {
  font-family: var(--font-d); font-weight: 600; font-size: 12.5px; color: var(--muted);
  background: transparent; border: 1px solid var(--border2); border-radius: var(--r-pill);
  padding: 7px 14px; cursor: pointer; transition: color .25s, border-color .25s;
}
.brief-restore-btn:hover { color: var(--text); border-color: var(--brand-blue); }

/* Erro de envio */
.brief-error {
  max-width: 560px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: rgba(239, 68, 68, .06); border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 14px; padding: 22px; color: var(--text); font-size: 15px; line-height: 1.5;
}

@media (max-width: 640px) {
  .brief-label { font-size: 16px; }
  .brief-restore-actions { margin-left: 0; }
}

/* ===================================================================
   RESPONSIVE (home)
   =================================================================== */
@media (max-width: 920px) {
  .eco-pipeline { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: 1fr; }
  .live-chat { border-right: none; border-bottom: 1px solid var(--bd-dark); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-wrap { padding: 10px 10px 10px 18px; }
  .compare-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .compare-head-r { max-width: none; padding-bottom: 0; }
  .compare { grid-template-columns: 1fr; gap: 14px; }
  .compare-vs { position: static; transform: none; margin: 0 auto; justify-self: center; }
  .compare-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .flow-node { width: 108px; padding: 14px 6px; }
  .flow-node span { font-size: 12px; }
  .growth-chip { top: -10px; right: 0; padding: 9px 12px; }
  .growth-chip-val { font-size: 18px; }
  .hero { min-height: auto; padding: 130px 0 70px; }
}
@media (max-width: 520px) {
  .eco-pipeline, .steps { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ===================================================================
   MODO LEVE / REDUCED MOTION
   =================================================================== */
html.lite-mode #hero-beams,
html.lite-mode .hero-beams-overlay,
html.lite-mode .mouse-spotlight { display: none !important; }
html.lite-mode .hero-orb, html.lite-mode .diag-orb { filter: blur(60px); opacity: .35; }
html.lite-mode .badge, html.lite-mode .nav.is-scrolled .nav-wrap, html.lite-mode .growth-chip { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite-mode .nav.is-scrolled .nav-wrap { background: rgba(6, 14, 36, .94); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; }
  #hero-beams, .hero-beams-overlay, .mouse-spotlight { display: none; }
}
