:root {
  color-scheme: dark;
  --color-background: #000;
  --color-text: white;
  --color-accent: #ff1e3c;
  --hero-logo-width: clamp(180px, 16vw, 308px);
  --hero-padding: clamp(24px, 5vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--color-background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--hero-padding);
  overflow: hidden;
  background: var(--color-background);
}

.hero__background,
.invicta-vignette,
.invicta-glow {
  position: absolute;
  pointer-events: none;
}

.hero__background {
  inset: 0;
  z-index: -3;
  background-image: url("./assets/bg.avif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: invicta-flicker 6.5s ease-in-out infinite;
}

.invicta-vignette {
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.3) 48%,
    rgba(0, 0, 0, 0) 100%
  );
}

.invicta-glow {
  left: 50%;
  top: 28%;
  z-index: -2;
  width: 0;
  height: 0;
  mix-blend-mode: screen;
}

.invicta-glow-ring,
.invicta-glow-core {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.invicta-glow-ring {
  width: clamp(360px, 44vw, 660px);
  height: clamp(430px, 52vw, 780px);
  background: radial-gradient(
    closest-side,
    var(--color-accent) 0%,
    rgba(255, 30, 60, 0.55) 40%,
    rgba(255, 30, 60, 0) 74%
  );
  filter: blur(30px);
  animation: invicta-breathe 4.4s ease-in-out infinite alternate;
}

.invicta-glow-core {
  width: clamp(210px, 24vw, 360px);
  height: clamp(270px, 31vw, 460px);
  background: radial-gradient(
    closest-side,
    rgba(255, 150, 160, 1) 0%,
    rgba(255, 50, 80, 0.7) 44%,
    rgba(255, 30, 60, 0) 76%
  );
  filter: blur(16px);
  animation: invicta-breathe-core 4.4s ease-in-out infinite alternate;
}

.invicta-logo {
  position: absolute;
  left: 50%;
  top:5%;
  width: var(--hero-logo-width);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.6));
}

.invicta-copyright {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 40px);
  width: min(1120px, calc(100% - 48px));
  margin: 0;
  color: var(--color-text);
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  transform: translateX(-50%);
}

@keyframes invicta-breathe {
  0% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.82);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@keyframes invicta-breathe-core {
  0% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(0.74);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.24);
  }
}

@keyframes invicta-flicker {
  0%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  94% {
    opacity: 0.86;
  }

  96% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero__background {
    background-position: center top;
  }

  .invicta-glow {
    top: 31%;
  }

  .invicta-vignette {
    height: 48%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-inline: 18px;
  }

  .invicta-logo {
    top: 28px;
    width: min(220px, 62vw);
  }

  .invicta-copyright {
    bottom: 22px;
    width: calc(100% - 32px);
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-height: 520px) {
  .invicta-logo {
    top: 18px;
    width: 170px;
  }

  .invicta-copyright {
    bottom: 16px;
    font-size: 11px;
  }
}

@media (min-aspect-ratio: 2/1) {
  .invicta-logo {
    top: 1%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .hero__background,
  .invicta-glow-ring,
  .invicta-glow-core {
    animation: none;
  }
}
