@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap");

:root {
  --coffee: #301f17;
  --coffee-pattern: #483427;
  --honey: #ffbc48;
  --cream: #fff8ed;
  --muted: rgba(255, 248, 237, 0.76);
  --line: rgba(255, 248, 237, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--coffee);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--cream);
  background: var(--coffee);
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

.splash {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px) 20px;
  isolation: isolate;
}

.splash::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 188, 72, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(72, 52, 39, 0.24), transparent 42%);
}

.splash::after {
  position: absolute;
  inset: -70vmax;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.68;
  background-image: url("data:image/svg+xml,%3Csvg width='320' height='190' viewBox='0 0 320 190' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 70L276 0C299 -6 318 10 318 32V116C318 134 306 150 288 155L15 188C7 190 0 184 0 176V70Z' fill='%23483427' fill-opacity='.62'/%3E%3Cpath d='M0 128L276 58C299 52 318 68 318 90V174C318 192 306 208 288 213L15 246C7 248 0 242 0 234V128Z' fill='%23483427' fill-opacity='.42'/%3E%3C/svg%3E");
  background-size: 320px 190px;
  filter: saturate(0.94);
  transform: rotate(-8deg);
  animation: pattern-drift 24s linear infinite;
  will-change: background-position;
}

.content {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  text-align: center;
}

.logo {
  display: inline-block;
  width: clamp(190px, 29vw, 370px);
  margin-bottom: clamp(26px, 4.5vw, 46px);
  line-height: 0;
  transition:
    transform 220ms ease,
    filter 220ms ease;
  animation: rise-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.18));
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.lead,
.social-intro {
  margin: 0 auto;
  color: var(--cream);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  font-weight: 500;
  line-height: 1.48;
  text-wrap: pretty;
}

.lead {
  max-width: 740px;
  animation: rise-in 700ms 90ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.marketplaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(22px, 3.3vw, 32px) auto clamp(24px, 3vw, 34px);
  animation: rise-in 700ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.market-link {
  position: relative;
  display: grid;
  min-height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--coffee);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  outline-offset: 4px;
  transform: translateZ(0);
}

.market-link::before {
  position: absolute;
  inset: 0 8px;
  z-index: -1;
  content: "";
  background: var(--honey);
  border-radius: 8px;
  transform: skewX(-11deg);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.market-link::after {
  position: absolute;
  top: 0;
  right: 15px;
  width: 22px;
  height: 100%;
  content: "";
  background: rgba(255, 248, 237, 0.22);
  transform: skewX(-11deg) translateX(36px);
  transition: transform 220ms ease;
}

.market-link:hover::before,
.market-link:focus-visible::before {
  background: #ffc968;
  box-shadow: 0 18px 32px rgba(255, 188, 72, 0.18);
  transform: skewX(-11deg) translateY(-2px);
}

.market-link:hover::after,
.market-link:focus-visible::after {
  transform: skewX(-11deg) translateX(0);
}

.market-link span {
  position: relative;
  z-index: 1;
}

.telegram-link {
  width: min(100%, 260px);
  grid-auto-flow: column;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding-inline: 28px;
}

.telegram-icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.social-intro {
  max-width: 620px;
  color: var(--muted);
  animation: rise-in 700ms 270ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  animation: rise-in 700ms 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes pattern-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 320px 190px;
  }
}

@media (max-width: 720px) {
  .splash {
    align-items: start;
    padding: 34px 18px 28px;
  }

  .content {
    align-self: center;
  }

  .marketplaces {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead,
  .social-intro {
    font-size: 1rem;
    line-height: 1.5;
  }

  .market-link {
    min-height: 54px;
  }

  .telegram-link {
    width: 100%;
  }

  .splash::after {
    inset: -90vmax;
    opacity: 0.56;
  }
}

@media (max-width: 420px) {
  .splash {
    padding-inline: 16px;
  }

  .logo {
    width: 190px;
    margin-bottom: 28px;
  }

  .socials {
    gap: 8px;
  }

  .socials a {
    flex: 1 1 calc(50% - 8px);
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
