:root {
  --void: #07070b;
  --ink: #f4f1ff;
  --muted: #b0aac1;
  --violet: #6540f4;
  --violet-hot: #a98cff;
  --cyan: #67e7ff;
  --edge-space: clamp(22px, 5.4vw, 68px);
  --content-gap: clamp(20px, 2.35vw, 34px);
  --contact-gap: clamp(9px, 0.9vw, 13px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--void);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Mono", "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(103, 231, 255, 0.18), transparent 25%),
    radial-gradient(circle at 78% 20%, rgba(169, 140, 255, 0.22), transparent 29%),
    radial-gradient(circle at 50% 78%, rgba(101, 64, 244, 0.18), transparent 36%),
    linear-gradient(180deg, #11101a 0%, #08080d 64%, #050509 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body::before {
  background:
    conic-gradient(from 215deg at 58% 44%, transparent 0 16%, rgba(103, 231, 255, 0.14) 22%, transparent 34%, rgba(101, 64, 244, 0.18) 48%, transparent 64%),
    radial-gradient(ellipse at 28% 42%, rgba(103, 231, 255, 0.16), transparent 54%),
    radial-gradient(ellipse at 70% 46%, rgba(169, 140, 255, 0.18), transparent 58%);
  filter: blur(32px);
  opacity: 0.82;
  transform: scale(1.08);
  animation: ambient-shift 18s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at center, rgba(103, 231, 255, 0.15) 0 1px, transparent 1px 12px),
    radial-gradient(circle at center, rgba(169, 140, 255, 0.11) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 82%, rgba(0, 0, 0, 0.72) 100%);
  background-size: 21px 21px, 38px 38px, auto;
  mask-image: radial-gradient(ellipse at center, black 0 66%, transparent 100%);
}

a {
  color: inherit;
}

.language-switch {
  position: fixed;
  top: clamp(18px, 2.6vw, 34px);
  right: clamp(18px, 3.2vw, 42px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(0.82rem, 0.76rem + 0.22vw, 0.96rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}

.language-option {
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0.58;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.36em;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-pressed="true"] {
  color: var(--cyan);
  opacity: 1;
  text-decoration-color: currentColor;
  text-shadow: 0 0 20px rgba(103, 231, 255, 0.34);
}

.language-option:focus-visible {
  outline: 2px solid rgba(103, 231, 255, 0.46);
  outline-offset: 5px;
}

.language-divider {
  opacity: 0.32;
}

.microsite {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--edge-space);
}

.intro {
  display: grid;
  justify-items: center;
  width: min(100%, 900px);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-stage {
  position: relative;
  display: grid;
  width: min(100%, 680px);
  margin-bottom: var(--content-gap);
  place-items: center;
  isolation: isolate;
}

.logo-stage::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: min(100%, 620px);
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      transparent 0 38%,
      rgba(103, 231, 255, 0.05) 43%,
      rgba(103, 231, 255, 0.46) 49%,
      rgba(169, 140, 255, 0.3) 51%,
      rgba(103, 231, 255, 0.06) 57%,
      transparent 62% 100%
    );
  background-size: 100% 220%;
  background-position: 0 -130%;
  mix-blend-mode: screen;
  opacity: 0.72;
  transform: translateX(-50%);
  -webkit-mask: url("img/logo.png") center / contain no-repeat;
  mask: url("img/logo.png") center / contain no-repeat;
  animation: logo-scan 5.2s ease-in-out 1.1s infinite;
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 620px);
  height: auto;
  transform: translateZ(0);
  filter:
    brightness(1.98)
    contrast(0.88)
    saturate(1.16)
    drop-shadow(2px 0 0 rgba(103, 231, 255, 0.18))
    drop-shadow(-2px 0 0 rgba(101, 64, 244, 0.2))
    drop-shadow(0 30px 42px rgba(0, 0, 0, 0.5));
  animation:
    rise-in 780ms cubic-bezier(0.16, 1, 0.3, 1) both,
    signal-pulse 6.8s ease-in-out 1s infinite;
}

.pitch {
  max-width: 820px;
  margin: 0 0 var(--content-gap);
  color: var(--ink);
  font-size: clamp(1.08rem, 0.98rem + 0.62vw, 1.45rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.contact {
  display: grid;
  justify-items: center;
  gap: var(--contact-gap);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.92rem + 0.34vw, 1.18rem);
}

address {
  margin: 0;
  font-style: normal;
}

.mail {
  width: fit-content;
  color: var(--violet-hot);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 0.3em;
  text-shadow: 0 0 26px rgba(101, 64, 244, 0.72);
}

.mail:hover,
.mail:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
}

.mail:focus-visible {
  outline: 3px solid rgba(103, 231, 255, 0.34);
  outline-offset: 6px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

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

@keyframes ambient-shift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1.08);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.12);
  }
}

@keyframes logo-scan {
  0%,
  16% {
    background-position: 0 -130%;
    opacity: 0;
  }

  28%,
  56% {
    opacity: 0.72;
  }

  72%,
  100% {
    background-position: 0 145%;
    opacity: 0;
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    filter:
      brightness(1.96)
      contrast(0.88)
      saturate(1.16)
      drop-shadow(2px 0 0 rgba(103, 231, 255, 0.16))
      drop-shadow(-2px 0 0 rgba(101, 64, 244, 0.18))
      drop-shadow(0 30px 42px rgba(0, 0, 0, 0.5));
  }

  48% {
    filter:
      brightness(2.08)
      contrast(0.9)
      saturate(1.24)
      drop-shadow(3px 0 0 rgba(103, 231, 255, 0.24))
      drop-shadow(-3px 0 0 rgba(101, 64, 244, 0.24))
      drop-shadow(0 32px 46px rgba(0, 0, 0, 0.54));
  }
}

@media (max-width: 560px) {
  .microsite {
    padding: 22px 16px;
  }

  .logo-stage {
    margin-bottom: 20px;
  }

  .pitch {
    margin-bottom: 20px;
    line-height: 1.52;
  }

  .contact {
    gap: 9px;
  }
}

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