/* ============================================================
   Agentry — Nostr Page Styles
   Accent: #8B5CF6 (violet/purple) — distinct from main teal
   ============================================================ */

/* ==================== NOSTR ACCENT OVERRIDES ==================== */
:root {
  --nostr-accent: #8B5CF6;
  --nostr-accent-dim: rgba(139, 92, 246, 0.12);
  --nostr-accent-glow: rgba(139, 92, 246, 0.3);
  --nostr-accent-2: #A78BFA;
  --nostr-accent-dark: #6D28D9;
  --nostr-gradient: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
}

/* ==================== HERO ==================== */
.nostr-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.nostr-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.nostr-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.nostr-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
}

.nostr-hero__orbs {
  position: absolute;
  inset: 0;
}

.nostr-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-float 12s ease-in-out infinite;
}

.nostr-hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--nostr-accent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.nostr-hero__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--nostr-accent-2);
  bottom: -50px;
  right: 10%;
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.nostr-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 0 var(--space-6, 1.5rem);
  margin: 0 auto;
  text-align: center;
}

.nostr-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--nostr-accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nostr-accent-2);
  margin-bottom: 1.5rem;
}

.nostr-hero__badge-icon {
  width: 14px;
  height: 14px;
  fill: var(--nostr-accent);
}

.nostr-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--color-text, #E8F4F5);
}

.nostr-hero__title-accent {
  background: var(--nostr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nostr-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted, rgba(232, 244, 245, 0.65));
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.nostr-hero__ctas {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--nostr {
  background: var(--nostr-gradient);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.btn--nostr:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
}

.btn--nostr-outline {
  background: transparent;
  color: var(--nostr-accent-2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.btn--nostr-outline:hover {
  border-color: var(--nostr-accent);
  background: var(--nostr-accent-dim);
  transform: translateY(-1px);
}

/* ==================== STATS BAR ==================== */
.nostr-stats {
  background: var(--color-surface-1, rgba(255,255,255,0.03));
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.07));
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.07));
  padding: 1.5rem 0;
}

.nostr-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

@media (max-width: 768px) {
  .nostr-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }
}

.nostr-stats__item {
  text-align: center;
  padding: 1rem 1.5rem;
  position: relative;
}

.nostr-stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border, rgba(255,255,255,0.07));
}

@media (max-width: 768px) {
  .nostr-stats__item:nth-child(2)::after,
  .nostr-stats__item:nth-child(4)::after {
    display: none;
  }
}

.nostr-stats__value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--nostr-accent-2);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.25rem;
}

.nostr-stats__label {
  font-size: 0.78rem;
  color: var(--color-text-muted, rgba(232, 244, 245, 0.55));
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ==================== HOW IT WORKS ==================== */
.nostr-how {
  padding: 6rem 0;
}

.nostr-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

@media (max-width: 900px) {
  .nostr-how__steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

.nostr-how__connector {
  position: absolute;
  top: 2.5rem;
  left: calc(33.33% + 0.75rem);
  right: calc(33.33% + 0.75rem);
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.1));
  pointer-events: none;
}

@media (max-width: 900px) {
  .nostr-how__connector { display: none; }
}

.nostr-step {
  background: var(--color-surface-1, rgba(255,255,255,0.03));
  border: 1px solid var(--color-border, rgba(255,255,255,0.07));
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nostr-step:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-3px);
}

.nostr-step__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--nostr-accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--nostr-accent);
  margin-bottom: 1.25rem;
}

.nostr-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text, #E8F4F5);
  margin-bottom: 0.75rem;
}

.nostr-step__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted, rgba(232, 244, 245, 0.6));
}

/* ==================== DVM EXPLORER ==================== */
.nostr-explorer {
  padding: 5rem 0 6rem;
  background: var(--color-surface-0, rgba(0,0,0,0.15));
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.07));
}

.nostr-explorer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nostr-explorer__title-group {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.nostr-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.625rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nostr-accent-2);
}

.nostr-live-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nostr-accent);
  animation: live-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.nostr-relay-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nostr-relay {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted, rgba(232, 244, 245, 0.5));
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.nostr-relay__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-faint, rgba(232,244,245,0.2));
  transition: background 0.4s ease;
}

.nostr-relay__dot--connected {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.nostr-relay__dot--error {
  background: #ef4444;
}

/* Explorer grid */
.nostr-explorer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  min-height: 200px;
}

/* Loading state */
.nostr-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1.25rem;
}

.nostr-loading__spinner {
  width: 42px;
  height: 42px;
  border: 2px solid var(--nostr-accent-dim);
  border-top-color: var(--nostr-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.nostr-loading__text {
  font-size: 0.875rem;
  color: var(--color-text-muted, rgba(232, 244, 245, 0.5));
  text-align: center;
  line-height: 1.5;
}

.nostr-loading__relay-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* DVM Agent Cards */
.dvm-card {
  background: var(--color-surface-1, rgba(255,255,255,0.03));
  border: 1px solid var(--color-border, rgba(255,255,255,0.07));
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: card-in 0.3s ease both;
  position: relative;
  overflow: hidden;
}

.dvm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nostr-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dvm-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
}

.dvm-card:hover::before {
  opacity: 1;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skeleton loading cards */
.dvm-card--skeleton {
  pointer-events: none;
}

.dvm-card--skeleton .dvm-card__name,
.dvm-card--skeleton .dvm-card__npub,
.dvm-card--skeleton .dvm-card__kinds,
.dvm-card--skeleton .dvm-card__badge {
  background: linear-gradient(90deg, rgba(139,92,246,0.08) 25%, rgba(139,92,246,0.15) 50%, rgba(139,92,246,0.08) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
  border: none !important;
  user-select: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dvm-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.dvm-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--nostr-accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  overflow: hidden;
}

.dvm-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.dvm-card__info {
  flex: 1;
  min-width: 0;
}

.dvm-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text, #E8F4F5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  min-height: 1rem;
}

.dvm-card__npub {
  font-size: 0.7rem;
  color: var(--color-text-faint, rgba(232,244,245,0.35));
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0.7rem;
}

.dvm-card__kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
  min-height: 1.5rem;
}

.dvm-kind-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--nostr-accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  color: var(--nostr-accent-2);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.02em;
}

.dvm-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dvm-card__registered {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.dvm-card__registered--yes {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.dvm-card__registered--no {
  background: rgba(255,255,255,0.04);
  color: var(--color-text-faint, rgba(232,244,245,0.3));
  border: 1px solid rgba(255,255,255,0.08);
}

.dvm-card__about {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted, rgba(232,244,245,0.55));
  margin-bottom: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Explorer empty/error state */
.nostr-explorer__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted, rgba(232,244,245,0.5));
}

.nostr-explorer__empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.nostr-explorer__count {
  font-size: 0.8125rem;
  color: var(--color-text-faint, rgba(232,244,245,0.35));
  margin-top: 1.5rem;
  text-align: center;
}

/* ==================== IDENTITY SECTION ==================== */
.nostr-identity {
  padding: 6rem 0;
}

.nostr-identity__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

@media (max-width: 860px) {
  .nostr-identity__grid {
    grid-template-columns: 1fr;
  }
}

.nostr-identity__text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #E8F4F5);
  margin-bottom: 1rem;
}

.nostr-identity__text p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted, rgba(232,244,245,0.6));
  margin-bottom: 1.25rem;
}

.nostr-identity__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nostr-identity__features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, rgba(232,244,245,0.7));
}

.nostr-identity__features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nostr-accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5CF6' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.nostr-identity__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Code block */
.nostr-code-block {
  background: var(--color-surface-1, #0D1B1E);
  border: 1px solid var(--color-border, rgba(255,255,255,0.07));
  border-radius: 10px;
  overflow: hidden;
}

.nostr-code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.07));
  background: rgba(0,0,0,0.2);
}

.nostr-code-block__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-faint, rgba(232,244,245,0.35));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nostr-code-block__copy {
  background: none;
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--nostr-accent-2);
  border-radius: 5px;
  padding: 0.25rem 0.625rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: 0.04em;
}

.nostr-code-block__copy:hover {
  background: var(--nostr-accent-dim);
}

.nostr-code-block__body {
  padding: 1.25rem;
  overflow-x: auto;
}

.nostr-code-block__body pre {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text, #E8F4F5);
  margin: 0;
  white-space: pre;
}

.nostr-code-block__body pre .c { color: rgba(232,244,245,0.35); } /* comments */
.nostr-code-block__body pre .s { color: #A78BFA; }               /* strings */
.nostr-code-block__body pre .k { color: #8B5CF6; }               /* keywords */
.nostr-code-block__body pre .v { color: #6EE7B7; }               /* values */

/* NIP cards row */
.nostr-nip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .nostr-nip-cards { grid-template-columns: repeat(2, 1fr); }
}

.nostr-nip-card {
  background: var(--nostr-accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  padding: 0.875rem;
  text-align: center;
}

.nostr-nip-card__code {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--nostr-accent);
  font-family: 'SF Mono', 'Fira Code', monospace;
  display: block;
  margin-bottom: 0.25rem;
}

.nostr-nip-card__name {
  font-size: 0.7rem;
  color: var(--color-text-muted, rgba(232,244,245,0.55));
  line-height: 1.3;
}

/* ==================== COMPATIBLE PROJECTS ==================== */
.nostr-ecosystem {
  padding: 5rem 0 6rem;
  background: var(--color-surface-0, rgba(0,0,0,0.1));
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.07));
}

.nostr-ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .nostr-ecosystem__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  .nostr-ecosystem__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ecosystem-card {
  background: var(--color-surface-1, rgba(255,255,255,0.03));
  border: 1px solid var(--color-border, rgba(255,255,255,0.07));
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ecosystem-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.ecosystem-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  background: var(--nostr-accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.ecosystem-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text, #E8F4F5);
}

.ecosystem-card__desc {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--color-text-muted, rgba(232,244,245,0.5));
}

/* ==================== SECTION HEADER (shared pattern) ==================== */
.nostr-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.nostr-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nostr-accent);
  margin-bottom: 0.875rem;
}

.nostr-section-label svg {
  width: 13px;
  height: 13px;
  stroke: var(--nostr-accent);
}

.nostr-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text, #E8F4F5);
  margin-bottom: 1rem;
}

.nostr-section-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted, rgba(232,244,245,0.6));
}

/* ==================== REVEAL ANIMATION ==================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.07s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.14s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.21s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.28s; }

/* ==================== ACTIVE NAV LINK ==================== */
.header__nav a[href="/nostr/"],
.mobile-nav a[href="/nostr/"] {
  color: var(--nostr-accent-2);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  .nostr-hero {
    min-height: 70vh;
    padding: 5rem 0 3rem;
  }
  .nostr-hero__title {
    font-size: 2rem;
  }
  .nostr-hero__subtitle {
    font-size: 0.9375rem;
  }
  .nostr-explorer__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================== DVM DETAIL PANEL ==================== */

/* Overlay backdrop */
.dvm-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dvm-panel-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel itself */
.dvm-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 450px;
  max-width: 100vw;
  background: #0D1B2A;
  border-left: 1px solid rgba(139, 92, 246, 0.2);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.dvm-panel--open {
  transform: translateX(0);
}

@media (max-width: 520px) {
  .dvm-panel {
    width: 100vw;
    border-left: none;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    top: 0;
    height: 100%;
  }
}

/* Panel header */
.dvm-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.dvm-panel__avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.dvm-panel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.dvm-panel__header-info {
  flex: 1;
  min-width: 0;
}

.dvm-panel__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #E8F4F5;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dvm-panel__npub-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dvm-panel__npub {
  font-size: 0.7rem;
  color: rgba(232, 244, 245, 0.4);
  font-family: 'SF Mono', 'Fira Code', monospace;
  word-break: break-all;
}

.dvm-panel__copy-btn {
  background: none;
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #A78BFA;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.dvm-panel__copy-btn:hover {
  background: rgba(139, 92, 246, 0.12);
}

.dvm-panel__njump-link {
  font-size: 0.7rem;
  color: #A78BFA;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  transition: opacity 0.15s;
}

.dvm-panel__njump-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.dvm-panel__close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 244, 245, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
  font-size: 1.1rem;
  line-height: 1;
}

.dvm-panel__close:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: #E8F4F5;
}

/* Panel scroll body */
.dvm-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.dvm-panel__body::-webkit-scrollbar {
  width: 4px;
}

.dvm-panel__body::-webkit-scrollbar-track {
  background: transparent;
}

.dvm-panel__body::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 2px;
}

/* Panel sections */
.dvm-panel__section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dvm-panel__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.dvm-panel__section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139, 92, 246, 0.8);
  margin-bottom: 0.75rem;
}

.dvm-panel__about-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(232, 244, 245, 0.65);
}

/* Kind rows in panel */
.dvm-panel__kind-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  margin-bottom: 0.4rem;
}

.dvm-panel__kind-num {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #8B5CF6;
  min-width: 36px;
}

.dvm-panel__kind-name {
  font-size: 0.8rem;
  color: rgba(232, 244, 245, 0.7);
}

/* Source relays */
.dvm-panel__relay-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: rgba(232, 244, 245, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin: 0.15rem 0.15rem 0.15rem 0;
}

/* Registration status */
.dvm-panel__reg-registered {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.dvm-panel__reg-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4ade80;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dvm-panel__reg-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(232, 244, 245, 0.55);
  margin-bottom: 0.4rem;
}

.dvm-panel__reg-row strong {
  color: rgba(232, 244, 245, 0.8);
  min-width: 80px;
  font-weight: 600;
}

.dvm-panel__claim-box {
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.dvm-panel__claim-desc {
  font-size: 0.8rem;
  color: rgba(232, 244, 245, 0.55);
  margin-bottom: 0.875rem;
  line-height: 1.55;
}

.dvm-panel__claim-hint {
  font-size: 0.72rem;
  color: rgba(139, 92, 246, 0.7);
  margin-top: 0.625rem;
  font-style: italic;
}

.btn--panel-claim {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s ease;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.btn--panel-claim:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Try It button in panel */
.dvm-panel__tryit-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  letter-spacing: 0.01em;
}

.dvm-panel__tryit-trigger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 28px rgba(139, 92, 246, 0.5);
}

/* Panel view switcher */
.dvm-panel__view {
  display: none;
}

.dvm-panel__view--active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ==================== TRY IT FORM ==================== */

.tryit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tryit-form__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: rgba(232, 244, 245, 0.5);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.tryit-form__back:hover {
  color: #A78BFA;
}

.tryit-form__title {
  font-size: 1rem;
  font-weight: 700;
  color: #E8F4F5;
  margin-bottom: 0.25rem;
}

.tryit-form__subtitle {
  font-size: 0.78rem;
  color: rgba(232, 244, 245, 0.45);
  margin-bottom: 0.5rem;
}

.tryit-form__kind-select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #E8F4F5;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5CF6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 16px;
  padding-right: 2.2rem;
}

.tryit-form__kind-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
}

.tryit-form__kind-select option {
  background: #0D1B2A;
  color: #E8F4F5;
}

.tryit-form__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(232, 244, 245, 0.6);
  display: block;
  margin-bottom: 0.375rem;
  letter-spacing: 0.04em;
}

.tryit-form textarea,
.tryit-form input[type="text"],
.tryit-form input[type="url"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  color: #E8F4F5;
  font-size: 0.875rem;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.tryit-form textarea {
  min-height: 90px;
  line-height: 1.55;
}

.tryit-form textarea:focus,
.tryit-form input[type="text"]:focus,
.tryit-form input[type="url"]:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.tryit-form textarea::placeholder,
.tryit-form input::placeholder {
  color: rgba(232, 244, 245, 0.25);
}

.tryit-form__submit {
  width: 100%;
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tryit-form__submit:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.tryit-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* NIP-90 JSON output block */
.tryit-form__json-block {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 7px;
  overflow: hidden;
}

.tryit-form__json-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.tryit-form__json-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(232, 244, 245, 0.35);
}

.tryit-form__copy-json {
  background: none;
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #A78BFA;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.tryit-form__copy-json:hover {
  background: rgba(139, 92, 246, 0.12);
}

.tryit-form__json-body {
  padding: 0.75rem;
  overflow-x: auto;
  max-height: 200px;
  overflow-y: auto;
}

.tryit-form__json-body pre {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(232, 244, 245, 0.7);
  margin: 0;
  white-space: pre;
}

.tryit-form__json-hint {
  padding: 0.5rem 0.75rem 0.625rem;
  font-size: 0.72rem;
  color: rgba(139, 92, 246, 0.65);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Loading state */
.tryit-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  text-align: center;
}

.tryit-loading__ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(139, 92, 246, 0.15);
  border-top-color: #8B5CF6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.tryit-loading__dots {
  display: flex;
  gap: 5px;
}

.tryit-loading__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.5);
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.tryit-loading__dots span:nth-child(1) { animation-delay: 0s; }
.tryit-loading__dots span:nth-child(2) { animation-delay: 0.2s; }
.tryit-loading__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.tryit-loading__text {
  font-size: 0.85rem;
  color: rgba(232, 244, 245, 0.5);
  line-height: 1.5;
}

.tryit-loading__timer {
  font-size: 0.72rem;
  color: rgba(139, 92, 246, 0.6);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Status event display */
.tryit-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.tryit-status--processing {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #A78BFA;
}

.tryit-status--payment {
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.tryit-status--error {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #f87171;
}

/* Result display */
.tryit-result {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.tryit-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.tryit-result__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tryit-result__time {
  font-size: 0.68rem;
  color: rgba(232, 244, 245, 0.3);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.tryit-result__body {
  padding: 0.875rem;
  max-height: 220px;
  overflow-y: auto;
}

.tryit-result__body pre {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(232, 244, 245, 0.8);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.tryit-result__new-req {
  background: none;
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #A78BFA;
  border-radius: 5px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin: 0.5rem 0.875rem 0.875rem;
}

.tryit-result__new-req:hover {
  background: rgba(139, 92, 246, 0.1);
}

.tryit-timeout {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 7px;
  padding: 0.875rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: rgba(232, 244, 245, 0.55);
  line-height: 1.55;
  text-align: center;
}

.tryit-timeout strong {
  color: #f87171;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

/* ==================== PAYMENT GATE ==================== */

.tryit-payment-gate {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 8px;
  padding: 1rem;
}

.tryit-payment-gate__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tryit-payment-gate__desc {
  font-size: 0.78rem;
  color: rgba(232, 244, 245, 0.5);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.tryit-payment-gate__ecash {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  font-size: 0.72rem;
  color: rgba(232, 244, 245, 0.45);
  line-height: 1.55;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-bottom: 0.5rem;
}

.tryit-payment-gate__ecash strong {
  color: #A78BFA;
  font-weight: 700;
}

.tryit-payment-gate__fee {
  font-size: 0.7rem;
  color: rgba(232, 244, 245, 0.3);
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

.tryit-free-banner {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 7px;
  padding: 0.625rem 0.875rem;
  font-size: 0.8rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tryit-free-banner svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
