@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Stack+Sans+Text:wght@400;600;700;800;900&display=swap');

/* Theme variables and base styles */
:root {
  --bg: #16171a;
  --primary-color: var(--mode-color, var(--accent));
  --content-bg: color-mix(in srgb, var(--bg) 100%, white 3%);
  --content-bg-secondary: color-mix(in srgb, var(--bg) 20%, white 5%);
  --content-dark: #111214;
  --border: #303136;
  --title: #fff;
  --text: #bdbdbd;
  --accent: #fbcc46;
  --discord: #7780ff;
  --button: var(--primary-color);
  --button-light: color-mix(in srgb, var(--button) 30%, white 35%);
  --button-dark: color-mix(in srgb, var(--button) 20%, black 25%);
  --button-base: #313235 !important;
  --button-base-light: color-mix(in srgb, var(--button-base) 30%, white 10%);
  --button-base-dark: color-mix(in srgb, var(--button-base) 20%, white 2%);
  --button-primary: var(--accent);
  --button-primary-text: color-mix(in srgb, var(--button-primary) 65%, black 65%);
  --button-primary-shadow: color-mix(in srgb, var(--button-primary) 100%, #fff 50%);
  --button-primary-light: color-mix(in srgb, var(--button-primary) 30%, white 65%);
  --button-primary-dark: color-mix(in srgb, var(--button-primary) 20%, black 25%);
  --button-discord-light: color-mix(in srgb, var(--discord) 50%, white 35%);
  --button-discord-dark: color-mix(in srgb, var(--discord) 20%, black 25%);
  color-scheme: dark;
}
.server-picker-button img {
    margin-right: 10px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 "Stack Sans Text", system-ui, sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-inline: 30px;
}

/* Primary navigation */
.xf-header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.xf-nav {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr 310px 1fr;
  align-items: center;
  gap: 60px;
}

.xf-nav-side {
  display: flex;
  align-items: center;
  gap: 15px;
}

.xf-nav-right {
  justify-content: flex-end;
}

.xf-logo {
  position: relative;
  top: 3px;
  align-self: center;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.xf-logo::after {
  content: "";
  position: absolute;
  inset: 20% -20% -25%;
  background: radial-gradient(ellipse at center bottom, color-mix(in srgb, var(--mode-color, var(--accent)) 30%, transparent), transparent 68%);
  opacity: .35;
  pointer-events: none;
}

.xf-logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 285px;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.xf-logo span {
    position: absolute;
    z-index: 2;
    bottom: -11px;
    color: var(--mode-color, var(--accent));
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.xf-nav-link, .button {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--button-base);
  color: var(--title);
  font-family: "Bowlby One SC", sans-serif;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .1);
  box-shadow: inset 2px 2px 0 var(--button-base-light), inset -2px -2px 0 var(--button-base-dark), 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  transition: opacity .18s ease, transform .18s ease;
  cursor: pointer;
}

.xf-nav-link {
  height: 50px;
  min-height: 50px;
  padding: 0 16px;
  font-size: 14px;
}

.xf-nav-link:hover, .button:hover {
  opacity: .78;
}

.xf-nav-link.active {
  background: var(--button-primary);
  color: var(--button-primary-text);
  text-shadow: 0 2px 0 var(--button-primary-shadow);
  box-shadow: inset 2px 2px 0 var(--button-primary-light), inset -2px -2px 0 var(--button-primary-dark), 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.button.primary {
  background: var(--button-primary);
  color: var(--button-primary-text);
  text-shadow: 0 2px 0 var(--button-primary-shadow);
  box-shadow: inset 2px 2px 0 var(--button-primary-light), inset -2px -2px 0 var(--button-primary-dark), 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.xf-nav-link.discord {
  background: var(--discord);
  box-shadow: inset 3px 3px 0 var(--button-discord-light), inset -3px -3px 0 var(--button-discord-dark), 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.mobile-trigger {
  display: none;
  width: 48px;
  padding: 0;
  font-size: 23px;
}

/* Server navigation */
.xf-subnav {
  position: relative;
  z-index: 15;
  height: 56px;
  background: var(--content-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

.xf-subnav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.server-picker {
  position: relative;
  justify-self: start;
  height: 100%;
  display: flex;
  align-items: center;
}

.server-picker-button {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.server-picker-button img, .server-menu img {
  width: 28px;
  height: 28px;
  padding: 0;
  object-fit: cover;
  background: var(--content-bg);
  border-radius: 8px;
}

.chevron {
  width: 15px;
  transition: transform .2s ease;
}

.server-picker.open .chevron {
  transform: rotate(180deg);
}

.server-menu {
  position: absolute;
  left: 0;
  top: 48px;
  min-width: 215px;
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.server-picker.open .server-menu {
  display: block;
}

.server-menu-title {
  margin: 0;
  padding: 8px 10px;
  color: #999;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.server-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.server-menu a:hover {
  background: #242529;
  color: #fff;
}

.server-status {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #16171a;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.server-status .online {
  color: #93e15b;
}

.subnav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  height: 100%;
}

.subnav-links a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-left: 1px solid var(--border);
  color: #aaa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.subnav-links a:last-child {
  border-right: 1px solid var(--border);
}

.subnav-links a:hover {
  color: #fff;
}

/* Landing-page content */
main {
  position: relative;
  z-index: 2;
}

.hero {
  padding: 30px 0 0;
  background: none;
}

.hero-inner {
  width: min(calc(100% - 60px), 1220px);
  min-height: 380px;
  margin: 0 auto;
  padding: 55px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(105deg, #1e1f22 0%, #1b1c1f 62%, color-mix(in srgb, var(--mode-color, var(--accent)) 14%, #16171a) 100%);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .08);
  text-align: left;
}

.hero-inner::before {
  content: "";
  position: absolute;
  right: 4%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--mode-image) center/72% no-repeat, radial-gradient(circle, color-mix(in srgb, var(--mode-color, var(--accent)) 23%, transparent), transparent 68%);
  opacity: .92;
}

.hero-inner>* {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-inner.hero-centered {
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--mode-color, var(--accent)) 12%, #1e1f22), #1b1c1f 70%);
}

.hero-inner.hero-centered::before {
  display: none;
}

.hero-inner.hero-centered>* {
  max-width: 820px;
}

.hero-inner.hero-centered .cta-row {
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mode-color, var(--accent));
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--title);
}

h1, h2 {
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: .5px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
}

h3 {
  font-size: 17px;
}

.lede {
  max-width: 680px;
  margin: 0 0 25px;
  color: #d0d0d0;
  font-size: 17px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

.button.secondary {
  background: var(--button-base);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .1);
  box-shadow: inset 3px 3px 0 var(--button-base-light), inset -3px -3px 0 var(--button-base-dark), 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.copy-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  min-height: 38px;
  margin: 16px 0 0;
  padding: 8px 13px 8px 11px;
  border: 1px solid color-mix(in srgb, var(--mode-color) 32%, var(--border));
  border-left: 3px solid var(--mode-color);
  border-radius: 4px;
  background: color-mix(in srgb, var(--mode-color) 7%, var(--content-bg-secondary));
  color: #d5d5d5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.copy-status::before {
  content: "SERVER";
  color: var(--mode-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ip-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.ip-lines .copy-status {
  margin: 0;
}

main>section {
  width: min(calc(100% - 60px), 1220px);
  margin: 0 auto;
  padding: 50px 0 0;
}

.section-intro {
  max-width: 760px;
  margin: -2px 0 24px;
  color: var(--text);
}

.feature-overview {
  text-align: center;
}

.feature-overview .section-intro {
  margin-inline: auto;
}

.feature-overview .card {
  text-align: center;
}

.feature-overview .card.card-with-icon {
  text-align: left;
}

.facts, .features, .server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--content-bg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .05);
}

.card h3 {
  margin: 0 0 7px;
}

.card p {
  margin: 0;
  color: var(--text);
}

.card-with-icon {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card-with-icon>div {
  min-width: 0;
}

.card-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--mode-color) 5%, var(--content-dark));
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .24));
}

.card-icon.network-icon {
  padding: 10px;
}

.card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, translate .2s ease;
}

.card-link:hover {
  border-color: color-mix(in srgb, var(--mode-color) 70%, var(--border));
  background: color-mix(in srgb, var(--mode-color) 6%, var(--content-bg));
  translate: 0 -2px;
}

.more-servers {
  text-align: center;
}

.server-grid .card {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 18px;
  color: #fff;
  font-weight: 800;
}

.server-grid .card-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  padding: 5px;
  border-radius: 7px;
}

.label {
  color: #8f9095!important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.value {
  overflow-wrap: anywhere;
  color: #fff!important;
  font-size: 17px;
  font-weight: 800;
}

.facts .card {
  position: relative;
  padding: 24px;
  border-top: 2px solid color-mix(in srgb, var(--mode-color, var(--accent)) 55%, var(--border));
}

.faq {
  padding-bottom: 70px;
}

.faq details {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--content-dark);
  overflow: hidden;
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  font-size: 20px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text);
}

.faq a {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
.xf-footer {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  background: #1e1f22;
}

.footer-cols {
  display: flex;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 0;
}

.footer-col h2 {
  margin: .67em 0;
  font-family: "Stack Sans Text", sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: none;
}

.footer-col p {
  max-width: 330px;
  margin: 0;
  font-size: 14px;
  line-height: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a, .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer-links a:hover, .social-links a:hover {
  opacity: .65;
}

.button.footer-email {
  width: 100%;
  max-width: 387px;
  min-height: 56px;
  margin-top: 25px;
  background: var(--button);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .1);
  box-shadow: inset 3px 3px 0 var(--button-light), inset -3px -3px 0 var(--button-dark), 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  opacity: .65;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  padding: 0;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Tablet navigation */
@media(max-width:1050px) {
  .xf-nav {
    grid-template-columns: 1fr 235px 1fr;
    gap: 20px
  }

  .xf-nav-side {
    gap: 8px
  }

  .xf-nav-link {
    padding-inline: 11px;
    font-size: 11px
  }

  .xf-logo img {
    width: 225px
  }

  .hero-inner>* {
    max-width: 62%
  }

}

/* Mobile layout */
@media(max-width:768px) {
  .container {
    padding-inline: 20px
  }

  .xf-nav {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .mobile-trigger {
    display: inline-flex;
    position: absolute;
    top: 31px;
    right: 20px;
    left: auto;
    z-index: 2;
    width: 48px !important;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 24px !important;
  }

  .xf-logo {
    order: 1;
    flex: 0 0 72px;
    align-self: flex-start;
    height: 72px;
    margin: 20px 0;
  }

  .xf-logo img {
    width: 225px;
  }

  .xf-logo span {
    bottom: 0;
    font-size: 10px;
  }

  .xf-nav-side {
    display: none;
    position: static;
    width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: transparent;
    border: 0;
  }

  .xf-nav-left {
    order: 2;
    padding-top: 20px;
  }

  .xf-nav-right {
    order: 3;
    padding: 8px 0 20px;
  }

  .xf-nav.menu-open .xf-nav-side {
    display: flex;
  }

  .xf-nav-link {
    width: 100%;
  }

  .xf-subnav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .xf-subnav-inner>* {
    min-width: 0
  }

  .subnav-links {
    display: flex;
  }

  .subnav-links a {
    padding: 0 20px;
  }

  .server-picker-button {
    max-width: 100%;
    font-size: 9px;
    letter-spacing: 1px
  }

  .server-status {
    display: none;
  }

  .hero {
    padding-top: 20px
  }

  .hero-inner {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 250px 25px 32px;
    justify-content: flex-start
  }

  .hero-inner.hero-centered {
    padding: 48px 25px;
    justify-content: center
  }

  .hero-inner>* {
    max-width: 100%
  }

  .hero-inner::before {
    top: 20px;
    right: 50%;
    translate: 50% 0;
    width: 205px;
    height: 205px
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.3rem)
  }

  .lede {
    font-size: 15px
  }

  .cta-row, .button {
    width: 100%
  }

  main>section {
    width: calc(100% - 40px);
    padding-top: 35px
  }

  .facts, .features, .server-grid, .footer-cols {
    grid-template-columns: 1fr
  }

  .facts, .features, .server-grid {
    gap: 15px
  }

  .card-with-icon {
    gap: 14px
  }

  .card-with-icon>.card-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px
  }

  .server-grid .card-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px
  }

  .footer-cols {
    gap: 32px;
    flex-direction: column
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column
  }

}
