
:root {
  --bg: #030904;
  --green: #22ff88;
  --green-soft: #7dffb0;
  --text: #b8ffdd;
  --dark: #031409;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CRT overlays: vignette + scanlines (pure CSS, pointer-events off) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, rgba(34, 255, 136, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 900;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 901;
}

::selection { background: var(--green); color: var(--dark); }

a { color: var(--green); }

/* ============ HERO / BOOT ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
#matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
}

.boot-hint {
  position: absolute;
  bottom: 20px; left: 0; right: 0;
  z-index: 5;
  text-align: center;
  color: rgba(125, 255, 176, 0.35);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: opacity 0.4s;
}
body.booted .boot-hint { opacity: 0; }

#hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px 40px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
body.booted #hero-content { opacity: 1; transform: none; }

.wordmark {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  text-shadow: 0 0 18px rgba(34, 255, 136, 0.5), 0 0 60px rgba(34, 255, 136, 0.25);
  line-height: 1.1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}
.btn {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 0.75em 1.3em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.btn:hover {
  background: var(--green);
  color: var(--dark);
  box-shadow: 0 0 22px rgba(34, 255, 136, 0.45);
}

/* ============ SOCIAL ICONS ============ */
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 28px 0 12px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--green);
  text-decoration: none;
  transition: color 0.12s, text-shadow 0.12s, transform 0.12s;
}
.social-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(34, 255, 136, 0.45));
}
.social-icon:hover {
  color: var(--green-soft);
  text-shadow: 0 0 12px rgba(34, 255, 136, 0.7);
  transform: translateY(-2px);
}
.social-row.shake .social-icon {
  animation: icon-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) 2;
}
@keyframes icon-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-4px) rotate(-6deg); }
  30% { transform: translateX(4px) rotate(6deg); }
  45% { transform: translateX(-3px) rotate(-4deg); }
  60% { transform: translateX(3px) rotate(4deg); }
  75% { transform: translateX(-2px) rotate(-2deg); }
  90% { transform: translateX(2px) rotate(2deg); }
}
.social-handle {
  margin: 0 0 26px;
  color: var(--green);
  font-family: 'Press Start 2P', var(--mono);
  font-size: clamp(16px, 3.6vw, 34px);
  letter-spacing: 0.1em;
  line-height: 1.4;
  word-break: break-all;
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-shadow:
    0 0 4px rgba(34, 255, 136, 0.55),
    0 0 14px rgba(34, 255, 136, 0.35),
    3px 3px 0 rgba(3, 20, 9, 0.9),
    -2px -2px 0 rgba(3, 20, 9, 0.9);
  image-rendering: pixelated;
}

/* ============ MOBILE ============ */
@media (max-width: 640px) {
  .cta-row { flex-direction: column; align-items: stretch; max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .boot-hint { display: none; }
  #hero-content { opacity: 1; transform: none; }
}
