* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(rgba(163, 92, 255, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(63, 230, 255, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--lg-bg);
  color: var(--lg-text);
  font-family: var(--lg-font);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
code { font-family: Consolas, monospace; color: var(--lg-cyan); background: rgba(63, 230, 255, 0.1); padding: 1px 6px; border-radius: 5px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 10, 36, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(163, 92, 255, 0.3);
}
.nav {
  max-width: 1080px;
  margin: 0 auto;
  height: 68px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 44px);
  font-family: var(--lg-head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav a:not(.nav-logo) { color: var(--lg-muted); transition: color 0.15s; }
.nav a:not(.nav-logo):hover { color: var(--lg-cyan); }
.nav-logo .lg-logo { font-size: 34px; }
.soon { opacity: 0.5; cursor: default; }
.soon::after { content: ' · скоро'; font-size: 0.8em; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-content { position: relative; padding: 48px 16px 96px; max-width: 760px; }
.hero-logo { font-size: clamp(64px, 15vw, 150px); }
.hero-text { margin: 28px auto 32px; max-width: 560px; font-size: 18px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 14px 26px;
  font-family: var(--lg-head);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.btn:hover { filter: brightness(1.15); }
.btn.primary {
  background: linear-gradient(90deg, var(--lg-violet), var(--lg-pink) 60%, var(--lg-sun));
  box-shadow: 0 0 22px rgba(255, 63, 164, 0.5);
}
.btn.ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); }
.btn.small { padding: 9px 16px; font-size: 13px; }

/* The shared sky is sized for a full screen (vh): pin it to pixels on a scrolling page */
.hero .lg-sky::before { width: min(320px, 70vw); height: min(320px, 70vw); top: 22%; }
.hero .lg-sky::after {
  background:
    repeating-linear-gradient(90deg, rgba(63, 230, 255, 0.55) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(0deg, rgba(255, 63, 164, 0.5) 0 2px, transparent 2px 70px);
  transform: perspective(360px) rotateX(60deg);
  animation: none;
}

/* Sections */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; display: grid; gap: 32px; }
.block { padding: 32px clamp(18px, 4vw, 40px); }
.block.plain { padding-left: 0; padding-right: 0; }
h2 {
  font-family: var(--lg-head);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 30px);
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffd1ec, var(--lg-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}
h2 span { color: var(--lg-gold); -webkit-text-fill-color: var(--lg-gold); font-size: 0.7em; }
h2.center { text-align: center; }
h3 { font-family: var(--lg-head); font-weight: 400; font-size: 18px; color: var(--lg-gold); margin-bottom: 8px; }
p + p { margin-top: 10px; }
.muted { color: var(--lg-muted); margin-top: 16px; }

.lore { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 24px 22px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(163, 92, 255, 0.18), rgba(18, 12, 38, 0.85) 60%);
  border: 1px solid rgba(163, 92, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 0 24px rgba(255, 63, 164, 0.3); }
.feature i { font-style: normal; font-size: 34px; display: block; margin-bottom: 12px; }
.feature h3 { color: var(--lg-text); }
.feature p { color: var(--lg-muted); font-size: 15px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: flex; gap: 14px; }
.steps b {
  flex: none;
  font-family: var(--lg-head);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  background: linear-gradient(180deg, var(--lg-cyan), var(--lg-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps p { color: var(--lg-muted); font-size: 15px; margin-bottom: 14px; }
.connect-row { display: flex; gap: 8px; flex-wrap: wrap; }

.rules { list-style: none; display: grid; gap: 10px; }
.rules li { position: relative; padding-left: 26px; }
.rules li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--lg-pink), var(--lg-cyan));
}

.footer { text-align: center; padding: 28px 16px; color: var(--lg-muted); font-size: 13px; border-top: 1px solid rgba(163, 92, 255, 0.2); }

@media (max-width: 860px) {
  .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav a:not(.nav-logo) { display: none; }
  .lore, .features, .steps { grid-template-columns: 1fr; }
}
