:root {
  --void: #100C15;
  --ground: #14101A;
  --surface: #1C1624;
  --surface-lift: #241C2E;
  --line: #2E2438;
  --line-bright: #3E3049;

  --text: #F1EBF3;
  --text-soft: #B4A8BC;
  --text-faint: #8A7D93;

  --rose: #FA758A;
  --rose-pale: #FDC4CD;
  --plum: #B98BE0;
  --live: #63D19A;
  --down: #E2685F;

  --shell: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Onest", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { text-wrap: balance; }

/* ---------------- фон ---------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 46vw at 18% -8%, rgba(250, 117, 138, .20), transparent 62%),
    radial-gradient(52vw 40vw at 88% 4%, rgba(185, 139, 224, .17), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--ground) 46%);
  pointer-events: none;
}

/* ---------------- герой ---------------- */

.hero {
  padding: 92px 0 84px;
  text-align: center;
}

.hero-icon {
  border-radius: 12px;
  image-rendering: pixelated;
  border: 1px solid var(--line-bright);
  box-shadow: 0 12px 40px -18px rgba(250, 117, 138, .7);
}

h1 {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 26px 0 18px;
  background: linear-gradient(100deg, var(--rose) 8%, var(--rose-pale) 52%, var(--plum) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--text-soft);
  margin: 0 auto;
  max-width: 34ch;
}

.join {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ---------------- кнопка с IP ---------------- */

.ip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 18px 40px;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ip:hover { background: var(--surface-lift); border-color: var(--rose); transform: translateY(-2px); }
.ip:active { transform: translateY(0); }
.ip:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.ip-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ip-value {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 500;
  letter-spacing: -.01em;
}

.ip-action {
  font-size: 12.5px;
  color: var(--text-faint);
  transition: color .16s ease;
}

.ip.copied { border-color: var(--live); }
.ip.copied .ip-action { color: var(--live); }

.ip-small { padding: 14px 30px; }

/* ---------------- статус ---------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 22, 36, .7);
  font-size: 14.5px;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
}

.status[data-state="up"] .dot {
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(99, 209, 154, .16);
  animation: pulse 2.6s ease-in-out infinite;
}

.status[data-state="down"] .dot { background: var(--down); }

.status-text { font-weight: 500; }
.status-sub { color: var(--text-faint); font-size: 13.5px; }
.status-sub::before { content: "·"; margin-right: 8px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99, 209, 154, .16); }
  50%      { box-shadow: 0 0 0 8px rgba(99, 209, 154, 0); }
}

/* ---------------- секции ---------------- */

main { padding-bottom: 40px; }

section { padding: 62px 0; }

h2 {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 600;
  font-size: clamp(25px, 3.6vw, 33px);
  letter-spacing: -.02em;
  margin: 0 0 26px;
}

/* манифест */

.manifesto-body {
  display: grid;
  gap: 18px;
  max-width: 66ch;
  font-size: 18px;
  color: var(--text-soft);
}

.manifesto-body p { margin: 0; }
.manifesto-body strong { color: var(--text); font-weight: 600; }

/* карточки */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .18s ease, transform .18s ease;
}

.card:hover { border-color: var(--line-bright); transform: translateY(-3px); }

.card h3 {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  margin: 0;
}

.card p { margin: 0; color: var(--text-soft); font-size: 15.5px; line-height: 1.6; }

.card-link {
  margin-top: auto;
  padding-top: 4px;
  color: var(--rose);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* шаги */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 74ch; }

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.step-n {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  color: var(--plum);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.steps h3 {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 6px 0 6px;
}

.steps p { margin: 0; color: var(--text-soft); font-size: 16px; }
.steps strong { color: var(--text); font-weight: 600; }

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .88em;
  background: var(--surface-lift);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--rose-pale);
  white-space: nowrap;
}

/* правила */

.rules-lede { color: var(--text-faint); margin: -14px 0 22px; }

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-width: 70ch;
  counter-reset: rule;
}

.rule-list li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 16.5px;
}

.rule-list li::before {
  content: counter(rule);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 3px;
}

/* финал */

.cta { text-align: center; padding: 78px 0 92px; }
.cta h2 { margin-bottom: 22px; }

/* подвал */

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 44px;
  font-size: 14.5px;
  color: var(--text-faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

footer nav { display: flex; gap: 22px; }

footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--rose); }
footer a:focus-visible, .card-link:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 560px) {
  .steps li { grid-template-columns: 36px 1fr; gap: 14px; }
  .step-n { width: 32px; height: 32px; font-size: 13px; }
  .hero { padding: 64px 0 60px; }
  section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
