:root {
  --bg: #070f1d;
  --bg-soft: #0b1628;
  --surface: #101f33;
  --surface-elevated: #132741;
  --text: #edf6ff;
  --muted: #9eb4d3;
  --line: rgba(111, 171, 255, 0.25);
  --brand-1: #19e7ff;
  --brand-2: #30a6ff;
  --brand-3: #2667ff;
  --brand-ice: #c9e4ff;
  --focus: #66dfff;
  --shadow: 0 20px 34px rgba(2, 10, 22, 0.55);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: radial-gradient(circle at 12% 10%, rgba(25, 231, 255, 0.15), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(38, 103, 255, 0.2), transparent 36%),
    radial-gradient(circle at 52% 110%, rgba(48, 166, 255, 0.12), transparent 48%),
    var(--bg);
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -120px;
  z-index: 120;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: #051625;
  background: var(--brand-1);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(48, 166, 255, 0.12), rgba(11, 22, 40, 0.15));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  background: rgba(7, 15, 29, 0.84);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 3.05rem;
  width: auto;
  max-width: min(58vw, 19.5rem);
}

.main-nav {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover {
  color: var(--brand-ice);
  background: rgba(25, 231, 255, 0.12);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(16, 31, 51, 0.88);
  cursor: pointer;
}

.menu-toggle-line {
  width: 1.25rem;
  height: 2px;
  background: var(--brand-ice);
  margin-inline: auto;
  border-radius: 99px;
}

.hero {
  overflow: hidden;
  padding-top: 6.5rem;
  padding-bottom: 5rem;
}

.hero-bg {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-bg-a {
  top: -220px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(25, 231, 255, 0.34), rgba(25, 231, 255, 0.03) 70%);
  animation: drift 13s ease-in-out infinite alternate;
}

.hero-bg-b {
  bottom: -250px;
  left: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(38, 103, 255, 0.3), rgba(38, 103, 255, 0.03) 70%);
  animation: drift 15s ease-in-out infinite alternate-reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-1);
  font-size: 0.74rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  letter-spacing: -0.03em;
}

h1 .accent {
  display: block;
  margin-top: 0.5rem;
  font-family: "Rubik Mono One", "Consolas", monospace;
  font-size: clamp(1rem, 4vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--brand-2);
  text-shadow: 0 0 18px rgba(48, 166, 255, 0.44);
}

.lead {
  margin: 1.15rem auto 0;
  max-width: 58ch;
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  color: var(--muted);
}

.hero-cta {
  margin-top: 1.55rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #06192b;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 10px 20px rgba(38, 103, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #53f0ff, #48b0ff);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(15, 31, 51, 0.72);
  color: var(--brand-ice);
}

.btn-ghost:hover {
  background: rgba(23, 44, 71, 0.92);
}

.btn-inline {
  margin-top: 0.8rem;
  padding: 0;
  min-height: 1.8rem;
  font-size: 0.95rem;
  color: var(--brand-1);
}

.btn-copy {
  color: #051728;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
}

.btn-copy:hover {
  background: linear-gradient(135deg, #62bcff, #59f1ff);
}

.ip-card {
  margin: 1.25rem auto 0;
  padding: 0.7rem;
  width: min(100%, 560px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(16, 31, 51, 0.88);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.ip-meta {
  text-align: left;
}

.ip-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#server-ip {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.03rem;
}

.copy-status {
  margin: 0.5rem 0 0;
  min-height: 1.2em;
  color: var(--brand-1);
  font-weight: 700;
}

.hero-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.hero-visual img {
  width: min(100%, 1024px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 26px rgba(20, 20, 30, 0.14));
}

h2 {
  text-align: center;
  font-size: clamp(1.55rem, 5vw, 2.6rem);
}

.section-subtitle {
  margin: 0.85rem auto 0;
  text-align: center;
  max-width: 65ch;
  color: var(--muted);
}

.feature-grid,
.steps-grid,
.links-grid {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.feature-card,
.step-card,
.link-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card h3,
.step-card h3,
.link-card h3 {
  font-size: 1.15rem;
}

.feature-card p,
.step-card p,
.link-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.step-card {
  position: relative;
  overflow: clip;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(25, 231, 255, 0.1), rgba(38, 103, 255, 0.1));
}

.step-card > * {
  position: relative;
}

.step-index {
  font-family: "Rubik Mono One", "Consolas", monospace;
  color: var(--brand-2);
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.link-card a {
  display: inline-flex;
  margin-top: 0.9rem;
  font-weight: 800;
  color: var(--brand-1);
}

.link-card a:hover {
  text-decoration: underline;
}

.final-cta {
  background: linear-gradient(145deg, rgba(11, 25, 45, 0.95), rgba(12, 44, 86, 0.95));
  color: #eff8ff;
  text-align: center;
}

.final-cta p {
  margin: 0.8rem auto 0;
  max-width: 60ch;
  color: rgba(201, 228, 255, 0.9);
}

.final-cta .btn-ghost {
  border-color: rgba(48, 166, 255, 0.52);
  background: rgba(6, 20, 37, 0.55);
  color: #e7f5ff;
}

.final-cta .btn-ghost:hover {
  background: rgba(9, 31, 55, 0.75);
}

.site-footer {
  border-top: 1px solid rgba(81, 148, 255, 0.26);
  background: #06101f;
  color: #d5e9ff;
}

.footer-inner {
  padding: 1.4rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-brand {
  margin: 0;
  font-family: "Rubik Mono One", "Consolas", monospace;
  font-size: 1rem;
}

.footer-muted {
  margin: 0.2rem 0 0;
  color: rgba(184, 209, 236, 0.8);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.7s ease forwards;
}

.hero .reveal {
  animation-delay: 0.05s;
}

#about .reveal {
  animation-delay: 0.08s;
}

#join .reveal {
  animation-delay: 0.12s;
}

#faq .reveal {
  animation-delay: 0.16s;
}

#contacts .reveal {
  animation-delay: 0.18s;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0);
  }

  to {
    transform: translateY(-20px) translateX(-12px);
  }
}

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

  .reveal,
  .hero-bg-a,
  .hero-bg-b {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .container {
    width: min(1200px, calc(100% - 3rem));
  }

  .main-nav {
    display: inline-flex;
    gap: 0.35rem;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding-top: 7.4rem;
  }

  .feature-grid,
  .steps-grid,
  .links-grid {
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 5.8rem 0;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .hero {
    padding-bottom: 6.2rem;
  }

  .hero-bg-a {
    width: 620px;
    height: 620px;
  }

  .hero-bg-b {
    width: 760px;
    height: 760px;
  }
}

@media (max-width: 767px) {
  .brand-logo {
    height: 2.45rem;
    max-width: 11.75rem;
  }

  .main-nav {
    position: fixed;
    top: 4.8rem;
    left: 1rem;
    right: 1rem;
    z-index: 89;
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(10, 22, 39, 0.98);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .main-nav a {
    min-height: 2.9rem;
    border-radius: 0.75rem;
    justify-content: center;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
  }

  .ip-card {
    flex-wrap: wrap;
  }

  .btn-copy {
    width: 100%;
  }
}
