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

/* ── Variables ── */
:root {
  --bg:       #050507;
  --surface:  #0d0d10;
  --border:   #1a1a20;
  --muted:    #2a2a35;
  --dim:      #555566;
  --mid:      #888899;
  --text:     #dddde8;
  --accent:   #4fc3a1;
  --accent2:  #a78bfa;
  --warn:     #f59e6a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ── Scanline overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* ── Cursor ── */
.cursor {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s;
}
.cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid rgba(79,195,161,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
a:hover ~ .cursor-ring,
.cursor-ring.hover { width: 44px; height: 44px; border-color: rgba(79,195,161,0.7); }

/* ── Layout ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ── */
nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

/* ── Footer ── */
footer {
  margin-top: 80px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fadeIn 0.6s 0.8s ease forwards;
}

.footer-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-meta span { color: var(--dim); }

.build-id {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── Tag/Badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--border);
  color: var(--dim);
}

.tag.green  { border-color: rgba(79,195,161,0.3); color: var(--accent); }
.tag.purple { border-color: rgba(167,139,250,0.3); color: var(--accent2); }
.tag.orange { border-color: rgba(245,158,106,0.3); color: var(--warn); }

.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.dot.blink { animation: blink 1.8s step-end infinite; }

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

/* ── Shared panel style ── */
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 32px;
}

.panel-header {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Animations ── */
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes fadeUp  { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav-links { gap: 16px; }
}
