:root {
  --bg: #09091a;
  --bg-soft: #11112b;
  --card: rgba(24, 24, 61, 0.76);
  --card-strong: rgba(31, 31, 79, 0.94);
  --text: #f7f7ff;
  --muted: #b5b6d2;
  --line: rgba(169, 153, 255, 0.22);
  --blue: #4ac7ff;
  --blue-deep: #4f66ff;
  --purple: #9c64ff;
  --pink: #df69ff;
  --green: #6cf7b6;
  --red: #ff6b8b;
  --shadow: 0 20px 80px rgba(24, 11, 73, 0.45);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(66, 84, 255, 0.26), transparent 38rem),
    radial-gradient(circle at 90% 8%, rgba(193, 75, 255, 0.2), transparent 34rem),
    linear-gradient(180deg, #09091a 0%, #0d0d21 45%, #080817 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(127, 117, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 117, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 1220px);
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 30, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-cube {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-deep), var(--purple), var(--pink));
  box-shadow: 0 8px 25px rgba(130, 87, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  transition: 160ms ease;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav .nav-discord {
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #8b5cf6);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 60px;
  align-items: center;
  min-height: 760px;
  padding-block: 90px 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9fdcff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero h1,
.section-heading h2,
.discord-section h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.3rem, 8vw, 6.7rem);
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--blue), #7783ff 40%, var(--purple) 72%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 45px rgba(122, 93, 255, 0.18);
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 15px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.primary-button {
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #4169ff, #8b5cf6 62%, #c952ff);
  box-shadow: 0 16px 38px rgba(108, 80, 255, 0.35);
}

.primary-button strong {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.93rem;
}

.secondary-button {
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-strip strong {
  color: #fff;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8e8fa9;
  box-shadow: 0 0 0 5px rgba(142, 143, 169, 0.1);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(108, 247, 182, 0.12), 0 0 18px rgba(108, 247, 182, 0.5);
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 107, 139, 0.12);
}

.status-divider {
  width: 1px;
  height: 15px;
  background: var(--line);
}

.hero-card {
  position: relative;
  padding: 1px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(95, 207, 255, 0.65), rgba(143, 92, 255, 0.82), rgba(237, 93, 255, 0.45));
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 10% -10% -10% 10%;
  z-index: -1;
  filter: blur(60px);
  background: rgba(110, 71, 255, 0.28);
}

.mini-window-bar {
  display: flex;
  gap: 6px;
  padding: 13px 16px;
  border-radius: 25px 25px 0 0;
  background: rgba(10, 10, 31, 0.95);
}

.mini-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mini-window-bar span:first-child { background: #ff6686; }
.mini-window-bar span:nth-child(2) { background: #ffd05d; }
.mini-window-bar span:nth-child(3) { background: #68e7a9; }

.server-card-content {
  padding: 36px;
  border-radius: 0 0 25px 25px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    #10102a;
}

.server-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(73, 199, 255, 0.8), rgba(89, 82, 255, 0.85) 45%, rgba(190, 83, 255, 0.9));
  box-shadow: 0 18px 40px rgba(81, 66, 220, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 950;
}

.server-card-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.server-address-large {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.server-address-large > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.server-address-large small {
  margin-top: 4px;
  color: #9fdcff;
}

.server-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.server-card-grid div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.server-card-grid span,
.server-card-grid strong {
  display: block;
}

.server-card-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.server-card-grid strong {
  margin-top: 2px;
  font-size: 0.98rem;
}

.content-section {
  padding-block: 100px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.discord-section h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.steps-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

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

.step-card,
.feature-card,
.rules-panel,
.commands-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}

.step-card,
.feature-card {
  border-radius: var(--radius);
  padding: 28px;
}

.step-card {
  min-height: 225px;
}

.step-number {
  display: inline-flex;
  color: #8fdcff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.step-card h3,
.feature-card h3 {
  margin: 48px 0 8px;
  font-size: 1.3rem;
}

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

.inline-copy {
  border: 0;
  padding: 0;
  color: #92dfff;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  cursor: pointer;
}

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

.feature-card {
  min-height: 260px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--purple));
  box-shadow: 0 12px 28px rgba(96, 81, 255, 0.28);
  font-size: 1.1rem;
}

.feature-card h3 {
  margin-top: 38px;
}

.rules-panel {
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 46px);
}

.rules-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 24px;
}

.rules-list li {
  padding-left: 8px;
  color: var(--muted);
}

.rules-list strong {
  color: #fff;
}

.rules-list li::marker {
  color: var(--purple);
  font-weight: 900;
}

.rules-note {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

code {
  border: 1px solid rgba(139, 116, 255, 0.28);
  border-radius: 7px;
  padding: 0.12em 0.38em;
  color: #aee8ff;
  background: rgba(92, 80, 255, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.commands-grid article {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  border-radius: 18px;
  padding: 18px 20px;
}

.commands-grid code {
  flex: 0 0 auto;
  min-width: 155px;
  border: 0;
  padding: 0;
  color: #c3b2ff;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 900;
}

.commands-grid span {
  color: var(--muted);
}

.discord-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-block: 100px;
  padding: clamp(28px, 6vw, 60px);
  border: 1px solid rgba(160, 130, 255, 0.34);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(216, 93, 255, 0.24), transparent 18rem),
    linear-gradient(135deg, rgba(75, 95, 255, 0.18), rgba(145, 77, 255, 0.18)),
    rgba(18, 18, 48, 0.76);
  box-shadow: var(--shadow);
}

.discord-section p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
}

.discord-large {
  flex: 0 0 auto;
  min-width: 175px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  padding-block: 34px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer div:first-child {
  display: flex;
  flex-direction: column;
}

.site-footer strong {
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.footer-address {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.footer-address span,
.footer-address small {
  display: block;
}

.footer-address span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.footer-address small {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  padding: 12px 18px;
  border: 1px solid rgba(111, 244, 186, 0.28);
  border-radius: 12px;
  color: #effff8;
  background: rgba(14, 63, 44, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, 120px);
  opacity: 0;
  transition: 220ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: auto;
    padding-top: 80px;
  }

  .hero-card {
    max-width: 640px;
    transform: none;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }

  .step-card h3 {
    margin-top: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(calc(100% - 26px), var(--max));
  }

  .site-header {
    width: calc(100% - 20px);
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 10, 30, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    padding-top: 66px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .primary-button {
    flex-direction: column;
    gap: 4px;
  }

  .primary-button strong {
    border-left: 0;
    padding-left: 0;
  }

  .status-divider {
    display: none;
  }

  .status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-card-content {
    padding: 26px;
  }

  .feature-grid,
  .commands-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .commands-grid article {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .commands-grid code {
    min-width: 0;
  }

  .discord-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .discord-large {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    grid-column: auto;
  }
}

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

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