/* Under construction — retro terminal / alpetras-adjacent vibe */

:root {
  --void: #06060a;
  --panel: #0c0e14;
  --grid: rgba(34, 211, 238, 0.06);
  --text: #e2e8f0;
  --dim: #64748b;
  --neon: #22d3ee;
  --neon-dim: rgba(34, 211, 238, 0.45);
  --amber: #fbbf24;
  --glow: rgba(34, 211, 238, 0.35);
  --font-mono: "Share Tech Mono", "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.55;
  color: var(--text);
  background: var(--void);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(251, 191, 36, 0.06), transparent);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.35;
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.terminal {
  width: 100%;
  max-width: 38rem;
  border: 1px solid var(--neon-dim);
  border-radius: 4px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 40px var(--glow),
    inset 0 1px 0 rgba(34, 211, 238, 0.08);
}

.terminal__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--neon-dim);
  background: rgba(0, 0, 0, 0.35);
}

.terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}

.terminal__dot--r {
  background: #f87171;
}
.terminal__dot--y {
  background: var(--amber);
}
.terminal__dot--g {
  background: #4ade80;
}

.terminal__title {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.terminal__body {
  padding: 1.75rem 1.35rem 2rem;
}

.prompt {
  color: var(--neon);
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.prompt::before {
  content: "> ";
  color: var(--amber);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 0 24px var(--glow);
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--dim);
  font-size: 0.95rem;
}

.lead strong {
  color: var(--neon);
  font-weight: 400;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.65rem;
  border: 1px dashed var(--neon-dim);
  border-radius: 2px;
  font-size: 0.8rem;
  color: var(--amber);
}

.status__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .status__pulse {
    animation: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.cmd {
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  border-left: 3px solid var(--neon);
  border-radius: 0 2px 2px 0;
  color: var(--dim);
  font-size: 0.85rem;
}

.cmd code {
  color: var(--neon);
  font-family: inherit;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 2px;
  background: var(--neon);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer a {
  color: var(--neon);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 4px;
}
