/* SXP Capital. Sistema: Geist apertada nos títulos e Geist Mono nos rótulos, verde floresta sobre marfim,
   brilho verde só em fundo escuro, cantos de 12 a 32px e duas curvas de movimento: entrada (rise) e interface (ui). */
:root {
  --night: #06110C;
  --graphite: #14201A;
  --forest: #004B2B;
  --forest-2: #0A5C39;
  --signal: #00A957;
  --neon: #2DF291;
  --mint: #C8FBDD;
  --ivory: #F5F3ED;
  --paper: #FCFBF8;
  --stone: #E9E5DA;
  --sand: #D9D2C0;
  --ink: #14201A;
  --muted: #5E6A62;
  --on-dark: #FFFFFF;
  --on-dark-muted: #A3B5AA;
  --danger: #FFB3A6;
  --line: rgba(20, 32, 26, .14);
  --line-dark: rgba(255, 255, 255, .14);
  --halo: 0 0 14px 4px rgba(45, 242, 145, .22), 0 16px 60px 13px rgba(45, 242, 145, .3), 0 0 32px rgba(45, 242, 145, .32);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-24: 24px;
  --r-32: 32px;
  --r-full: 999px;
  --pad: clamp(16px, 2.8vw, 40px);
  --sec: clamp(72px, 9vw, 120px);
  --content: 1360px;

  --rise: 110px;
  --rise-ease: cubic-bezier(0, 1, .4, 1);
  --ui-ease: cubic-bezier(.16, 1, .3, 1);
  --wipe-ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.js { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  letter-spacing: -.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--night); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus, var(--forest)); outline-offset: 3px; border-radius: 4px; }
[data-tone="dark"] { --focus: var(--neon); }
[tabindex="-1"]:focus { outline: none; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.selectable { user-select: all; }
.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--pad));
  margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

/* ---------- Tipografia ---------- */
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.07; letter-spacing: -.045em; color: var(--forest); }
.h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.17; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.25; letter-spacing: -.035em; color: var(--muted); max-width: 46em; }
.mono { font-family: var(--mono); font-size: 14px; line-height: 1.25; letter-spacing: -.02em; text-transform: uppercase; }
.label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.label::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
[data-tone="dark"] .label { color: var(--on-dark-muted); }
[data-tone="dark"] .label::before { background: var(--neon); }
[data-tone="dark"] .h2 { color: #fff; }
[data-tone="dark"] .lead { color: var(--on-dark-muted); }

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 18px; height: 18px; }
.arr { width: 24px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ui-ease); }

/* ---------- Seções ---------- */
.sec { position: relative; padding-block: var(--sec); }
.sec--ivory { background: var(--ivory); }
.sec--stone { background: var(--stone); }
.sec--paper {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 32, 26, .16) 1px, transparent 1.6px);
  background-size: 28px 28px;
}
.sechead { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 860px; }
.sechead--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Botões: troca de rótulo no hover (o texto sobe e o gêmeo entra por baixo) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 24px;
  border: 1px solid transparent; border-radius: var(--r-12);
  font: 600 16px/24px var(--sans); letter-spacing: -.04em; text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:active { transform: scale(.98); }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--neon); border-color: var(--neon); color: var(--graphite); }
.btn--neon { background: var(--neon); color: var(--graphite); }
.btn--neon:hover { background: #fff; border-color: #fff; }
.btn--white { background: #fff; color: var(--forest); }
.btn--white:hover { background: var(--neon); border-color: var(--neon); color: var(--graphite); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: var(--neon); border-color: var(--neon); color: var(--graphite); }
.btn--sm { min-height: 40px; padding: 7px 16px; font-size: 14px; line-height: 20px; }
.btn--halo { box-shadow: 0 0 16px 4px rgba(45, 242, 145, .3), 0 6px 40px 10px rgba(45, 242, 145, .26); }
.btn-wipe { overflow: hidden; }
.btn-wipe .btn__label { position: relative; display: inline-block; white-space: nowrap; }
.btn-wipe .btn__label::before {
  content: attr(data-label); content: attr(data-label) / ""; position: absolute; left: 0; top: 0;
  transform: translateY(100%); clip-path: inset(0 0 100%);
  transition: transform .3s var(--wipe-ease), clip-path .3s var(--wipe-ease);
}
.btn-wipe .btn__text { display: inline-block; clip-path: inset(0); transition: transform .3s var(--wipe-ease) .1s, clip-path .3s var(--wipe-ease) .1s; }
.btn-wipe:hover .btn__text, .btn-wipe:focus-visible .btn__text { transform: translateY(-100%); clip-path: inset(100% 0 0); transition-delay: 0s; }
.btn-wipe:hover .btn__label::before, .btn-wipe:focus-visible .btn__label::before { transform: none; clip-path: inset(0); transition-delay: .1s; }

/* Link em mono com seta longa: o texto embaralha no hover (js) */
.mlink { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.25 var(--mono); letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.mlink--neon { color: var(--neon); }
.mlink:hover .arr { transform: translateX(6px); }

/* ---------- Entrada ao rolar: sobe 110px com freada forte; irmãos entram a cada 90ms (js define --i) ---------- */
.js [data-rise] {
  opacity: 0; transform: translateY(var(--rise));
  transition: opacity 1s var(--rise-ease), transform 1s var(--rise-ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.js [data-rise].is-in { opacity: 1; transform: none; }
/* Títulos divididos: cada palavra sobe de trás da máscara da própria linha, 35ms de distância */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .05em .1em; margin: 0 -.05em -.1em; }
.split .w > span { display: inline-block; transform: translateY(115%); transition: transform .9s var(--rise-ease); transition-delay: calc(var(--i, 0) * 90ms + var(--wi, 0) * 35ms); }
.is-in.split .w > span, .is-in .split .w > span { transform: none; }
/* Seção fora da tela para de animar (js alterna a classe) */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Faixa de aviso ---------- */
.announce {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 52px;
  background: var(--mint); color: var(--forest);
  font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center;
}
.announce a { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-weight: 400; text-underline-offset: 3px; white-space: nowrap; }
.announce a:hover .arr { transform: translateX(5px); }
.announce__close { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-8); background: none; cursor: pointer; }
.announce__close:hover { background: rgba(0, 75, 43, .12); }

/* ---------- Cabeçalho: some ao descer, volta ao subir ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 80; height: 0; }
.bar {
  position: absolute; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  color: #fff; border-bottom: 1px solid transparent;
  transition: transform .45s var(--ui-ease), background-color .3s ease, color .3s ease, border-color .3s ease, height .3s ease;
}
.bar { animation: bar-in .8s var(--rise-ease) .25s backwards; }
.site-header.is-scrolled .bar { height: 64px; background: rgba(6, 17, 12, .74); border-color: var(--line-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header[data-surface="light"] .bar { color: var(--forest); }
.site-header[data-surface="light"].is-scrolled .bar { background: rgba(245, 243, 237, .86); border-color: var(--line); }
.site-header.is-tucked .bar { transform: translateY(-110%); }
.site-header.is-menu .bar { color: #fff; background: transparent; border-color: transparent; transform: none; }
.bar__logo { position: relative; flex: none; display: block; width: 112px; }
.bar__logo img { width: 100%; height: auto; }
.logo--for-light { display: none; }
.site-header[data-surface="light"]:not(.is-menu) .logo--for-dark { display: none; }
.site-header[data-surface="light"]:not(.is-menu) .logo--for-light { display: block; }
.bar__links { display: flex; gap: clamp(16px, 2vw, 28px); }
.bar__links a { opacity: .82; transition: opacity .25s ease; }
.bar__links a:hover { opacity: 1; }
.bar__actions { display: flex; align-items: center; gap: 10px; }
.site-header[data-surface="light"]:not(.is-menu) .bar__cta { background: var(--forest); color: #fff; }
.site-header[data-surface="light"]:not(.is-menu) .bar__cta:hover { background: var(--neon); color: var(--graphite); }
.burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: var(--r-12); background: none; cursor: pointer; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .45s var(--ui-ease), opacity .2s ease; }
.burger i:nth-child(2) { top: 16px; }
.burger i:nth-child(3) { top: 26px; }
.site-header.is-menu .burger i:nth-child(2) { transform: translateY(5px) rotate(45deg); }
.site-header.is-menu .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Menu de tela cheia: abre em cortina e as linhas entram em sequência */
.menu {
  position: fixed; inset: 0; z-index: 79;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: calc(96px + env(safe-area-inset-top, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--pad), env(safe-area-inset-left, 0px));
  background: var(--forest); color: #fff;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ui-ease), visibility 0s linear .6s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ui-ease), visibility 0s; }
.menu__links { display: grid; gap: 4px; }
.menu__link { display: block; width: fit-content; font-size: clamp(34px, 10vw, 56px); line-height: 1.12; letter-spacing: -.05em; text-decoration: none; opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .7s var(--ui-ease), color .25s ease; }
.menu__link:hover { color: var(--neon); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .10s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .16s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .22s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .28s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .34s; }
.menu__rule { height: 1px; background: var(--line-dark); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ui-ease) .42s; }
.menu.is-open .menu__rule { transform: none; }
.menu__foot { display: grid; gap: 12px; opacity: 0; transition: opacity .5s ease .5s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot .btn { width: 100%; }

/* ---------- Letreiros ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track > * { flex: none; }

@keyframes bar-in { from { transform: translateY(-110%); opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .bar__links { display: none; }
  .burger { display: block; }
}
@media (max-width: 767px) {
  :root { --rise: 60px; }
  .announce { justify-content: flex-start; padding-left: var(--pad); text-align: left; font-size: 14px; }
  .announce a { margin-left: 8px; }
  .bar__logo { width: 96px; }
}
@media (max-width: 420px) {
  .bar__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .split .w > span { transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
