@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7f8fb;
  --muted: rgba(239, 242, 255, 0.67);
  --line: rgba(255, 255, 255, 0.13);
  --surface: rgba(14, 16, 23, 0.58);
  --violet: #59d3fe;
  --cyan: #42d8ff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #07080c;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.background,
.background__image,
.background__noise {
  position: fixed;
  inset: 0;
}

.background__frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  z-index: 0;
}

.background {
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 112%,
      rgba(104, 88, 224, 0.42) 0%,
      rgba(37, 84, 177, 0.22) 31%,
      transparent 68%
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(131, 96, 255, 0.16) 0%,
      transparent 36%
    ),
    linear-gradient(180deg, #030510 0%, #06091a 52%, #10153b 100%);
}

.background > :not(.background__frame):not(.background__vignette),
.background::after { display: none; }

.background__vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(2, 3, 12, 0.55) 100%);
}

.background__image {
  background-image: url("/media/background");
  background-position: center;
  background-size: cover;
  z-index: 0;
  opacity: 0.3;
  filter: saturate(0.7) contrast(1.08);
  mix-blend-mode: luminosity;
}

.background::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 4, 14, 0.24), transparent 32%),
    radial-gradient(ellipse at center, transparent 42%, rgba(2, 3, 12, 0.52) 100%);
}

.background__glow {
  position: absolute;
  width: min(58vw, 860px);
  height: min(58vw, 860px);
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.24;
  z-index: 1;
}

.background__glow--one {
  top: -38vw;
  right: -8vw;
  background: var(--violet);
}

.background__glow--two {
  bottom: -36vw;
  left: 12vw;
  background: var(--cyan);
}

.background__stars {
  position: absolute;
  inset: -1200px 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  animation: star-rise var(--star-speed) linear infinite;
}

.background__stars--far {
  --star-speed: 52s;
  opacity: 0.64;
  background-image:
    radial-gradient(circle, rgba(135, 187, 255, 0.92) 0 0.65px, transparent 0.9px),
    radial-gradient(circle, rgba(183, 157, 255, 0.88) 0 0.65px, transparent 0.95px),
    radial-gradient(circle, rgba(112, 157, 255, 0.76) 0 0.55px, transparent 0.85px),
    radial-gradient(circle, rgba(222, 213, 255, 0.82) 0 0.55px, transparent 0.85px),
    radial-gradient(circle, rgba(107, 207, 255, 0.72) 0 0.6px, transparent 0.9px);
  background-position:
    17px 31px,
    69px 97px,
    131px 43px,
    211px 179px,
    317px 251px;
  background-size:
    92px 120px,
    137px 150px,
    211px 200px,
    307px 240px,
    421px 300px;
}

.background__stars--middle {
  --star-speed: 94s;
  opacity: 0.78;
  background-image:
    radial-gradient(circle, #89b5ff 0 1px, rgba(137, 181, 255, 0.24) 1.3px, transparent 1.8px),
    radial-gradient(circle, #aa8fff 0 1px, rgba(170, 143, 255, 0.22) 1.35px, transparent 1.9px),
    radial-gradient(circle, #71d5ff 0 0.9px, rgba(113, 213, 255, 0.2) 1.25px, transparent 1.8px),
    radial-gradient(circle, #d5c8ff 0 0.85px, rgba(213, 200, 255, 0.2) 1.2px, transparent 1.7px);
  background-position:
    41px 73px,
    173px 191px,
    281px 337px,
    389px 503px;
  background-size:
    229px 240px,
    311px 300px,
    457px 400px,
    613px 600px;
}

.background__stars--near {
  --star-speed: 148s;
  opacity: 0.82;
  background-image:
    radial-gradient(circle, #c0aaff 0 1.35px, rgba(158, 132, 255, 0.28) 1.8px, transparent 2.8px),
    radial-gradient(circle, #87caff 0 1.25px, rgba(86, 168, 255, 0.25) 1.75px, transparent 2.7px),
    radial-gradient(circle, #e1d9ff 0 1.15px, rgba(190, 174, 255, 0.24) 1.65px, transparent 2.6px);
  background-position:
    97px 151px,
    353px 419px,
    719px 863px;
  background-size:
    479px 400px,
    617px 600px,
    883px 1200px;
  filter: drop-shadow(0 0 4px rgba(119, 157, 255, 0.48));
}

.background__noise {
  z-index: 4;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.page {
  position: relative;
  width: min(1240px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
}

.hero__content {
  width: min(100%, 780px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
}

.title-heading {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  animation: reveal 900ms 220ms both;
}

.title-line {
  display: block;
}

.title-line--accent {
  color: #59d3fe;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 28px rgba(89, 211, 254, 0.45),
    0 2px 14px rgba(0, 0, 0, 0.6);
}

.title-rule {
  display: block;
  width: 72px;
  height: 3px;
  margin: 0 auto 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #59d3fe 50%, transparent);
  animation: reveal 900ms 280ms both;
}
.lead {
  max-width: 600px;
  margin: 0 auto 1.2rem;
  color: rgba(239, 242, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  font-weight: 500;
  line-height: 1.7;
  text-wrap: balance;
  animation: reveal 900ms 320ms both;
}

.socials {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 245px));
  gap: 16px;
  margin-top: 56px;
  justify-content: center;
}

.social-card {
  --brand: #fff;
  --brand-rgb: 255, 255, 255;
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), 0.48);
  border-radius: 15px;
  background: rgba(14, 16, 23, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-decoration: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  animation: reveal 700ms 520ms both;
}

.social-card:nth-child(2) {
  animation-delay: 600ms;
}

.social-card:focus-visible {
  outline: 2px solid #59d3fe;
  outline-offset: 3px;
}

.social-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at 15% 50%, var(--card-glow), transparent 45%);
  transition: opacity 220ms ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.82);
  background:
    linear-gradient(115deg, rgba(var(--brand-rgb), 0.3), rgba(var(--brand-rgb), 0.09) 62%),
    rgba(22, 25, 35, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 42px rgba(var(--brand-rgb), 0.22);
}

.social-card:hover::before {
  opacity: 0.18;
}

.social-card--discord {
  --brand: #5865f2;
  --brand-rgb: 88, 101, 242;
  --card-glow: #5865f2;
}

.social-card--telegram {
  --brand: #24a1de;
  --brand-rgb: 36, 161, 222;
  --card-glow: #24a1de;
}

.social-card__icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  box-shadow: none;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.social-card__icon svg {
  width: 22px;
  fill: currentColor;
}

.social-card__label {
  position: relative;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 680;
}

.social-card__arrow {
  position: relative;
  width: 18px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition:
    transform 220ms ease,
    stroke 220ms ease;
}

.social-card:hover .social-card__icon {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 7px 20px rgba(var(--brand-rgb), 0.38);
}

.social-card:hover .social-card__arrow {
  transform: translateX(3px);
  stroke: rgba(var(--brand-rgb), 1);
}

.social-card.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.social-card.is-disabled:hover {
  transform: none;
}

.made-with-love {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 5;
  display: block;
  margin: 0;
  opacity: 0.7;
  transform: rotate(6deg);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.made-with-love img {
  display: block;
  width: auto;
  height: 42px;
  filter: brightness(0) invert(1);
}

.made-with-love:hover {
  opacity: 0.8;
  transform: rotate(3deg) scale(1.04);
}

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

@keyframes star-rise {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -1200px, 0);
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 36px, 600px);
  }

  .hero {
    padding: 48px 0;
  }

  .hero__content {
    width: 100%;
  }


  .title-heading {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }
  .lead {
    margin-top: 24px;
  }

  .socials {
    grid-template-columns: 1fr;
    width: min(100%, 440px);
    max-width: 440px;
    margin-top: 40px;
    gap: 14px;
  }

  .made-with-love {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 390px) {
  .page {
    width: calc(100% - 28px);
  }


  .title-heading {
    font-size: 3.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background__stars {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

