@import "./base.css";

body.home .site-bg__image {
  background-position: center 62%;
}

body.home .site-bg__veil {
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 34%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.home-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 4, 6, 0.55);
  backdrop-filter: blur(20px);
}

.marquee {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
  animation: scroll-marquee 38s linear infinite;
}

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 0.85rem 1.25rem;
}

.marquee-item {
  flex: 0 0 7.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.marquee-flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  object-fit: cover;
  flex-shrink: 0;
}

.marquee-name {
  font-family: var(--font-label);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.58);
  max-width: 7.75rem;
  white-space: normal;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.35rem 2.5rem;
  text-align: center;
}

.logo-hero {
  width: min(300px, 78vw);
  margin-bottom: 1.65rem;
  animation: reveal-up 1.1s var(--ease-lux) both;
}

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

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: reveal-up 1.1s var(--ease-lux) 0.18s both;
}

.cta-tab {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  border: 1px solid rgba(255, 200, 60, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(165deg, rgba(255, 184, 12, 0.92) 0%, rgba(255, 196, 46, 0.78) 48%, rgba(255, 184, 12, 0.68) 100%);
  backdrop-filter: blur(6px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 184, 12, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(140, 100, 0, 0.18);
  color: #0a0804;
  font-family: var(--font-label);
  font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition:
    transform 0.45s var(--ease-lux),
    box-shadow 0.45s var(--ease-lux),
    border-color 0.45s var(--ease-lux),
    background 0.45s var(--ease-lux);
}

.cta-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.28) 50%, transparent 85%);
  opacity: 0.45;
  pointer-events: none;
}

.cta-tab:hover,
.cta-tab:focus-visible {
  transform: translate3d(var(--mx), calc(var(--my) - 2px), 0);
  border-color: rgba(255, 220, 90, 0.92);
  background:
    linear-gradient(165deg, rgba(255, 196, 46, 0.98) 0%, rgba(255, 184, 12, 0.88) 52%, rgba(255, 170, 0, 0.76) 100%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(255, 184, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  outline: none;
}

.home-footer {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.25rem 1.55rem;
  text-align: center;
  border-top: 1px solid rgba(226, 192, 102, 0.14);
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  animation: footer-rise 1.15s var(--ease-lux) 0.42s both;
}

.home-footer__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: footer-sweep 4.8s var(--ease-soft) infinite;
}

.home-footer__text {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-label);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.62);
  animation: footer-glow 5s ease-in-out infinite alternate;
}

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

@keyframes footer-sweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

@keyframes footer-glow {
  from {
    color: rgba(244, 240, 232, 0.52);
  }
  to {
    color: rgba(226, 192, 102, 0.82);
  }
}

@media (max-width: 640px) {
  .logo-hero {
    width: min(260px, 84vw);
  }

  .cta-tab {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 0.88rem 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-hero,
  .cta-wrap,
  .home-footer,
  .home-footer__line,
  .home-footer__text {
    animation: none;
  }
}
