:root {
  color-scheme: dark;
  --black: #080808;
  --orange: #ff7900;
  --white: #ffffff;
  --muted: #a3a3a3;
  --line: #262626;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  line-height: 1.7;
}

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

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

::selection {
  background: var(--orange);
  color: var(--black);
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 14px;
  left: 14px;
  padding: 9px 13px;
  transform: translateY(-160%);
  background: var(--orange);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-main {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 64px 24px 76px;
  isolation: isolate;
}

.landing-main::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(80vw, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(255 121 0 / 9%) 0,
    rgb(255 121 0 / 4%) 32%,
    transparent 70%
  );
  content: "";
  pointer-events: none;
}

.landing-content {
  width: min(100%, 1160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(39px, 7vh, 70px);
}

.brand-image {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover .brand-image {
  transform: scale(1.04);
  filter: drop-shadow(0 0 8px rgb(255 121 0 / 28%));
}

.brand-name {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.brand-name span {
  color: var(--orange);
}

.page-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(27px, 7.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.03;
  white-space: nowrap;
}

.page-subtitle {
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 17px);
  letter-spacing: 0.015em;
}

.discord-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  padding: 0 23px;
  border: 1px solid var(--orange);
  border-radius: 3px;
  background: var(--orange);
  box-shadow: 0 0 0 rgb(255 121 0 / 0%);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  transition:
    box-shadow 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.discord-button:hover {
  transform: translateY(-2px);
  background: #ff8a1f;
  box-shadow: 0 0 28px rgb(255 121 0 / 27%);
}

.discord-button:active {
  transform: translateY(0);
}

.discord-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.discord-button:hover svg {
  transform: translate(2px, -2px);
}

.site-footer {
  width: min(100% - 64px, 1160px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.copyright {
  margin: 0;
  color: #8d8d8d;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-contact-label {
  color: #777777;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact-link {
  color: #b4b4b4;
  font-size: 11px;
  transition: color 160ms ease;
}

.footer-contact-link:hover {
  color: var(--orange);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.footer-links a {
  color: #b4b4b4;
  font-size: 11px;
  transition: color 160ms ease;
}

.footer-links a:hover,
.legal-back:hover,
.legal-nav a:hover {
  color: var(--orange);
}

.js-ready .reveal {
  animation: rise-in 780ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.js-ready .brand {
  animation-delay: 60ms;
}

.js-ready .page-title {
  animation-delay: 150ms;
}

.js-ready .page-subtitle {
  animation-delay: 250ms;
}

.js-ready .discord-button {
  animation-delay: 350ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legal pages */
.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  width: min(100% - 48px, 940px);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legal-brand .brand-image {
  width: 36px;
  height: 36px;
}

.legal-brand .brand-name {
  font-size: 12px;
}

.legal-back,
.legal-nav a {
  color: #b4b4b4;
  font-size: 11px;
  transition: color 160ms ease;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.legal-main {
  width: min(100% - 48px, 780px);
  flex: 1;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 105px) 0 100px;
}

.legal-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.legal-title {
  margin: 0;
  font-size: clamp(38px, 7vw, 62px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.legal-updated {
  margin: 17px 0 35px;
  color: var(--muted);
  font-size: 12px;
}

.legal-intro {
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.85;
}

.legal-section {
  margin: 0 0 32px;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section li {
  color: #b7b7b7;
  font-size: 13px;
  line-height: 1.9;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-section li {
  padding-left: 4px;
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgb(255 121 0 / 45%);
  text-underline-offset: 3px;
}

.legal-section a:hover {
  text-decoration-color: currentColor;
}

.legal-nav {
  display: flex;
  gap: 20px;
}

.not-found-main {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 54px 24px;
  text-align: center;
}

.not-found-content h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 66px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.not-found-content p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.not-found-content .discord-button {
  min-height: 46px;
  font-size: 10px;
}

@media (max-width: 600px) {
  .landing-main {
    padding: 54px 16px 58px;
  }

  .landing-main::before {
    width: 115vw;
  }

  .brand {
    gap: 10px;
    margin-bottom: 42px;
  }

  .brand-image {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 13px;
  }

  .page-title {
    font-size: clamp(24px, 7.25vw, 43px);
    letter-spacing: -0.075em;
  }

  .page-subtitle {
    margin: 18px 0 28px;
  }

  .discord-button {
    min-height: 51px;
    padding-inline: 19px;
    font-size: 10px;
  }

  .site-footer {
    width: calc(100% - 36px);
  }

  .footer-inner {
    min-height: 84px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
  }

  .footer-links {
    gap: 20px;
  }

  .legal-header-inner {
    width: calc(100% - 36px);
    min-height: 68px;
  }

  .legal-main {
    width: calc(100% - 36px);
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .legal-title {
    font-size: 42px;
  }

  .legal-intro {
    font-size: 14px;
  }

  .legal-section {
    margin-bottom: 28px;
  }

  .legal-section h2 {
    font-size: 15px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 12px;
  }

  .legal-nav {
    gap: 12px;
  }

  .legal-nav a,
  .legal-back {
    font-size: 10px;
  }
}

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