:root {
  --bg: #0b0e14;
  --bg-card: #12161f;
  --bg-card-hover: #171c27;
  --border: #1f2633;
  --text: #d7dce4;
  --text-dim: #8a93a3;
  --accent: #4fd6be;
  --accent-dim: rgba(79, 214, 190, 0.12);
  --mono: "SF Mono", SFMono-Regular, ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */

.hero {
  padding: 6rem 0 4rem;
}

.prompt {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.prompt .cmd {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 40rem;
}

.status {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.4rem;
  animation: pulse 2.5s ease-in-out infinite;
}

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

/* Sections */

section {
  padding: 2.5rem 0;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hash {
  color: var(--accent);
  font-family: var(--mono);
  margin-right: 0.4rem;
}

/* Service cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.card.linked:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.card-icon {
  font-size: 1.5rem;
}

.badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.badge.public {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* Stack list */

.stack-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.stack-list li {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.stack-list li:last-child {
  border-bottom: none;
}

.stack-list .key {
  font-family: var(--mono);
  color: var(--accent);
  min-width: 7.5rem;
  flex-shrink: 0;
}

.stack-list .val {
  color: var(--text-dim);
}

/* Footer */

footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

footer p {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .hero {
    padding: 4rem 0 2.5rem;
  }

  .stack-list li {
    flex-direction: column;
    gap: 0.15rem;
  }
}
