:root {
  color-scheme: dark;
  --bg: #061314;
  --bg-2: #0a1f20;
  --panel: #10292a;
  --panel-2: #152f2f;
  --text: #f2fbfa;
  --muted: #a6c4c1;
  --line: rgba(130, 241, 234, 0.22);
  --cyan: #48f3e9;
  --cyan-2: #11a9a2;
  --red: #ff4f45;
  --gold: #f1c66d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(72, 243, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 243, 233, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(255, 79, 69, 0.18), transparent 27rem),
    linear-gradient(180deg, #061314 0%, #071819 45%, #0e1515 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(4, 15, 16, 0.78);
  border-bottom: 1px solid rgba(72, 243, 233, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #021213;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(72, 243, 233, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav a:hover {
  color: var(--text);
}

.copy-ip,
.secondary {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(8, 25, 26, 0.78);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.copy-ip:hover,
.secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 243, 233, 0.62);
}

.compact {
  min-width: 96px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #52fff3, #14aaa4);
  color: #031414;
  border: 0;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(72, 243, 233, 0.22);
}

.primary strong {
  color: #052121;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 122px clamp(18px, 5vw, 64px) 58px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/soulless-gate.svg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 11, 12, 0.96) 0%, rgba(2, 11, 12, 0.76) 34%, rgba(2, 11, 12, 0.16) 72%),
    linear-gradient(180deg, rgba(2, 11, 12, 0.26) 0%, rgba(2, 11, 12, 0.2) 58%, #061314 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.server-line {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 12vw, 8.7rem);
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.36), 0 0 40px rgba(72, 243, 233, 0.26);
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 28px;
  color: #d4eeeb;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 640px;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-facts div {
  padding: 16px;
  background: rgba(7, 23, 24, 0.78);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-size: 1rem;
  font-weight: 900;
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-section,
.feature-section,
.rules-section,
.join-section {
  padding: clamp(56px, 9vw, 108px) 0;
}

.split,
.rules-layout,
.join-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.rules-layout {
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  align-items: start;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-section p,
.section-heading p,
.rules-layout p,
.join-band p {
  color: var(--muted);
  font-size: 1.08rem;
}

.ip-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 41, 42, 0.92), rgba(6, 20, 21, 0.92));
  box-shadow: var(--shadow);
}

.ip-panel span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
}

.feature-section {
  background: linear-gradient(180deg, rgba(13, 36, 37, 0.68), rgba(6, 19, 20, 0.2));
  border-block: 1px solid rgba(72, 243, 233, 0.12);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(72, 243, 233, 0.16);
  border-radius: 8px;
  background: rgba(8, 24, 25, 0.8);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  background: rgba(72, 243, 233, 0.12);
  border: 1px solid rgba(72, 243, 233, 0.34);
  color: var(--cyan);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 950;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.feature-grid h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.feature-grid p,
.rules-list {
  color: var(--muted);
}

.rules-groups {
  display: grid;
  gap: 28px;
}

.rule-group {
  padding: 22px;
  border: 1px solid rgba(72, 243, 233, 0.16);
  border-radius: 8px;
  background: rgba(8, 24, 25, 0.66);
}

.rule-group h3 {
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 1.08rem;
  text-transform: uppercase;
}

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

.rules-list li {
  padding-left: 6px;
  font-size: 0.96rem;
}

.rules-list strong {
  color: var(--text);
}

.join-band {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(72, 243, 233, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(72, 243, 233, 0.12), rgba(255, 79, 69, 0.12)),
    rgba(9, 27, 28, 0.9);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid rgba(72, 243, 233, 0.14);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 12px 16px;
  border: 1px solid rgba(72, 243, 233, 0.46);
  border-radius: 6px;
  background: #092223;
  color: var(--text);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 108px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 11, 12, 0.78) 0%, rgba(2, 11, 12, 0.46) 42%, #061314 100%),
      linear-gradient(90deg, rgba(2, 11, 12, 0.88), rgba(2, 11, 12, 0.24));
  }

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

  .primary {
    flex-direction: column;
    gap: 2px;
    min-height: 62px;
  }

  .quick-facts,
  .split,
  .rules-layout,
  .join-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: unset;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .compact {
    min-width: 84px;
    padding-inline: 12px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
