/* EV777 Landing — mobile + web */
:root {
  --navy: #020b2a;
  --deep-blue: #041a4a;
  --cyan: #35d6ff;
  --cyan-soft: rgba(53, 214, 255, 0.45);
  --white: #ffffff;
  --muted: #8aa0c0;
  --font: "Rajdhani", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* Stage background */
.landing__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--navy);
}

.landing__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.landing__bg--desktop {
  display: none;
  object-position: center center;
}

.landing__bg--mobile {
  display: block;
  object-position: center top;
}

/* Content */
.landing__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: clamp(12px, 3vh, 28px) 14px max(12px, env(safe-area-inset-bottom));
}

.landing__brand {
  flex: 0 0 auto;
  margin-top: clamp(4px, 1.2vh, 14px);
  animation: fadeDown 0.8s ease both;
}

.landing__logo {
  width: clamp(148px, 40vw, 210px);
  filter: drop-shadow(0 0 18px rgba(53, 214, 255, 0.45)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.landing__showcase {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: clamp(6px, 1.5vh, 16px) 0;
  animation: fadeUp 0.9s ease 0.12s both;
}

.landing__categories {
  width: 100%;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 28px rgba(40, 180, 255, 0.4));
  animation: floatSoft 5.5s ease-in-out infinite;
}

.landing__categories--desktop {
  display: none;
}

.landing__categories--mobile {
  display: block;
}

.landing__regions {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(44px, 14vw, 108px);
  width: 100%;
  max-width: 420px;
  /* Sit on the glowing podium / stage */
  margin-bottom: clamp(56px, 7vh, 108px);
  animation: fadeUp 0.9s ease 0.28s both;
}

.region {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: clamp(92px, 26vw, 132px);
  transition: transform 0.35s ease;
}

.region:hover,
.region:focus-visible {
  transform: translateY(-6px) scale(1.04);
}

.region:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 12px;
}

.region__orb {
  position: relative;
  width: clamp(76px, 21vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  animation: floatOrb 3.6s ease-in-out infinite;
}

.region:nth-child(2) .region__orb {
  animation-delay: 0.45s;
}

.region__orb::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-soft), transparent 68%);
  filter: blur(6px);
  animation: pulseRing 2.8s ease-in-out infinite;
  z-index: 0;
}

.region__orb::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -10%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  z-index: 0;
}

.region__orb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(80, 200, 255, 0.55));
  transition: filter 0.35s ease, transform 0.35s ease;
}

.region:hover .region__orb img,
.region:focus-visible .region__orb img {
  filter: drop-shadow(0 0 22px rgba(100, 220, 255, 0.9));
  transform: scale(1.05);
}

.region__label {
  font-size: clamp(15px, 4.2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(80, 200, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.65);
}

.landing__copy {
  flex: 0 0 auto;
  margin: 4px 0 0;
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  opacity: 0.9;
}

@media (max-width: 767px) and (max-height: 700px) {
  .landing__logo {
    width: clamp(128px, 34vw, 170px);
  }

  .landing__showcase {
    margin: 2px 0;
  }

  .region__orb {
    width: clamp(66px, 17vw, 88px);
  }

  .landing__regions {
    gap: clamp(28px, 10vw, 72px);
    margin-bottom: clamp(36px, 8vh, 64px);
  }
}

@media (max-width: 767px) and (min-height: 820px) {
  .landing__regions {
    margin-bottom: clamp(72px, 14vh, 130px);
  }
}

/* Desktop */
@media (min-width: 768px) {
  .landing__bg--desktop {
    display: block;
  }

  .landing__bg--mobile {
    display: none;
  }

  .landing__content {
    padding: clamp(20px, 3vh, 40px) 24px 20px;
  }

  .landing__logo {
    width: clamp(200px, 18vw, 280px);
  }

  .landing__showcase {
    max-width: min(1120px, 92vw);
    margin: clamp(10px, 2.5vh, 28px) 0 clamp(6px, 1.5vh, 16px);
  }

  .landing__categories--mobile {
    display: none;
  }

  .landing__categories--desktop {
    display: block;
    max-width: min(1080px, 94vw);
    animation: floatSoft 6s ease-in-out infinite;
  }

  .landing__regions {
    gap: clamp(64px, 10vw, 140px);
    max-width: 560px;
    margin-bottom: 8px; /* desktop keeps flags near bottom of layout */
  }

  .region {
    width: 150px;
  }

  .region__orb {
    width: clamp(100px, 9vw, 130px);
  }

  .region__label {
    font-size: clamp(18px, 1.5vw, 22px);
    letter-spacing: 0.14em;
  }

  .landing__copy {
    font-size: 13px;
  }
}

@media (min-width: 1200px) {
  .landing__categories--desktop {
    max-width: 1180px;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
