:root {
  --bg: #07090a;
  --bg-2: #0c1213;
  --panel: rgba(18, 26, 28, 0.72);
  --border: #1c2a2c;
  --text: #cdd6d4;
  --dim: #6c807e;
  --green: #2bff9c;
  --cyan: #5ef1ff;
  --red: #ff5f6e;
  --yellow: #ffd152;
  --glow: rgba(43, 255, 156, 0.35);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* animated background grid */
.bg-grid {
  position: fixed;
  inset: -50%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(43, 255, 156, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 255, 156, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: drift 40s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(44px); }
}

/* subtle scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(7, 9, 10, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.brand-prompt { color: var(--green); }
.brand-path { color: var(--cyan); }
.nav-links { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--green);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

/* layout */
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(60px, 10vw, 110px) 0 20px; }
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.hash { color: var(--green); }
.section-sub { color: var(--dim); max-width: 640px; margin-bottom: 36px; font-size: 0.95rem; }

/* hero */
.hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.terminal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(43,255,156,0.04);
  overflow: hidden;
  max-width: 760px;
  backdrop-filter: blur(6px);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }
.terminal-title { margin-left: 12px; color: var(--dim); font-size: 0.8rem; }
.terminal-body { padding: 22px 24px; font-size: clamp(0.85rem, 2.2vw, 1rem); }
.line { white-space: pre-wrap; word-break: break-word; }
.line + .line { margin-top: 6px; }
.prompt { color: var(--green); }
.dir { color: var(--cyan); }
.out { color: var(--text); }
.typed { color: var(--cyan); min-height: 1.6em; }

.cursor-blink { animation: blink 1.1s steps(1) infinite; color: var(--green); }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--dim);
  background: rgba(18, 26, 28, 0.4);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--glow); }
  70% { box-shadow: 0 0 0 8px rgba(43, 255, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 255, 156, 0); }
}

/* grid of cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 255, 156, 0.4);
  box-shadow: 0 18px 50px -28px var(--glow);
}
.card h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--text); }
.card p { color: var(--dim); font-size: 0.88rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span {
  font-size: 0.7rem;
  color: var(--green);
  border: 1px solid rgba(43, 255, 156, 0.25);
  border-radius: 5px;
  padding: 2px 8px;
  background: rgba(43, 255, 156, 0.05);
}

/* status */
.status-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.status-overall { font-weight: 700; color: var(--green); }
.status-updated { color: var(--dim); font-size: 0.78rem; }
.status-list { display: grid; gap: 10px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.status-name { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.s-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.s-up { background: var(--green); box-shadow: 0 0 8px var(--green); }
.s-down { background: var(--red); box-shadow: 0 0 8px var(--red); }
.s-pending { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.status-uptime { color: var(--dim); font-size: 0.8rem; }
.status-empty { color: var(--dim); font-size: 0.88rem; text-align: center; padding: 18px; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.spec-col {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.spec-h { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--green); margin-bottom: 16px; }
.spec-list { list-style: none; display: grid; gap: 10px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
}
.spec-list .k { color: var(--dim); }
.spec-list .v { color: var(--text); text-align: right; }
.roadmap .v { color: var(--cyan); }

/* about */
.about {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  max-width: 760px;
}
.about p { color: var(--text); margin-bottom: 14px; font-size: 0.95rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.btn:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn.primary {
  background: var(--green);
  color: #04130c;
  font-weight: 700;
  border-color: var(--green);
}
.btn.primary:hover { box-shadow: 0 12px 34px -14px var(--glow); color: #04130c; }

/* footer */
.footer {
  max-width: 1080px;
  margin: 60px auto 0;
  padding: 30px clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 0.8rem;
}

/* live terminal */
.terminal-live {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.terminal-live-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}
.terminal-status {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--dim);
}
.terminal-mount {
  height: 360px;
  padding: 8px 4px 8px 8px;
  background: #07090a;
}
.terminal-mount .xterm {
  height: 100%;
}
.section-sub code {
  color: var(--cyan);
  font-size: 0.88em;
}

.accent { color: var(--green); }
.muted { color: var(--dim); }

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-grid, .pulse, .cursor-blink { animation: none; }
}

@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .footer { flex-direction: column; }
}
