/* 
  Spectrum Core Node
  Static Neocities-friendly site.
  No frameworks. No build tools. Just vibes.
*/

:root {
  --bg: #05070d;
  --bg-panel: rgba(9, 14, 25, 0.86);
  --bg-panel-strong: rgba(12, 19, 34, 0.96);
  --text: #e7edf7;
  --muted: #8e9bb0;
  --cyan: #5ee7ff;
  --violet: #b38cff;
  --amber: #f7c76b;
  --danger: #ff6b7a;
  --line: rgba(94, 231, 255, 0.22);
  --line-strong: rgba(94, 231, 255, 0.52);
  --shadow: 0 0 30px rgba(94, 231, 255, 0.12);
  --font-main: "Consolas", "Lucida Console", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(94, 231, 255, 0.13), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(179, 140, 255, 0.12), transparent 34rem),
    linear-gradient(135deg, #03050a 0%, #07101f 58%, #03040a 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.noise-layer,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.noise-layer {
  opacity: 0.08;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,0.18) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.scanlines {
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 2px,
    transparent 5px
  );
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.boot-screen {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.terminal-window,
.hero-panel,
.footer-panel,
.directory-card,
.content-panel {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.terminal-window {
  width: min(880px, 100%);
  min-height: 420px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-light {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 12px rgba(94, 231, 255, 0.4);
}

.terminal-title {
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.terminal-body {
  position: relative;
  min-height: 360px;
  padding: 28px;
}

.boot-text {
  min-height: 260px;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--text);
  text-shadow: 0 0 12px rgba(94, 231, 255, 0.28);
}

.boot-text::after {
  content: "█";
  color: var(--cyan);
  animation: blink 0.8s steps(2, start) infinite;
}

.ghost-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(94, 231, 255, 0.06);
  padding: 10px 14px;
  font-family: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(94, 231, 255, 0.14);
  border-color: var(--cyan);
  outline: none;
}

.directory {
  animation: directoryIn 600ms ease both;
}

.hidden {
  display: none;
}

.hero-panel {
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 22px;
  background:
    linear-gradient(120deg, rgba(94, 231, 255, 0.11), transparent 38%),
    linear-gradient(240deg, rgba(179, 140, 255, 0.11), transparent 42%),
    var(--bg-panel-strong);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.tagline {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.status-card {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.status-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-card strong {
  color: var(--text);
  font-size: 0.95rem;
}

.status-dot {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.directory-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.directory-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.directory-card:hover,
.directory-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  outline: none;
}

.directory-card:hover::before,
.directory-card:focus-visible::before {
  opacity: 1;
}

.card-number {
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.directory-card h2 {
  position: relative;
  margin: 38px 0 10px;
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.directory-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
}

.footer-panel p {
  margin: 0;
  color: var(--muted);
}

.page-header {
  padding: 24px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cyan);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.content-panel {
  padding: clamp(22px, 4vw, 42px);
  line-height: 1.7;
}

.content-panel h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.05em;
}

.content-panel h2 {
  margin-top: 32px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-panel p,
.content-panel li {
  color: var(--muted);
}

.content-panel code {
  color: var(--amber);
}

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

@keyframes directoryIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 860px) {
  .status-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-body {
    padding: 20px;
  }
}

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