/* ==========================================================================
   Grapesoft · site
   Cores e tipografia: Grapesoft-Brand-Kit (02-Cores / 03-Tipografia)
   ========================================================================== */

@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-200.ttf') format('truetype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-300.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/Manrope-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../assets/fonts/JetBrainsMono-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  /* paleta oficial */
  --grape-adega: #0D0814;
  --grape-safra: #1E1430;
  --grape-nevoa: #F3EEFA;
  --grape-uva: #9B6BFF;
  --grape-uva-madura: #5B2FD6;
  --grape-broto: #B8F25C;
  /* tons do símbolo */
  --uva-clara: #D9C8FF;
  --uva-funda: #6A3DE8;
  --rede: #3B2A57;

  --bg: var(--grape-adega);
  --layer: var(--grape-safra);
  --layer-2: #261A3C;
  --line: rgba(243, 238, 250, .09);
  --line-2: rgba(243, 238, 250, .16);
  --text: var(--grape-nevoa);
  --text-2: rgba(243, 238, 250, .66);
  --text-3: rgba(243, 238, 250, .44);
  --accent: var(--grape-uva);

  --f-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --nav-h: 76px;

  --mx: 50vw;
  --my: 30vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 400; color: var(--text); }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--grape-adega); }
:focus-visible { outline: 2px solid var(--grape-broto); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; }
.label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 54ch; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--grape-nevoa); color: var(--grape-adega);
  padding: 10px 14px; border-radius: 10px; font-weight: 400;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- logo (wordmark) ---------- */
.wm { display: inline-flex; align-items: baseline; font-size: 24px; line-height: 1; letter-spacing: -.035em; }
.wm b { font-weight: 800; color: var(--grape-nevoa); }
.wm i { font-style: normal; font-weight: 200; color: var(--grape-uva); margin-left: .02em; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; transition: transform .6s var(--spring); }
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-6deg); }

/* ---------- títulos ---------- */
.hero__title, .h2, .contato__title {
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}
.line { display: block; }
.thin { font-weight: 200; color: var(--accent); letter-spacing: -.04em; }
.h2 { font-size: clamp(36px, 5.4vw, 72px); }

/* split de palavras (via JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0s)); }
.is-in .w > span, .w.is-in > span { transform: none; }

/* revelação genérica */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- pontos ---------- */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--grape-broto); flex: none; }
.dot--live { position: relative; }
.dot--live::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--grape-broto);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.cursor { display: inline-block; width: .6em; height: 2px; background: var(--grape-broto); margin-left: 3px; vertical-align: -.05em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- botões ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 400; font-size: 16px; letter-spacing: -.01em;
  transform: translate(var(--bx), var(--by));
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
  will-change: transform; white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 62px; padding: 0 32px; font-size: 17px; }
.btn--primary { background: var(--grape-uva); color: var(--grape-adega); font-weight: 800; letter-spacing: -.02em; }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--hx, 50%) var(--hy, 50%), rgba(255,255,255,.45), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 10px 40px -10px rgba(155, 107, 255, .7); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(243,238,250,.02); }
.btn--ghost:hover { border-color: rgba(243,238,250,.4); background: rgba(243,238,250,.06); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- fundo: grade de pontos (como no manual) ---------- */
.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(243,238,250,.07) 1px, transparent 1.2px);
  background-size: 28px 28px;
}
.grid-bg__lit { position: absolute; inset: 0;
  background-image: radial-gradient(rgba(184,160,255,.55) 1.1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%);
          mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.has-pointer .grid-bg__lit { opacity: 1; }

/* ==========================================================================
   ABERTURA
   ========================================================================== */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--grape-adega);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out);
}
.js.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.js.is-gone .loader { display: none; }
.loader__mark { display: flex; align-items: center; gap: 20px; }
.loader__cacho { width: 72px; height: 72px; overflow: visible; }
.loader__wm { font-size: 52px; }
.loader__wm b, .loader__wm i { display: inline-block; clip-path: inset(-25% 100% -40% -10%); animation: wipe .8s var(--ease) forwards; }
.loader__wm b { animation-delay: .55s; }
.loader__wm i { animation-delay: .75s; }
@keyframes wipe { to { clip-path: inset(-25% -10% -40% -10%); } }
.l-g { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .55s var(--spring) forwards; animation-delay: calc(var(--i) * 70ms + .05s); }
@keyframes pop { to { transform: scale(1); } }
.l-stem { stroke-dasharray: 11; stroke-dashoffset: 11; animation: draw .35s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.l-leaf { transform-box: fill-box; transform-origin: center; transform: rotate(-45deg) scale(0); animation: leaf .6s var(--spring) .7s forwards; }
@keyframes leaf { to { transform: rotate(45deg) scale(1); } }
.loader__line { font-size: 13px; color: var(--text-3); }
.loader__dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .6s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(13, 8, 20, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 15px; color: var(--text-2); border-radius: 999px; transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--grape-broto); transform: translateX(-50%) scale(0); transition: transform .4s var(--spring); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
.menu-mobile { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 110px; overflow: hidden; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero__glow { position: absolute; z-index: 0; width: 900px; height: 900px; right: -220px; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 61, 232, .30), rgba(91, 47, 214, .10) 55%, transparent);
  filter: blur(10px); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); background: rgba(30, 20, 48, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__title { font-size: clamp(44px, 6.1vw, 88px); margin: 28px 0 28px; }
.hero__lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--text-2); max-width: 50ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; touch-action: manipulation; }
.cluster { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; -webkit-user-select: none; user-select: none; }
.hero__art { -webkit-user-select: none; user-select: none; }
.cluster .edge { stroke: var(--grape-uva); stroke-linecap: round; }
.cluster .grape { transition: filter .4s; }
.cluster .tag { font-family: var(--f-mono); font-size: 12px; fill: var(--text-2); letter-spacing: .02em; paint-order: stroke; stroke: rgba(13, 8, 20, .85); stroke-width: 3px; stroke-linejoin: round; transition: fill .3s; }
.cluster .tag-dot { fill: var(--grape-broto); }
.cluster .packet { fill: var(--grape-broto); }
.cluster .ripple { fill: none; stroke: var(--grape-uva); }

.orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(155,107,255,.18); animation: spin 60s linear infinite; z-index: 1; }
.orbit--2 { inset: 18%; border-style: solid; border-color: rgba(243,238,250,.05); animation-duration: 38s; animation-direction: reverse; }
.orbit__dot { position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--grape-broto); box-shadow: 0 0 14px 2px rgba(184,242,92,.5); }
.orbit--2 .orbit__dot { width: 5px; height: 5px; background: var(--uva-clara); box-shadow: 0 0 10px rgba(217,200,255,.6); top: auto; bottom: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__hint { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-size: 11px; color: var(--text-3); z-index: 3; white-space: nowrap; transition: opacity .6s; }
.hero__hint::before { content: '↳ '; color: var(--grape-broto); }
.hint-touch { display: none; }
.is-open .hero__hint { opacity: 0; }

.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  font-family: var(--f-mono); font-size: 12px; color: var(--text-2);
  background: rgba(30, 20, 48, .62); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--ease);
  white-space: nowrap;
}
.chip em { color: var(--grape-broto); }
.chip > * { pointer-events: none; }
.chip--a { top: 12%; left: -4%; animation: float 7s var(--ease-in-out) infinite; }
.chip--b { top: 46%; right: -6%; animation: float 8s var(--ease-in-out) -2s infinite; }
.chip--c { bottom: 12%; left: 4%; animation: float 6.5s var(--ease-in-out) -4s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.js .chip { opacity: 0; }
.js .is-ready .chip { opacity: 1; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .is-ready .chip--b { transition-delay: .15s; }
.js .is-ready .chip--c { transition-delay: .3s; }
.js .is-ready.is-open .chip { opacity: 0; transition-delay: 0s; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue__bar { width: 1px; height: 44px; background: linear-gradient(var(--line-2), transparent); position: relative; overflow: hidden; }
.scroll-cue__bar::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--grape-broto); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--line); background: rgba(30, 20, 48, .35); overflow: hidden; padding: 18px 0; font-size: 13px; color: var(--text-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; white-space: nowrap; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { position: relative; height: 300vh; }
.manifesto__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.manifesto__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.manifesto__text { font-size: clamp(32px, 3.9vw, 58px); font-weight: 200; line-height: 1.1; letter-spacing: -.04em; }
.manifesto__text .ml { display: block; }
.manifesto__text .ml + .ml { margin-top: .35em; }
.manifesto__text .sw { color: var(--text); opacity: .14; transition: opacity .25s linear; }
.manifesto__text .sw.is-bold { font-weight: 800; letter-spacing: -.045em; }
.manifesto__art { position: relative; width: 100%; max-width: 520px; justify-self: end; aspect-ratio: 1; }
.manifesto__art::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(106, 61, 232, .22), transparent); filter: blur(8px); opacity: var(--glow, 0); }
.manifesto__art svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.manifesto__art .dim { font-family: var(--f-mono); font-size: 11px; fill: var(--text-3); letter-spacing: .04em; }

/* ==========================================================================
   SOLUÇÕES (bento)
   ========================================================================== */
.solucoes { padding: clamp(80px, 10vw, 140px) 0; }
.sec-head { display: grid; gap: 26px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head__lead { color: var(--text-2); max-width: 56ch; font-size: clamp(17px, 1.4vw, 19px); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 30px; min-height: 300px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 20, 48, .9), rgba(30, 20, 48, .55));
  border: 1px solid var(--line);
  transition: transform .7s var(--ease), border-color .4s;
}
.card::before { /* borda iluminada que segue o mouse */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(380px circle at var(--x) var(--y), rgba(155,107,255,.9), rgba(155,107,255,.1) 40%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card::after { /* brilho interno */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px circle at var(--x) var(--y), rgba(155,107,255,.10), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.card p:not(.label) { color: var(--text-2); font-size: 16px; }
.card .label { margin-bottom: 4px; }
.card--wide { grid-column: span 2; }
.card--term, .card--erp { display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch; gap: 30px; }
.card__head { display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }

.icon { width: 48px; height: 48px; margin-bottom: auto; padding-bottom: 28px; box-sizing: content-box; fill: none; stroke: var(--uva-clara); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.icon .icon__accent { stroke: var(--grape-broto); stroke-width: 2; stroke-dasharray: 40; stroke-dashoffset: 0; transition: stroke-dashoffset 0s; }
.card:hover .icon .icon__accent { animation: redraw 1s var(--ease) forwards; }
@keyframes redraw { 0% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }

/* terminal */
.term { border-radius: 14px; background: rgba(13, 8, 20, .75); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; min-height: 250px; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--text-3); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rede); }
.term__bar span { margin-left: 8px; }
.term__body { flex: 1; padding: 16px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.85; color: var(--text-2); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.term__row { display: flex; gap: 12px; white-space: nowrap; animation: rowIn .5s var(--ease) both; }
.term__row time { color: var(--text-3); }
.term__row .ok { color: var(--grape-broto); }
.term__row .ia { color: var(--accent); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

/* mini painel */
.erp { border-radius: 14px; background: rgba(13, 8, 20, .75); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 18px; min-height: 250px; }
.erp__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-3); }
.erp__pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.erp__pill .dot { width: 6px; height: 6px; }
.erp__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.erp__kpis div { padding: 12px; border-radius: 10px; background: rgba(30, 20, 48, .9); display: grid; gap: 4px; }
.erp__kpis span { font-size: 10.5px; color: var(--text-3); }
.erp__kpis strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.erp__bars { flex: 1; display: flex; align-items: flex-end; gap: 7px; min-height: 80px; }
.erp__bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--grape-uva), rgba(106, 61, 232, .35)); transform-origin: bottom; transform: scaleY(.04); transition: transform 1.2s var(--ease); }
.erp__bars i:last-child { background: linear-gradient(180deg, var(--grape-broto), rgba(184, 242, 92, .25)); }
.is-in .erp__bars i { transform: none; }
.erp__bars i:nth-child(1) { transition-delay: .05s } .erp__bars i:nth-child(2) { transition-delay: .1s } .erp__bars i:nth-child(3) { transition-delay: .15s }
.erp__bars i:nth-child(4) { transition-delay: .2s } .erp__bars i:nth-child(5) { transition-delay: .25s } .erp__bars i:nth-child(6) { transition-delay: .3s }
.erp__bars i:nth-child(7) { transition-delay: .35s } .erp__bars i:nth-child(8) { transition-delay: .4s } .erp__bars i:nth-child(9) { transition-delay: .45s }
.erp__bars i:nth-child(10) { transition-delay: .5s }

/* card de chamada */
.card--cta { background: var(--grape-uva); color: var(--grape-adega); border-color: transparent; justify-content: flex-end; }
.card--cta .label { color: rgba(13, 8, 20, .6); }
.card--cta p:not(.label) { color: rgba(13, 8, 20, .72); }
.card--cta::before { display: none; }
.card--cta::after { background: radial-gradient(400px circle at var(--x) var(--y), rgba(255,255,255,.35), transparent 50%); }
.card__go { position: absolute; top: 26px; right: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--grape-adega); display: grid; place-items: center; transition: transform .6s var(--spring); }
.card__go svg { width: 20px; height: 20px; fill: none; stroke: var(--grape-nevoa); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform .6s var(--spring); }
.card--cta:hover .card__go { transform: scale(1.1); }
.card--cta:hover .card__go svg { transform: rotate(0); }

/* ==========================================================================
   NA PRÁTICA
   ========================================================================== */
.pratica { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.pratica::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.pratica__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.pratica__copy { display: grid; gap: 26px; }
.checks { display: grid; gap: 14px; margin-top: 10px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--text); }
.check { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(184, 242, 92, .12); position: relative; }
.check::after { content: ''; position: absolute; left: 7.5px; top: 4.5px; width: 5px; height: 9px; border: solid var(--grape-broto); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.phone-wrap { display: grid; justify-items: center; gap: 16px; }
.phone { position: relative; width: min(340px, 100%); height: 620px; border-radius: 46px; padding: 14px;
  background: linear-gradient(160deg, #2A1D42, #160E24);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(91, 47, 214, .55), inset 0 1px 0 rgba(255,255,255,.06);
  display: flex; flex-direction: column; overflow: hidden; }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #07040B; z-index: 3; }
.phone__head { display: flex; align-items: center; gap: 12px; padding: 50px 16px 14px; background: rgba(13, 8, 20, .55); border-radius: 34px 34px 0 0; border-bottom: 1px solid var(--line); }
.phone__head strong { display: block; font-weight: 800; font-size: 15px; letter-spacing: -.02em; line-height: 1.2; }
.phone__head .mono { font-size: 11px; color: var(--grape-broto); }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grape-adega); display: grid; place-items: center; border: 1px solid var(--line-2); }
.phone__avatar svg { width: 24px; height: 24px; }
.phone__body { flex: 1; background: rgba(13, 8, 20, .7); border-radius: 0 0 34px 34px; padding: 18px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; font-weight: 400; animation: msgIn .55s var(--spring) both; transform-origin: bottom left; }
.msg--in { align-self: flex-start; background: var(--layer-2); color: var(--text); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--grape-uva); color: var(--grape-adega); border-bottom-right-radius: 6px; transform-origin: bottom right; }
.msg--sys { align-self: center; max-width: none; font-family: var(--f-mono); font-size: 11px; color: var(--grape-broto); background: rgba(184, 242, 92, .08); border-radius: 8px; padding: 6px 10px; }
.msg time { display: block; font-size: 10px; opacity: .55; margin-top: 2px; text-align: right; font-family: var(--f-mono); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--layer-2); border-radius: 18px; border-bottom-left-radius: 6px; animation: msgIn .4s var(--spring) both; }
.typing.out { align-self: flex-end; background: rgba(155, 107, 255, .3); border-radius: 18px; border-bottom-right-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: bob 1.1s var(--ease-in-out) infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.phone__caption { font-size: 11px; color: var(--text-3); }

/* ==========================================================================
   COMO TRABALHAMOS (seção clara: Névoa + Uva Madura)
   ========================================================================== */
.processo { background: var(--grape-nevoa); color: var(--grape-adega); padding: clamp(90px, 12vw, 160px) 0; position: relative; border-radius: 36px 36px 0 0; margin-top: 40px; }
.processo .label { color: var(--grape-uva-madura); }
.processo .thin { color: var(--grape-uva-madura); }
.processo .lead { color: rgba(13, 8, 20, .66); }
.processo ::selection { background: var(--grape-uva-madura); color: var(--grape-nevoa); }
.processo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.processo__side { position: sticky; top: 130px; display: grid; gap: 26px; }

.steps { position: relative; display: grid; gap: clamp(48px, 6vw, 80px); padding-left: 64px; }
.vine { position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: rgba(13, 8, 20, .1); border-radius: 2px; }
.vine__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, var(--uva-clara), var(--grape-uva) 50%, var(--grape-uva-madura)); border-radius: 2px; }
.step { position: relative; display: grid; gap: 10px; }
.step__node { position: absolute; left: -64px; top: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--grape-nevoa); border: 2px solid rgba(13, 8, 20, .14); transition: background-color .5s, border-color .5s, transform .6s var(--spring); }
.step__node::after { content: ''; position: absolute; top: -9px; right: -7px; width: 8px; height: 8px; border-radius: 2px; background: var(--grape-broto); transform: rotate(45deg) scale(0); transition: transform .5s var(--spring) .15s; }
.step.is-on .step__node { background: var(--grape-uva); border-color: var(--grape-uva); transform: scale(1.12); }
.step:nth-child(3).is-on .step__node { background: #8455FA; border-color: #8455FA; }
.step:nth-child(4).is-on .step__node { background: var(--uva-funda); border-color: var(--uva-funda); }
.step:nth-child(5).is-on .step__node { background: var(--grape-uva-madura); border-color: var(--grape-uva-madura); }
.step.is-on .step__node::after { transform: rotate(45deg) scale(1); }
.step__n { font-size: 12px; color: var(--grape-uva-madura); letter-spacing: .06em; text-transform: uppercase; }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.step p:not(.step__n) { color: rgba(13, 8, 20, .66); max-width: 44ch; }
.step { opacity: .35; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }

/* ==========================================================================
   PRINCÍPIOS
   ========================================================================== */
.principios { background: var(--grape-nevoa); color: var(--grape-adega); padding: 0 0 clamp(90px, 12vw, 160px); border-radius: 0 0 36px 36px; }
.principios .label, .principios .thin { color: var(--grape-uva-madura); }
.principios ::selection { background: var(--grape-uva-madura); color: var(--grape-nevoa); }
.principios__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(13, 8, 20, .12); }
.pr { position: relative; padding: 34px 28px 10px 0; display: grid; gap: 12px; align-content: start; }
.pr + .pr { padding-left: 28px; border-left: 1px solid rgba(13, 8, 20, .12); }
.pr::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--grape-uva-madura); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.pr:hover::before { transform: scaleX(1); }
.pr__n { font-size: 12px; color: var(--grape-uva-madura); }
.pr h3 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.pr p { color: rgba(13, 8, 20, .66); font-size: 16px; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contato { position: relative; padding: clamp(120px, 16vw, 220px) 0 clamp(110px, 14vw, 180px); overflow: hidden; text-align: center; }
.contato__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.contato__title { font-size: clamp(48px, 8.6vw, 130px); }
.contato .lead { margin-inline: auto; }
.contato__ctas { justify-content: center; margin-top: 12px; }
.contato__prompt { font-size: 13px; color: var(--text-3); }
.contato__seed { position: absolute; left: 50%; top: 50%; width: min(980px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%) scale(var(--s, .6)) rotate(var(--r, -8deg)); opacity: var(--o, 0); pointer-events: none; z-index: 0; transition: transform .2s linear, opacity .2s linear; }
.contato__seed svg { width: 100%; height: 100%; opacity: .045; filter: blur(2px); }
.contato::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 55%, rgba(106, 61, 232, .22), transparent 70%); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 50px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand tag links" "copy copy copy"; align-items: center; gap: 24px 40px; }
.footer .brand { grid-area: brand; }
.footer__tag { grid-area: tag; font-size: 13px; color: var(--text-3); }
.footer__links { grid-area: links; display: flex; gap: 22px; font-size: 14px; color: var(--text-2); }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { grid-area: copy; font-size: 13px; color: var(--text-3); padding-top: 24px; border-top: 1px solid var(--line); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1080px) {
  .card--term, .card--erp { grid-template-columns: 1fr; }
  .principios__grid { grid-template-columns: repeat(2, 1fr); }
  .pr:nth-child(3) { padding-left: 0; border-left: 0; }
  .pr:nth-child(n+3) { border-top: 1px solid rgba(13, 8, 20, .12); margin-top: 24px; }
}

@media (max-width: 920px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .menu-mobile {
    display: grid; gap: 4px; position: fixed; inset: var(--nav-h) 0 auto; padding: 18px var(--gutter) 28px;
    background: rgba(13, 8, 20, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .menu-mobile a:not(.btn) { font-size: 28px; font-weight: 800; letter-spacing: -.04em; padding: 8px 0; }
  .menu-mobile .btn { margin-top: 16px; }
  .menu-open .menu-mobile { clip-path: inset(0 0 0 0); visibility: visible; }
  .menu-open .nav { background: rgba(13, 8, 20, .96); }

  .hero { padding-bottom: 90px; }
  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__art { order: -1; max-width: 400px; justify-self: center; margin-top: -10px; }
  .hero__glow { right: 50%; top: 22%; transform: translate(50%, -50%); width: 640px; height: 640px; }
  .hero__title { margin: 22px 0; }
  .scroll-cue { display: none; }
  .hint-desk { display: none; } .hint-touch { display: inline; }

  .manifesto { height: 260vh; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 18px; }
  .manifesto__art { order: -1; max-width: min(330px, 42svh); justify-self: center; }
  .manifesto__text { font-size: clamp(28px, 7vw, 40px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .card--term, .card--erp { grid-template-columns: 1fr 1fr; }
  .pratica__grid { grid-template-columns: 1fr; }
  .processo__grid { grid-template-columns: 1fr; }
  .processo__side { position: static; }
  .footer__inner { grid-template-columns: 1fr; grid-template-areas: "brand" "tag" "links" "copy"; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__art { max-width: 340px; }
  .chip { font-size: 11px; padding: 7px 11px; }
  .chip--a { left: -2%; top: 8%; }
  .chip--b { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--term, .card--erp { grid-template-columns: 1fr; }
  .card { padding: 24px; min-height: 0; }
  .icon { padding-bottom: 18px; }
  .phone { height: 560px; }
  .steps { padding-left: 52px; }
  .step__node { left: -52px; width: 28px; height: 28px; }
  .vine { left: 13px; }
  .principios__grid { grid-template-columns: 1fr; }
  .pr, .pr + .pr { padding: 26px 0 0; border-left: 0; }
  .pr + .pr { border-top: 1px solid rgba(13, 8, 20, .12); margin-top: 24px; }
  .processo { border-radius: 26px 26px 0 0; }
  .principios { border-radius: 0 0 26px 26px; }
  .footer__links { flex-wrap: wrap; }
  .loader__wm { font-size: 40px; }
  .loader__cacho { width: 56px; height: 56px; }
}

@media (hover: none) {
  .card:hover { transform: none; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .loader { display: none; }
  .ticker__track { animation: none; }
  .manifesto { height: auto; padding: 120px 0; }
  .manifesto__pin { position: static; height: auto; }
  .w > span { transform: none; }
}
