:root {
  --bg: #05030d;
  --panel: #0d0a22;
  --text: #d9e2ff;
  --muted: #8890b8;
  --accent: #ff3fa4;
  --accent-2: #38e8ff;
  --accent-3: #ffe14d;
  --border: #2a2560;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.35;
}

/* Faint CRT scanlines over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  z-index: 10;
}

.intro {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
}

#demo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.intro-ui {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px 18vh;
}

.presents {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.logo {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(32px, 9vw, 96px);
  display: flex;
  gap: 0.05em;
}

.logo span {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, var(--accent-2) 35%, #2a3cff 50%, var(--accent) 70%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(4px 4px 0 #000) drop-shadow(0 0 12px rgba(56, 232, 255, 0.45));
  animation: bounce 1.6s ease-in-out infinite;
}

/* Stagger each letter so the logo ripples like a sine wave */
.logo span:nth-child(2) { animation-delay: 0.1s; }
.logo span:nth-child(3) { animation-delay: 0.2s; }
.logo span:nth-child(4) { animation-delay: 0.3s; }
.logo span:nth-child(5) { animation-delay: 0.4s; }
.logo span:nth-child(6) { animation-delay: 0.5s; }
.logo span:nth-child(7) { animation-delay: 0.6s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.18em); }
}

.tagline {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(9px, 1.6vw, 13px);
  color: var(--accent-3);
  margin: 22px 0 26px;
  letter-spacing: 2px;
}

.btn {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--text);
  background: rgba(13, 10, 34, 0.75);
  border: 2px solid var(--accent-2);
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--accent);
}

.btn:hover { background: var(--accent-2); color: #000; }
.btn:focus-visible { outline: 2px dashed var(--accent-3); outline-offset: 4px; }

.hint {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  animation: blink 1.2s steps(2) infinite;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 16px;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--border);
  box-shadow: 6px 6px 0 #000;
  padding: 24px;
  margin-bottom: 32px;
}

.panel h2 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(14px, 2.4vw, 18px);
  color: var(--accent);
  margin: 0 0 18px;
}

.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }

.eras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.era {
  border: 2px solid var(--border);
  padding: 16px;
  background: #090718;
}

.era h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--accent-2);
  margin: 12px 0 10px;
  line-height: 1.6;
}

.era p { font-size: 20px; color: var(--text); }

.chip {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: #000;
  background: var(--accent-3);
  padding: 6px 8px;
}

.feature-list { padding-left: 0; list-style: none; margin: 0 0 14px; }
.feature-list li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.feature-list li::before { content: "\25B6"; position: absolute; left: 0; color: var(--accent-2); font-size: 16px; top: 3px; }
.feature-list b { color: var(--accent-3); font-weight: normal; }

.note { color: var(--muted); }

.greets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.greets li {
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 20px;
  transition: transform 0.15s, color 0.15s;
}

.greets li:hover { transform: translateY(-3px); color: var(--accent-3); }

footer {
  text-align: center;
  color: var(--muted);
  padding: 8px 16px 40px;
  font-size: 18px;
}

footer p { margin: 4px 0; }

.blink { animation: blink 1s steps(2) infinite; color: var(--accent-2); }

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .logo span, .hint, .blink { animation: none; }
}
