@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes background-drift {
  from { transform: scale(1.04) translate3d(-0.4%, 0, 0); }
  to { transform: scale(1.09) translate3d(0.4%, -0.6%, 0); }
}

@keyframes soft-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 22px rgba(212, 175, 55, 0.18); }
}

:root {
  color-scheme: dark;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #090909;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  background: #090909;
}

body.has-sticky-bottom {
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

.site-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-background[hidden] {
  display: none;
}

.site-background-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: background-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

#particle-canvas {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.header {
  margin-bottom: 2.5rem;
  animation: reveal-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  display: inline-block;
  border-radius: 50%;
  animation: logo-enter 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto 1rem;
  animation: logo-float 3.8s ease-in-out 900ms infinite;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.38));
  will-change: transform;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.promo-link {
  position: relative;
  display: block;
  flex: 0 1 220px;
  max-width: 220px;
  border-radius: 12px;
  text-decoration: none;
  animation: reveal-up 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

.promo-link:nth-child(1) { animation-delay: 180ms; }
.promo-link:nth-child(2) { animation-delay: 240ms; }
.promo-link:nth-child(3) { animation-delay: 300ms; }
.promo-link:nth-child(4) { animation-delay: 360ms; }
.promo-link:nth-child(5) { animation-delay: 420ms; }
.promo-link:nth-child(6) { animation-delay: 480ms; }
.promo-link:nth-child(7) { animation-delay: 540ms; }
.promo-link:nth-child(n + 8) { animation-delay: 600ms; }

.promo-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: border-color 180ms ease;
}

.promo-label {
  display: block;
  margin-top: 0.55rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.promo-link:hover {
  transform: translateY(-7px) scale(1.025);
  filter: brightness(1.07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 25px var(--gold-glow);
}

.promo-link:hover .promo-image {
  border-color: var(--gold);
}

.promo-link:focus-visible,
.main-promotion-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.main-promotion {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  animation: reveal-up 700ms cubic-bezier(0.22, 1, 0.36, 1) 620ms both;
}

.main-promotion[hidden] {
  display: none;
}

.main-promotion-link {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  transition: box-shadow 180ms ease;
}

.main-promotion-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38), 0 0 30px rgba(212, 175, 55, 0.6);
}

.main-promotion-link {
  animation: soft-glow 4.5s ease-in-out 1.3s infinite;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.main-promotion-image {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  margin-top: 3rem;
  padding: 1rem;
  color: #ddd;
  font-size: 0.8rem;
  animation: reveal-up 700ms cubic-bezier(0.22, 1, 0.36, 1) 760ms both;
}

.footer-banner {
  margin: 0 auto 1rem;
}

.footer-banner-link {
  display: block;
  width: min(100%, 876px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 9px;
  transition: box-shadow 180ms ease;
}

.footer-banner-link:hover {
  box-shadow: 0 0 24px rgba(30, 165, 220, 0.32);
}

.footer-banner-image {
  display: block;
  width: 100%;
  height: auto;
}

.footer p {
  margin: 0;
}

.sticky-bottom {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 82px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(9, 9, 9, 0.92);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  text-decoration: none;
  animation: reveal-up 500ms cubic-bezier(0.22, 1, 0.36, 1) 900ms both;
}

.sticky-bottom[hidden] {
  display: none;
}

.sticky-bottom-image {
  display: block;
  width: min(100%, 876px);
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.sticky-bottom:hover .sticky-bottom-image {
  transform: scale(1.012);
  filter: brightness(1.08);
}

.sticky-bottom:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
}

@media (min-width: 1024px) {
  .main-promotion-link {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .container {
    justify-content: flex-start;
    padding: 1.5rem 1rem;
  }

  .header {
    margin-bottom: 2rem;
  }

  .button-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .promo-link,
  .promo-link-last {
    max-width: none;
  }

  .promo-link-last {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1rem) / 2);
  }

  .main-promotion {
    margin-top: 2rem;
  }

  .footer {
    margin-top: 2rem;
  }

  .sticky-bottom {
    height: 68px;
  }

  body.has-sticky-bottom {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #particle-canvas {
    display: none;
  }

  .site-background-image {
    transform: none;
  }
}
