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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  background: #0a0f2c;

  /* Background grid belongs on the page (not the wrapper) so rain can sit above it */
  background-image: url("assets/bg-grid.png");
  background-size: 1200px auto;
  background-repeat: repeat;
  background-position: center top;
}

.wrapper {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.card {
  max-width: 520px;
  text-align: center;
  padding: 3rem 2.5rem;
  border-radius: 16px;

  /* SOLID background — no transparency */
  background-color: #0a0f2c;
  position: relative;
  z-index: 3;
  transform: translateZ(0);

  /* subtle glow */
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(162, 89, 255, 0.15);
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: rgba(162, 89, 255, 0.12);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;  /* ADD THIS */
}

.card > * {
  position: relative;
  z-index: 2;
}

.logo-wrap {
  display: inline-flex;          
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;

  width: 220px;                  
  height: 220px;

  box-shadow:
    0 0 18px rgba(162, 89, 255, 0.25),
    0 0 40px rgba(162, 89, 255, 0.15);

  animation: logoGlow 8s ease-in-out infinite;
}

@keyframes logoGlow {
  0% {
    box-shadow:
      0 0 14px rgba(162, 89, 255, 0.22),
      0 0 32px rgba(162, 89, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 22px rgba(162, 89, 255, 0.35),
      0 0 52px rgba(162, 89, 255, 0.25);
  }
  100% {
    box-shadow:
      0 0 14px rgba(162, 89, 255, 0.22),
      0 0 32px rgba(162, 89, 255, 0.12);
  }
}

.logo-wrap img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

h1 {
  font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.tagline {
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  color: #d472ff;
  margin-bottom: clamp(1.1rem, 3.5vw, 1.75rem);
}

.status {
  font-size: clamp(0.95rem, 2.9vw, 1.05rem);
  margin-bottom: clamp(1.1rem, 3.5vw, 1.6rem);
  opacity: 0.9;
}

.contact {
  font-size: clamp(0.9rem, 3vw, 0.95rem);
  line-height: 1.6;
}

.contact a {
  color: #6ca4ff;              
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.contact a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #a259ff,
    transparent
  );
  opacity: 0.6;
}

.contact a:hover {
  color: #d472ff;
}


/* rain effect */ 

#rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* above background + vignette, below the card */
}

.drop {
  position: absolute;
  top: -30%;
  width: 2px;

  background: linear-gradient(
    to bottom,
    rgba(162, 89, 255, 0),
    rgba(162, 89, 255, 1),
    rgba(162, 89, 255, 0)
  );

filter: blur(1.2px) drop-shadow(0 0 6px rgba(162, 89, 255, 0.6));
opacity: 0.85;

  transform: rotate(-15deg);
  animation: fall linear infinite;
}

@keyframes fall {
  from {
    transform: translate(0, -30%) rotate(-15deg);
  }
  to {
    transform: translate(var(--drift), 140vh) rotate(-15deg);
  }
}

/* tint effect */ 

.card {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  position: relative;
  z-index: 10;
}


@media (max-width: 480px) {
  h1 {
    letter-spacing: 0.02em;
  }
}

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

/* Mobile tuning */
@media (max-width: 480px) {

  .card {
    padding: 2rem 1.5rem;
  }

  .logo-wrap {
    width: 180px;
    height: 180px;
    margin-bottom: 1.25rem;
  }

  .logo-wrap img {
    max-width: 180px;
  }

  h1 {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    letter-spacing: 0.02em;
  }
}


/* fade to nave dark on large screens */

@media (min-width: 1200px) {
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background: radial-gradient(
      ellipse at center,
      rgba(10, 15, 44, 0) 35%,
      rgba(10, 15, 44, 0.55) 60%,
      rgba(5, 7, 20, 0.9) 85%,
      rgba(0, 0, 0, 0.95) 100%
    );

    z-index: 1; /* above bg grid, below rain + card */
  }
}