:root {
  --botv-red: #d7002b;
  --botv-dark-red: #2e1313;
  --botv-white: #ffffff;
  --botv-black: #050505;
  --text-muted: rgba(255, 255, 255, 0.82);
  --text-soft: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  color: var(--botv-white);
  background:
    radial-gradient(70rem 45rem at 12% 8%, rgba(215, 0, 43, 0.2) 0%, transparent 58%),
    radial-gradient(50rem 40rem at 88% 86%, rgba(46, 19, 19, 0.52) 0%, transparent 60%),
    linear-gradient(130deg, #050505 0%, #0a0a0a 50%, #060606 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 100% 40px;
  pointer-events: none;
  opacity: 0.16;
}

.lang-switch {
  position: fixed;
  top: clamp(0.8rem, 1.8vw, 1.2rem);
  right: clamp(0.8rem, 2vw, 1.4rem);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 14, 0.68);
  backdrop-filter: blur(8px);
}

.lang-btn {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--botv-white);
  background: transparent;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--botv-red);
  box-shadow: 0 8px 18px rgba(215, 0, 43, 0.36);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--botv-white);
  outline-offset: 2px;
}

.hero {
  min-height: calc(100vh - 132px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(1.2rem, 4vw, 3.4rem) clamp(1rem, 5vw, 4rem) 0;
}

.hero-content {
  width: min(960px, 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 440ms ease, transform 440ms ease;
}

body.is-ready .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  display: block;
  width: clamp(185px, 34vw, 330px);
  height: auto;
  margin: 0 auto;
}

h1 {
  margin: clamp(1rem, 2.8vw, 2rem) 0 0;
  font-size: clamp(1.7rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.subtitle {
  margin: clamp(0.8rem, 1.8vw, 1.1rem) auto 0;
  max-width: 38ch;
  font-size: clamp(1.02rem, 2.2vw, 1.4rem);
  line-height: 1.48;
  color: var(--text-muted);
}

.discord-btn {
  margin-top: clamp(1.3rem, 2.4vw, 2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.88rem 1.45rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--botv-white);
  background: linear-gradient(145deg, var(--botv-red), #b30024);
  box-shadow: 0 14px 36px rgba(215, 0, 43, 0.34);
  text-decoration: none;
  font-size: clamp(0.96rem, 1.9vw, 1rem);
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(215, 0, 43, 0.42);
  filter: brightness(1.06);
}

.discord-btn:focus-visible,
.site-footer a:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--botv-white);
  outline-offset: 3px;
}

.site-footer {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.1rem, 2.2vw, 1.7rem) 0 clamp(1.2rem, 2.6vw, 2rem);
  text-align: center;
}

.site-footer p {
  margin: 0.2rem 0;
  font-size: clamp(0.77rem, 1.55vw, 0.92rem);
  line-height: 1.45;
  color: var(--text-soft);
}

.site-footer a,
.back-link {
  display: inline-block;
  margin-top: 0.66rem;
  color: var(--botv-white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.18em;
}

.legal-page {
  padding: clamp(1.1rem, 3vw, 2.4rem);
}

.legal-wrap {
  width: min(860px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 440ms ease, transform 440ms ease;
}

body.is-ready .legal-wrap {
  opacity: 1;
  transform: translateY(0);
}

.legal-wrap .logo {
  margin: 0;
}

.legal-wrap h1 {
  margin-top: 1.2rem;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
}

.legal-wrap h2 {
  margin: 1.7rem 0 0.5rem;
  font-size: clamp(1.04rem, 2.3vw, 1.35rem);
}

.legal-wrap p {
  margin: 0.45rem 0;
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
  line-height: 1.62;
  color: var(--text-muted);
}

@media (max-width: 540px) {
  .hero {
    min-height: calc(100vh - 162px);
  }

  .lang-btn {
    min-width: 40px;
    min-height: 34px;
    padding: 0 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .legal-wrap,
  .discord-btn {
    transition: none;
  }

  .discord-btn:hover {
    transform: none;
  }
}
