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

html, body {
  width: 100%;
  height: 100%;
}

body {
  background-color: #0a0a0a;
  color: #e4e4e4;
  font-family: 'Outfit', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom cursor — desktop with pointer only */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }

  .cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(228, 228, 228, 0.75);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100;
    left: 50%;
    top: 50%;
  }

  .cursor-ring {
    position: fixed;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(228, 228, 228, 0.18);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99;
    left: 50%;
    top: 50%;
    transition: left 0.12s ease, top 0.12s ease;
  }
}

/* Cursor glow — follows mouse with lag */
.cursor-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.032) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  transition: left 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              top  1.1s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* Slow animated gradient background */
.ambient {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, #0d1a12 0%, #0a0a0a 100%);
  animation: gradientDrift 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientDrift {
  0%   { background: radial-gradient(ellipse 70% 60% at 30% 40%, #0d1a12 0%, #0a0a0a 100%); }
  25%  { background: radial-gradient(ellipse 60% 70% at 70% 30%, #0d1a12 0%, #0a0a0a 100%); }
  50%  { background: radial-gradient(ellipse 75% 55% at 65% 65%, #0d1a12 0%, #0a0a0a 100%); }
  75%  { background: radial-gradient(ellipse 55% 65% at 35% 70%, #0d1a12 0%, #0a0a0a 100%); }
  100% { background: radial-gradient(ellipse 70% 60% at 30% 40%, #0d1a12 0%, #0a0a0a 100%); }
}

/* Green radial glow behind text */
.text-glow {
  position: absolute;
  width: 500px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(60, 160, 100, 0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
  z-index: 9;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.5; transform: scale(1.08); }
}

/* Center content */
main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  padding: 2rem;
}

/* Wordmark */
h1 {
  font-size: clamp(2.6rem, 10vw, 6rem);
  font-weight: 100;
  letter-spacing: 0.65em;
  text-transform: lowercase;
  margin-right: -0.65em; /* compensate trailing letter-spacing */
  opacity: 0;
  animation: trackIn 4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
  text-shadow:
    0 0 40px rgba(60, 160, 100, 0.08),
    0 0 90px rgba(60, 160, 100, 0.04);
}

@keyframes trackIn {
  0% {
    opacity: 0;
    letter-spacing: 1.5em;
    margin-right: -1.5em;
  }
  100% {
    opacity: 1;
    letter-spacing: 0.65em;
    margin-right: -0.65em;
  }
}

/* Horizontal accent line */
.line {
  width: 38px;
  height: 1px;
  background: rgba(60, 160, 100, 0.4);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: expandLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.9s;
}

@keyframes expandLine {
  0%   { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Footer */
footer {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(60, 160, 100, 0.2);
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 1.8s ease forwards 1.8s;
  z-index: 10;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Noise texture overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
}
