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

:root {
  --bg: #0a0a0a;
  --green: #00ff41;
  --green-dim: rgba(0, 255, 65, 0.6);
  --glow-soft: rgba(0, 255, 65, 0.32);
  --glow-strong: rgba(0, 255, 65, 0.6);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--green);
  font-family: 'Space Mono', ui-monospace, Menlo, 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  gap: 1.5rem;
}

.logo-wrap {
  animation:
    drift 6.5s ease-in-out infinite,
    fade 1.4s ease-out 0s both;
}

.logo {
  width: 180px;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 0 30px var(--glow-soft);
  animation: breathe 4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.brand {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  animation: rise 1.2s ease-out 0.4s both;
}

.hero {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 400;
  max-width: 36ch;
  line-height: 1.5;
  animation: rise 1.2s ease-out 0.8s both;
}

.line2 {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--green-dim);
  animation: rise 1.2s ease-out 1.2s both;
}

.cursor {
  display: inline-block;
  margin-left: 0.15em;
  color: var(--green);
  animation: blink 1.05s steps(2, end) infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 24px var(--glow-soft);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 52px var(--glow-strong);
  }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ============================================
   Footer — X handles + email
   ============================================ */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  animation: rise 1.2s ease-out 1.6s both;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(0, 255, 65, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social:hover,
.social:focus-visible {
  color: var(--green);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 480px) {
  .logo { width: 120px; border-radius: 14px; }
  main  { gap: 1.25rem; }
  .footer {
    gap: 1.25rem;
    font-size: 0.95rem;
    padding: 1.25rem 1rem 1.5rem;
  }
  .social svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap, .logo, .cursor, .brand, .hero, .line2,
  .footer, .social {
    animation: none !important;
    transition: none !important;
  }
  .logo { box-shadow: 0 0 30px var(--glow-soft); }
}
