@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/montserrat-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #05070b;
  --ink: #e7eef3;
  --muted: #93a4b4;
  --line: rgba(110, 231, 214, 0.72);
  --accent: #2dd4bf;
  --deep: #2563eb;
  --font: "Montserrat", "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 46% at 50% 42%, rgba(37, 99, 235, 0.16), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 155, 213, 0.85), transparent);
  pointer-events: none;
}

::selection {
  background: rgba(41, 155, 213, 0.35);
  color: #fff;
}

.field,
.glow,
.sonar,
.floor,
.horizon,
.vignette {
  position: fixed;
  pointer-events: none;
}

.field {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.glow {
  z-index: 1;
  left: 50%;
  top: 43%;
  width: min(720px, 96vw);
  height: min(720px, 96vw);
  transform: translate(calc(-50% + var(--gx, 0px)), calc(-50% + var(--gy, 0px)));
  background: radial-gradient(circle, rgba(41, 155, 213, 0.24) 0%, rgba(37, 99, 235, 0.1) 34%, transparent 68%);
  filter: blur(6px);
  animation: breathe 8s ease-in-out infinite;
}

.sonar {
  z-index: 1;
  left: 50%;
  top: 44%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
}

.sonar span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(41, 155, 213, 0.45);
  border-radius: 50%;
  animation: ping 8.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.sonar span:nth-child(2) {
  animation-delay: 2.8s;
}

.sonar span:nth-child(3) {
  animation-delay: 5.6s;
}

.floor {
  z-index: 1;
  left: 50%;
  bottom: -28vh;
  width: 220vw;
  height: 68vh;
  transform: translateX(-50%) perspective(520px) rotateX(73deg);
  transform-origin: center center;
  background-image:
    linear-gradient(to right, rgba(41, 155, 213, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(41, 155, 213, 0.2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to top, transparent 0%, #000 16%, #000 48%, transparent 100%);
  animation: glide 14s linear infinite;
}

.horizon {
  z-index: 1;
  left: 8vw;
  right: 8vw;
  bottom: 27vh;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 155, 213, 0.7), transparent);
  box-shadow: 0 0 36px 6px rgba(41, 155, 213, 0.22);
}

.vignette {
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 28%, rgba(5, 7, 11, 0.55) 72%, #05070b 100%);
}

.stage {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding:
    max(6vh, env(safe-area-inset-top))
    1.25rem
    max(16vh, env(safe-area-inset-bottom));
}

.panel {
  position: relative;
  width: min(640px, 100%);
  padding: clamp(2.4rem, 6vw, 3.6rem) clamp(1.4rem, 5vw, 3.4rem);
  text-align: center;
  will-change: transform;
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
}

.corner-tl {
  top: 0;
  left: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.corner-tr {
  top: 0;
  right: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.corner-br {
  right: 0;
  bottom: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  animation: enter 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.logo {
  width: min(340px, 72vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(45, 212, 191, 0.18));
}

.tagline {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(0.64rem, 2.35vw, 0.78rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  animation: enter 1.4s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gem {
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, var(--deep), var(--accent));
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(41, 155, 213, 0.9);
}

.contact {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  min-height: 5.2rem;
  margin: 1.7rem 0 0;
  animation: enter 1.4s 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mail {
  appearance: none;
  border: 1px solid rgba(41, 155, 213, 0.55);
  background: rgba(41, 155, 213, 0.06);
  color: #e7f7f8;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem 0.95rem 1.88rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mail[hidden] {
  display: none;
}

.mail:hover {
  border-color: rgba(110, 231, 214, 0.9);
  background: rgba(41, 155, 213, 0.16);
  box-shadow: 0 0 28px rgba(41, 155, 213, 0.35);
}

.mail:focus-visible,
.mail-reveal a:focus-visible {
  outline: 2px solid #6ee7d6;
  outline-offset: 5px;
}

.mail-reveal a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid rgba(41, 155, 213, 0.5);
  padding: 0.3rem 0 0.15rem;
}

.mail-reveal a:hover {
  color: #fff;
}

.corner {
  animation: enter 1.1s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ping {
  0% {
    transform: scale(3.4);
    opacity: 0.28;
  }
  100% {
    transform: scale(8.5);
    opacity: 0;
  }
}

@keyframes glide {
  from {
    background-position: center 0;
  }
  to {
    background-position: center 72px;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .corner {
    width: 12px;
    height: 12px;
  }

  .tagline {
    letter-spacing: 0.14em;
  }

  .horizon {
    bottom: 18vh;
  }
}

@media (max-height: 700px) {
  .tagline {
    margin-top: 1.35rem;
  }

  .contact {
    margin-top: 1.15rem;
  }

  .horizon {
    bottom: 12vh;
  }

  .floor {
    height: 48vh;
    bottom: -18vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}
