/* Nostr page — eigene Violett-Palette (Rest der Site bleibt Orange) */
@import url("site.css");

.nostr-page {
  overflow-x: clip;
  /* Sanftes Violett nur auf /nostr.html — überschreibt tokens.css lokal */
  --brand: #a78bfa;
  --brand-hover: #c4b5fd;
  --brand-soft: rgba(167, 139, 250, 0.14);
  --brand-border: rgba(167, 139, 250, 0.4);
  --primary: var(--brand);
  --primary-hover: var(--brand-hover);
}

.nostr-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(167, 139, 250, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 88% 28%, rgba(139, 92, 246, 0.06), transparent 50%),
    var(--bg);
}

.nostr-hero {
  padding: calc(var(--nav-h) + 56px) 20px 40px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.nostr-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-border);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nostr-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: normal;
  line-height: 1.12;
}

.nostr-hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.nostr-hero .lead {
  margin: 0 auto 28px;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  letter-spacing: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.hero-stat {
  min-width: 110px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stat .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.nostr-section {
  padding: 56px 5% 24px;
  max-width: var(--max);
  margin: 0 auto;
  scroll-margin-top: 88px;
}

.nostr-section h2 {
  text-align: center;
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 36px;
  font-size: 1.02rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.2s;
}

.benefit-card.is-visible {
  opacity: 1;
  transform: none;
}

.benefit-card:hover { border-color: var(--brand-border); }

.benefit-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bots-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 36px 5% 8px;
  max-width: var(--max);
  margin: 0 auto;
}

.bots-filter label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bots-filter select {
  min-width: min(100%, 280px);
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.bots-filter select:focus {
  outline: 2px solid var(--brand-border);
  outline-offset: 2px;
}

.bot-group {
  padding: 28px 5% 12px;
  max-width: var(--max);
  margin: 0 auto;
  scroll-margin-top: 88px;
  border-bottom: 1px solid var(--border);
}

/* Showcase strip for freshly onboarded bots (before niche placement). */
.bot-group--newest {
  margin-top: 8px;
  padding-top: 32px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius, 12px);
  background:
    linear-gradient(180deg, var(--brand-soft), transparent 72%),
    var(--bg);
}

.bot-group--newest .bot-group__title {
  color: var(--brand);
}

.bot-group--newest .bot-group__count {
  border-color: var(--brand-border);
}

.bot-group[hidden] {
  display: none;
}

.bot-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 8px 0;
}

.bot-group__summary::-webkit-details-marker {
  display: none;
}

.bot-group__summary::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  margin-right: 4px;
}

.bot-group[open] > .bot-group__summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}

.bot-group__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.bot-group__count {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.bot-group .section-sub {
  margin-top: 4px;
}

.bot-group h2 {
  text-align: center;
  margin: 0 0 10px;
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.bots-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.bot-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.2s;
}

.bot-card.is-visible {
  opacity: 1;
  transform: none;
}

.bot-card:hover { border-color: var(--brand-border); }

.bot-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-border);
  background: #161616;
  margin-bottom: 14px;
}

.bot-avatar.is-fallback {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.bot-avatar.is-fallback::after {
  content: "₿";
  color: var(--brand);
  font-weight: 800;
}

.bot-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bot-card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.bot-nip05 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  word-break: break-all;
}

.bot-blurb {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.bot-actions .btn,
.bot-actions .btn-outline {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.catalog-error {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.step-card.is-visible {
  opacity: 1;
  transform: none;
}

.step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(167, 139, 250, 0.28);
}

.step-card h3 {
  margin: 0 0 10px;
  padding-right: 36px;
  font-size: 1.15rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.client-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.client-links a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.client-links a:hover {
  border-color: var(--brand);
  color: var(--text) !important;
}

.support-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.support-box h3 {
  margin: 0 0 8px;
}

.support-box p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.zap-address {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  color: var(--brand);
  word-break: break-all;
}

.center-link {
  text-align: center;
  margin-top: 28px;
}

.operator-mount {
  max-width: 480px;
  margin: 0 auto;
}

.operator-card {
  text-align: center;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.package-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  transition: var(--ease);
}

.package-card:hover {
  border-color: var(--brand-border);
  background: var(--bg-card-hover);
}

.package-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 8px;
}

.package-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.package-card p {
  color: var(--text-muted);
  flex-grow: 1;
  margin: 0 0 14px;
  font-size: 0.93rem;
}

.package-link {
  color: var(--brand) !important;
  font-weight: 700;
  font-size: 0.9rem;
}

.package-note {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .nostr-hero { padding-top: calc(var(--nav-h) + 28px); }
  .bot-actions .btn,
  .bot-actions .btn-outline { flex: 1 1 100%; }
}
