@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --amber: #F0CC69;
  --teal: #00ffcc;
}

/* Base */
html,
body {
  margin: 0;
  height: 100%;
  font-family: "Share Tech Mono", monospace;
  color: #e6e7e9;
}

/* Background image (fixed path + fallback) */
body {
  background-color: #0b0d10;
  background-image: image-set(url("/static/images/apocalypse-6559868_960_720.webp") type("image/webp"),
      url("/static/images/apocalypse-6559868_960_720.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  /* for overlay */
}

/* Full-page overlay — unified */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  /* unified overlay darkness */
  z-index: 0;
}

/* Ensure page content sits above overlay */
.terminal-wrap,
.hero,
.actions,
.foot {
  position: relative;
  z-index: 1;
}

/* Terminal */
.terminal-wrap {
  display: flex;
  justify-content: center;
  padding: 5vh 1rem 2vh;
}

/* Narrow like login; fixed visual height so it doesn't jump */
.terminal {
  width: min(640px, 90vw);
  max-width: 640px;
  background: #0f1317cc;
  border: 1px solid #00ffcc55;
  border-radius: 12px;
  box-shadow: 0 0 12px #00ffcc55;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.65;

  /* lock the box visually so it doesn't grow while lines render */
  min-height: 6.5em;
  /* ~3 lines + cursor */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.term-feed {
  white-space: pre-wrap;
}

/* Lines visible by default */
.term-line {
  opacity: 1;
  transition: opacity .2s ease;
}

.term-prompt {
  color: #98ffc9;
}

.term-online {
  color: #b6ffd6;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: .7ch;
  height: 1em;
  background: var(--teal);
  margin-left: 4px;
  animation: blink 1s steps(1, end) infinite;
}

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

/* Title + tagline */
.hero {
  text-align: center;
  margin-top: 1rem;
}

.title {
  font-size: clamp(38px, 6vw, 88px);
  color: var(--amber);
  text-shadow:
    0 0 8px rgba(240, 204, 105, .8),
    0 0 18px rgba(240, 204, 105, .6),
    0 0 32px rgba(240, 204, 105, .4);
}

.tagline {
  letter-spacing: .1em;
  font-size: 1rem;
  opacity: .9;
}

/* Buttons — match login glow */
.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 6vh;
}

.btn-access {
  display: inline-block;
  min-width: 240px;
  text-align: center;
  padding: .9rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #a5fff1;
  background: #0b0f10;
  border: 1px solid var(--teal);
  box-shadow: 0 0 14px rgba(0, 255, 204, .6), inset 0 0 8px rgba(0, 255, 204, .2);
  text-transform: uppercase;
  letter-spacing: .1em;
  animation: pulse 2.5s ease-in-out infinite;
}

.btn-access:hover {
  filter: brightness(1.1);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(0, 255, 204, .4), inset 0 0 6px rgba(0, 255, 204, .15)
  }

  50% {
    box-shadow: 0 0 28px rgba(0, 255, 204, .8), inset 0 0 10px rgba(0, 255, 204, .3)
  }
}

/* Footer */
.foot {
  text-align: center;
  opacity: .75;
  padding: 2rem 1rem;
  font-size: .9rem;
}