/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(0,255,157,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,157,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

a   { color: inherit; text-decoration: none; }
ul,
ol  { list-style: none; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan2); }

/* ── Utility ── */
.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;
}

/* ── App shell ── */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.main-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Status pulse animation ── */
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Wire pulse animation ── */
@keyframes wirePulse {
  0%   { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Utility buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.875rem;
  transition: all 0.15s;
  letter-spacing: 0.03em;
}
.btn-primary:hover { background: var(--cyan2); transform: translateY(-1px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.4rem 0;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--cyan); }

.not-found { text-align: center; padding: 4rem 2rem; }
.not-found h2 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Hero placeholder (before JS paints) */
.hero-loading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: #070a05;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
