:root {
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Rounded",
    "Nunito Sans", "Arial Rounded MT Bold", Arial, "Helvetica Neue",
    sans-serif;

  --ink: #163456;
  --ink-soft: #2b4f73;

  --banner-blue: #33d1ed;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-display);
  color: var(--ink);
  background-color: #bfe9fb;
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

a {
  font-family: inherit;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__world {
  flex: 1 1 auto;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.brand {
  margin: 0;
  display: flex;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: clamp(190px, 42vw, 340px);
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(10, 40, 20, 0.35));
}

.hero__banner {
  position: relative;
  background: var(--banner-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.3rem;
  padding: 0.1rem 1.25rem 2.25rem;
}

.hero__banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -55px;
  height: 56px;
  background-image: url("assets/banner-top-curve.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__banner::before {
    top: -89px;
    height: 90px;
  }
}

.tagline {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
}

@keyframes buttonHover {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.9rem 1.875rem;
  border-radius: 999px;
  border: 5px solid #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 -1px 0 rgba(0, 0, 0, 0.35),
    1px 0 0 rgba(0, 0, 0, 0.35),
    -1px 0 0 rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.35);
  background-color: var(--btn-base);
  background-image: var(--btn-texture);
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 8px 10px rgba(3, 60, 21, 0.3);
}

.btn:hover {
  animation: buttonHover 0.45s
    linear(
      0,
      0.402 7.4%,
      0.711 15.3%,
      0.929 23.7%,
      1.008 28.2%,
      1.067 33%,
      1.099 36.9%,
      1.12 41%,
      1.13 45.4%,
      1.13 50.1%,
      1.111 58.5%,
      1.019 83.2%,
      1.004 91.3%,
      1
    );
  box-shadow: 0 10px 16px rgba(3, 60, 21, 0.38);
}

.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(22, 52, 86, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    animation: none;
  }
}

.btn--official {
  --btn-base: #9ed719;
  --btn-texture: url("assets/btn-texture-green.png");
}

.btn--telegram {
  --btn-base: #3ad1ee;
  --btn-texture: url("assets/btn-texture-blue.jpg");
}

.disclaimer {
  width: 100%;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  background: #eaf9ff;
}

.disclaimer p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (min-width: 480px) {
  .hero__world {
    padding: 2.5rem 1.5rem;
  }

  .hero__banner {
    padding: 0.15rem 1.5rem 2.5rem;
    gap: 1.4rem;
  }
}

@media (min-width: 560px) {
  .actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .btn {
    width: auto;
    min-width: 200px;
  }
}

@media (min-width: 768px) {
  .hero__world {
    min-height: 38vh;
    padding: 3rem 2rem;
  }

  .hero__banner {
    padding: 0.2rem 2rem 3rem;
    gap: 1.6rem;
  }

  .tagline {
    max-width: 42ch;
  }

  .btn {
    padding: 1.15rem 2.25rem;
    font-size: 1.12rem;
    min-width: 220px;
  }
}

@media (min-width: 1024px) {
  .hero__banner {
    gap: 1.8rem;
  }

  .actions {
    gap: 1.5rem;
  }

  .btn {
    min-width: 240px;
  }
}

@media (min-width: 1440px) {
  .tagline {
    font-size: 1.3rem;
    max-width: 46ch;
  }
}

@media (max-width: 360px) {
  .btn {
    padding: 0.95rem 1.25rem;
    font-size: 0.98rem;
  }
}
