:root {
  --bg: #04050a;
  --panel: rgba(11, 15, 31, 0.48);
  --line: rgba(179, 201, 255, 0.2);
  --text: #edf2ff;
  --muted: #9cabd7;
  --mx: 0;
  --my: 0;
  --px: 50%;
  --py: 50%;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(92, 122, 255, 0.34), transparent 42%),
    radial-gradient(circle at 85% 78%, rgba(130, 83, 255, 0.26), transparent 48%),
    radial-gradient(circle at var(--px) var(--py), rgba(90, 222, 255, 0.2), transparent 40%),
    #04050a;
}

.mesh {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(145, 175, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 175, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(700px) rotateX(65deg) translateY(42%);
  mask-image: radial-gradient(circle at 50% 50%, black 35%, transparent 78%);
  opacity: 0.52;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 34rem;
  height: 34rem;
  top: -12rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(95, 131, 255, 0.52), transparent 68%);
}

.orb-b {
  width: 30rem;
  height: 30rem;
  bottom: -14rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(169, 108, 255, 0.44), transparent 67%);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.orb-c {
  width: 24rem;
  height: 24rem;
  top: 32%;
  left: 42%;
  background: radial-gradient(circle, rgba(82, 236, 255, 0.24), transparent 72%);
  animation-duration: 16s;
}

.scan {
  position: absolute;
  inset: -35% 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(148, 175, 255, 0.05) 40%,
    rgba(148, 175, 255, 0.11) 50%,
    rgba(148, 175, 255, 0.05) 60%,
    transparent
  );
  animation: sweep 9s linear infinite;
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
}

.landing {
  min-height: 100vh;
  padding: clamp(1rem, 2.4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  transform: perspective(1000px) rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 3deg));
  transition: transform 240ms ease-out;
}

.nav {
  width: min(74rem, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #d5defd;
}

.contact {
  color: #ecf2ff;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(14, 20, 42, 0.52);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.contact:hover,
.contact:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(206, 222, 255, 0.54);
  background: rgba(22, 30, 61, 0.72);
}

.hero {
  width: min(74rem, 100%);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: clamp(1.2rem, 3.5vw, 2.3rem);
  background:
    radial-gradient(circle at 75% 20%, rgba(140, 127, 255, 0.14), transparent 44%),
    radial-gradient(circle at 24% 82%, rgba(84, 200, 255, 0.12), transparent 38%),
    var(--panel);
  backdrop-filter: blur(12px) saturate(122%);
  box-shadow:
    0 28px 100px rgba(5, 9, 24, 0.65),
    inset 0 1px 0 rgba(206, 218, 255, 0.12);
  padding: clamp(1.4rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  animation: floatIn 850ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -15%;
  width: 60%;
  height: 120%;
  background: linear-gradient(
    120deg,
    rgba(158, 178, 255, 0.18),
    rgba(126, 233, 255, 0.12) 45%,
    rgba(160, 124, 255, 0.14)
  );
  filter: blur(42px);
  transform: rotate(-12deg);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  color: #c8d7ff;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 1rem 0 0;
  max-width: 10ch;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.gradient {
  color: transparent;
  background: linear-gradient(95deg, #cde2ff 12%, #86f3ff 44%, #d2b6ff 88%);
  background-clip: text;
  -webkit-background-clip: text;
}

.tagline {
  margin: 1.3rem 0 0;
  max-width: 45ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.2rem);
  line-height: 1.62;
}

.cta {
  margin-top: 2rem;
  display: inline-flex;
  text-decoration: none;
  color: #f3f8ff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.72rem 1.28rem;
  background: linear-gradient(120deg, #3258de 0%, #5758df 46%, #8a4ed5 100%);
  box-shadow: 0 12px 34px rgba(89, 98, 232, 0.4);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 36px rgba(110, 122, 255, 0.53);
}

.footer-note {
  width: min(74rem, 100%);
  margin: 1.4rem auto 0;
  color: rgba(166, 179, 219, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2vw, 1.8vw, 0) scale(1.07);
  }
}

@keyframes sweep {
  from {
    transform: translateY(-40%);
  }
  to {
    transform: translateY(40%);
  }

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }

  .email {
    font-size: 0.72rem;
    padding: 0.46rem 0.8rem;
  }

@media (max-width: 44rem) {
  .landing {
    padding: 0.9rem;
    overflow-y: auto;
  }

  .contact {
    font-size: 0.74rem;
    padding: 0.4rem 0.72rem;
  }

  .footer-note {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
}

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

  .landing {
    transform: none !important;
  }
}
