:root {
  --green: #62fa08;
  --ink: #050705;
  --text: #f2f6ef;
  --muted: #b9c4b3;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Saira", system-ui, sans-serif;
  overflow: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#rain {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  transform: translate3d(var(--bx, 0), var(--by, 0), 0);
  animation: fade-in 1.6s ease-out both;
}

.flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, #e6ffd4 0%, #8fbf7a 45%, transparent 85%);
  mix-blend-mode: screen;
  opacity: 0;
}

.flash.strike {
  animation: strike 0.9s ease-out;
}

.shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(5, 7, 5, 0.55) 0%, rgba(5, 7, 5, 0.25) 45%, rgba(5, 7, 5, 0.85) 100%);
}

main {
  position: relative;
  min-height: 100dvh;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mark {
  width: clamp(150px, 26vmin, 250px);
  animation: slam 0.8s cubic-bezier(0.2, 1.3, 0.4, 1) both, drift 6s ease-in-out 0.8s infinite;
  perspective: 700px;
}

.mark-tilt {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.9));
  transition: filter 0.25s ease-out;
}

.lit .mark-tilt {
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 26px rgba(98, 250, 8, 0.75));
}

.mark img {
  display: block;
  width: 100%;
  height: auto;
}

.sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 130% 0;
  -webkit-mask: url("assets/logo.png") center / 100% 100% no-repeat;
  mask: url("assets/logo.png") center / 100% 100% no-repeat;
  animation: sweep 5s ease-in-out 1.2s infinite;
}

h1 {
  margin-top: 22px;
  font-size: clamp(3.4rem, 13vmin, 7rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.85);
}

h1 span {
  display: inline-block;
  animation: letter 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(0.35s + var(--i) * 0.06s);
}

p {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vmin, 1.25rem);
  font-weight: 500;
  text-shadow: 0 2px 10px #000;
  animation: rise 0.7s ease-out 0.85s both;
}

.apply {
  position: relative;
  display: inline-block;
  margin-top: 32px;
  padding: 15px 40px;
  background: var(--green);
  color: var(--ink);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  transform: skewX(-14deg);
  box-shadow: 6px 6px 0 #000;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, color 0.18s ease-out;
  animation: rise 0.7s ease-out 1s both;
}

.apply::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-101%);
  transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.apply span {
  position: relative;
  display: inline-block;
  transform: skewX(14deg);
}

.apply:hover,
.apply:focus-visible {
  transform: skewX(-14deg) translate(-3px, -3px);
  box-shadow: 10px 10px 0 #000;
}

.apply:hover::before,
.apply:focus-visible::before {
  transform: translateX(0);
}

.apply:active {
  transform: skewX(-14deg) translate(4px, 4px);
  box-shadow: 2px 2px 0 #000;
}

.apply:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slam {
  from { opacity: 0; transform: scale(1.7) skewX(-12deg); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes sweep {
  0%, 35% { background-position: 130% 0; }
  65%, 100% { background-position: -30% 0; }
}

@keyframes letter {
  from { opacity: 0; transform: translateY(28px) skewX(-18deg); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes strike {
  0% { opacity: 0; }
  6% { opacity: 0.4; }
  14% { opacity: 0.08; }
  22% { opacity: 0.3; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
