/* ============================================
   CUSTOM FONT
   ============================================ */
@font-face {
  font-family: 'Youth07Bold';
  src: url('./youth-07-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --mg-bg: #000000;
  --mg-orange: #FFCC00;
  --mg-red: #EA3324;
  --mg-blue: #255DF5;
  --mg-green: #55BA41;
  --mg-text: #FFFFFF;
  --mg-text-muted: #888888;
  --mg-font-heading: 'Youth07Bold', 'Space Grotesk', sans-serif;
  --mg-font-body: 'Space Grotesk', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--mg-font-body);
  background: var(--mg-bg);
  color: var(--mg-text);
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ============================================
   FLOATING SUPREMATIST SHAPES
   ============================================ */
.shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.25;
}

.shape--orange {
  width: 180px;
  height: 60px;
  background: var(--mg-orange);
  top: 8%;
  right: -40px;
  transform: rotate(-12deg);
  animation: float-shape 20s ease-in-out infinite;
}

.shape--red {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--mg-red);
  bottom: 12%;
  left: 5%;
  animation: float-shape 25s ease-in-out infinite reverse;
}

.shape--blue {
  width: 200px;
  height: 40px;
  background: var(--mg-blue);
  top: 60%;
  right: 3%;
  transform: rotate(8deg);
  animation: float-shape 22s ease-in-out infinite 3s;
}

.shape--green {
  width: 80px;
  height: 80px;
  background: var(--mg-green);
  top: 15%;
  left: 8%;
  transform: rotate(45deg);
  animation: float-shape 18s ease-in-out infinite 1s;
}

.shape--hex-red {
  width: 70px;
  height: 70px;
  background: var(--mg-red);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  bottom: 25%;
  right: 12%;
  animation: float-shape 24s ease-in-out infinite 2s;
}

.shape--hex-blue {
  width: 55px;
  height: 55px;
  background: var(--mg-blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  top: 40%;
  left: 3%;
  animation: float-shape 21s ease-in-out infinite 4s;
}

.shape--tri-green {
  width: 0;
  height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 78px solid var(--mg-green);
  background: none;
  top: 70%;
  right: 25%;
  opacity: 0.2;
  animation: float-shape 19s ease-in-out infinite 5s;
}

.shape--bar-orange {
  width: 150px;
  height: 25px;
  background: var(--mg-orange);
  bottom: 8%;
  left: 15%;
  transform: rotate(-5deg);
  animation: float-shape 23s ease-in-out infinite 3s;
  --base-rotation: -5deg;
}

@keyframes float-shape {
  0%, 100% {
    transform: translateY(0) rotate(var(--base-rotation, 0deg));
  }
  25% {
    transform: translateY(-15px) rotate(calc(var(--base-rotation, 0deg) + 3deg));
  }
  50% {
    transform: translateY(8px) rotate(calc(var(--base-rotation, 0deg) - 2deg));
  }
  75% {
    transform: translateY(-10px) rotate(calc(var(--base-rotation, 0deg) + 1deg));
  }
}

.shape--orange { --base-rotation: -12deg; }
.shape--blue { --base-rotation: 8deg; }
.shape--green { --base-rotation: 45deg; }

/* ============================================
   TEASER LAYOUT
   ============================================ */
.teaser {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: 0 2rem 2rem;
  gap: 0;
}



/* ============================================
   3D CUBE
   ============================================ */
.teaser__cube {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.teaser__cube::before {
  content: '';
  position: absolute;
  width: 180%;
  height: 180%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: -1;
}

#cube-canvas {
  width: min(50vw, 50vh, 400px);
  height: min(50vw, 50vh, 400px);
  cursor: grab;
}
#cube-canvas:active {
  cursor: grabbing;
}

/* ============================================
   TEXT CONTENT
   ============================================ */
.teaser__content {
  text-align: center;
  margin-top: -1rem;
}

.teaser__title {
  font-family: var(--mg-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 1.25rem;
  animation: fade-up 1s ease 0.3s both;
}

.teaser__title-line {
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
}

.teaser__title-line--accent {
  position: relative;
  font-size: clamp(3rem, 10vw, 7rem);
  background: linear-gradient(
    90deg,
    #FC1313 0%,
    #FFB700 19%,
    #25E659 39%,
    #3B31FF 61%,
    #DA1768 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.teaser__tagline {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mg-text);
  margin-bottom: 2rem;
  animation: fade-up 1s ease 0.6s both;
}

.teaser__coming-soon {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  padding: 0.5rem 1.8rem;
  border-radius: 100px;
  animation: fade-up 1s ease 0.9s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.teaser__footer {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  color: var(--mg-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .teaser {
    padding: 1.5rem;
  }

  #cube-canvas {
    width: min(65vw, 65vh, 300px);
    height: min(65vw, 65vh, 300px);
  }

  .shape--orange,
  .shape--blue {
    display: none;
  }

  .teaser__content {
    margin-top: -0.5rem;
  }
}

@media (max-height: 700px) {
  #cube-canvas {
    width: min(35vw, 40vh, 280px);
    height: min(35vw, 40vh, 280px);
  }

  .teaser__title-line {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .teaser__title-line--accent {
    font-size: clamp(2rem, 7vw, 4.5rem);
  }
}
