:root {
  --bg-1: #07090f;
  --bg-2: #11152a;
  --panel: rgba(18, 20, 34, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-soft: #b6bdd7;
  --accent-1: #7de9ff;
  --accent-2: #8d7dff;
  --accent-3: #ff70cb;
  --accent-4: #ffd166;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  --mx: 0px;
  --my: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(125, 233, 255, 0.14), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(255, 112, 203, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(141, 125, 255, 0.18), transparent 35%),
    linear-gradient(180deg, var(--bg-1) 0%, #0b0d16 45%, var(--bg-2) 100%);
  color: white;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  opacity: 0.35;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  margin: 0 auto;
}

.hero-block {
  position: relative;
  padding: 1.6rem 1.3rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(22, 24, 39, 0.9), rgba(14, 16, 28, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-block h1 {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-block h3 {
  color: var(--text-soft);
}

.logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  margin-bottom: 0.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(125, 233, 255, 0.18), rgba(255, 112, 203, 0.18));
}

.hero-logo {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-frame::before,
.logo-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  transition: transform 0.18s ease-out;
}

.logo-frame::before {
  width: 22px;
  height: 22px;
  top: -10px;
  left: -8px;
  background: var(--accent-4);
  transform: translate3d(calc(var(--mx) * -0.18), calc(var(--my) * -0.18), 0);
}

.logo-frame::after {
  right: -14px;
  bottom: -10px;
  width: 52px;
  height: 14px;
  border-radius: 20px;
  background: var(--accent-3);
  transform: rotate(-18deg) translate3d(calc(var(--mx) * 0.12), calc(var(--my) * 0.12), 0);
}

.links-block {
  position: relative;
  z-index: 2;
}

.link-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: linear-gradient(180deg, rgba(22, 24, 39, 0.82), rgba(14, 16, 28, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.link-card:nth-child(1) {
  box-shadow: inset 0 3px 0 rgba(125, 233, 255, 0.9), var(--shadow);
}

.link-card:nth-child(2) {
  box-shadow: inset 0 3px 0 rgba(255, 112, 203, 0.9), var(--shadow);
}

.link-card:nth-child(3) {
  box-shadow: inset 0 3px 0 rgba(141, 125, 255, 0.9), var(--shadow);
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 233, 255, 0.32) !important;
  background: linear-gradient(180deg, rgba(24, 27, 45, 0.95), rgba(14, 16, 28, 0.82));
}

.link-card:hover::before {
  opacity: 1;
}

.link-card a {
  position: relative;
  z-index: 1;
}

.link-icon {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.22s ease;
}

.link-card:hover .link-icon {
  transform: scale(1.06) rotate(-4deg);
}

.memphis {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.18s ease-out;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.memphis-circle {
  top: 8%;
  left: 7%;
  width: 110px;
  height: 110px;
  border: 10px solid rgba(125, 233, 255, 0.82);
  border-radius: 50%;
  transform: translate3d(calc(var(--mx) * 0.28), calc(var(--my) * 0.28), 0);
}

.memphis-zigzag {
  right: 8%;
  top: 16%;
  width: 92px;
  height: 24px;
  background:
    linear-gradient(135deg, transparent 0 14%, rgba(255, 209, 102, 0.95) 14% 30%, transparent 30% 48%, rgba(255, 209, 102, 0.95) 48% 64%, transparent 64% 82%, rgba(255, 209, 102, 0.95) 82% 100%);
  clip-path: polygon(0 65%, 12% 0, 24% 65%, 36% 0, 48% 65%, 60% 0, 72% 65%, 84% 0, 100% 65%, 100% 100%, 0 100%);
  transform: rotate(-12deg) translate3d(calc(var(--mx) * -0.22), calc(var(--my) * -0.22), 0);
}

.memphis-cross {
  left: 10%;
  bottom: 16%;
  width: 58px;
  height: 58px;
  transform: rotate(14deg) translate3d(calc(var(--mx) * 0.18), calc(var(--my) * 0.18), 0);
}

.memphis-cross::before,
.memphis-cross::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: rgba(255, 112, 203, 0.88);
  border-radius: 999px;
}

.memphis-cross::before {
  width: 14px;
  height: 58px;
}

.memphis-cross::after {
  width: 58px;
  height: 14px;
}

.memphis-dots {
  right: 6%;
  bottom: 11%;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(circle, rgba(141, 125, 255, 0.85) 0 18%, transparent 20%);
  background-size: 18px 18px;
  transform: translate3d(calc(var(--mx) * -0.16), calc(var(--my) * -0.16), 0);
  opacity: 0.72;
}

::-webkit-scrollbar {
  height: 5px;
  width: 0;
}

::-webkit-scrollbar-track {
  background-color: #11111100;
}

::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 100px;
}

@media (max-width: 700px) {
  .memphis-circle {
    width: 82px;
    height: 82px;
    border-width: 8px;
  }

  .memphis-dots {
    width: 84px;
    height: 84px;
  }

  .hero-block {
    border-radius: 26px;
  }

  .link-card {
    border-radius: 22px;
  }
}

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

  .memphis,
  .logo-frame::before,
  .logo-frame::after,
  .link-card,
  .link-icon {
    transition: none;
  }
}
