.preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.js-anim .preloader {
  display: flex;
}
.pre-logo {
  height: 104px;
  width: auto;
  opacity: 0.95;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink-3);
  border: 1px solid var(--action);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.22s var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
}
.pre-line {
  width: min(320px, 60vw);
  height: 1px;
  background: rgba(241, 245, 251, 0.12);
  overflow: hidden;
}
.pre-line span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.pre-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #64748e;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.pre-count strong {
  color: #2be38b;
  font-weight: 500;
  font-size: 14px;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 301;
  background: var(--brand-grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.menu-open .scroll-progress {
  opacity: 0;
}
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 4%;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.35s var(--ease-out);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#nav.nav-hidden {
  transform: translateY(-100%);
}
#nav:has(:focus-visible),
.menu-open #nav {
  transform: none;
}
#nav.scrolled {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
#nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand-grad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0.12s;
}
.menu-open #nav::after {
  opacity: 0.7;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}
nav.scrolled .nav-logo img {
  transform: scale(0.9);
}
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--action);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-flip);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  margin: 0 8px;
}
.nav-links a.nav-entrar {
  border: 1px solid rgba(241, 245, 251, 0.18);
  color: var(--text);
  padding: 8px 18px;
  margin-left: 12px;
}
.nav-links a.nav-entrar::after {
  display: none;
}
.nav-links a.nav-entrar:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-links a.nav-cta {
  background: var(--btn-grad);
  color: var(--btn-ink);
  transition: filter 0.25s;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 9px 20px;
  margin-left: 8px;
}
.nav-links a.nav-cta::after {
  display: none;
}
.nav-links a.nav-cta:hover {
  filter: brightness(0.92);
  color: var(--btn-ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(241, 245, 251, 0.06);
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.menu-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(8, 12, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 96px 5% calc(28px + env(safe-area-inset-bottom, 0px));
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.55s var(--ease-out),
    opacity 0.25s ease,
    visibility 0.55s;
}
.nav-mobile-menu::before {
  content: '';
  position: absolute;
  top: -14%;
  right: -20%;
  width: min(560px, 104vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(53, 96, 224, 0.22) 0%,
    rgba(43, 227, 139, 0.07) 44%,
    transparent 70%
  );
}
.nav-mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(
    ellipse 100% 40% at 50% 0%,
    black 0%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 100% 40% at 50% 0%,
    black 0%,
    transparent 72%
  );
}
.menu-open .nav-mobile-menu {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}
.mob-eyebrow,
.mob-links,
.mob-btn-row {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.mob-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out);
}
.mob-eyebrow .node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 3px var(--action-soft);
  flex-shrink: 0;
}
.menu-open .mob-eyebrow {
  opacity: 1;
  transform: translateY(0);
}
.mob-links {
  display: flex;
  flex-direction: column;
}
.mob-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out),
    color 0.2s;
}
.mob-links a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-flip);
}
.mob-links a::after {
  content: '';
  width: 15px;
  height: 15px;
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
  background: var(--action);
  opacity: 0.7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease-out);
}
.menu-open .mob-links a {
  transform: translateY(0);
  opacity: 1;
}
.mob-links a:nth-child(2) {
  transition-delay: 0.05s;
}
.mob-links a:nth-child(3) {
  transition-delay: 0.1s;
}
.mob-links a:nth-child(4) {
  transition-delay: 0.15s;
}
.mob-links a:nth-child(5) {
  transition-delay: 0.2s;
}
.mob-links a.active::before {
  transform: scaleX(1);
}
.mob-links a.active::after,
.mob-links a:hover::after,
.mob-links a:active::after {
  opacity: 1;
  transform: translateX(3px);
}
.mob-links a:hover,
.mob-links a:active {
  color: var(--action);
}
.mob-links a .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--action);
  font-weight: 400;
}
.mob-btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 36px;
}
.mob-btn-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  opacity: 0;
  transition:
    opacity 0.5s var(--ease-out) 0.28s,
    filter 0.2s;
}
.menu-open .mob-btn-row a {
  opacity: 1;
}
.mob-btn-row .mob-btn-entrar {
  border-color: var(--line-strong);
}
.mob-btn-row .mob-btn-cta {
  background: var(--btn-grad) border-box;
  color: var(--btn-ink);
  box-shadow: 0 10px 30px rgba(53, 96, 224, 0.26);
}
.mob-btn-row .mob-btn-cta:hover,
.mob-btn-row .mob-btn-cta:active {
  filter: brightness(0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    filter 0.25s,
    box-shadow 0.25s;
}
.btn-flip {
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn-flip > span {
  display: block;
  transition: transform 0.5s var(--ease-flip);
}
.btn-flip > span:last-child {
  position: absolute;
  inset: 0;
  transform: translateY(120%);
}
.btn:hover .btn-flip > span:first-child {
  transform: translateY(-120%);
}
.btn:hover .btn-flip > span:last-child {
  transform: translateY(0);
}
.btn-primary {
  background: var(--btn-grad);
  color: var(--btn-ink);
  box-shadow: 0 0 0 0 rgba(53, 96, 224, 0);
}
.btn-primary:hover {
  filter: brightness(0.92);
  box-shadow: 0 8px 32px rgba(53, 96, 224, 0.32);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn svg {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-flip);
}
.btn:hover svg {
  transform: translateX(4px);
}

section {
  padding: 110px 4%;
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
}
.section-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.sec-head {
  margin-bottom: 56px;
}
.sec-head.center {
  text-align: center;
}
.sec-head.center .sec-eyebrow {
  justify-content: center;
}
.sec-head.center .sec-desc {
  margin-inline: auto;
}
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.sec-eyebrow .idx {
  color: var(--accent);
}
.sec-eyebrow .sq {
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
.part-head {
  margin-top: 104px;
  margin-bottom: 44px;
}
.part-head .sec-title {
  font-size: clamp(24px, 2.6vw, 34px);
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.sec-title em {
  font-style: normal;
  color: var(--accent);
}
.sec-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 600px;
}
.sec-rule {
  width: 80px;
  height: 3px;
  border-radius: 3px;
  margin-top: 26px;
  background: var(--btn-grad);
}
.t-dark .sec-rule {
  background: var(--brand-grad);
}
.sec-head.center .sec-rule {
  margin-inline: auto;
}
