/* ==========================================================================
   Hubly Software — site institucional
   Base escura no topo (globo de pontos), seções claras, lima como acento.
   Movimento: vidro líquido, globo, H em traço, órbitas, dock e pixels.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f4f7f2;
  --ink: #08110e;
  --ink-2: #0f1c17;
  --text: #34423b;
  --muted: #5a6962;
  --line: #e1e8e2;
  --lime: #c8f36a;
  --lime-d: #b4e04c;
  --green: #1d6a43;
  --green-d: #14503a;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(8, 17, 14, .06), 0 1px 1px rgba(8, 17, 14, .04);
  --shadow-md: 0 10px 30px -12px rgba(8, 17, 14, .18);
  --shadow-lg: 0 40px 80px -30px rgba(8, 17, 14, .45);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --container: 1200px;
  --header-h: 92px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Grão sobre superfícies escuras */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain); background-size: 180px; opacity: .07; mix-blend-mode: overlay; border-radius: inherit; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px;
  font: 600 15px/1 var(--font-body); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--spring), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink-2); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: #c9d4cc; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-d); box-shadow: 0 10px 30px -10px rgba(200, 243, 106, .6); }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn .ico { transition: transform .25s var(--spring); }
.btn:hover .ico { transform: translateX(3px); }

/* ---------- Cabeçalho: pílula de vidro escuro ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 14px; pointer-events: none; }
.header-inner {
  pointer-events: auto; position: relative;
  width: min(var(--container), calc(100% - 32px)); height: 64px; margin-inline: auto;
  padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 36, 29, .68), rgba(8, 17, 14, .6));
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28), 0 14px 44px -16px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .3);
  transition: width .5s var(--ease-out), height .3s, background .3s, box-shadow .3s;
}
.site-header.is-scrolled .header-inner { width: min(1020px, calc(100% - 32px)); height: 58px; background: linear-gradient(180deg, rgba(20, 36, 29, .88), rgba(8, 17, 14, .84)); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; width: auto; height: 30px; transition: transform .5s var(--spring), opacity .2s; }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-logo-lg { height: 38px; }

.main-nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a:not(.btn) { position: relative; z-index: 1; padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: #c4d1ca; transition: color .2s; }
.main-nav a:not(.btn):hover { color: #fff; }
.main-nav a.is-active { color: var(--lime); }
.nav-glider {
  position: absolute; top: 50%; left: 0; width: 0; height: 40px; margin-top: -20px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(255, 255, 255, .06);
  opacity: 0; pointer-events: none;
  transition: transform .5s var(--spring), width .5s var(--spring), opacity .2s;
}
.nav-glider.is-on { opacity: 1; }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero escuro com globo de pontos ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  margin-top: -78px; padding: 140px 0 88px;
  background: var(--ink); color: #b7c4bd;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 560px at 78% 50%, rgba(29, 106, 67, .55), transparent 65%),
    radial-gradient(620px 420px at 6% 0%, rgba(200, 243, 106, .13), transparent 60%),
    radial-gradient(700px 420px at 45% 118%, rgba(200, 243, 106, .1), transparent 60%),
    linear-gradient(180deg, #07130e, #060d0a);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; font-weight: 500; color: #d3ded8; backdrop-filter: blur(8px); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 243, 106, .2); animation: pulse-lime 2.4s ease-in-out infinite; }
@keyframes pulse-lime { 0%, 100% { box-shadow: 0 0 0 4px rgba(200, 243, 106, .22); } 50% { box-shadow: 0 0 0 9px rgba(200, 243, 106, 0); } }

.hero h1 { margin-top: 24px; color: #fff; font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; }
.hl { position: relative; z-index: 0; white-space: nowrap; color: var(--lime); }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--lime), rgba(200, 243, 106, 0)); transform-origin: left center; }
.lead { max-width: 540px; margin-top: 24px; font-size: 19px; line-height: 1.65; color: #a9b8b0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Métricas em vidro (inspirado no Syntra) */
.metrics {
  display: grid; grid-template-columns: repeat(4, auto); width: fit-content; max-width: 100%; margin-top: 44px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
}
.metrics > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.metrics > div:first-child { border-left: 0; }
.metrics strong { font: 800 28px/1 var(--font-display); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.metrics span { font-size: 13px; line-height: 1.35; color: #90a198; max-width: 112px; }

/* Entrada do hero (CSS puro: nunca fica escondido se algo falhar) */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(115%); } to { transform: none; } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js [data-hero] { animation: rise .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
.js .hero h1 .w > span { animation: word-up .9s var(--ease-out) both; animation-delay: calc(.14s + var(--i, 0) * .07s); }
.js .hl::after { animation: underline .8s var(--ease-out) .95s both; }

/* Globo */
.hero-visual { position: relative; }
.globe-wrap { position: relative; width: min(100%, 620px); aspect-ratio: 1; margin-left: auto; }
.globe-wrap::before {
  content: ""; position: absolute; inset: -9%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 243, 106, .16), rgba(29, 106, 67, .2) 55%, transparent 74%);
}
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }

/* Cartões de solução ao redor do globo (abrem ao passar o mouse) */
.gchip {
  position: absolute; z-index: 3; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; width: 206px; padding: 10px 14px 10px 10px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(180deg, rgba(16, 32, 25, .78), rgba(8, 17, 14, .72));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: floaty 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.15s);
  transition: transform .4s var(--spring), border-color .25s, box-shadow .25s;
}
.gchip:hover, .gchip:focus-visible { transform: scale(1.05); z-index: 5; border-color: color-mix(in srgb, var(--a) 60%, transparent); box-shadow: 0 24px 50px -18px color-mix(in srgb, var(--a) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .14); }
.gchip-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--a) 22%, #0d1a14); color: color-mix(in srgb, var(--a) 70%, #fff); border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); }
.gchip-txt strong { display: block; font: 700 14px/1.2 var(--font-display); }
.gchip-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: #93a49b; }
.gchip-more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s var(--ease-out), opacity .3s; }
.gchip-more > span { overflow: hidden; padding-top: 0; font-size: 13px; line-height: 1.5; color: #c4d1ca; transition: padding-top .3s; }
.gchip:hover .gchip-more, .gchip:focus-visible .gchip-more { grid-template-rows: 1fr; opacity: 1; }
.gchip:hover .gchip-more > span, .gchip:focus-visible .gchip-more > span { padding-top: 10px; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.g1 { left: -7%; top: 8%; }
.g2 { right: -5%; top: 3%; }
.g3 { left: -11%; top: 41%; }
.g4 { right: -9%; top: 34%; }
.g5 { left: -3%; top: 75%; }
.g6 { right: -4%; top: 69%; }

/* ---------- Seções ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; }
.section-head-center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-lime { color: var(--lime); }
.section h2, .spotlight h2, .cta h2, .eco-copy h2 { margin-top: 18px; font-size: clamp(32px, 3.9vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.section-lead { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--muted); }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 32px; }
.filter { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: var(--text); transition: all .2s; }
.filter:hover { border-color: #b9c7be; color: var(--ink); }
.filter.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Cartões */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.card > :not(canvas) { position: relative; z-index: 1; }
.card .pixels { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.card::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto 0; height: 4px; background: var(--a); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--a) 40%, var(--line)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--a) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card[hidden] { display: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--a) 12%, #fff); color: var(--a); transition: transform .4s var(--spring); }
.card:hover .card-ico { transform: rotate(-6deg) scale(1.08); }
.card-ico .ico { width: 26px; height: 26px; }
.tag { padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; font-weight: 600; color: var(--muted); }
.card h3 { margin-top: 28px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.card p { margin-top: 12px; flex: 1; font-size: 16px; line-height: 1.65; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 15px; font-weight: 600; color: var(--green-d); }
.card-link .ico { width: 18px; height: 18px; transition: transform .25s; }
.card:hover .card-link .ico { transform: translate(3px, -3px); }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; padding: 28px 32px; }
.card-wide .card-ico { flex: none; }
.card-wide-body { flex: 1; min-width: 0; }
.card-wide .card-top { justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
.card-wide h3 { margin-top: 0; }
.card-wide p { flex: none; max-width: 640px; }
.card-wide .card-link { margin-top: 0; white-space: nowrap; }
.card-soon { border-style: dashed; border-color: #c4d2c8; background: linear-gradient(135deg, #fbfdf9, #f1f7ee); }
.card-soon:hover { transform: none; box-shadow: none; }
.card-soon:hover::before { opacity: 0; }
.card-soon:hover .card-ico { transform: none; }
.card-link-muted { color: var(--muted); }
.card-link-muted:hover { text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid #b8d9c1; border-radius: 999px; background: #eaf7ee; font-size: 13px; font-weight: 600; color: #1a6b3a; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #22a652; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 166, 82, .5); } 50% { box-shadow: 0 0 0 6px rgba(34, 166, 82, 0); } }

/* ---------- Portal (símbolo Hubly em traço) + ecossistema orbital ---------- */
.portal { position: relative; background: #fff; }
.portal-stage { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; }
.portal-content {
  position: relative; display: flex; align-items: center; min-height: 100svh; padding: calc(var(--header-h) + 8px) 0 56px;
  background: radial-gradient(900px 600px at 78% 40%, rgba(29, 106, 67, .55), transparent 65%), radial-gradient(700px 500px at 0% 100%, rgba(200, 243, 106, .12), transparent 60%), linear-gradient(160deg, #0a2219 0%, #06130d 100%);
  color: #b7c4bd;
}
.portal-mask { display: none; }

/* Modo portal (ativado pelo JS quando há espaço e movimento permitido) */
.portal-on .portal { height: 420svh; }
.portal-on .portal-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.portal-on .portal-content { height: 100%; min-height: 0; padding-bottom: 40px; }
.portal-on .portal-mask { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #fff; mix-blend-mode: screen; pointer-events: none; }
.portal-letter { width: min(78vmin, 760px); height: auto; aspect-ratio: 370 / 360; overflow: visible; transform: scale(var(--ps, 1)); transform-origin: 50% 50%; }
.portal-hint { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; color: #000; font: 600 15px/1 var(--font-body); white-space: nowrap; opacity: var(--hint, 1); }
.portal-hint .ico { transform: rotate(90deg); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(5px); } }

.eco-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
.eco-copy h2 { color: #fff; }
.eco-copy .section-lead { color: #a9b8b0; }
.eco-legend { display: grid; gap: 14px; margin-top: 32px; }
.eco-legend li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 15px; line-height: 1.4; color: #a9b8b0; }
.eco-legend strong { display: block; color: #fff; font-weight: 600; font-size: 16px; }
.eco-count { flex: none; min-width: 44px; font: 800 24px/1 var(--font-display); letter-spacing: -.02em; color: var(--lime); }

.orbit { --s: min(560px, 44vw, 62svh); position: relative; width: var(--s); height: var(--s); margin-inline: auto; }
.orbit-hub { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; display: grid; place-items: center; z-index: 2; }
.orbit-hub img { width: 96px; height: 96px; padding: 17px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 20px 60px -10px rgba(200, 243, 106, .45); }
.hub-pulse { position: absolute; inset: -10px; border-radius: 36px; border: 1px solid rgba(200, 243, 106, .4); animation: hub 3.2s ease-out infinite; }
@keyframes hub { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.ring {
  position: absolute; inset: 0; margin: auto; width: calc(var(--s) * var(--d)); height: calc(var(--s) * var(--d)); border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .16);
  animation: spin var(--t, 60s) linear infinite;
}
.ring:nth-of-type(odd) { animation-direction: reverse; }
.slot { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform: rotate(var(--ang)) translateX(calc(var(--s) * var(--d) / 2)) rotate(calc(var(--ang) * -1)); }
.orbit-item {
  position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px;
  background: color-mix(in srgb, var(--a) 22%, #0d1a14); color: color-mix(in srgb, var(--a) 70%, #fff);
  border: 1px solid color-mix(in srgb, var(--a) 55%, transparent);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--a) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .15);
  animation: spin var(--t, 60s) linear infinite reverse;
  transition: transform .3s var(--spring), background .3s;
}
.ring:nth-of-type(odd) .orbit-item { animation-direction: normal; }
.orbit-item .ico { width: 26px; height: 26px; }
.orbit-item:hover, .orbit-item:focus-visible { background: color-mix(in srgb, var(--a) 45%, #0d1a14); color: #fff; z-index: 5; }
.orbit-item.is-soon { border-style: dashed; }
.orbit-label { position: absolute; top: calc(100% + 10px); left: 50%; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink); font: 600 13px/1.2 var(--font-body); white-space: nowrap; transform: translate(-50%, -4px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.orbit-item:hover .orbit-label, .orbit-item:focus-visible .orbit-label { opacity: 1; transform: translate(-50%, 0); }
.orbit:hover .ring, .orbit:hover .orbit-item, .orbit:focus-within .ring, .orbit:focus-within .orbit-item { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Destaque Nexora ---------- */
.spotlight { position: relative; overflow: hidden; padding: 112px 0; background: var(--ink); color: #b7c4bd; }
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(700px 420px at 90% 10%, rgba(109, 91, 240, .28), transparent 60%), radial-gradient(600px 380px at 0% 100%, rgba(200, 243, 106, .12), transparent 60%); }
.spotlight-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 72px; }
.spotlight h2 { color: #fff; }
.spotlight .section-lead { color: #a9b8b0; }
.checks { display: grid; gap: 18px; margin: 36px 0 40px; }
.checks li { display: flex; gap: 14px; font-size: 16px; line-height: 1.6; color: #b7c4bd; }
.checks strong { color: #fff; font-weight: 600; }
.checks .ico { width: 24px; height: 24px; margin-top: 1px; padding: 4px; border-radius: 50%; background: rgba(200, 243, 106, .16); color: var(--lime); stroke-width: 2.4; }

.window { position: relative; overflow: hidden; border: 1px solid #1c2a24; border-radius: 14px; background: #0d1512; box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #111b16; border-bottom: 1px solid #1c2a24; }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3a32; }
.window-bar span:nth-child(1) { background: #ff6b5e; }
.window-bar span:nth-child(2) { background: #f5c04a; }
.window-bar span:nth-child(3) { background: #4cc660; }
.window-bar em { margin-left: 10px; font: 500 13px/1 var(--font-body); font-style: normal; color: #8fa198; }
.window img { width: 100%; }
.window-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 20%), rgba(200, 243, 106, .16), transparent 60%); opacity: var(--sheen, 0); transition: opacity .3s; }
.window-dark { border-color: #2a3a32; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04); }
.spotlight-visual { perspective: 1600px; }
.spotlight-visual .window { --rx: 0deg; --ry: 0deg; --p: 0; transform: rotateX(calc((1 - var(--p)) * 14deg + var(--ry))) rotateY(calc((1 - var(--p)) * -8deg + var(--rx))) translateY(calc((1 - var(--p)) * 30px)); transition: transform .25s var(--ease-out); will-change: transform; }

/* ---------- Diferenciais ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.pillar { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: transform .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--lime); }
.pillar-ico .ico { width: 26px; height: 26px; }
.pillar h3 { margin-top: 26px; font-size: 20px; font-weight: 700; }
.pillar p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- Como começar ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.steps::before { content: ""; position: absolute; top: 28px; left: 16.6%; right: 16.6%; height: 2px; background: repeating-linear-gradient(90deg, #bcd0c2 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 18px; background: var(--ink); color: var(--lime); font: 800 22px/1 var(--font-display); box-shadow: 0 0 0 8px #fff, var(--shadow-md); transition: transform .4s var(--spring); }
.step:hover .step-num { transform: translateY(-4px) rotate(-6deg); }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { max-width: 320px; margin: 12px auto 0; font-size: 16px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: #bcd0c2; box-shadow: var(--shadow-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font: 700 17px/1.4 var(--font-display); color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: var(--bg-soft); transition: transform .3s var(--spring), background .2s; }
.faq[open] summary .ico { transform: rotate(180deg); background: var(--lime); }
.faq p { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; color: var(--muted); animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta { padding: 112px 0; background: #fff; }
.cta-box { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; align-items: center; gap: 48px; padding: 64px; border-radius: 32px; background: var(--ink); color: #b7c4bd; }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px 300px at 100% 0%, rgba(200, 243, 106, .22), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(29, 106, 67, .45), transparent 60%); }
.cta-copy, .cta-actions { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 620px; }
.cta-copy > p:last-child { max-width: 560px; margin-top: 20px; font-size: 18px; line-height: 1.7; color: #a9b8b0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Rodapé ---------- */
.footer { position: relative; overflow: hidden; padding: 80px 0 0; background: #060d0a; color: #94a59c; }
.footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); gap: 64px; padding-bottom: 56px; }
.footer-brand p { max-width: 340px; margin-top: 20px; font-size: 16px; line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { margin-bottom: 8px; font: 700 14px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-col a { width: fit-content; font-size: 15px; color: #94a59c; transition: color .2s, transform .25s var(--spring); }
.footer-col a:hover { color: var(--lime); transform: translateX(4px); }
.mini-badge { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(200, 243, 106, .14); font-size: 12px; font-weight: 600; color: var(--lime); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 8px; color: #c4d1ca; transition: color .2s; }
.footer-bottom a:hover { color: var(--lime); }
.footer-ghost {
  position: relative; z-index: 0; margin-top: 24px; padding-bottom: .02em; text-align: center; user-select: none; pointer-events: none;
  font: 800 clamp(120px, 27vw, 400px)/.78 var(--font-display); letter-spacing: -.06em;
  background: linear-gradient(180deg, rgba(200, 243, 106, .26), rgba(200, 243, 106, 0) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  height: .62em; overflow: hidden;
}

/* ---------- Dock de acesso rápido ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 90; display: none; align-items: flex-end; gap: 8px; padding: 8px 10px;
  border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62));
  backdrop-filter: blur(20px) saturate(1.9); -webkit-backdrop-filter: blur(20px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 1px rgba(8, 17, 14, .08), 0 24px 60px -16px rgba(8, 17, 14, .45), inset 0 1px 0 rgba(255, 255, 255, .95);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .6s var(--spring), opacity .3s;
}
.dock.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock-sep { align-self: center; width: 1px; height: 30px; background: rgba(8, 17, 14, .14); }
.dock-item {
  --sc: 1; position: relative; display: grid; place-items: center; flex: none;
  width: calc(46px * var(--sc)); height: calc(46px * var(--sc)); border-radius: calc(14px * var(--sc));
  background: color-mix(in srgb, var(--a) 14%, #fff); color: var(--a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px color-mix(in srgb, var(--a) 18%, transparent);
  transition: width .14s ease-out, height .14s ease-out, border-radius .14s ease-out;
}
.dock-item .ico { width: calc(22px * var(--sc)); height: calc(22px * var(--sc)); transition: width .14s ease-out, height .14s ease-out; }
.dock-home { background: #fff; box-shadow: inset 0 0 0 1px rgba(8, 17, 14, .1); }
.dock-home img { width: 62%; height: 62%; object-fit: contain; }
.dock-item span { position: absolute; bottom: calc(100% + 12px); left: 50%; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 13px/1.2 var(--font-body); white-space: nowrap; transform: translate(-50%, 4px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.dock-item:hover span, .dock-item:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) and (hover: hover) { .dock { display: flex; } }

/* ---------- Animação de entrada por rolagem ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .g1 { left: -3%; } .g3 { left: -5%; } .g5 { left: 0; }
  .g2 { right: -2%; } .g4 { right: -4%; } .g6 { right: -1%; }
  .gchip { width: 188px; }
}

@media (max-width: 1080px) {
  .hero { min-height: 0; padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .globe-wrap { width: min(100%, 520px); margin-inline: auto; }
  .gchip { display: none; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 56px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-box { grid-template-columns: 1fr; padding: 48px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .eco-grid { gap: 32px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .nav-glider { display: none; }
  .main-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 16px 20px 20px;
    border-radius: 20px; background: rgba(8, 17, 14, .96); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 17px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .eco-grid { grid-template-columns: 1fr; }
  .orbit { --s: min(440px, 88vw); }
  .portal-content { padding-block: calc(var(--header-h) + 24px) 72px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  :root { --header-h: 84px; }
  .header-inner { width: calc(100% - 24px); padding-left: 16px; }
  .brand-logo { height: 26px; }
  .hero { padding: 118px 0 56px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .metrics { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .metrics > div { padding: 14px 18px; }
  .metrics > div:nth-child(3) { border-left: 0; }
  .metrics > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .metrics span { max-width: none; }
  .globe-wrap { width: 100%; }
  .section, .spotlight, .cta { padding: 72px 0; }
  .cards, .pillars { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 26px; }
  .card-wide { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px; }
  .card-wide .card-link { margin-top: 4px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 4px 20px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .pillars { margin-top: 40px; }
  .steps { margin-top: 40px; }
  .faq summary { padding: 18px 18px; font-size: 16px; }
  .faq p { padding: 0 18px 20px; }
  .cta-box { padding: 36px 24px; border-radius: 24px; gap: 32px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; white-space: normal; }
  .footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .orbit-item { width: 48px; height: 48px; left: -24px; top: -24px; border-radius: 15px; }
  .orbit-item .ico { width: 22px; height: 22px; }
  .orbit-hub, .orbit-hub img { width: 80px; height: 80px; }
  .orbit-hub img { padding: 14px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .spotlight-visual .window { --p: 1; }
}
