@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani/Rajdhani-Light.woff2') format('woff2'),
    url('../fonts/rajdhani/Rajdhani-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani/Rajdhani-Regular.woff2') format('woff2'),
    url('../fonts/rajdhani/Rajdhani-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani/Rajdhani-Medium.woff2') format('woff2'),
    url('../fonts/rajdhani/Rajdhani-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani/Rajdhani-SemiBold.woff2') format('woff2'),
    url('../fonts/rajdhani/Rajdhani-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: clamp(14px, 2vw, 18px);
}

:root {
  --gold: #d4a843;
  --gold-bright: #f2c94c;
  --gold-dim: #8a6820;
  --gold-faint: #3a2c0e;
  --bg: #070910;
  --surface: #0c0f18;
  --surface2: #111520;
  --border: #1c2235;
  --text: #dde6f0;
  --text-mid: #8fa0b8;
  --text-dim: #4a5a70;
  --cyan: #3ae0cc;
  --cyan-dim: #1a6860;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1rem, 4vw, 2rem);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: clamp(2rem, 8vh, 4rem);
  padding-bottom: clamp(2rem, 8vh, 4rem);
}

/* Grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 168, 67, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridDrift 24s linear infinite;
}

@keyframes gridDrift {
  to {
    transform: translateY(44px);
  }
}

/* Scanlines */
.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px,
      rgba(0, 0, 0, 0.06) 3px, rgba(0, 0, 0, 0.06) 4px);
}

/* Glow orbs */
.bg-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.bg-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: -100px;
  right: -100px;
}

.bg-glow-2 {
  width: 300px;
  height: 300px;
  background: var(--cyan);
  bottom: -80px;
  left: -80px;
}

/* ── CARD ── */
.card {
  position: relative;
  width: min(90vw, 45rem);
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.07),
    0 0 60px rgba(212, 168, 67, 0.07),
    0 30px 80px rgba(0, 0, 0, 0.8);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Corner brackets */
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 1.125rem;
  height: 1.125rem;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 1.125rem;
  height: 1.125rem;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.c-tr {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 1.125rem;
  height: 1.125rem;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.c-bl {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 1.125rem;
  height: 1.125rem;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

/* ── TOP BAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(212, 168, 67, 0.025);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-id {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  color: var(--gold);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-domain {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-mid);
}

.status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.2
  }
}

/* ── MAIN GRID ── */
.main {
  display: grid;
  grid-template-columns: minmax(11rem, 22%) 1fr;
  gap: 0;
}

/* ── AVATAR COLUMN ── */
.avatar-col {
  padding: 2rem 1.2rem 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  border-right: 1px solid var(--border);
}

.avatar-wrap {
  position: relative;
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-svg {
  position: absolute;
  inset: -0.4rem;
  width: calc(100% + 0.8rem);
  height: calc(100% + 0.8rem);
  animation: spin 12s linear infinite;
}

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

.avatar-img {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  position: relative;
  z-index: 1;
  border: 2px solid var(--bg);
}

.avatar-fallback {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1a30, #1a3050);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold);
  position: relative;
  z-index: 1;
  border: 2px solid var(--bg);
}

.sep {
  width: 2.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.gh-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  text-align: center;
}

.gh-link:hover {
  color: var(--gold-bright);
}

/* Sources / References */
.sources {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  margin-top: 0.5rem;
}

.source-category {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  opacity: 0.95;
  font-weight: 600;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
}

.source-link a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.source-link a::before {
  content: '⧉';
  opacity: 0.6;
  font-size: 0.75em;
}

.source-link a:hover {
  color: var(--cyan);
}

.source-link a:hover::before {
  opacity: 1;
}

/* Node indicators */
.nodes {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  margin-top: 0.25rem;
}

.node-category {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
  opacity: 0.95;
  font-weight: 600;
}

.node-category:first-child {
  margin-top: 0;
}

.node {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  color: var(--text-mid);
}

.node-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--cyan-dim);
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--cyan-dim);
}

.node-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.node-dot.node-private {
  background: #d4a843;
  box-shadow: 0 0 5px #d4a843;
}

.node-dot.active.node-private {
  background: #f2c94c;
  box-shadow: 0 0 6px #f2c94c;
}

/* ── INFO COLUMN ── */
.info-col {
  padding: 1.6rem 1.75rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.name-block {}

.tag-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.3rem;
  line-height: 1;
  cursor: default;
  text-shadow: 0 0 30px rgba(212, 168, 67, 0.15);
}

.tag-name span {
  color: var(--gold-bright);
}

.tag-name:hover {
  animation: glitch 0.4s steps(2) forwards;
}

@keyframes glitch {
  0% {
    text-shadow: 2px 0 var(--gold), -2px 0 var(--cyan);
  }

  33% {
    text-shadow: -2px 0 var(--gold), 2px 0 var(--cyan);
  }

  66% {
    text-shadow: 2px 0 var(--cyan), -2px 0 var(--gold);
  }

  100% {
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.15);
  }
}

.tag-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.8;
  margin-top: 0.5rem;
}

.tag-net {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--cyan);
  opacity: 0.7;
  margin-top: 0.25rem;
}

.hr {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

/* Quote — FIXED CONTRAST */
.quote {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  border-left: 2px solid var(--gold-dim);
  padding-left: 0.8rem;
}

/* Tags */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pill {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(212, 168, 67, 0.04);
  cursor: default;
  transition: all 0.2s;
}

.pill:hover {
  background: rgba(212, 168, 67, 0.12);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.18);
}

/* Description — FIXED CONTRAST */
.desc {
  font-size: clamp(0.95rem, 2.2vw, 1rem);
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 400;
}

.desc strong {
  color: var(--text);
  font-weight: 600;
}

.desc em {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

/* ── NETWORK STRIP ── */
.net-strip {
  border-top: 1px solid var(--border);
  padding: 0.6rem 1.4rem;
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.net-content {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.net-category {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.net-category-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

.net-items {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.net-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: rgba(58, 224, 204, 0.02);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
  cursor: default;
  white-space: nowrap;
}

.net-item::before {
  content: '';
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}

.net-item:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
  background: rgba(58, 224, 204, 0.05);
}

.net-item.net-private {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.02);
}

.net-item.net-private:hover {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  background: rgba(212, 168, 67, 0.06);
}

.net-item.net-project {
  border-color: #7c5cae;
  color: #b896d6;
  background: rgba(188, 150, 214, 0.02);
}

.net-item.net-project:hover {
  border-color: #7c5cae;
  color: #d8c0e8;
  background: rgba(188, 150, 214, 0.06);
}

.net-category-label.net-private-label {
  color: var(--gold);
}

.net-category-label.net-public-label {
  color: var(--cyan);
}

.net-category-label.net-project-label {
  color: #b896d6;
}

/* ── BOTTOM BAR ── */
.bottombar {
  padding: 0.6rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(212, 168, 67, 0.02);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.why {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--gold);
}

.why span {
  color: var(--gold-bright);
}

.domain-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-mid);
}

.domain-tag a {
  color: var(--gold);
  text-decoration: none;
}

.domain-tag a:hover {
  color: var(--gold-bright);
}

/* Responsive Design */

/* Tablet - between 520px and 768px */
@media (max-width: 48rem) {
  .main {
    grid-template-columns: 1fr;
  }

  .avatar-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.4rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nodes {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .tag-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .info-col {
    padding: 1.4rem;
  }

  .topbar {
    font-size: 0.8rem;
  }

  .net-content {
    flex-direction: column;
    gap: 0.6rem;
  }
  .topbar-id {
    font-size: 0.6rem;
  }
}

/* Mobile - below 520px */
@media (max-width: 32.5rem) {
  html {
    font-size: clamp(13px, 2.5vw, 16px);
  }

  .card {
    width: 100%;
  }

  .main {
    grid-template-columns: 1fr;
  }

  .avatar-col {
    padding: 1.2rem;
    gap: 0.7rem;
  }

  .avatar-wrap {
    width: 5.5rem;
    height: 5.5rem;
  }

  .avatar-img,
  .avatar-fallback {
    width: 5.5rem;
    height: 5.5rem;
    font-size: 1.4rem;
  }

  .tag-name {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    letter-spacing: 0.2rem;
  }

  .info-col {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .quote {
    font-size: 0.9rem;
    padding-left: 0.6rem;
  }

  .desc {
    font-size: 0.9rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .topbar-id {
    font-size: 0.55rem;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .pill {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }

  .net-item {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }

  .net-content {
    gap: 0.6rem;
    flex-direction: column;
  }

  .net-category-label {
    font-size: 0.55rem;
  }

  .bottombar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .why {
    font-size: 0.65rem;
  }

  .domain-tag {
    font-size: 0.65rem;
  }
}

/* Large screens - above 1200px */
@media (min-width: 75rem) {
  html {
    font-size: 18px;
  }

  .card {
    width: 50rem;
  }

  .tag-name {
    font-size: 2.4rem;
  }
}
