:root {
  --bg: #09060f;
  --panel: #161020;
  --purple: #9b5de5;
  --purple-light: #c994ff;
  --text: #f5f1fb;
  --muted: #a49cad;
  --line: rgba(255,255,255,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.noise {
  position: fixed; inset: 0; z-index: 20; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.glow { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .16; }
.glow-one { width: 420px; height: 420px; background: #7431c7; top: -180px; right: 8%; }
.glow-two { width: 300px; height: 300px; background: #49137d; bottom: -160px; left: -80px; }

.nav-wrap { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(9,6,15,.72); backdrop-filter: blur(18px); }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; }
.brand > span:last-child > span { color: var(--purple-light); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: linear-gradient(145deg, #bf83ff, #6e2bb2); clip-path: polygon(50% 0, 92% 26%, 82% 83%, 50% 100%, 17% 83%, 7% 26%); font-size: 17px; text-shadow: 0 1px 3px #3c0065; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: #bdb6c5; text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-discord { display: flex; align-items: center; gap: 8px; padding: 11px 17px; border: 1px solid rgba(201,148,255,.25); background: rgba(155,93,229,.1); border-radius: 8px; color: #e8d7fa; text-decoration: none; font-size: 13px; font-weight: 700; }
.nav-discord svg { width: 18px; fill: currentColor; }

.hero { min-height: 670px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; position: relative; padding-top: 55px; padding-bottom: 70px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #cbbdd9; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; margin-bottom: 22px; }
.eyebrow span { width: 7px; height: 7px; background: #a95dff; transform: rotate(45deg); box-shadow: 0 0 14px #a95dff; }
h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(55px, 7vw, 86px); line-height: .96; letter-spacing: -.06em; }
h1 em { font-style: normal; color: var(--purple-light); text-shadow: 0 0 38px rgba(174,99,255,.15); }
.lead { max-width: 550px; margin: 25px 0 31px; color: var(--muted); line-height: 1.75; font-size: 16px; }
.server-card { max-width: 580px; display: flex; align-items: center; padding: 12px 15px; background: rgba(24,17,34,.92); border: 1px solid rgba(185,122,255,.28); border-radius: 11px; box-shadow: 0 16px 45px rgba(0,0,0,.26); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.server-card:hover { transform: translateY(-2px); border-color: rgba(204,153,255,.6); background: #1b1227; }
.server-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; margin-right: 14px; border-radius: 8px; color: #d8abff; background: linear-gradient(145deg, rgba(172,91,255,.25), rgba(94,37,148,.18)); }
.server-icon svg { width: 25px; fill: currentColor; }
.server-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.server-info span { color: #908899; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.server-info strong { font-family: "Space Grotesk"; font-size: 19px; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; }
.copy-hint { display: flex; align-items: center; gap: 11px; margin-left: auto; padding-left: 15px; color: #7e7587; font-size: 11px; }
.copy-hint svg { width: 19px; fill: currentColor; }
.online-row { display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #8d8595; font-size: 12px; }
.online-row strong { color: #d5ccde; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #f0ae35; box-shadow: 0 0 10px currentColor; }
.status-dot.online { background: #42d389; }
.status-dot.offline { background: #ec5f73; }

.hero-visual { min-height: 530px; position: relative; display: grid; place-items: center; perspective: 800px; }
.server-logo { position: relative; z-index: 2; display: block; width: min(440px, 92%); max-height: 430px; object-fit: contain; filter: drop-shadow(0 30px 45px rgba(104,30,177,.42)); animation: float 5s ease-in-out infinite; }
.hero-visual:not(.has-logo) .server-logo { visibility: hidden; }
.hero-visual.has-logo .crystal { display: none; }
.crystal-halo { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(174,88,255,.28), rgba(85,29,139,.09) 45%, transparent 68%); filter: blur(8px); animation: pulse 4s ease-in-out infinite; }
.crystal { width: 230px; height: 330px; position: relative; filter: drop-shadow(0 35px 50px rgba(104,30,177,.42)); animation: float 5s ease-in-out infinite; }
.crystal-top { position: absolute; width: 100%; height: 45%; background: linear-gradient(140deg, #d5a7ff 0 18%, #9c55dc 19% 51%, #7030a2 52%); clip-path: polygon(50% 0, 100% 53%, 78% 100%, 22% 100%, 0 53%); }
.crystal-mid { position: absolute; top: 39%; width: 100%; height: 61%; background: linear-gradient(105deg, #632694 0 23%, #8e42c8 24% 52%, #4c1b76 53% 79%, #2f1149 80%); clip-path: polygon(22% 0, 78% 0, 90% 67%, 50% 100%, 10% 67%); }
.crystal-shine { position: absolute; top: 20%; left: 37%; width: 25px; height: 120px; transform: rotate(10deg); background: linear-gradient(to bottom, rgba(255,255,255,.55), transparent); filter: blur(2px); clip-path: polygon(20% 0, 100% 0, 45% 100%, 0 80%); }
.orbit { position: absolute; border: 1px solid rgba(197,137,255,.18); border-radius: 50%; transform: rotateX(68deg) rotateZ(-12deg); }
.orbit-one { width: 430px; height: 290px; animation: spin 12s linear infinite; }
.orbit-two { width: 520px; height: 390px; animation: spin 18s linear reverse infinite; }
.orbit i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #cf96ff; box-shadow: 0 0 14px #a94dff; margin: 30px 0 0 50px; }
.pixel { position: absolute; width: 9px; height: 9px; background: #7c35af; box-shadow: 0 0 16px #8e46bf; animation: float 3s ease-in-out infinite; }
.p1 { top: 22%; left: 13%; }.p2 { top: 34%; right: 9%; animation-delay: -.8s; transform: scale(.65); }
.p3 { bottom: 20%; left: 17%; animation-delay: -1.3s; transform: scale(.5); }.p4 { bottom: 15%; right: 20%; animation-delay: -2s; }

.join-section { position: relative; padding: 100px 0 110px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(30,18,43,.35), transparent); }
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading span { color: var(--purple-light); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 800; }
.section-heading h2 { margin: 9px 0 10px; font-family: "Space Grotesk"; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step { position: relative; min-height: 245px; padding: 30px; overflow: hidden; background: rgba(20,14,29,.74); border: 1px solid var(--line); border-radius: 12px; }
.step.featured { border-color: rgba(175,105,241,.3); background: linear-gradient(145deg, rgba(40,22,58,.94), rgba(21,14,30,.9)); }
.step-no { position: absolute; right: 20px; top: 13px; color: rgba(255,255,255,.035); font-family: "Space Grotesk"; font-weight: 700; font-size: 67px; }
.step-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 28px; background: rgba(159,84,226,.12); border: 1px solid rgba(189,124,249,.2); border-radius: 8px; color: #c58afa; font-size: 19px; }
.step h3 { position: relative; margin: 0 0 12px; font-size: 17px; }
.step p { position: relative; color: #91899a; font-size: 13px; line-height: 1.7; margin: 0; }
.step b { color: #c6a3e7; font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 29px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #716a79; font-size: 11px; }
.footer-inner .brand { font-size: 14px; }
.footer-inner .brand-mark { width: 29px; height: 29px; font-size: 12px; }
.toast { position: fixed; z-index: 30; bottom: 25px; left: 50%; transform: translate(-50%, 25px); padding: 13px 19px; border: 1px solid rgba(187,124,247,.4); background: #20132e; color: #eadcf7; border-radius: 8px; box-shadow: 0 12px 40px #0008; opacity: 0; pointer-events: none; transition: .28s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
@keyframes pulse { 0%,100% { transform: scale(.95); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes spin { to { transform: rotateX(68deg) rotateZ(348deg); } }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 85px; }
  .hero-copy { display: flex; align-items: center; flex-direction: column; }
  .eyebrow { justify-content: center; }
  .hero-visual { min-height: 430px; }
  .crystal { transform: scale(.82); }
  .orbit-one { width: 360px; }.orbit-two { width: 430px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 210px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav { height: 70px; }
  .nav-discord { display: none; }
  h1 { font-size: 51px; }
  .hero { padding-top: 65px; gap: 10px; }
  .lead { font-size: 14px; }
  .server-card { width: 100%; text-align: left; }
  .server-info strong { font-size: 15px; }
  .desktop-copy { display: none; }
  .hero-visual { min-height: 390px; transform: scale(.88); }
  .join-section { padding: 75px 0; }
  .mojang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
