/* Mais Ultra — base compartilhada por todas as páginas.
   Cores e material glass herdados do site 3.1 (styles.css + refinements.css). */
:root {
  color-scheme: dark;
  --bg: #02030a;
  --bg-2: #06051a;
  --blue: #008cff;
  --cyan: #00c8ff;
  --violet: #7a3cff;
  --purple: #b020ff;
  --magenta: #ff20d0;
  --text: #f5f5ff;
  --muted: #c3c3da;
  --subtle: #9b9cb9;
  --line: rgba(182, 176, 249, .16);
  --glass-fill: rgba(8, 10, 28, .36);
  --glass-blur: 22px;
  --glass-saturation: 140%;
  --glass-border: rgba(255, 255, 255, .12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .13);
  --glass-shadow: 0 12px 36px rgba(0, 0, 12, .18);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1220px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t-glass: 380ms cubic-bezier(.2, .7, .3, 1);
  --accent: 0, 200, 255;
}
.accent-cyan { --accent: 0, 200, 255; }
.accent-blue { --accent: 74, 146, 255; }
.accent-violet { --accent: 150, 108, 255; }
.accent-magenta { --accent: 236, 82, 220; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
p, h1, h2, h3, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
::selection { background: #7c3aff9e; color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip-link { position: fixed; top: .6rem; left: 1rem; z-index: 100; padding: .6rem 1rem; border-radius: .5rem; background: var(--cyan); color: var(--bg); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Atmosfera fixa: brilhos suaves e poeira estelar estática, atrás de tudo. */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(ellipse 60% 45% at 12% 8%, rgba(0, 140, 255, .1), transparent 70%),
  radial-gradient(ellipse 55% 40% at 92% 30%, rgba(176, 32, 255, .09), transparent 70%),
  radial-gradient(ellipse 70% 40% at 50% 105%, rgba(122, 60, 255, .1), transparent 70%),
  var(--bg); }
.ambient::after { content: ""; position: absolute; inset: 0; opacity: .55; background-image:
  radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .55) 0 .7px, transparent 1.3px),
  radial-gradient(circle at 68% 74%, rgba(190, 205, 255, .45) 0 .8px, transparent 1.4px),
  radial-gradient(circle at 41% 58%, rgba(255, 255, 255, .35) 0 .6px, transparent 1.2px),
  radial-gradient(circle at 87% 13%, rgba(210, 190, 255, .45) 0 .7px, transparent 1.3px);
  background-size: 290px 290px, 370px 370px, 210px 210px, 430px 430px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35)); -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35)); }

/* Material glass do site atual. */
.glass { position: relative; border: 1px solid var(--glass-border);
  background: linear-gradient(125deg, rgba(110, 197, 255, .055), transparent 44%, rgba(183, 104, 255, .045)), var(--glass-fill);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.glass::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: .5;
  background: linear-gradient(135deg, #d3d7ff99, #45d5ff55 15%, #a796ff10 42%, #a674f377 87%, #d6b4ff70);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; }

.gradient-text { color: #c5a8ff; background: linear-gradient(105deg, #60e9f6 4%, #8e87ff 42%, #c36df7 72%, #ed8ae8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .42rem .95rem; border-radius: 999px; border: 1px solid #b298f43d; background: linear-gradient(115deg, #246eaf0d, #8627b618); box-shadow: inset 0 1px 0 #ffffff0d; color: #cdbdf7; font-size: .8125rem; font-weight: 600; letter-spacing: .05em; }
.eyebrow .icon { width: 1rem; height: 1rem; color: #ba96ff; }
.eyebrow-index { font-family: var(--display); color: #7fe3ff; letter-spacing: .08em; }

/* Botões */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.25rem; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 700; line-height: 1.3; color: #fff; text-align: center; transition: transform var(--t-glass), box-shadow var(--t-glass), border-color var(--t-glass), background-color var(--t-glass); }
.button .icon { width: 1.1rem; height: 1.1rem; transition: transform var(--t-glass); }
.button-primary { background: linear-gradient(108deg, #126acb, var(--violet) 52%, #b723b7); border-color: rgba(202, 195, 255, .28); box-shadow: inset 0 1px 0 #ffffff45, 0 6px 24px #7a3cff30; }
.button-secondary { background: rgba(8, 10, 28, .35); border-color: var(--glass-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.button-small { min-height: 2.65rem; padding: .55rem 1.05rem; font-size: .85rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 700; color: rgb(var(--accent)); }
.text-link .icon { width: 1rem; height: 1rem; transition: transform var(--t-glass); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .button:hover .icon, .text-link:hover .icon { transform: translateX(3px); }
  .button-primary:hover { box-shadow: inset 0 1px 0 #ffffff60, 0 8px 30px #7a3cff4a; }
  .button-secondary:hover { border-color: #beb5f999; background-color: #8a7aff17; }
}

/* Cabeçalho flutuante */
.site-header { position: sticky; top: 1rem; z-index: 40; margin-top: 1rem; }
.header-shell { max-width: 1280px; border-radius: 999px; --glass-fill: rgba(8, 10, 28, .6); --glass-blur: 18px; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* O desfoque do cabeçalho fica numa camada própria: assim o menu de soluções (filho do cabeçalho) também desfoca a página. */
.header-shell::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; padding: .5rem .6rem .5rem 1.5rem; }
.brand { display: block; flex: 0 0 auto; width: 6.4rem; }
.brand img { width: 100%; }
.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-list > li > a, .nav-trigger { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border: 0; border-radius: 999px; background: none; color: #c9c8de; font-size: .9rem; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-list > li > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: #fff; background: #a396ff14; }
.nav-list > li > a[aria-current="page"] { color: #fff; }
.nav-list > li > a[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); margin-left: .25rem; }
.nav-trigger .icon { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.has-mega { position: static; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid #b8b1f433; border-radius: 50%; background: #b3abff0d; place-items: center; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu de soluções (mega menu) */
.mega { position: absolute; left: 50%; top: calc(100% + .75rem); width: min(1000px, calc(100vw - 2 * var(--gutter))); transform: translateX(-50%); padding: 1.5rem; border-radius: 1.75rem; --glass-fill: rgba(7, 8, 24, .82); --glass-blur: 28px; box-shadow: var(--glass-highlight), 0 24px 60px rgba(0, 0, 10, .55); }
.mega:not([hidden]) { animation: mega-in .28s var(--ease); }
.mega::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .9rem; } /* ponte invisível entre o botão e o painel */
@keyframes mega-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mega-col { display: flex; flex-direction: column; gap: .35rem; padding: .25rem; }
.mega-title { display: flex; align-items: center; gap: .5rem; margin: 0 .6rem .4rem; color: rgb(var(--accent)); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mega-title .icon { width: 1rem; height: 1rem; }
.mega-col a { display: grid; gap: .1rem; padding: .7rem .75rem; border-radius: 1rem; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.mega-col a strong { font-size: .95rem; font-weight: 700; color: #f2f1ff; }
.mega-col a span { font-size: .8rem; line-height: 1.45; color: var(--subtle); }
.mega-col a:hover { background: rgba(var(--accent), .08); border-color: rgba(var(--accent), .22); }
.mega-all { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #9fe7ff; font-size: .875rem; font-weight: 700; }
.mega-all .icon { width: 1rem; height: 1rem; }

/* Botão de pausa das animações */
.effects-toggle { position: fixed; right: 1rem; bottom: 1rem; z-index: 35; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: #cfcfe6; --glass-fill: rgba(8, 10, 28, .72); }
.effects-toggle .icon { width: 1.05rem; height: 1.05rem; }
.effects-toggle .icon-play, .effects-toggle[aria-pressed="true"] .icon-pause { display: none; }
.effects-toggle[aria-pressed="true"] .icon-play { display: block; }
.effects-toggle:hover { color: #fff; border-color: #66bff582; }
.effects-label { display: none; }
/* No celular o botão fica dentro do menu, sem cobrir botões de largura total. */
.effects-toggle.in-nav { position: static; display: inline-flex; gap: .55rem; width: auto; height: auto; margin: .9rem .5rem .1rem; padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; box-shadow: none; }
.effects-toggle.in-nav .effects-label { display: inline; }

/* Rodapé */
.site-footer { position: relative; padding: 4rem 0 2rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 5, 26, .4), var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.5fr 1fr; gap: 2.5rem; }
.footer-brand .brand { width: 8.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 18rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.footer-title { margin-bottom: 1rem; color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { display: inline-flex; align-items: center; gap: .55rem; color: var(--subtle); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact .icon { width: 1.05rem; height: 1.05rem; color: #b8a6ff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--subtle); font-size: .8125rem; }
.footer-sign { color: #d6d3ef; font-weight: 600; }

/* Revelação ao rolar (uma vez) */
.reveal-ready [data-reveal], .reveal-ready [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s var(--ease); }
.reveal-ready [data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-ready [data-reveal].is-visible, .reveal-ready [data-stagger].is-visible > * { opacity: 1; transform: none; }
/* Depois da entrada, hover e foco respondem sem o atraso da sequência. */
.reveal-ready [data-stagger].reveal-done > * { transition: opacity .7s ease, transform var(--t-glass), border-color var(--t-glass), box-shadow var(--t-glass), background-color var(--t-glass); transition-delay: 0s; }

@media (max-width: 1080px) {
  .header-row { padding-left: 1.1rem; }
  .menu-toggle { display: grid; }
  .main-nav { display: none; order: 3; flex: 1 0 100%; padding: .25rem .4rem .9rem; }
  .header-row { flex-wrap: wrap; row-gap: 0; }
  .header-shell.is-open { border-radius: 1.75rem; --glass-fill: rgba(8, 9, 26, .9); }
  .header-shell.is-open .main-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-top: 1px solid var(--line); }
  .nav-list > li > a, .nav-trigger { width: 100%; justify-content: space-between; padding: .85rem .5rem; border-radius: .5rem; font-size: 1rem; }
  .nav-list > li > a[aria-current="page"] { justify-content: flex-start; }
  .mega, .mega:not([hidden]) { position: static; width: auto; transform: none; padding: .25rem 0 .75rem; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
  .mega::before { display: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .mega-all { justify-content: flex-start; margin-top: .5rem; padding: .85rem .5rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 1.1rem; }
  html { scroll-padding-top: 5.5rem; }
  .site-header { top: .6rem; margin-top: .6rem; }
  .header-row { min-height: 3.8rem; padding: .4rem .45rem .4rem .95rem; gap: .5rem; }
  .brand { width: 5.4rem; }
  .header-cta { padding-inline: .85rem; font-size: .8rem; }
  .header-cta .icon { display: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .effects-toggle { right: .75rem; bottom: .75rem; width: 2.5rem; height: 2.5rem; }
}
@media (max-width: 360px) { .header-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal], .reveal-ready [data-stagger] > * { opacity: 1; transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background-color: rgba(8, 10, 28, .9); }
}
