:root {
  --hero-max-width: 1500px;

  --left-width: 50%;
  --right-width: 50%;

  --logo-font-size: clamp(55px, 8vw, 77px);
  --tagline-font-size: 14px;
  --copy-font-size: 18px;

  --character-width: clamp(500px, 45vw, 900px);

  --character-scale: 90%;


  --primary-color: #f6b552;
  --accent-purple: #b57cff;
  --accent-pink: #ff57c4;
  --bg-color: #05040b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: #ffffff;
  overflow: hidden;
}

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.1);
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(181, 124, 255, 0.18), transparent 60%),
    radial-gradient(circle at 0% 85%, rgba(255, 87, 196, 0.14), transparent 55%),
    radial-gradient(circle at 80% 95%, rgba(120, 200, 255, 0.12), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.8;
  animation: bgDrift 40s linear infinite alternate;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 60%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0;
  animation: bgSweep 10s ease-in-out infinite;
}

.bg-energy {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 87, 196, 0.2), transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(128, 90, 245, 0.35), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(244, 244, 255, 0.2), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes bgDrift {
  0% {
    transform: translate3d(0px, 0px, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-20px, 15px, 0) scale(1.05);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(25px, -10px, 0) scale(1.02);
    opacity: 0.8;
  }
}

@keyframes bgSweep {
  0% {
    opacity: 0;
    transform: translateX(-40%);
  }
  10% {
    opacity: 0.5;
  }
  25% {
    opacity: 0.25;
    transform: translateX(40%);
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(60%);
  }
}

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--hero-max-width);
  margin: 0 auto;
  height: 100vh;
  padding: 32px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.hero-left {
  flex: 0 0 var(--left-width);
  max-width: 600px;
}

.logo-block {
  margin-bottom: 10px;
}

.logo-image {
  width: 100%;
  max-width: 420px;
}

.logo-text {
  font-size: var(--logo-font-size);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  gap: 6px;
}

.logo-text span {
  display: inline-block;
}

.logo-gradient {
  background: linear-gradient(90deg, #ffecb3, #ff57c4, #b57cff, #ffecb3);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  color: transparent;
  animation: logoGlow 6s linear infinite;
}

@keyframes logoGlow {
  0% {
    background-position: 0% 50%;
    text-shadow: 0 0 16px rgba(255, 237, 184, 0.8);
  }
  50% {
    background-position: 100% 50%;
    text-shadow: 0 0 24px rgba(181, 124, 255, 1);
  }
  100% {
    background-position: 0% 50%;
    text-shadow: 0 0 16px rgba(255, 237, 184, 0.8);
  }
}

.tagline {
  font-size: var(--tagline-font-size);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 8px;
  opacity: 0.9;
}

.hero-copy {
  font-size: var(--copy-font-size);
  margin-top: 18px;
  line-height: 1.5;
  max-width: 440px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 8, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.badge-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.badge-value {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.mew-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  color: #05040b;
  background-image: linear-gradient(135deg, #ffecb3, #f6b552);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.mew-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, #ffffff80 0, transparent 55%);
  opacity: 0;
  transform: translate(-40%, -40%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mew-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  filter: brightness(1.04);
}

.mew-btn:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.mew-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.mew-btn.ghost {
  background-image: linear-gradient(
    135deg,
    rgba(8, 6, 26, 0.95),
    rgba(24, 24, 48, 0.95)
  );
  color: #fdfdff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-right {
  flex: 0 0 var(--right-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.character-orbit {
  position: relative;
  width: var(--character-width);
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-image {
  width: var(--character-scale);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(150, 120, 255, 0.9));
  transform-origin: center;
  animation: charFloat 4.5s ease-in-out infinite;
}

@keyframes charFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

.energy-orb {
  position: absolute;
  width: 26%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #f6b552, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(1px);
  opacity: 0.75;
}

.orb-1 {
  top: 12%;
  left: 8%;
  animation: orbPulse1 5s ease-in-out infinite;
}
.orb-2 {
  bottom: 5%;
  right: 5%;
  animation: orbPulse2 6s ease-in-out infinite;
}
.orb-3 {
  top: 40%;
  right: 0%;
  animation: orbPulse3 7s ease-in-out infinite;
}

@keyframes orbPulse1 {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25) translate(4px, -4px);
    opacity: 1;
  }
}

@keyframes orbPulse2 {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3) translate(-6px, 3px);
    opacity: 0.9;
  }
}

@keyframes orbPulse3 {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2) translate(-4px, -6px);
    opacity: 1;
  }
}

.power-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(8, 6, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.pill-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.pill-value {
  font-size: 14px;
  font-weight: 700;
  color: #ffecb3;
}

.footer {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left,
.hero-right {
  animation: fadeUp 0.7s ease-out forwards;
}

.hero-right {
  animation-delay: 0.1s;
}

@media (max-width: 900px) {
  :root {
    --left-width: 100%;
    --right-width: 100%;
    --character-width: 260px;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 80px;
  }

  .hero-left {
    order: 1;
    text-align: center;
  }

  .hero-copy,
  .hero-badges,
  .btn-row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-right {
    order: 2;
  }

  .hero-badges {
    justify-content: center;
  }
}