*, *::before, *::after {
  box-sizing: border-box;
}
body {
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  background: var(--b);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--t);
  font-size: calc(16px + 16*var(--w));
  line-height: calc(32px + 16*var(--w));
  font-weight: 400;
  font-style: normal;
}
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); }
}
section {
  position: relative;
  height: 100dvh; 
  width: 100dvw; 
  background: var(--b); 
  overflow: hidden;
}
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-clip-margin: content-box;
  overflow: clip;
}
.cta {
  position: absolute;
  z-index: 2; 
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  gap: calc(2*var(--p));
}
.title {
  font-size: 3rem;
  line-height: 4rem;
  letter-spacing: 0.05em;
  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 {
  position: relative;
  display: block;
  width: 15rem;
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #60C7FF 0%, #8B5CF6 100%);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-image: linear-gradient(90deg, #B561FF, #8C94FF, #60C7FF, #00FF99);
  background-size: 300% 100%;
  background-position: var(--gx, 0%) var(--gy, 50%);
  animation: btnGradientPan 6s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease, background-position .08s ease;
}
.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: 'new tab';
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: var(--t);
  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 {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1rem;
  transform: scaleX(-1);
}
/* Media Queries */
@media (orientation: landscape) {
  video {
    width: auto;
    height: 100dvh;
  }
  .cta { 
    width: 50dvw; height: 100dvh;
    padding-left: 5dvw;
  }
}
@media (orientation: portrait) {
  video {
    width: 100dvw;
    height: auto;
  }
  .cta { 
    width: 100dvw; height: 50dvh;
    bottom: 5dvh;
    align-items: center;
    text-align: left;
    padding: calc(2*var(--p));
    justify-content: flex-end;
  } 
}