:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(124, 214, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #091625 42%, #07101c 100%);
}

body.site-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.75), transparent 80%);
  -webkit-mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.75), transparent 80%);
}

#menu-toggle:checked ~ #mobile-menu {
  display: flex;
}

#menu-toggle:checked ~ nav label .burger-icon {
  display: none;
}

#menu-toggle:checked ~ nav label .close-icon {
  display: block;
}

.page-video {
  position: fixed;
  inset: 0;
  z-index: -30;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(124, 214, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(4, 11, 23, 0.62), rgba(4, 11, 23, 0.82));
}

.page-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.62);
  transform: scale(1.04);
}

.page-video-overlay {
  position: fixed;
  inset: 0;
  z-index: -20;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(120, 190, 255, 0.22), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(150, 224, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(5, 14, 29, 0.36) 0%, rgba(5, 14, 29, 0.7) 45%, rgba(5, 14, 29, 0.92) 100%);
}

.liquid-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(218, 238, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(8, 21, 40, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 80px -36px rgba(4, 15, 31, 0.9);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.liquid-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(130, 216, 255, 0.14), transparent 28%);
  pointer-events: none;
}

#mobile-menu {
  z-index: 60;
}

.liquid-soft {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 238, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(9, 20, 36, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 72px -44px rgba(4, 15, 31, 0.86);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.liquid-soft::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.liquid-button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 240, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(123, 214, 255, 0.32), rgba(86, 178, 255, 0.18)),
    rgba(12, 34, 60, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 45px -26px rgba(93, 185, 255, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.liquid-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.22), transparent 46%);
  pointer-events: none;
}

.sheen {
  position: relative;
  overflow: hidden;
}

.sheen::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 32%);
  pointer-events: none;
}

.form-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(219, 238, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(9, 20, 36, 0.32);
  padding: 0.85rem 1rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: rgba(219, 238, 255, 0.45);
}

.form-input:focus {
  border-color: rgba(130, 216, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(9, 20, 36, 0.42);
  box-shadow: 0 0 0 3px rgba(130, 216, 255, 0.14);
}

.float-slow {
  animation: drift 14s ease-in-out infinite;
}

.rise {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

.delay-4 {
  animation-delay: 0.32s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-slow,
  .rise {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-video video {
    transform: none;
  }
}
