:root {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.14);
  /* RU flag */
  --ru-white: #ffffff;
  --ru-blue: #0039a6;
  --ru-red: #d52b1e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}

body {
  background: #050608;
  color: var(--ink);
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---------- Full-bleed cinematic background ---------- */
.stage {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bg {
  position: absolute;
  inset: 0;
  background-image: url('background.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  /*animation: drift 26s ease-in-out infinite alternate;*/
  filter: brightness(0.8) grayscale(1);
}
@keyframes drift {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, -1.5%);
  }
}

/* readability + flag-tinted depth */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 8, 0.55) 0%,
      rgba(5, 6, 8, 0.2) 35%,
      rgba(5, 6, 8, 0.78) 100%
    ),
    radial-gradient(120% 80% at 50% 120%, rgba(0, 57, 166, 0.28) 0%, transparent 55%);
}

/* hairline tricolor seam at the very top */
.tricolor {
  position: absolute;
  display: none;
  z-index: 3;
  bottom: 0;
  height: 10px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--ru-white) 0 33.33%,
    var(--ru-blue) 33.33% 66.66%,
    var(--ru-red) 66.66% 100%
  );
  flex: 0 0 auto;
}

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.logo {
  height: clamp(5.2rem, 10vw, 7.2rem);
  width: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6));
  margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem);
}

.eyebrow {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: clamp(0.62rem, 1.1vw, 0.74rem);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ru-red);
  box-shadow: 0 0 10px var(--ru-red);
}

h1 {
  font-weight: 200;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(2.7rem, 8vw, 6.2rem);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
h1 .em {
  font-weight: 700;
}

.lede {
  margin: 1.6rem auto 0;
  max-width: 70rem;
  font-weight: 300;
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.lede strong {
  font-weight: 500;
}

.next {
  margin: 1.1rem auto 0;
  max-width: 60rem;
  font-size: clamp(0.86rem, 1.2vw, 0.96rem);
  line-height: 1.55;
  color: var(--muted);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* ---------- Actions ---------- */
.actions {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.94rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  backdrop-filter: blur(2px);
}
/* primary = RU red, play US setting */
.btn-primary {
  background: var(--ru-red);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(213, 43, 30, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 12px 34px rgba(213, 43, 30, 0.5);
}
/* secondary = RU blue, VK */
.btn-vk {
  background: var(--ru-blue);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(0, 57, 166, 0.3);
}
.btn-vk:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 12px 34px rgba(0, 57, 166, 0.45);
}

.signoff {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Entrance ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.logo {
  animation-delay: 0.05s;
}
.eyebrow {
  animation-delay: 0.16s;
}
h1 {
  animation-delay: 0.26s;
}
.lede {
  animation-delay: 0.38s;
}
.next {
  animation-delay: 0.46s;
}
.actions {
  animation-delay: 0.56s;
}
.signoff {
  animation-delay: 0.66s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  .bg {
    animation: none !important;
    transition: none !important;
  }
  .bg {
    transform: scale(1.04);
  }
}

@media (max-width: 600px) {
  body {
    overflow: auto;
  }
  .stage {
    min-height: 100vh;
    height: auto;
  }
  .actions {
    flex-direction: column;
    width: 100%;
    max-width: 22rem;
  }
  .btn {
    justify-content: center;
  }
}
