:root {
  --bg-0: #010b02;
  --bg-1: #041605;
  --ink: #8effa4;
  --ink-soft: #3fcf66;
  --ink-dim: #1f7f38;
  --panel: rgba(3, 20, 6, 0.72);
  --border: rgba(110, 255, 140, 0.35);
  --glow: 0 0 30px rgba(60, 255, 120, 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Courier New", Courier, monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(35, 100, 45, 0.2), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(35, 100, 45, 0.1), transparent 45%),
    linear-gradient(140deg, var(--bg-0), var(--bg-1));
  overflow: hidden;
}

#matrix-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  filter: contrast(1.08) saturate(1.1);
}

.overlay {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.terminal-card {
  width: min(780px, 92vw);
  padding: clamp(1.2rem, 2vw + 1rem, 2.2rem);
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(2px);
  box-shadow: var(--glow);
  animation: boot-in 700ms ease-out both;
}

.kicker {
  margin: 0;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.headline {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(1.6rem, 2.8vw + 0.8rem, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(140, 255, 170, 0.35);
}

.subtext {
  min-height: 2.8rem;
  margin: 0.6rem 0 1.2rem;
  color: var(--ink-soft);
}

.cta {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  outline: none;
  background: rgba(34, 95, 39, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(95, 255, 120, 0.22);
}

.terminal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(120, 255, 140, 0.03) 3px
  );
}

@keyframes boot-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .terminal-card {
    padding: 1rem;
  }

  .kicker {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}
