@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --page-bg: #02050a;
  --text: #f7f9fc;
  --muted: rgba(230, 237, 247, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --blue: #1688ff;
  --blue-bright: #55b6ff;
  --panel: rgba(6, 11, 18, 0.64);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 120px 24px 72px;
  background:
    radial-gradient(
      circle at 50% 75%,
      rgba(0, 113, 255, 0.12),
      transparent 38%
    ),
    #02050a;
}

.video-stage,
.background-video,
.video-tint,
.video-vignette,
.video-grain {
  position: absolute;
  inset: 0;
}

.video-stage {
  z-index: -5;
  background: radial-gradient(circle at 50% 70%, #092343 0%, #02050a 64%);
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.8s ease;
  filter: saturate(0.9) contrast(1.08) brightness(0.74);
}

.background-video.is-active {
  opacity: 1;
}

.video-tint {
  z-index: -4;
  background:
    linear-gradient(
      180deg,
      rgba(0, 2, 7, 0.86) 0%,
      rgba(0, 4, 10, 0.46) 42%,
      rgba(0, 7, 18, 0.62) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.5) 0%,
      transparent 28%,
      transparent 72%,
      rgba(0, 0, 0, 0.5) 100%
    );
}

.video-vignette {
  z-index: -3;
  box-shadow: inset 0 0 210px 75px rgba(0, 0, 0, 0.82);
}

.video-grain {
  z-index: -2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.85'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 30px clamp(24px, 5vw, 76px);
  z-index: 5;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.055em;
  line-height: 1;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

.logo-mark {
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  font-weight: 800;
}

.logo-domain {
  margin-left: 0.08em;
  color: var(--blue-bright);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-content {
  width: min(850px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: reveal 0.9s 0.12s both;
}

.eyebrow {
  margin: 0 0 24px;
  color: rgba(202, 224, 246, 0.76);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 12px 60px rgba(0, 0, 0, 0.55);
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #ffffff 10%, #9bd6ff 48%, #2a95ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 660px;
  margin: 27px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
  text-wrap: balance;
}

.contact-form {
  width: min(650px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 12, 0.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form input {
  min-width: 0;
  height: 54px;
  padding: 0 17px;
  border: 0;
  outline: 0;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
}

.contact-form input::placeholder {
  color: rgba(230, 237, 247, 0.46);
}

.contact-form input:focus {
  background: rgba(255, 255, 255, 0.035);
}

.contact-form button {
  min-height: 54px;
  padding: 0 25px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 10px 30px rgba(0, 127, 255, 0.3);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 36px rgba(0, 127, 255, 0.38);
}

.contact-form button:active {
  transform: translateY(0);
}

.form-note {
  min-height: 20px;
  margin: 13px 0 0;
  color: rgba(220, 232, 245, 0.52);
  font-size: 0.82rem;
}

.scroll-note {
  position: absolute;
  bottom: 24px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 620px) {
  .hero {
    padding: 108px 18px 58px;
  }

  .site-header {
    padding: 24px 22px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-copy {
    margin-top: 23px;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 30px;
  }

  .contact-form button {
    width: 100%;
  }

  .video-vignette {
    box-shadow: inset 0 0 115px 28px rgba(0, 0, 0, 0.78);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .background-video:not(.is-active) {
    display: none;
  }
}
