:root {
  --ink: #b8f3d1;
  --ink-dim: #89b89f;
  --accent: #6eff8d;
  --alert: #ff5161;
  --bg-0: #03070a;
  --bg-1: #07161f;
  --bg-2: #0f2a2f;
  --panel: rgba(5, 18, 22, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, var(--bg-2) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, #1a222f 0%, transparent 40%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1));
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #061116;
  color: #e8fff0;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noise,
.grid,
.scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.06;
  background-image: radial-gradient(#fff 0.4px, transparent 0.4px);
  background-size: 4px 4px;
}

.grid {
  background-image:
    linear-gradient(rgba(110, 255, 141, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 255, 141, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.scan {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(110, 255, 141, 0.06) 48%,
    rgba(110, 255, 141, 0.1) 50%,
    rgba(110, 255, 141, 0.06) 52%,
    transparent 100%
  );
  animation: sweep 6s linear infinite;
}

main {
  width: min(1000px, 92vw);
  margin: 0 auto;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 4.5rem 0 3rem;
}

.terminal {
  width: 100%;
  border: 1px solid rgba(110, 255, 141, 0.38);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(110, 255, 141, 0.1) inset,
    0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(110, 255, 141, 0.25);
  background: linear-gradient(
    90deg,
    rgba(110, 255, 141, 0.1),
    rgba(110, 255, 141, 0.01)
  );
}

.dots {
  display: flex;
  gap: 0.45rem;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dots span:nth-child(1) {
  background: var(--alert);
}

.dots span:nth-child(2) {
  background: #ffd166;
}

.dots span:nth-child(3) {
  background: var(--accent);
}

.bar small {
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

.content {
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.brand {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 9vw, 5.4rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d6ffe4;
  text-shadow:
    0 0 24px rgba(110, 255, 141, 0.34),
    -2px 0 rgba(255, 81, 97, 0.26),
    2px 0 rgba(88, 164, 255, 0.24);
}

.tagline {
  margin: 0.4rem 0 1.2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--ink);
  max-width: 65ch;
}

.prompt {
  margin-top: 1.2rem;
  color: var(--ink-dim);
}

.prompt strong {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 0.6ch;
  animation: blink 1s step-end infinite;
}

.links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(110, 255, 141, 0.34);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.links a:hover {
  transform: translateY(-2px);
  background: rgba(110, 255, 141, 0.14);
}

.links a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid #e8fff0;
  outline-offset: 3px;
}

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

@keyframes sweep {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 640px) {
  .bar small {
    display: none;
  }

  .content {
    padding: 1rem;
  }

  .links {
    gap: 0.6rem;
  }

  .links a {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .scan,
  .cursor {
    animation: none;
  }
}
