body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--b);
  font-size: calc(16px + 16 * var(--w));
  line-height: calc(32px + 16 * var(--w));
}
nav {
  animation: revealNav 0.5s ease-in-out;
  animation-delay: 15s;
  animation-fill-mode: forwards;
  transform: translateY(-100%);
}
@keyframes revealNav {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.path {
  stroke-dasharray: 1.1;
  stroke-dashoffset: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 10;
  stroke: url(#g);
  fill: none;
  animation: draw linear forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
#segN    { animation-duration: 0.4s; animation-delay: 15.5s; }
#segE    { animation-duration: 0.3s; animation-delay: 15.9s; }
#segU    { animation-duration: 0.2s; animation-delay: 16.3s; }
#segU2   { animation-duration: 0.2s; animation-delay: 16.5s; }
#segR    { animation-duration: 0.2s; animation-delay: 16.7s; }
#segR2   { animation-duration: 0.2s; animation-delay: 16.9s; }
#segO    { animation-duration: 0.2s; animation-delay: 17.2s; }
#segC    { animation-duration: 0.3s; animation-delay: 17.6s; }
#segO2   { animation-duration: 0.2s; animation-delay: 18.0s; }
#segG    { animation-duration: 0.3s; animation-delay: 18.2s; }
#segG2   { animation-duration: 0.2s; animation-delay: 18.5s; }
#dot1    { animation-duration: 0.2s; animation-delay: 18.8s; }
#segA    { animation-duration: 0.3s; animation-delay: 19.1s; }
#segA2   { animation-duration: 0.2s; animation-delay: 19.4s; }
#segI    { animation-duration: 0.2s; animation-delay: 19.7s; }
#dot2    { animation-duration: 0.2s; animation-delay: 20.0s; }
section {
  position: relative;
  height: 100vh; 
  width: 100vw; 
  background: var(--b); 
  overflow: hidden;
}
@supports (height: 1dvh) {
  section {
    height: 100dvh;
    width: 100dvw;
  }
}
video {
  z-index: 1;
  position: absolute;
  top: 0; right: 0;
  min-width: 0; min-height: 0;
  max-width: none !important; max-height: none !important;
  display: block;
  object-position: top right;
  object-fit: contain;
  overflow: hidden;
}
/* Use overflow: clip for modern browsers */
@supports (overflow: clip) {
  video {
    overflow-clip-margin: content-box;
    overflow: clip;
  }
}
.cta {
  width: 100%; height: 100%;
  position: absolute;
  z-index: 2; 
  display: flex; 
  flex-direction: column;
}
.cta > * {
  margin-bottom: calc(2 * var(--p));
}
.cta > *:last-child {
  margin-bottom: 0;
}
.title {
  font-size: calc(2 * var(--p));
  line-height: 4rem;
  letter-spacing: 0.05rem;
  color: transparent;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffffff 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-button {
  display: block;
  width: fit-content;
  border-radius: 1rem;
  padding: 1vh 3vw;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  background-image: linear-gradient(90deg, #B561FF, #8C94FF, #60C7FF, #00FF99);
  background-size: 300% 100%;
  background-position: 0% 50%;
  animation: btnGradientPan 5s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@keyframes btnGradientPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-button:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5625rem rgba(96, 199, 255, 0.3);
  color: #ffffff;
}
.cta-button::after {
  content: 'nova guia';
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: var(--t1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.cta-button:hover::after {
  opacity: 1;
}
.icon-tab {
  display: inline-block;
  font-size: 1em;
  transform: scaleX(-1);
  vertical-align: middle;
  margin-bottom: 0.3rem;
}
@media (orientation: landscape) {
  video {
    width: auto;
    height: 100vh;
  }
  .cta { 
    padding-left: 5vw;
    justify-content: center;
    font-size: var(--p);
  }
}
@supports (height: 1dvh) {
  @media (orientation: landscape) {
    video {
      height: 100dvh;
    }
  }
}
@media (orientation: portrait) {
  video {
    width: 100vw;
    height: auto;
  }
  .cta { 
    padding-bottom: 5vh;
    align-items: center;
    text-align: center;
    justify-content: flex-end;
  }
  .cta > * {
    margin-bottom: 0.5vh;
  }
  .cta > *:last-child {
    margin-bottom: 0;
  }
  .title {
    line-height: 2rem;
  }
}
@supports (width: 1dvw) {
  @media (orientation: portrait) {
    video {
      width: 100dvw;
    }
  }
}

