:root {
  --primary: #8c00ff;
  --primary-light: #b45cff;
  --primary-dark: #5a00a8;
  --bg: #07030d;
  --bg-2: #0e0618;
  --surface: rgba(140, 0, 255, 0.06);
  --border: rgba(180, 92, 255, 0.18);
  --text: #f1eafa;
  --muted: #a79bb8;
  --radius: 16px;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--primary); color: #fff; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }
.text-gradient {
  background: linear-gradient(90deg, var(--primary-light), var(--primary) 50%, #d9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 12px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(140, 0, 255, .7);
}
.btn--primary:hover { box-shadow: 0 14px 40px -6px rgba(140, 0, 255, .9); background: #9a1aff; }
.btn--ghost { border-color: var(--border); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--primary-light); background: var(--surface); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 3, 13, .78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .92rem; color: var(--muted); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.15rem; }
.logo__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-weight: 800; box-shadow: 0 0 22px rgba(140, 0, 255, .55);
}
.logo__text b { color: var(--primary-light); font-weight: 800; }

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 45% at 75% 35%, rgba(140, 0, 255, .45), transparent 70%),
    radial-gradient(35% 40% at 15% 70%, rgba(90, 0, 168, .35), transparent 70%);
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(180, 92, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 92, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }

.hero__content { max-width: 820px; }
.status-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .85rem; color: var(--muted); margin-bottom: 1.8rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #777; }
.status-pill.is-online .dot { background: #31e981; box-shadow: 0 0 0 0 rgba(49, 233, 129, .6); animation: pulse 2s infinite; }
.status-pill.is-offline .dot { background: #ff4d6d; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(49, 233, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(49, 233, 129, 0); } }

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 1.05; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 620px; margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats { display: flex; gap: 3rem; margin-top: 3.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.stat__label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--primary-light); border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { to { transform: translateY(14px); opacity: 0; } }

.section { padding: 110px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section__head h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.7rem); margin: .6rem 0 .8rem; letter-spacing: -.01em; }
.section__head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: var(--primary-light);
}

.card {
  background: linear-gradient(180deg, rgba(140, 0, 255, .07), rgba(140, 0, 255, .02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(180, 92, 255, .45); box-shadow: 0 20px 50px -20px rgba(140, 0, 255, .5); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature h3 { font-size: 1.12rem; margin: 1.2rem 0 .5rem; }
.feature p { color: var(--muted); font-size: .95rem; }
.feature__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(140, 0, 255, .16); border: 1px solid var(--border);
}
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.job {
  position: relative; overflow: hidden;
  padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 210px;
  transition: border-color .3s, transform .3s;
}
.job::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(140, 0, 255, .35), transparent 70%);
  transition: transform .4s;
}
.job:hover { border-color: var(--primary); transform: translateY(-4px); }
.job:hover::before { transform: scale(1.4); }
.job h3 { font-family: var(--font-head); font-size: 1.5rem; margin: 1rem 0 .5rem; position: relative; }
.job p { color: var(--muted); position: relative; }
.job__tag {
  position: relative; display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem .7rem; border-radius: 6px; background: rgba(140, 0, 255, .2); color: var(--primary-light);
}
.job__tag--red { background: rgba(255, 77, 109, .15); color: #ff7a93; }
.job__tag--green { background: rgba(49, 233, 129, .12); color: #5ef0a0; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: none; }
.step__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--primary-light); }
.step h3 { margin: .6rem 0 .5rem; }
.step p { color: var(--muted); font-size: .95rem; }
.step a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
code.copy {
  display: inline-block; margin-top: .6rem; padding: .45rem .8rem; border-radius: 8px;
  background: #000; border: 1px solid var(--border); color: var(--primary-light);
  font-family: ui-monospace, Consolas, monospace; font-size: .88rem; cursor: pointer; word-break: break-all;
}
code.copy:hover { border-color: var(--primary); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.member { text-align: center; padding: 2rem 1.2rem; }
.member__avatar {
  width: 86px; height: 86px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(140, 0, 255, .5);
  overflow: hidden;
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.05rem; }
.member span { color: var(--primary-light); font-size: .85rem; font-weight: 500; }

.faq { display: flex; flex-direction: column; gap: .9rem; }
.faq__item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--primary-light); transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.5rem 1.3rem; color: var(--muted); }

.cta-band { padding: 0 0 110px; }
.cta-band__inner {
  border-radius: 24px; padding: 4rem 3rem;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #a83dff);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  box-shadow: 0 30px 80px -30px rgba(140, 0, 255, .8);
}
.cta-band h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3.2vw, 2.3rem); max-width: 540px; }

.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: #05020a; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__note { color: var(--muted); font-size: .85rem; margin-top: 1rem; max-width: 380px; }
.footer__links { display: flex; gap: 1.8rem; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__copy { margin-top: 2.5rem; color: #6d6280; font-size: .82rem; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px);
  padding: .8rem 1.3rem; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 500;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.rules { padding: 140px 0 100px; }
.rules h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.rules__meta { color: var(--muted); margin-bottom: 3rem; }
.rules section { margin-bottom: 2.6rem; }
.rules h2 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 1rem; color: var(--primary-light); }
.rules ol { padding-left: 1.4rem; display: flex; flex-direction: column; gap: .55rem; color: #d6cce4; }
.rules ol li::marker { color: var(--primary-light); font-weight: 600; }

@media (max-width: 980px) {
  .features, .jobs, .steps { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(7, 3, 13, .97); border-bottom: 1px solid var(--border);
    padding: .5rem 4%; transform: translateY(-120%); transition: transform .35s; margin: 0;
  }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav__links a.is-active::after { display: none; }
  .nav__links.is-open { transform: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__inner > .btn { display: none; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 620px) {
  .features, .jobs, .steps, .team { grid-template-columns: 1fr; }
  .hero__stats { gap: 2rem; }
  .section { padding: 80px 0; }
  .cta-band__inner { padding: 2.6rem 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.ranks { margin-top: 3rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.rank {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.2rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg);
}
.rank__lvl { font-family: var(--font-head); font-weight: 800; color: var(--primary-light); font-size: 1.1rem; }
.rank h4 { font-size: .98rem; margin-bottom: .2rem; }
.rank p { color: var(--muted); font-size: .85rem; line-height: 1.45; }

.requirements { margin-top: 1.4rem; }
.requirements h3 { margin-bottom: 1rem; }
.requirements ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2rem; }
.requirements li { position: relative; padding-left: 1.6rem; color: #d6cce4; }
.requirements li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--primary); box-shadow: 0 0 10px rgba(140, 0, 255, .7);
}
.center { text-align: center; margin-top: 2.5rem; }

@media (max-width: 980px) { .ranks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ranks, .requirements ul { grid-template-columns: 1fr; } }

.logo__img { height: 42px; width: auto; max-width: 160px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(140, 0, 255, .55)); }
.hero__logo {
  width: clamp(110px, 16vw, 170px); height: auto; margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 40px rgba(140, 0, 255, .6));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
