/* Base, tipografia, componentes compartilhados e movimento */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* luz ambiente fixa */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 0%, rgba(1, 72, 152, 0.28), transparent 70%),
    radial-gradient(50vw 60vh at 0% 100%, rgba(7, 163, 216, 0.10), transparent 70%),
    var(--navy-950);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
::selection { background: var(--cyan-400); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--cyan-300); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--cyan-300);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--grad); }

.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head--row .section__intro { max-width: 380px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; align-items: center; }
.section__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.03em;
}
.section__title--md { font-size: clamp(28px, 3.4vw, 44px); }
.section__intro { color: var(--text-2); font-size: clamp(16px, 1.4vw, 18px); margin-top: 20px; max-width: 560px; }
.section__head--row .section__intro { margin-top: 0; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.4s var(--ease), background-position 0.6s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, background-color 0.3s;
}
.btn .icon { transition: transform 0.4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(100deg, var(--blue-700), var(--cyan-400), var(--blue-600));
  background-size: 220% 100%; background-position: 0% 0;
  color: var(--white);
  box-shadow: 0 10px 40px -12px rgba(7, 163, 216, 0.6);
}
.btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 50px -14px rgba(7, 163, 216, 0.75); }
.btn--glass { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { border-color: var(--cyan-300); background: rgba(86, 200, 239, 0.1); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }


/* Símbolo em traço (grafismo de fundo) */
.mark-svg { width: 100%; height: 100%; overflow: visible; }

/* Glows */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }

/* ---------- Topbar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.topbar.is-scrolled { background: rgba(0, 3, 20, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.topbar__inner { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 32px; }
.topbar__logo { display: block; width: 168px; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.topbar__logo .logo-svg { width: 100%; height: auto; display: block; }
.topbar__nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.topbar__nav a { position: relative; padding: 6px 0; transition: color 0.3s; }
.topbar__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.topbar__nav a:hover { color: var(--white); }
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
@media (min-width: 901px) {
  .topbar:not(.is-scrolled) .topbar__logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
}
@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .topbar__inner { height: 64px; justify-content: space-between; }
  .topbar__logo { width: 140px; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 13px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__logo { width: 150px; height: auto; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.footer__top:hover { color: var(--white); }
.icon--up { transform: rotate(-90deg); }

/* ---------- Movimento ---------- */
/* Parallax usa a propriedade `translate` para não conflitar com `transform` das animações */
[data-parallax] { translate: 0 var(--py, 0px); }

.js-motion [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

.js-motion .intro { opacity: 0; transform: translate3d(0, 24px, 0); }
.js-motion.is-loaded .intro {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(120ms + var(--d, 0) * 110ms);
}
.js-motion .intro--photo { clip-path: inset(12% 8% 12% 8% round var(--radius-lg)); transform: scale(1.04); }
.js-motion.is-loaded .intro--photo {
  clip-path: inset(0 0 0 0 round var(--radius-lg)); transform: none;
  transition: clip-path 1.4s var(--ease), opacity 1s var(--ease), transform 1.6s var(--ease);
  transition-delay: calc(100ms + var(--d, 0) * 110ms);
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-14px, 18px, 0) rotate(-1.5deg); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-parallax] { translate: none; }
  .js-motion [data-reveal], .js-motion .intro { opacity: 1; transform: none; clip-path: none; }
}
