/*
  Optional: self-host TT Supermolot Neue (licensed .woff2) — uncomment when files exist in /fonts/
@font-face {
  font-family: 'TT Supermolot Neue';
  src: url('fonts/TTSupermolotNeue-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --bg-deep: #0a0612;
  --bg-violet: #1a0f3e;
  --cyan: #00c0e4;
  --tek-pale: #b2ebf2;
  --mom-lime: #ccff66;
  --text-muted: rgba(178, 235, 242, 0.72);
  --font-display: "TT Supermolot Neue", "Chakra Petch", system-ui, sans-serif;
  --float-count: 6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-weight: 500;
  color: var(--tek-pale);
  background: var(--bg-deep);
}

.page {
  position: relative;
  height: 100vh;
  overflow-x: clip;
}

/* Background floating tiles */
.float-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-card {
  position: absolute;
  width: min(22vw, 140px);
  height: min(22vw, 140px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 192, 228, 0.35);
  box-shadow:
    0 0 24px rgba(0, 192, 228, 0.25),
    0 0 48px rgba(204, 255, 102, 0.08);
  opacity: 0.45;
  object-fit: cover;
  object-position: center;
  animation: float-y 8s ease-in-out infinite;
}

.float-card:nth-child(6n + 2) {
  animation-duration: 9.5s;
  animation-delay: -1s;
}
.float-card:nth-child(6n + 3) {
  animation-duration: 7s;
  animation-delay: -2.5s;
}
.float-card:nth-child(6n + 4) {
  animation-duration: 10s;
  animation-delay: -4s;
}
.float-card:nth-child(6n + 5) {
  animation-duration: 8.5s;
  animation-delay: -0.5s;
}
.float-card:nth-child(6n) {
  animation-duration: 7.5s;
  animation-delay: -3s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-28px) rotate(3deg);
  }
}

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2rem) 1.25rem;
  overflow: hidden;
  background: #000;
}

/* Animated field: shifting gradient + rotating sheen + glow orbs */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(
    118deg,
    #000000 0%,
    #050214 18%,
    #0f0830 38%,
    #1a0f42 58%,
    #28145a 78%,
    #1e0f48 100%
  );
  background-size: 180% 180%;
  animation: hero-gradient-live 18s ease-in-out infinite;
}

.hero__backdrop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200vmax;
  height: 200vmax;
  margin: -100vmax 0 0 -100vmax;
  background: conic-gradient(
    from 210deg at 50% 50%,
    transparent 0deg,
    rgba(0, 192, 228, 0.11) 42deg,
    transparent 95deg,
    rgba(204, 255, 102, 0.075) 155deg,
    transparent 210deg,
    rgba(147, 76, 255, 0.06) 285deg,
    transparent 360deg
  );
  animation: hero-sheen-spin 32s linear infinite;
  pointer-events: none;
  opacity: 0.95;
}

@keyframes hero-gradient-live {
  0% {
    background-position: 5% 20%;
    background-size: 165% 165%;
  }
  33% {
    background-position: 95% 40%;
    background-size: 195% 190%;
  }
  66% {
    background-position: 35% 85%;
    background-size: 175% 205%;
  }
  100% {
    background-position: 5% 20%;
    background-size: 165% 165%;
  }
}

@keyframes hero-sheen-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(68px);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.hero__glow--cyan {
  width: min(58vmax, 560px);
  height: min(58vmax, 560px);
  left: -14%;
  top: 14%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 245, 255, 0.35) 0%, rgba(0, 192, 228, 0.12) 55%, transparent 72%);
  animation: hero-glow-cyan 11s ease-in-out infinite;
}

.hero__glow--lime {
  width: min(48vmax, 440px);
  height: min(48vmax, 440px);
  right: -14%;
  bottom: 0%;
  background: radial-gradient(circle at 55% 55%, rgba(225, 255, 130, 0.32) 0%, rgba(204, 255, 102, 0.1) 52%, transparent 70%);
  animation: hero-glow-lime 13s ease-in-out infinite;
}

.hero__glow--violet {
  width: min(38vmax, 340px);
  height: min(38vmax, 340px);
  left: 38%;
  top: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(167, 112, 255, 0.22) 0%, rgba(80, 40, 140, 0.08) 60%, transparent 72%);
  filter: blur(80px);
  animation: hero-glow-violet 15s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes hero-glow-cyan {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.82;
  }
  25% {
    transform: translate(14%, -16%) scale(1.14) rotate(4deg);
    opacity: 1;
  }
  50% {
    transform: translate(22%, 10%) scale(0.94) rotate(-3deg);
    opacity: 0.9;
  }
  75% {
    transform: translate(-10%, 18%) scale(1.08) rotate(2deg);
    opacity: 0.95;
  }
}

@keyframes hero-glow-lime {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.75;
  }
  33% {
    transform: translate(-22%, -18%) scale(1.16) rotate(-5deg);
    opacity: 1;
  }
  66% {
    transform: translate(12%, -26%) scale(0.92) rotate(4deg);
    opacity: 0.88;
  }
}

@keyframes hero-glow-violet {
  0%,
  100% {
    transform: translate(-6%, 4%) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(16%, -20%) scale(1.25);
    opacity: 0.95;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 78% 58% at 48% 20%, rgba(0, 192, 228, 0.14), transparent 55%),
    radial-gradient(ellipse 120% 90% at 50% 120%, rgba(0, 0, 0, 0.5), transparent 45%);
  animation: hero-vignette-pulse 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-vignette-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
  display: grid;
  gap: 0.6rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero__backdrop,
  .hero__backdrop::before,
  .hero__glow,
  .hero::before {
    animation: none !important;
  }

  .hero__backdrop {
    background-size: 100% 100%;
    background-position: 50% 50%;
  }

  .hero__glow--cyan {
    transform: translate(3%, -4%);
    opacity: 0.85;
  }

  .hero__glow--lime {
    transform: translate(-4%, 3%);
    opacity: 0.8;
  }

  .hero__glow--violet {
    transform: translate(4%, 0);
    opacity: 0.65;
  }

  .hero::before {
    opacity: 1;
  }
}

.hero__logo {
  width: min(140px, 35vw);
  height: auto;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero__tagline {
  margin: 0;
  font-size: clamp(0.78rem, 2.1vw, 0.95rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__user {
  color: var(--cyan);
}

.hero__title {
  margin: 0.1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title-tek {
  color: var(--tek-pale);
}

.hero__title-mom {
  color: var(--mom-lime);
}

.hero__lead {
  margin: 0 auto 0.5rem;
  font-size: clamp(0.92rem, 2.6vw, 1.07rem);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 34em;
}

.hero__gallery {
  width: min(660px, 100%);
  margin: 0.3rem auto 0;
  padding: 0.55rem 0 0.4rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 192, 228, 0.18);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 36px rgba(0, 192, 228, 0.08);
  overflow: hidden;
}

.hero__gallery > .section-title,
.hero__gallery > .section-desc {
  padding: 0 0.65rem;
}

.section-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.1vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tek-pale);
}

.section-desc {
  margin: 0 0 0.6rem;
  font-size: clamp(0.78rem, 2.3vw, 0.88rem);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Carousel */
.carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel__viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 192, 228, 0.28);
  background: #07050f;
  box-shadow: 0 0 28px rgba(0, 192, 228, 0.07);
}

.carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  padding: 0;
  margin: 0;
}

.carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 192, 228, 0.4);
  background: rgba(26, 15, 62, 0.6);
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.carousel__btn:hover {
  background: rgba(0, 192, 228, 0.15);
  border-color: var(--cyan);
}

.carousel__btn::before {
  font-size: 1.25rem;
  line-height: 1;
}

.carousel__btn--prev::before {
  content: "‹";
}

.carousel__btn--next::before {
  content: "›";
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.6rem;
  padding: 0 0.65rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(178, 235, 242, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel__dot[aria-current="true"] {
  background: var(--mom-lime);
  transform: scale(1.15);
}

@media (max-width: 540px) {
  .carousel__btn {
    width: 38px;
    height: 38px;
  }

  .hero__gallery {
    padding: 0.45rem 0 0.35rem;
  }

  .hero__gallery > .section-title,
  .hero__gallery > .section-desc {
    padding: 0 0.55rem;
  }

  .carousel__slide {
    aspect-ratio: 1 / 1;
  }

  .carousel__dots {
    padding: 0 0.55rem;
  }
}
