/* rvrt home — layout + animation styles, in the rvrt PRODUCT system.
 * Tokens come from _ds/rvrt/styles.css. Gold→moss, chumbo→ink/bone.
 * Animation showcase surfaces are ink panels (the system's high-contrast anchor);
 * everything else is the light, bordered, console layout from the marketing kit.
 */

/* ---------------- base / layout ---------------- */
/* Pin the LIGHT theme on .site so the page stays light regardless of any
   data-theme="dark" on an ancestor (e.g. the preview host's ?theme=dark).
   Base palette vars (--moss-*, --ink-*, --bone-*) are theme-agnostic and still resolve. */
.site {
  --bg:          #EDEDEA;
  --surface:     #FCFCFB;
  --surface-2:   #E5E5E1;
  --surface-3:   #DAD9D4;
  --text:        #171813;
  --text-2:      #44463E;
  --text-3:      #6C6E64;
  --text-muted:  #8E9087;
  --text-on-accent: #0A0B0A;
  --border:        #D0CFC8;
  --border-2:      #B7B6AD;
  --border-control: var(--bone-600);
  --border-strong: #171813;
  --accent:          var(--moss-500);
  --accent-hover:    var(--moss-600);
  --accent-active:   var(--moss-700);
  --accent-soft:     #E9EFD4;
  --accent-border:   #C4D593;
  --accent-contrast: #0A0B0A;
  --overlay:     rgba(10, 11, 10, 0.55);
}
.site { background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.wrap { max-width: var(--container-wide); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

.site h1, .site h2, .site h3, .site h4 { margin: 0; font-family: var(--font-display); }
.site p { margin: 0; }
.site a:not(.btn) { color: inherit; text-decoration: none; }
.site a.btn { text-decoration: none; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .slash { color: var(--accent); }

.sec { padding: 104px 0; border-bottom: 1px solid var(--border-2); position: relative; }
.sec-h2 { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; max-width: 22ch; margin: 16px 0 0; }
.sec-sub { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 18px 0 0; max-width: 60ch; }

/* buttons (DS: primary = solid ink, secondary = hairline) */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; padding: 12px 20px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); white-space: nowrap; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--ink-800); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { border-color: var(--border-control); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--text); background: var(--surface-2); }
.btn-accent { background: var(--accent); color: var(--accent-contrast); }
.btn-accent:hover { background: var(--accent-hover); }
.on-ink .btn-primary { background: var(--bone-50); color: var(--ink-950); }
.on-ink .btn-primary:hover { background: var(--bone-200); }
.on-ink .btn-secondary { border-color: var(--ink-600); color: var(--bone-100); }
.on-ink .btn-secondary:hover { border-color: var(--bone-300); background: var(--ink-800); }

/* ---------------- topbar ---------------- */
.topbar { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--border-2); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.topbar-inner { max-width: var(--container-wide); margin: 0 auto; width: 100%; padding: 0 32px; display: flex; align-items: center; gap: 26px; }

/* hamburger + mobile nav */
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; padding: 0; margin-left: auto; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; gap: 2px; padding: 84px 28px 40px; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), visibility var(--dur-mid); }
.mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a { font-family: var(--font-mono); font-size: 17px; color: var(--text); padding: 17px 4px; border-bottom: 1px solid var(--border-2); }
.mobile-nav a.ig-link { color: #E8731C; }
.mobile-nav .btn { margin-top: 24px; justify-content: center; border-bottom: 0; }
.mobile-nav .btn-primary { color: var(--bg); }
.mobile-nav-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; background: transparent; border: 0; color: var(--text-2); font-size: 20px; cursor: pointer; }
.logo-mark { display: inline-flex; align-items: center; }
.logo-mark img { height: 28px; display: block; }
.topbar-links { display: flex; gap: 22px; margin-left: 10px; }
.topbar-links a { position: relative; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); padding: 4px 0; transition: color var(--dur-fast) var(--ease-out); }
.topbar-links a:hover { color: var(--text); }
.topbar-links a.is-current { color: var(--text); }
.topbar-links a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.topbar-links a.ig-link { color: #E8731C; }
.topbar-links a.ig-link:hover { color: #F4AF3C; }
.topbar-links a.ig-link.is-current::after { background: #E8731C; }
.topbar .spacer { flex: 1; }
.topbar .live { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.topbar .live .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--accent); }

/* ---------------- hero ---------------- */
.hero { border-bottom: 1px solid var(--border-2); position: relative; overflow: hidden; }
.hero-dotgrid { position: absolute; inset: 0; pointer-events: none; color: var(--ink-950); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: stretch; }
.hero-l { padding: 84px 52px 76px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-l h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.045em; margin: 18px 0 0; }
.hero-l h1 .alt { color: var(--text-3); }
.hero-l .sub { font-size: 19px; line-height: 1.55; color: var(--text); margin: 24px 0 0; max-width: 48ch; }
.hero-l .body { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 14px 0 0; max-width: 50ch; }
.hero-l .cta { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.hero-l .spectrum { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.hero-l .spectrum a { color: var(--text-3); border-bottom: 1px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast); }
.hero-l .spectrum a:hover { color: var(--accent-active); border-bottom-color: var(--accent-border); }
.hero-l .spectrum .sep { color: var(--border-2); }
.hero-r { padding: 36px 0 36px 52px; display: flex; align-items: center; justify-content: center; }

/* proof row */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-2); border-top: 1px solid var(--border-2); }
.proof .c { background: var(--bg); padding: 24px 32px; }
.proof .n { font-family: var(--font-mono); font-weight: 600; font-size: 32px; letter-spacing: -0.03em; font-feature-settings: "tnum" 1, "zero" 1; font-variant-numeric: tabular-nums slashed-zero; color: var(--text); }
.proof .n .u { color: var(--text-3); font-weight: 500; }
.proof .l { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 7px; }

/* ---------------- compare faixa ---------------- */
.compare { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); }
.compare .col { background: var(--surface); padding: 28px 30px; }
.compare .col-revert { background: var(--accent-soft); }
.compare h4 { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }
.compare .col-revert h4 { color: var(--accent-active); }
.compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 13px; }
.compare li { color: var(--text-2); }
.compare .col-revert li { color: var(--text); }

.prose-block { max-width: 760px; }
.prose-block p { font-size: 17px; line-height: 1.65; color: var(--text-2); margin-top: 20px; }
.prose-block p .em { color: var(--text); font-weight: 600; }
.prose-block p .fig { font-family: var(--font-mono); color: var(--accent-active); font-weight: 500; }
.prose-block hr.sep { border: 0; height: 1px; width: 64px; background: var(--border-2); margin: 40px 0; }
.prose-block .link-rvos { color: var(--text); border-bottom: 1px solid var(--accent); font-weight: 600; }

/* ---------------- mecanismo: cap panel ---------------- */
.cap-panel { margin-top: 52px; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: stretch; }
.cap-tabs { display: flex; flex-direction: column; gap: 8px; }
.cap-tab { display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-md); padding: 16px 18px 15px; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); position: relative; overflow: hidden; width: 100%; flex: 1 1 0; }
.cap-tab:hover { background: var(--surface-2); }
.cap-tab.is-active { background: var(--surface); border-color: var(--text); }
.cap-tab-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cap-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-3); }
.cap-tab.is-active .cap-num { color: var(--accent-active); }
.cap-glyph { color: var(--text-3); flex-shrink: 0; transition: color var(--dur-fast); }
.cap-tab.is-active .cap-glyph { color: var(--text); }
.cap-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; letter-spacing: -0.01em; }
.cap-desc { font-size: 13px; color: var(--text-3); line-height: 1.5; margin-top: 4px; display: none; }
.cap-tab.is-active .cap-desc { display: block; }
.cap-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--surface-2); overflow: hidden; }
.cap-fill { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.cap-tab.is-active .cap-fill { animation: capProgress 5000ms linear forwards; }
.cap-tab.is-paused .cap-fill { animation-play-state: paused; }
@keyframes capProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ink showcase panel (shared by mecanismo anim + cockpit + hero carousel) */
.ink-panel { background: var(--ink-950); color: var(--bone-100); border: 1px solid var(--ink-700); }
.cap-anim-area { position: relative; border-radius: var(--radius-md); overflow: hidden; min-height: 540px; }
.cap-anim-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 360ms var(--ease-out); padding: 26px; display: flex; flex-direction: column; }
.cap-anim-panel.is-active { opacity: 1; visibility: visible; transition-delay: 70ms; }
.anim-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-500); margin-bottom: 18px; align-self: flex-start; }
.anim-dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--accent); box-shadow: 0 0 8px rgba(155,181,74,0.7); }
.anim-canvas { flex: 1; position: relative; min-height: 0; }
[data-anim="protocolo"] #terms-mecanismo { position: relative; width: 100%; flex: 1; min-height: 0; max-width: none; aspect-ratio: auto; }

/* ---------------- terminals ---------------- */
.terms-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1.05; max-width: 540px; }
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); gap: 12px; width: 100%; height: 100%; position: relative; z-index: 2; }
.term { background: var(--ink-900); border: 1px solid rgba(155,181,74,0.20); border-radius: var(--radius-md); padding: 11px 13px; font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: rgba(244,241,234,0.74); position: relative; overflow: hidden; transition: border-color var(--dur-fast); }
.term:hover { border-color: rgba(155,181,74,0.55); }
.term-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--bone-500); margin-bottom: 8px; letter-spacing: .04em; }
.term-head .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--moss-700); }
.term-head .dot.live { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.term-name { color: var(--bone-100); font-size: 10px; }
.term-lines { display: flex; flex-direction: column; gap: 2px; }
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: fadeLine 400ms var(--ease-out) forwards; }
.term-line .prompt { color: var(--moss-400); margin-right: 6px; }
.term-line .ok { color: var(--sage-400); }
.term-line .num { color: var(--moss-300); }
@keyframes fadeLine { from { opacity: 0; transform: translateY(3px); } to { opacity: 0.86; transform: none; } }
.term-overlay-name { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 13px; background: linear-gradient(to top, rgba(10,11,10,0.94), rgba(10,11,10,0)); font-size: 11px; color: var(--moss-300); opacity: 0; transition: opacity var(--dur-fast); pointer-events: none; }
.term:hover .term-overlay-name { opacity: 1; }
.terms-arrows { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.terms-arrows path { fill: none; stroke: var(--moss-700); stroke-width: 1; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.terms-arrows path.live { stroke: var(--moss-300); opacity: 1; filter: drop-shadow(0 0 4px var(--accent)); }

/* ---------------- brain ---------------- */
.brain-wrap { flex: 1; position: relative; min-height: 0; }
#brain-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.brain-domains { position: absolute; bottom: 18px; left: 24px; right: 24px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; pointer-events: none; }
.brain-domains .dom { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-500); padding: 4px 10px; border: 1px solid rgba(155,181,74,0.4); background: rgba(10,11,10,0.6); border-radius: var(--radius-pill); }

/* ---------------- squads ---------------- */
#anim-squads { width: 100%; height: 100%; }

/* ---------------- skills ---------------- */
#anim-skills { display: flex; flex-direction: column; padding: 6px 0; gap: 16px; height: 100%; }
.skills-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.skill-chip { background: var(--ink-900); border: 1px solid rgba(155,181,74,0.2); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: all 400ms var(--ease-out); position: relative; }
.skill-chip .sk-name { font-family: var(--font-mono); font-size: 12px; color: var(--bone-500); letter-spacing: .04em; }
.skill-chip .sk-desc { font-size: 13px; color: var(--bone-500); line-height: 1.45; opacity: 0.85; }
.skill-chip.is-active { background: rgba(155,181,74,0.12); border-color: var(--accent); }
.skill-chip.is-active .sk-name { color: var(--moss-300); }
.skill-chip.is-active .sk-desc { color: var(--bone-100); opacity: 1; }
.skill-chip.is-done { border-color: rgba(155,181,74,0.4); }
.skill-chip.is-done .sk-name { color: var(--moss-600); }
.skill-chip .sk-tick { position: absolute; top: 10px; right: 12px; width: 12px; height: 12px; border-radius: var(--radius-pill); background: rgba(155,181,74,0.18); transition: all var(--dur-mid); }
.skill-chip.is-active .sk-tick { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.skill-chip.is-done .sk-tick { background: var(--moss-700); }
.skills-current { font-family: var(--font-mono); font-size: 11px; color: var(--bone-500); letter-spacing: .06em; padding: 12px 14px; background: var(--ink-900); border-radius: var(--radius-md); border-left: 2px solid var(--accent); }
.skills-current span { color: var(--moss-300); margin-left: 6px; }

/* ---------------- mapeamento pipeline ---------------- */
#anim-mapeamento { display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0; gap: 10px; height: 100%; }
.pipe-stage { display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: center; padding: 12px 16px; background: var(--ink-900); border: 1px solid rgba(155,181,74,0.2); border-radius: var(--radius-md); transition: all 400ms var(--ease-out); opacity: 0.45; flex: 1; }
.pipe-stage.is-active { opacity: 1; background: rgba(155,181,74,0.1); border-color: var(--accent); }
.pipe-stage .pipe-icon { display: flex; align-items: center; justify-content: center; height: 32px; }
.pipe-stage .pipe-icon svg { width: 32px; height: 32px; }
.pipe-text { display: flex; flex-direction: column; gap: 2px; }
.pipe-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-500); }
.pipe-stage.is-active .pipe-name { color: var(--moss-300); }
.pipe-detail { font-size: 13px; color: var(--bone-100); opacity: 0.75; line-height: 1.4; }
.pipe-wave { display: flex; gap: 3px; align-items: center; height: 28px; }
.pipe-wave i { display: inline-block; width: 3px; background: var(--moss-700); border-radius: 1px; height: 8px; }
.pipe-stage.is-active .pipe-wave i { background: var(--accent); animation: pipeWave 1.2s ease-in-out infinite; }
.pipe-stage.is-active .pipe-wave i:nth-child(2) { animation-delay: .1s; }
.pipe-stage.is-active .pipe-wave i:nth-child(3) { animation-delay: .2s; }
.pipe-stage.is-active .pipe-wave i:nth-child(4) { animation-delay: .3s; }
.pipe-stage.is-active .pipe-wave i:nth-child(5) { animation-delay: .4s; }
@keyframes pipeWave { 0%,100% { height: 6px; } 50% { height: 24px; } }

/* ---------------- cockpit ---------------- */
.cockpit { margin: 0; padding: 36px 30px 30px; border: 1px solid var(--ink-700); border-radius: var(--radius-md); background: var(--ink-950); color: var(--bone-100); }
.cockpit-leader { width: 100%; border: 1.5px solid var(--accent); border-radius: var(--radius-md); padding: 16px 22px; text-align: center; background: rgba(155,181,74,0.08); }
.cockpit-leader .leader-lbl { font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--moss-300); }
.cockpit-stems { display: flex; justify-content: center; margin: 4px 0 12px; }
.cockpit-stems svg { display: block; }
.cockpit-tracks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.track { background: var(--ink-900); border: 1px solid rgba(155,181,74,0.25); border-radius: var(--radius-md); padding: 14px 12px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; }
.track-name { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--bone-100); line-height: 1.25; padding-bottom: 10px; border-bottom: 1px solid rgba(155,181,74,0.25); }
.track-chips { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--bone-500); background: var(--ink-800); border: 1px solid rgba(155,181,74,0.35); border-radius: var(--radius-xs); padding: 6px 9px; transition: opacity 400ms, transform 400ms, box-shadow 400ms, border-color 400ms, color 400ms; }
.chip.entering { opacity: 0; transform: translateY(-6px); }
.chip.glow { border-color: var(--accent); color: var(--bone-100); box-shadow: 0 0 12px rgba(155,181,74,0.5); }
.chip.leaving { opacity: 0; transform: translateY(6px); }

/* stack-4 */
.stack-4 { margin: 24px 0 0; padding: 24px 28px 26px; border: 1px solid var(--border-2); border-radius: var(--radius-md); background: var(--surface); }
.stack-4-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.stack-4-head .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-active); text-transform: uppercase; }
.stack-4-head .cnt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }
.stack-4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stack-4-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-left: 1px solid var(--border-2); }
.stack-4-item.is-revert { border-left-color: var(--accent); }
.s4-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--text-3); margin-bottom: 4px; }
.stack-4-item.is-revert .s4-num { color: var(--accent-active); }
.s4-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.25; }
.s4-desc { font-size: 13px; color: var(--text-3); line-height: 1.45; }

/* comp cards */
.comp-cards { display: flex; flex-direction: column; gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); margin-top: 24px; }
.comp-card { background: var(--surface); display: grid; grid-template-columns: 88px 1fr; }
.comp-icon { border-right: 1px solid var(--border-2); display: flex; align-items: flex-start; justify-content: center; padding: 32px 0; color: var(--accent-active); }
.comp-body { padding: 30px 36px; display: flex; flex-direction: column; gap: 13px; }
.comp-body h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.comp-body p { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.comp-body p.strong { color: var(--text); }
.comp-body .fig { font-family: var(--font-mono); color: var(--accent-active); }
.comp-card .deliv { margin-top: auto; background: var(--surface-2); border-left: 2px solid var(--accent); padding: 13px 16px; }
.comp-card .deliv .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--accent-active); text-transform: uppercase; margin-bottom: 5px; }
.comp-card .deliv p { font-size: 13px; color: var(--text-2); }

/* audio→bpmn inside a comp card */
.audio-bpmn { margin-top: 4px; height: 72px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--border-2); border-radius: var(--radius-md); background: var(--surface-2); }
.wave { display: flex; gap: 4px; align-items: center; height: 40px; width: 60px; }
.wave i { display: inline-block; width: 4px; background: var(--moss-700); border-radius: 1px; height: 8px; animation: waveAnim 1.4s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; }
.wave i:nth-child(3) { animation-delay: .3s; }
.wave i:nth-child(4) { animation-delay: .45s; }
.wave i:nth-child(5) { animation-delay: .6s; }
@keyframes waveAnim { 0%,100% { height: 6px; background: var(--moss-700); } 50% { height: 30px; background: var(--accent); } }
.bpmn { display: flex; align-items: center; gap: 6px; flex: 1; overflow: hidden; min-width: 0; }
.bpmn .node { width: 28px; height: 22px; border: 1px solid var(--moss-600); border-radius: var(--radius-xs); background: rgba(155,181,74,0.08); opacity: 0; animation: bpmnAppear 600ms var(--ease-out) forwards; }
.bpmn .node.diamond { transform: rotate(45deg); width: 18px; height: 18px; }
.bpmn .node.circle { border-radius: 50%; width: 18px; height: 18px; }
.bpmn .conn { flex: 0 0 14px; height: 1px; background: var(--moss-600); opacity: 0; animation: bpmnAppear 400ms var(--ease-out) forwards; }
.bpmn-anim .node:nth-child(1) { animation-delay: .2s; }
.bpmn-anim .conn:nth-child(2) { animation-delay: .5s; }
.bpmn-anim .node:nth-child(3) { animation-delay: .7s; }
.bpmn-anim .conn:nth-child(4) { animation-delay: 1s; }
.bpmn-anim .node:nth-child(5) { animation-delay: 1.2s; }
.bpmn-anim .conn:nth-child(6) { animation-delay: 1.5s; }
.bpmn-anim .node:nth-child(7) { animation-delay: 1.7s; }
.bpmn-anim .conn:nth-child(8) { animation-delay: 2s; }
.bpmn-anim .node:nth-child(9) { animation-delay: 2.2s; }
@keyframes bpmnAppear { to { opacity: 1; } }
.arrow-mid { color: var(--accent); font-family: var(--font-mono); font-size: 16px; }

.meaning { margin-top: 32px; padding: 36px 40px; border: 1px solid var(--border-2); border-radius: var(--radius-md); background: var(--surface); }
.meaning h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 16px; }
.meaning p { font-size: 15px; color: var(--text-2); margin-top: 12px; line-height: 1.55; }
.bl-close { margin-top: 64px; text-align: center; padding-top: 56px; border-top: 1px solid var(--border-2); }
.bl-close h3 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto; }
.bl-close .hi { color: var(--accent-active); }

/* ---------------- ofertas ---------------- */
.ofertas-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); }
.oferta { position: relative; background: var(--surface); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px; transition: background var(--dur-fast) var(--ease-out); }
.oferta:hover { background: var(--surface-2); }
.oferta.is-featured { background: var(--accent-soft); }
.oferta.is-featured:hover { background: var(--accent-soft); }
.of-anim { height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.of-anim-svg { width: 100%; max-height: 96px; display: block; }
.of-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.oferta.is-featured .of-tag { color: var(--accent-active); }
.of-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.of-sub { font-size: 14px; color: var(--text-3); }
.of-body { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.of-meta { margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-3); padding-top: 16px; border-top: 1px solid var(--border-2); }
.of-cta { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid transparent; align-self: flex-start; transition: border-color var(--dur-fast); }
.of-cta:hover { border-bottom-color: var(--accent); }
.site a.of-cta.is-primary { padding: 11px 18px; border-radius: var(--radius-md); background: var(--text); color: var(--bg); border-bottom: 0; }
.site a.of-cta.is-primary:hover { background: var(--ink-800); border-bottom: 0; }
.of-featured-badge { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-active); border: 1px solid var(--accent-border); border-radius: var(--radius-pill); padding: 3px 9px; }

/* ---------------- cases ---------------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); margin-top: 52px; }
.case { background: var(--surface); display: flex; flex-direction: column; }
.case .top { padding: 14px 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; border-bottom: 1px solid var(--border-2); }
.case .mid { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; gap: 13px; }
.case .mid h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.case .mid p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.case .bot { background: var(--surface-2); border-top: 1px solid var(--accent-border); padding: 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-family: var(--font-mono); font-size: 12px; }
.case .bot .lbl { color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; font-size: 10px; }
.case .bot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.case .bot li { color: var(--text-2); }
.case .bot .after li { color: var(--accent-active); }

/* ---------------- quem ---------------- */
.quote { margin: 56px auto 0; padding: 32px 0; text-align: center; font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--text); line-height: 1.25; letter-spacing: -0.02em; max-width: 720px; }
.quote .r { color: var(--accent); }

/* ---------------- CTA band ---------------- */
.band { padding: 100px 0; background: var(--ink-950); color: var(--bone-100); text-align: center; }
.band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto; color: var(--bone-50); line-height: 1.08; }
.band h2 + h2 { color: var(--moss-300); margin-top: 6px; }
.band .cta { display: flex; gap: 12px; justify-content: center; margin-top: 38px; }

/* ---------------- footer ---------------- */
.foot { padding: 52px 0 44px; background: var(--bg); }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand img { height: 19px; }
.foot-brand .tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 12px; max-width: 30ch; line-height: 1.5; }
.foot .cols { display: flex; gap: 56px; }
.foot .col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 14px; }
.foot .col a { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); margin-bottom: 9px; transition: color var(--dur-fast); }
.foot .col a:hover { color: var(--text); }
.foot .col a.muted { color: var(--text-muted); }
.foot-bottom { max-width: var(--container-wide); margin: 40px auto 0; padding: 20px 32px 0; border-top: 1px solid var(--border-2); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ---------------- lead modal ---------------- */
.lead-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lead-modal.open { display: flex; }
.lead-card { width: 100%; max-width: 540px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 38px; position: relative; box-shadow: var(--shadow-lg); }
.lead-card .close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 15px; transition: background var(--dur-fast), color var(--dur-fast); cursor: pointer; }
.lead-card .close:hover { color: var(--text); background: var(--surface-2); }
.lead-card .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-active); margin-bottom: 14px; }
.lead-card h3 { font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.lead-card .desc { font-size: 15px; color: var(--text-2); margin-bottom: 26px; line-height: 1.5; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.lead-form input, .lead-form textarea, .lead-form select { width: 100%; background: var(--bg); border: 1px solid var(--border-control); border-radius: var(--radius-sm); padding: 11px 13px; color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.5; transition: border-color var(--dur-fast); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: none; border-color: var(--text); }
.lead-form textarea { min-height: 104px; resize: vertical; }
.lead-form .actions { margin-top: 10px; display: flex; justify-content: flex-end; }

/* ---------------- loader ---------------- */
#loader { position: fixed; inset: 0; background: var(--bg); z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; transition: opacity 480ms var(--ease-out); }
#loader.gone { opacity: 0; pointer-events: none; }
#loader .loader-mark { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.05em; color: var(--text); line-height: 1; }
#loader .loader-mark .cursor { color: var(--accent); margin-left: 1px; animation: loaderCursor 1s steps(1) infinite; }
@keyframes loaderCursor { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
#loader .loader-r { width: 56px; height: 56px; }
#loader .loader-r path { fill: none; stroke: var(--text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 800ms var(--ease-out) forwards; }
#loader .loader-r path.tick { stroke: var(--accent); animation: draw 400ms var(--ease-out) 640ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#loader .dots { display: flex; gap: 9px; }
#loader .dots span { width: 5px; height: 5px; border-radius: var(--radius-pill); background: var(--moss-700); }
#loader .dots span:nth-child(1) { animation: blip 600ms ease-in-out infinite; }
#loader .dots span:nth-child(2) { animation: blip 720ms ease-in-out infinite .12s; }
#loader .dots span:nth-child(3) { animation: blip 580ms ease-in-out infinite .24s; }
@keyframes blip { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); background: var(--accent); } }
#loader .line { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); opacity: .62; min-height: 18px; transition: opacity 180ms; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(var(--translate-enter)); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- composite hero carousel ---------------- */
.composite-hero { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; perspective: 1400px; perspective-origin: center; overflow: visible; }
.composite-hero .hero-stage { position: absolute; inset: 0; background: var(--ink-950); border: 1px solid var(--ink-700); border-radius: var(--radius-md); overflow: hidden; padding: 20px; display: flex; flex-direction: column; transform-origin: center; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.4,0,.2,1), opacity 700ms var(--ease-out), filter 700ms var(--ease-out); will-change: transform, opacity, filter; backface-visibility: hidden; color: var(--bone-100); }
.composite-hero .hero-stage[data-offset="0"] { transform: translateX(0) translateZ(0) rotateY(0); opacity: 1; filter: none; z-index: 5; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(155,181,74,0.3); }
.composite-hero .hero-stage[data-offset="1"] { transform: translateX(28%) translateZ(-180px) rotateY(-28deg); opacity: .5; filter: blur(1px); z-index: 3; }
.composite-hero .hero-stage[data-offset="-1"] { transform: translateX(-28%) translateZ(-180px) rotateY(28deg); opacity: .5; filter: blur(1px); z-index: 3; }
.composite-hero .hero-stage[data-offset="2"] { transform: translateX(48%) translateZ(-340px) rotateY(-44deg); opacity: .16; filter: blur(2.5px); z-index: 1; pointer-events: none; }
.composite-hero .hero-stage[data-offset="-2"] { transform: translateX(-48%) translateZ(-340px) rotateY(44deg); opacity: .16; filter: blur(2.5px); z-index: 1; pointer-events: none; }
.composite-hero .stage-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--bone-500); text-transform: uppercase; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.composite-hero .stage-label::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--accent); box-shadow: 0 0 8px rgba(155,181,74,0.7); }
.composite-hero .stage-body { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.composite-hero [data-stage="memoria"] .brain-wrap { position: absolute; inset: 0; }
.composite-hero .ch-cockpit-tracks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; height: 100%; }
.composite-hero .ch-track { background: var(--ink-900); border: 1px solid rgba(155,181,74,0.3); border-radius: var(--radius-xs); padding: 8px 4px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.composite-hero .ch-track-name { font-family: var(--font-display); font-size: 9px; font-weight: 600; color: var(--bone-100); text-align: center; line-height: 1.15; padding-bottom: 5px; border-bottom: 1px solid rgba(155,181,74,0.3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composite-hero .ch-track-chips { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; }
.composite-hero .ch-chip { font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; color: var(--bone-500); background: var(--ink-800); border: 1px solid rgba(155,181,74,0.4); border-radius: var(--radius-xs); padding: 3px 4px; text-align: center; transition: opacity 380ms, transform 380ms, border-color 380ms, box-shadow 380ms; }
.composite-hero .ch-chip.is-new { opacity: 0; transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 8px rgba(155,181,74,0.6); }
.composite-hero .ch-chip.is-leaving { opacity: 0; transform: translateY(3px); }
.composite-hero #anim-squads, .composite-hero #anim-mapeamento { width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; flex: 1; }
.composite-hero #anim-mapeamento { gap: 6px !important; padding: 0 !important; }
.composite-hero .pipe-stage { padding: 8px 12px !important; grid-template-columns: 40px 1fr !important; gap: 10px !important; }
.composite-hero .pipe-stage .pipe-icon { height: 22px !important; }
.composite-hero .pipe-stage .pipe-icon svg { width: 22px !important; height: 22px !important; }
.composite-hero .pipe-stage .pipe-wave { height: 20px !important; }
.composite-hero .pipe-stage .pipe-wave i { width: 2.5px !important; }
.composite-hero #anim-squads svg { width: 100%; height: 100%; }
.composite-hero [data-stage="terminals"] .terms-wrap { position: relative !important; width: 100% !important; height: 100% !important; max-width: 100% !important; aspect-ratio: auto !important; flex: 1; }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 72px 0; }
  .sec-h2 { font-size: 30px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-l { border-right: none; padding: 64px 0 48px; }
  .hero-r { padding: 0 0 48px; }
  .composite-hero { max-width: 100%; aspect-ratio: 1.05 / 1; }
  .composite-hero .hero-stage[data-offset="2"], .composite-hero .hero-stage[data-offset="-2"] { opacity: 0; }
  .compare { grid-template-columns: 1fr; }
  /* mobile carousels: swipe horizontally, next card peeks in from the right */
  .ofertas-grid, .cases { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; background: transparent; border: none; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ofertas-grid::-webkit-scrollbar, .cases::-webkit-scrollbar { display: none; }
  .oferta, .case { flex: 0 0 84%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; border: 1px solid var(--border-2); }
  .cap-panel { grid-template-columns: 1fr; }
  .cap-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 8px; scrollbar-width: none; }
  .cap-tabs::-webkit-scrollbar { display: none; }
  .cap-anim-area { min-height: 420px; }
  .cap-tab .cap-desc { display: block; }
  /* kanban do cockpit vira carrossel: um card por vez, próximo aparece na borda */
  .cockpit-tracks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .cockpit-tracks::-webkit-scrollbar { display: none; }
  .track { flex: 0 0 68%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .cockpit-stems { display: none; }
  /* comp-cards viram carrossel no mobile (mesmo padrão de ofertas/cases) */
  .comp-cards { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; background: transparent; border: none; padding: 2px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .comp-cards::-webkit-scrollbar { display: none; }
  .comp-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; flex: 0 0 84%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; border: 1px solid var(--border-2); }
  .comp-icon { border-right: none; border-bottom: 1px solid var(--border-2); padding: 18px 0; align-items: center; }
  .comp-body { padding: 24px 22px; }
  .skills-flow { grid-template-columns: 1fr 1fr; }
  .topbar-links { display: none; }
  .topbar .live { display: none; }
  .topbar-inner .btn-primary { display: none; }
  .menu-toggle { display: flex; }
  .cap-tab { flex: 0 0 82%; scroll-snap-align: center; scroll-snap-stop: always; }
  .topbar-inner { gap: 16px; }
  .proof { grid-template-columns: 1fr; }
  .foot-in { gap: 28px; }
  .foot .cols { gap: 32px; flex-wrap: wrap; }
  .brain-domains { display: none; }
}
@media (max-width: 560px) {
  .skills-flow { grid-template-columns: 1fr; }
  .case .bot { grid-template-columns: 1fr; }
  .hero-l h1 { font-size: 33px; }
  /* audio→bpmn widget: shrink so the full flow fits a phone without clipping */
  .comp-body { padding: 26px 22px; }
  .audio-bpmn { height: auto; gap: 10px; padding: 12px; flex-wrap: wrap; }
  .audio-bpmn .wave { width: 44px; height: 30px; }
  .audio-bpmn .wave i { width: 3px; }
  .bpmn { gap: 4px; flex: 1 1 auto; min-width: 0; }
  .bpmn .node { width: 22px; height: 18px; }
  .bpmn .node.diamond, .bpmn .node.circle { width: 15px; height: 15px; }
  .bpmn .conn { flex: 0 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .term-line { opacity: .86; animation: none; }
  #loader { display: none; }
}
