:root {
  --text-main: #f7fbff;
  --text-soft: rgba(241, 246, 255, 0.92);
  --card-top: rgba(7, 18, 30, 0.5);
  --card-bottom: rgba(5, 12, 22, 0.4);
  --lang-shell: rgba(5, 16, 28, 0.6);
  --chip-bg: rgba(255, 255, 255, 0.09);
  --chip-border: rgba(255, 255, 255, 0.27);
  --accent-blue: #7dc8f5;
  --accent-sand: #f0c47a;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  padding: clamp(16px, 3vw, 30px) 16px 10px;
  overflow-x: hidden;
}

.background,
.overlay {
  position: fixed;
  inset: 0;
}

.background {
  z-index: -4;
  background: url('bg.jpg') center center / cover no-repeat;
  transform: scale(1.04);
}

.overlay {
  z-index: -3;
  background:
    linear-gradient(155deg, rgba(5, 10, 18, 0.2), rgba(3, 7, 12, 0.7)),
    radial-gradient(
      circle at 12% 14%,
      rgba(255, 255, 255, 0.2),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 22%,
      rgba(125, 200, 245, 0.22),
      transparent 40%
    );
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
}

body::before {
  width: clamp(180px, 28vw, 340px);
  height: clamp(180px, 28vw, 340px);
  top: -80px;
  left: -90px;
  background: radial-gradient(
    circle,
    rgba(125, 200, 245, 0.42),
    transparent 68%
  );
  animation: floatOne 15s ease-in-out infinite;
}

body::after {
  width: clamp(220px, 30vw, 380px);
  height: clamp(220px, 30vw, 380px);
  right: -130px;
  bottom: -110px;
  background: radial-gradient(
    circle,
    rgba(240, 196, 122, 0.35),
    transparent 70%
  );
  animation: floatTwo 18s ease-in-out infinite;
}

.landing {
  position: relative;
  width: min(780px, 100%);
  margin: auto 0;
  text-align: center;
  background: linear-gradient(145deg, var(--card-top), var(--card-bottom));
  border-radius: 24px;
  backdrop-filter: blur(8px) saturate(1.08);
  padding: clamp(18px, 3vw, 30px) clamp(14px, 2.8vw, 30px)
    clamp(22px, 3.4vw, 36px);
  box-shadow:
    0 28px 62px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  animation: cardEnter 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    130deg,
    rgba(125, 200, 245, 0.78),
    rgba(255, 255, 255, 0.22) 40%,
    rgba(240, 196, 122, 0.6)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.landing::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-sand));
  opacity: 0.95;
}

.language-switcher {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  border-radius: 999px;
  background: var(--lang-shell);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.lang-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  cursor: pointer;
  font-size: 1.25rem;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.26);
  outline: none;
}

.lang-btn.active {
  background:
    radial-gradient(
      circle at 50% 15%,
      rgba(255, 255, 255, 0.45),
      transparent 60%
    ),
    linear-gradient(
      155deg,
      rgba(125, 200, 245, 0.48),
      rgba(240, 196, 122, 0.45)
    );
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.logo {
  width: min(300px, 78vw);
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
  padding: 6px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 34px rgba(255, 255, 255, 0.36),
    0 0 0 5px rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 1);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: 'Lexend', 'Manrope', sans-serif;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.content {
  max-width: 640px;
  margin: 0 auto;
}

.info-line {
  margin: 0;
  line-height: 1.55;
  font-size: clamp(1.03rem, 2.35vw, 1.28rem);
  color: var(--text-soft);
  opacity: 0;
  animation: fadeUp 680ms ease forwards;
}

.info-line:nth-of-type(1) {
  font-weight: 700;
  color: var(--text-main);
  animation-delay: 140ms;
}

.info-line:nth-of-type(2) {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(125, 200, 245, 0.16);
  border: 1px solid rgba(125, 200, 245, 0.5);
  color: #ebf8ff;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation-delay: 230ms;
}

.info-line:nth-of-type(3) {
  margin-top: 18px;
  animation-delay: 320ms;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  opacity: 0;
  animation: fadeUp 680ms ease forwards;
  animation-delay: 430ms;
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.46);
  outline: none;
}

footer {
  width: 100%;
  text-align: center;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  padding: 12px 0 4px;
  color: rgba(246, 250, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(16px, 10px);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-14px, -12px);
  }
}

@media (max-width: 620px) {
  .landing {
    border-radius: 18px;
    padding: 16px 12px 20px;
  }

  .landing::after {
    left: 14px;
    right: 14px;
  }

  .language-switcher {
    margin-bottom: 14px;
  }

  .lang-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  h1 {
    letter-spacing: 0.09em;
  }

  .contact a {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
