
:root {
  --background: #050505;
  --text: #f4f4f4;
  --muted: #8a8a8a;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.landing {
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 24px 70px;
}

.logo-wrap {
  position: relative;
  width: min(72vw, 620px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

/* Three independent glitch layers. The effect is intentionally noticeable. */
.glitch-layer {
  position: absolute;
  inset: 0;
  background-image: url("LogoGriuGames.PNG");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.glitch-red {
  animation: glitch-red 7s infinite steps(1, end);
}

.glitch-cyan {
  animation: glitch-cyan 7s infinite steps(1, end);
}

@keyframes glitch-red {
  0%, 88%, 100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(0);
    filter: drop-shadow(0 0 transparent);
  }

  89% {
    opacity: 1;
    transform: translate(-12px, 0);
    clip-path: inset(18% 0 61% 0);
    filter: drop-shadow(12px 0 0 #ff1744);
  }

  90% {
    opacity: 1;
    transform: translate(9px, 1px);
    clip-path: inset(63% 0 18% 0);
    filter: drop-shadow(-10px 0 0 #ff1744);
  }

  91% {
    opacity: 1;
    transform: translate(-6px, -1px) skewX(-2deg);
    clip-path: inset(36% 0 43% 0);
    filter: drop-shadow(8px 0 0 #ff1744);
  }

  92% {
    opacity: 0;
  }
}

@keyframes glitch-cyan {
  0%, 88%, 100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(0);
    filter: drop-shadow(0 0 transparent);
  }

  89% {
    opacity: 1;
    transform: translate(11px, 0);
    clip-path: inset(7% 0 76% 0);
    filter: drop-shadow(-12px 0 0 #00e5ff);
  }

  90% {
    opacity: 1;
    transform: translate(-8px, -1px);
    clip-path: inset(51% 0 31% 0);
    filter: drop-shadow(10px 0 0 #00e5ff);
  }

  91% {
    opacity: 1;
    transform: translate(5px, 1px) skewX(2deg);
    clip-path: inset(76% 0 8% 0);
    filter: drop-shadow(-8px 0 0 #00e5ff);
  }

  92% {
    opacity: 0;
  }
}

.coming-soon {
  margin: 42px 0 22px;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1;
  letter-spacing: .38em;
  font-weight: 500;
  color: var(--text);
  text-indent: .38em;
}

.contact {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
  transition: color .2s ease;
}

.contact:hover { color: var(--text); }

footer {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #4f4f4f;
  font-size: 10px;
  letter-spacing: .16em;
}

@media (max-width: 600px) {
  .landing { padding-bottom: 65px; }
  .logo-wrap { width: min(84vw, 520px); }
  .coming-soon {
    margin-top: 32px;
    font-size: 11px;
    letter-spacing: .28em;
  }
  .contact { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-layer { animation: none; }
}
