@font-face {
  font-family: "Montserrat";
  src: url("../public/assets/fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0.6px, transparent 0.6px) 0 0/90px 90px,
    radial-gradient(circle, rgba(255, 244, 200, 0.18) 0.8px, transparent 0.8px) 0 0/140px 140px,
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 40px 60px/160px 160px,
    radial-gradient(circle at 18% 20%, rgba(233, 47, 0, 0.42), transparent 60%),
    radial-gradient(circle at 82% 14%, rgba(233, 86, 24, 0.28), transparent 62%),
    radial-gradient(circle at 48% 88%, rgba(233, 47, 0, 0.18), transparent 70%),
    #050505;
  color: #f5f6fa;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.45s ease;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0.7px, transparent 0.7px),
    radial-gradient(circle, rgba(255, 244, 200, 0.18) 1px, transparent 1px);
  background-size: 110px 110px, 180px 180px;
  opacity: 0.12;
  animation: bodyStars 50s linear infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    url("../public/assets/stars/star1.png"),
    url("../public/assets/stars/star2.png"),
    url("../public/assets/stars/star3.png"),
    url("../public/assets/stars/star2.png"),
    url("../public/assets/stars/star1.png"),
    url("../public/assets/stars/star3.png"),
    url("../public/assets/stars/star2.png"),
    url("../public/assets/stars/star1.png"),
    url("../public/assets/stars/star3.png"),
    url("../public/assets/stars/star2.png"),
    url("../public/assets/stars/star1.png"),
    url("../public/assets/stars/star3.png");
  background-position:
    8% 18%,
    28% 42%,
    52% 12%,
    72% 36%,
    88% 22%,
    16% 68%,
    40% 78%,
    64% 64%,
    78% 82%,
    90% 68%,
    34% 18%,
    58% 86%;
  background-repeat: no-repeat;
  background-size:
    52px 52px,
    40px 40px,
    70px 70px,
    32px 32px,
    48px 48px,
    36px 36px,
    44px 44px,
    38px 38px,
    58px 58px,
    34px 34px,
    30px 30px,
    42px 42px;
  opacity: 0.82;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: starDrift 60s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 210, 180, 0.55));
}

@keyframes starDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, -22px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(16px, 18px, 0) scale(1);
  }
}

@keyframes bodyStars {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-120px, -90px, 0);
  }
}

body.is-loaded {
  opacity: 1;
}

body.is-exiting {
  opacity: 0;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

.home-hero {
  position: relative;
  padding: clamp(2.2rem, 7vw, 4rem) 1.5rem clamp(1.8rem, 6vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(circle at 14% 16%, rgba(233, 47, 0, 0.58), transparent 60%),
    radial-gradient(circle at 86% 24%, rgba(233, 104, 46, 0.32), transparent 63%),
    linear-gradient(195deg, rgba(10, 8, 8, 0.98), rgba(36, 8, 0, 0.95) 35%, rgba(0, 0, 0, 0.94));
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -48% -30% 24% -30%;
  background:
    radial-gradient(ellipse at top, rgba(233, 104, 46, 0.65), rgba(233, 104, 46, 0) 68%),
    radial-gradient(circle at 62% 18%, rgba(255, 199, 142, 0.32), rgba(255, 199, 142, 0) 58%);
  mix-blend-mode: screen;
  opacity: 0.75;
  filter: blur(8px);
  animation: homeSweep 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0.7px, transparent 0.7px),
    radial-gradient(circle, rgba(233, 104, 46, 0.26) 1px, transparent 1px), linear-gradient(transparent, transparent);
  background-size: 38px 38px, 64px 64px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  opacity: 0.32;
  animation: heroTwinkle 45s linear infinite, glitterDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: clamp(2px, 0.4vw, 5px);
  height: clamp(2px, 0.4vw, 5px);
  border-radius: 50%;
  background: rgba(255, 236, 200, 0.8);
  box-shadow: 0 0 12px rgba(255, 236, 200, 0.85);
  animation: particleFloat var(--duration, 18s) var(--timing, ease-in-out) infinite;
  opacity: 0;
}

.hero-particles span::after {
  content: "";
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(255, 236, 200, 0.35), transparent 70%);
  filter: blur(3px);
}

.hero-particles span:nth-child(odd) {
  background: rgba(255, 198, 115, 0.85);
  box-shadow: 0 0 14px rgba(255, 198, 115, 0.82);
}

@keyframes particleFloat {
  0% {
    transform: translate3d(var(--x-start), var(--y-start), 0) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--x-end), var(--y-end), 0) scale(1.15);
    opacity: 0;
  }
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.1rem);
  margin-top: clamp(0.25rem, 2vw, 1rem);
}

.home-hero__content > * {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    filter 1.1s ease;
}

body.is-loaded .home-hero__content > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

body.is-loaded .home-hero__content > *:nth-child(1) {
  transition-delay: 0.15s;
}

body.is-loaded .home-hero__content > *:nth-child(2) {
  transition-delay: 0.3s;
}

body.is-loaded .home-hero__content > *:nth-child(3) {
  transition-delay: 0.45s;
}

.home-hero p {
  max-width: clamp(320px, 48vw, 520px);
  color: #dce2f5;
  margin: 0;
}

.home-regions {
  padding: clamp(3rem, 9vw, 5.5rem) 1.5rem clamp(3.5rem, 10vw, 5.5rem);
  background: linear-gradient(188deg, rgba(58, 9, 0, 0.88), rgba(6, 0, 0, 0.94));
  text-align: center;
}

.home-regions h2 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #f8e48d;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.55), 0 0 26px rgba(248, 228, 141, 0.32);
  position: relative;
}

.home-regions h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(-1.2rem, -2vw, -1.8rem);
  transform: translateX(-50%);
  width: clamp(120px, 18vw, 180px);
  height: 2px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248, 228, 141, 0.8) 0%, rgba(248, 228, 141, 0) 70%);
  box-shadow: 0 0 18px rgba(248, 228, 141, 0.45);
}

.home-regions__subtitle {
  max-width: 560px;
  margin: 0 auto clamp(2rem, 6vw, 3rem);
  color: rgba(223, 227, 244, 0.85);
}

.home-regions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: clamp(1.2rem, 4vw, 2.4rem);
  max-width: 820px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1),
    filter 1.1s ease;
}

body.is-loaded .home-regions__grid {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.75s;
}

body.is-loaded .home-regions__grid .region-card {
  animation: cardRise 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

body.is-loaded .home-regions__grid .region-card:nth-child(1) {
  animation-delay: 0.85s;
}

body.is-loaded .home-regions__grid .region-card:nth-child(2) {
  animation-delay: 1s;
}

body.is-loaded .home-regions__grid .region-card:nth-child(3) {
  animation-delay: 1.15s;
}

body.is-loaded .home-regions__grid .region-card:nth-child(4) {
  animation-delay: 1.3s;
}

.home-regions__grid a.region-card {
  text-decoration: none;
  color: inherit;
}

.region-card {
  padding: 2rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(34, 10, 7, 0.96), rgba(12, 2, 0, 0.93));
  border: 1px solid rgba(233, 86, 24, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
  display: grid;
  gap: 0.8rem;
  align-items: start;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.region-card__cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 228, 141, 0.38);
  color: rgba(248, 228, 141, 0.92);
  letter-spacing: 0.16em;
  font-size: 0.58rem;
  text-transform: uppercase;
  background: rgba(248, 228, 141, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.region-card__cta::after {
  content: "⟶";
  font-size: 0.7rem;
  letter-spacing: normal;
}

.region-card--available {
  border-color: rgba(248, 228, 141, 0.45);
  background: linear-gradient(150deg, rgba(56, 20, 5, 0.96), rgba(14, 0, 0, 0.95));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.52);
}

.region-card--available::before {
  background: radial-gradient(circle, rgba(248, 228, 141, 0.28) 0%, rgba(248, 228, 141, 0) 60%);
  opacity: 0.6;
}

.region-card--available:hover,
.region-card--available:focus-visible {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.6);
}

.region-card--available:hover .region-card__cta,
.region-card--available:focus-visible .region-card__cta {
  background: rgba(248, 228, 141, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
  transform: translateX(4px);
}

.region-card::before {
  content: "";
  position: absolute;
  inset: -60% 40% -50% -20%;
  background: radial-gradient(circle, rgba(233, 86, 24, 0.2) 0%, rgba(233, 86, 24, 0) 60%);
  opacity: 0.55;
  pointer-events: none;
}

.region-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 65%);
  pointer-events: none;
}

.region-card h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.98rem;
  color: #fde7d5;
  position: relative;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.region-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.6rem;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, rgba(233, 86, 24, 0.7), rgba(233, 86, 24, 0));
  border-radius: 999px;
}

.region-card p {
  margin: 0;
  color: rgba(248, 226, 216, 0.8);
}

.region-card .badge {
  justify-self: start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(233, 86, 24, 0.16);
  border: 1px solid rgba(233, 86, 24, 0.34);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.63rem;
  color: rgba(248, 211, 191, 0.88);
}

.badge--available {
  background: rgba(248, 228, 141, 0.18);
  border-color: rgba(248, 228, 141, 0.45);
  color: rgba(248, 228, 141, 0.95);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.home-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(12, 16, 28, 0.92);
  border-top: 1px solid rgba(248, 228, 141, 0.18);
  color: rgba(215, 221, 240, 0.85);
  font-size: 0.9rem;
}

.home-scroll {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  justify-content: center;
}

.scroll-indicator {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 228, 141, 0.35);
  background: rgba(248, 228, 141, 0.1);
  color: rgba(248, 228, 141, 0.85);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.scroll-indicator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scroll-indicator svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  animation: scrollArrow 1.8s ease-in-out infinite;
}

.scroll-indicator:hover,
.scroll-indicator:focus-visible {
  transform: translateY(2px);
  border-color: rgba(248, 228, 141, 0.55);
}

@keyframes homeSweep {
  0% {
    transform: translateX(-12%) scale(1.05);
    opacity: 0.55;
  }
  100% {
    transform: translateX(20%) scale(1.18);
    opacity: 0.82;
  }
}

@keyframes heroTwinkle {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-35px, -55px, 0) scale(1.03);
  }
}

@keyframes glitterDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 40px -40px, -50px 50px, 0 0;
  }
}

@keyframes cardRise {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scrollArrow {
  0% {
    transform: translateY(-4px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
  100% {
    transform: translateY(-4px);
    opacity: 0.6;
  }
}

@keyframes logos-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 2.2rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(248, 228, 141, 0.2);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  text-decoration: none;
  background: rgba(17, 23, 39, 0.82);
  color: rgba(248, 228, 141, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(21, 27, 45, 0.9);
  border-color: rgba(248, 228, 141, 0.35);
}

.btn--primary {
  background: rgba(21, 27, 45, 0.92);
  color: rgba(248, 228, 141, 0.92);
  border-color: rgba(248, 228, 141, 0.32);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: rgba(25, 33, 54, 0.95);
  box-shadow: 0 10px 26px rgba(10, 13, 22, 0.55);
}

.home-logo img {
  width: clamp(220px, 32vw, 360px);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.45));
  max-width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .home-logo img {
    width: min(70vw, 280px);
  }
}

@media (max-width: 640px) {
  .home-hero__statue {
    width: clamp(84px, 22vw, 120px);
  }

  .home-regions__grid {
    grid-template-columns: 1fr;
  }
}

.home-logos {
  padding: clamp(3rem, 9vw, 5rem) 1.5rem clamp(3rem, 9vw, 5rem);
  background: linear-gradient(186deg, rgba(70, 8, 0, 0.72), rgba(5, 0, 0, 0.95));
}

.home-logos__panel {
  position: relative;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(10, 15, 32, 0.3);
  border: 1px solid rgba(15, 19, 32, 0.12);
  overflow: hidden;
}

.home-logos__panel::before {
  content: "";
  position: absolute;
  inset: -60% 30% auto -10%;
  height: 240%;
  background: radial-gradient(circle, rgba(233, 86, 24, 0.28) 0%, rgba(233, 86, 24, 0) 70%);
  opacity: 0.55;
  pointer-events: none;
}

.home-logos__panel .logos-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 19, 32, 0.08), 0 14px 30px rgba(10, 15, 32, 0.24);
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
}

.home-logos__panel .logos-carousel::before,
.home-logos__panel .logos-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(36px, 7vw, 110px);
  pointer-events: none;
  z-index: 2;
}

.home-logos__panel .logos-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, transparent 100%);
}

.home-logos__panel .logos-carousel::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0.96) 0%, transparent 100%);
}

.home-logos__panel .logos-carousel__track {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  animation: logos-scroll 18s linear infinite;
}

.home-logos__panel .logos-carousel__track img {
  flex: 0 0 auto;
  height: clamp(60px, 9vw, 90px);
  width: auto;
  display: block;
  transition: transform 200ms ease;
}

.home-logos__panel .logos-carousel:hover .logos-carousel__track {
  animation-play-state: paused;
}

.home-logos__panel .logos-carousel:hover .logos-carousel__track img {
  transform: scale(1.01);
}

@media (max-width: 640px) {
  .home-logos__panel .logos-carousel::before,
  .home-logos__panel .logos-carousel::after {
    width: clamp(24px, 12vw, 60px);
  }

  .home-logos__panel .logos-carousel__track {
    gap: clamp(14px, 4vw, 36px);
    animation-duration: 12s;
  }

  .home-logos__panel .logos-carousel__track img {
    height: clamp(70px, 16vw, 110px);
  }
}

body:not(.is-loaded) .home-hero__content,
body:not(.is-loaded) .home-logo img,
body:not(.is-loaded) .home-hero p,
body:not(.is-loaded) .btn,
body:not(.is-loaded) .home-regions__grid,
body:not(.is-loaded) .home-logos__panel {
  filter: blur(14px);
  opacity: 0;
  transform: translateY(26px);
}

body.is-loaded .home-hero__content,
body.is-loaded .home-logo img,
body.is-loaded .home-hero p,
body.is-loaded .btn,
body.is-loaded .home-regions__grid,
body.is-loaded .home-logos__panel {
  transition: filter 0.85s ease, opacity 0.85s ease, transform 0.85s ease;
  filter: none;
  opacity: 1;
  transform: translateY(0);
}
