/* ==========================================================================
   MTV Creations — Coming Soon
   Design tokens
   ========================================================================== */

:root {
  --blue: #1daeff;
  --pink: #ff0f88;
  --dark: #090b2e;
  --secondary: #11153f;
  --highlight: #64d8ff;

  --text-primary: #f2f8ff;
  --text-muted: rgba(242, 248, 255, 0.62);
  --text-faint: rgba(242, 248, 255, 0.38);

  --glass-fill: rgba(17, 21, 63, 0.38);
  --glass-border: rgba(100, 216, 255, 0.16);

  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--dark);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  width: 100%;
  height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

::selection {
  background: var(--pink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ==========================================================================
   Ambient background — depth layers
   ========================================================================== */

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 8%, var(--secondary) 0%, var(--dark) 58%, #05061c 100%);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 0%, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
}

.bg-mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
  mix-blend-mode: screen;
}

.bg-mesh--blue {
  width: 46vw;
  height: 46vw;
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  animation: drift-a 26s ease-in-out infinite;
}

.bg-mesh--pink {
  width: 40vw;
  height: 40vw;
  bottom: -14%;
  right: -8%;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  animation: drift-b 32s ease-in-out infinite;
}

.bg-mesh--highlight {
  width: 26vw;
  height: 26vw;
  top: 38%;
  left: 60%;
  background: radial-gradient(circle, var(--highlight) 0%, transparent 72%);
  opacity: 0.22;
  animation: drift-c 22s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 5vh) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, -6vh) scale(1.08); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4vw, 4vh) scale(0.9); }
}

.bg-beams {
  position: absolute;
  inset: -20% -10%;
  background:
    linear-gradient(115deg, transparent 40%, rgba(29, 174, 255, 0.06) 48%, transparent 56%),
    linear-gradient(115deg, transparent 60%, rgba(255, 15, 136, 0.05) 68%, transparent 76%);
  background-size: 200% 200%;
  animation: beam-sweep 18s linear infinite;
}

@keyframes beam-sweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particle-field {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--highlight);
  opacity: 0;
  will-change: transform, opacity;
  animation-name: particle-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes particle-twinkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.8); }
  50% { opacity: var(--p-opacity, 0.6); transform: translateY(-18px) scale(1); }
}

/* Cursor glow — desktop / fine pointer only */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 174, 255, 0.09) 0%, rgba(255, 15, 136, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s var(--ease-lux);
  will-change: transform;
}

.has-fine-pointer .cursor-glow {
  opacity: 1;
}

/* ==========================================================================
   Hero layout
   ========================================================================== */

.hero {
  position: relative;
  z-index: 2;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 4vh, 40px) clamp(20px, 6vw, 64px);
  gap: clamp(6px, 1.6vh, 18px);
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(150px, 25vh, 250px);
  height: clamp(150px, 25vh, 250px);
  margin-bottom: 0;
  perspective: 900px;
}

.logo-halo {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), var(--pink), var(--highlight), var(--blue));
  filter: blur(38px);
  opacity: 0.28;
  animation: halo-spin 14s linear infinite;
  will-change: transform;
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

.logo-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.logo-float {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logo-bob 6.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes logo-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.5%); }
}

.logo-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(29, 174, 255, 0.35)) drop-shadow(0 0 46px rgba(255, 15, 136, 0.22));
}

.logo-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 62%);
  background-size: 260% 260%;
  background-position: -120% -120%;
  mix-blend-mode: overlay;
  -webkit-mask-image: url("assets/logo-icon.png");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("assets/logo-icon.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  animation: sheen-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen-sweep {
  0%, 30% { background-position: -120% -120%; }
  70%, 100% { background-position: 120% 120%; }
}

.logo-shadow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  width: 58%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(5, 6, 28, 0.65) 0%, transparent 75%);
  filter: blur(6px);
}

.logo-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 18px rgba(29, 174, 255, 0.45), 0 0 36px rgba(255, 15, 136, 0.2);
  margin-top: clamp(2px, 0.8vh, 10px);
}

.logo-wordmark span {
  background: linear-gradient(100deg, var(--blue) 0%, var(--highlight) 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 0.4em;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 6.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 20ch;
}

.headline-word {
  display: inline-block;
}

.headline-word--accent {
  background: linear-gradient(100deg, var(--blue) 10%, var(--highlight) 45%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  letter-spacing: 0.005em;
}

/* ==========================================================================
   Contact row
   ========================================================================== */

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 16px);
  margin-top: clamp(8px, 1.6vh, 20px);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(9px, 1.3vh, 13px) clamp(14px, 1.8vw, 20px);
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(5, 6, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.45s var(--ease-lux), border-color 0.45s var(--ease-lux), box-shadow 0.45s var(--ease-lux), background 0.45s var(--ease-lux);
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(100, 216, 255, 0.45);
  background: rgba(29, 174, 255, 0.1);
  box-shadow: 0 12px 32px rgba(29, 174, 255, 0.18), 0 0 0 1px rgba(255, 15, 136, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(29, 174, 255, 0.18), rgba(255, 15, 136, 0.14));
  color: var(--highlight);
  transition: transform 0.5s var(--ease-lux), color 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux);
}

.contact-icon svg {
  width: 15px;
  height: 15px;
}

.contact-link:hover .contact-icon,
.contact-link:focus-visible .contact-icon {
  transform: scale(1.12) rotate(-6deg);
  color: #fff;
  box-shadow: 0 0 14px rgba(29, 174, 255, 0.55), 0 0 22px rgba(255, 15, 136, 0.3);
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.contact-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-value {
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-line {
  position: absolute;
  bottom: clamp(10px, 2.4vh, 22px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ==========================================================================
   Responsive tuning
   ========================================================================== */

@media (max-width: 640px) {
  .contact-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .contact-link {
    justify-content: flex-start;
  }

  .footer-line {
    font-size: 0.6rem;
  }
}

@media (max-height: 620px) {
  .logo-stage {
    width: clamp(96px, 16vh, 160px);
    height: clamp(96px, 16vh, 160px);
  }

  .description {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .hero {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 30px;
  }

  .logo-stage {
    width: 84px;
    height: 84px;
  }

  .logo-wordmark {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }

  .headline {
    font-size: clamp(1.3rem, 4vw, 2rem);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .logo-float,
  .bg-mesh,
  .bg-beams,
  .logo-halo,
  .logo-sheen,
  .particle {
    animation: none !important;
  }
}
