:root {
  --accent: #fa253c;
  --card: #272a31;
  --base-3: #ffffff;
  --hover-red: #e61332;
  --font: "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--card);
  color: var(--base-3);
  font: 400 16px/2 var(--font);
}

@media (max-width: 768px) {
  body {
    line-height: 2rem;
  }
}

/* Hero: video, 50% black overlay, centered content */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 16px;
  overflow: hidden;
  background: #000 url("../video/hero-poster.jpg") center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  text-align: center;
}

.logo {
  display: block;
  width: auto;
  height: 80px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 20px;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.tagline {
  margin: 0 0 30px;
  font-size: 20px;
}

.intro {
  margin: 0 0 24px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

/* Buttons: port of the GenerateBlocks styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--base-3);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  line-height: inherit;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover,
.btn:focus,
.btn:active {
  color: var(--hover-red);
}

.btn--primary {
  display: flex;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--accent);
}

.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active {
  background: var(--card);
  color: var(--accent);
}

.btn:focus-visible {
  outline: 2px solid var(--base-3);
  outline-offset: 2px;
}

/* Language switcher */
.lang {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.lang .btn {
  padding: 4px 10px;
}

.lang .btn[aria-pressed="true"] {
  color: var(--accent);
}

/* Show only the active language */
html[lang="uk"] .t[lang="en"],
html[lang="en"] .t[lang="uk"] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}
