:root {
  --bg-dark: #020617;
  --bg-card: rgba(15, 23, 42, 0.94);
  --accent: #a855ff;
  --accent-soft: #7c3aed;
  --accent-neon: #e879f9;
  --accent-gold: #fbbf24;
  --text-main: #f9fafb;
  --text-soft: #cbd5f5;
  --border-soft: rgba(148, 163, 184, 0.45);
  --radius-xl: 18px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.85);
  --transition-fast: 0.2s ease-out;
}

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

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, #4c1d95 0, transparent 54%),
    radial-gradient(circle at 100% 0%, #0ea5e9 0, transparent 50%),
    radial-gradient(circle at 50% 100%, #7c3aed 0, #020617 55%);
  padding: 24px 16px 40px;
}

.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.cosmic-shell {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.94) 0, rgba(15,23,42,0.96) 30%, rgba(15,23,42,0.98) 70%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* HEADER */

.site-header {
  position: relative;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background:
    radial-gradient(circle at 0% 0%, rgba(168,85,247,0.35) 0, transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(56,189,248,0.32) 0, transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,0.96), rgba(30,64,175,0.88));
}

.site-header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 820px) {
  .site-header-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, #facc15 0, #f97316 35%, #b45309 70%);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-circle img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text-main {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text-sub {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.9);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
}

.brand-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #16a34a 55%, transparent 100%);
  box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

.main-nav {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(226,232,240,0.88);
  text-decoration: none;
  background: rgba(15,23,42,0.7);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.8);
  transform: translateY(-1px);
}

.nav-link.active {
  background: radial-gradient(circle at 0 0, #22c55e 0, #16a34a 40%, #166534 75%);
  color: #022c22;
  border-color: rgba(22,163,74,0.9);
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

@media (max-width: 820px) {
  .header-actions {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.6);
}

.lang-switch a,
.lang-switch span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-switch span.active {
  background: rgba(15,23,42,0.96);
  color: #e5e7eb;
}

.lang-switch a {
  color: rgba(209,213,219,0.9);
}

.lang-switch a:hover {
  background: rgba(15,23,42,0.86);
}

.header-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn span.icon {
  font-size: 13px;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #fde68a 0, #f97316 40%, #ea580c 70%);
  color: #022c22;
  box-shadow: 0 16px 40px rgba(248, 150, 30, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(248, 150, 30, 0.9);
}

.btn-outline {
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.7);
  color: #e5e7eb;
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(226,232,240,0.9);
  box-shadow: 0 18px 45px rgba(15,23,42,0.9);
}

/* MAIN CONTENT */

.page-main {
  padding: 18px 20px 18px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 18px;
}

@media (max-width: 880px) {
  .page-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page-hero {
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.5);
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.96) 0, rgba(15,23,42,0.98) 52%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 0 0, rgba(168,85,247,0.24) 0, transparent 52%),
    radial-gradient(circle at 100% 0, rgba(56,189,248,0.22) 0, transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(244,114,182,0.18) 0, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(209,213,219,0.86);
  margin-bottom: 6px;
}

.page-title {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-title span.gradient {
  background: linear-gradient(120deg, #f97316, #eab308, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.page-lead {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.page-pill {
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226,232,240,0.9);
}

.page-pill span.icon {
  font-size: 13px;
}

.page-note {
  font-size: 11px;
  color: rgba(209,213,219,0.85);
}

.page-note strong {
  color: #e5e7eb;
}

/* Secondary column / coin card */

.page-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.5);
  background: radial-gradient(circle at 0 0, rgba(30,64,175,0.5) 0, rgba(15,23,42,0.97) 52%);
  padding: 12px 12px 10px;
  box-shadow: 0 18px 44px rgba(15,23,42,0.85);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 40% 0, rgba(59,130,246,0.38) 0, transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.info-card-inner {
  position: relative;
  z-index: 1;
}

.info-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-text {
  font-size: 11px;
  color: rgba(226,232,240,0.9);
  margin-bottom: 6px;
}

.coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.coin-visual {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle, #facc15 0, #f97316 40%, #b45309 75%);
  box-shadow: 0 0 44px rgba(245,158,11,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coin-visual img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.coin-meta {
  font-size: 11px;
  color: rgba(226,232,240,0.96);
}

.coin-meta span.label {
  display: block;
  font-size: 10px;
  color: rgba(226,232,240,0.8);
}

.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.info-badge {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: rgba(226,232,240,0.9);
}

/* CONTENT BODY */

.page-body {
  padding: 0 20px 18px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 18px;
}

@media (max-width: 880px) {
  .page-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-card {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: 14px 14px 12px;
  box-shadow: 0 18px 44px rgba(15,23,42,0.9);
}

.article-card h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.article-card h3 {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.article-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 7px;
}

.article-card ul {
  margin-left: 16px;
  margin-bottom: 6px;
}

.article-card li {
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.article-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* Related links */

.related-card {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.5);
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.96) 0, rgba(15,23,42,0.98) 52%);
  padding: 12px 12px 10px;
}

.related-title {
  font-size: 13px;
  margin-bottom: 6px;
}

.related-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.related-link {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.5);
  text-decoration: none;
  color: rgba(226,232,240,0.94);
  background: rgba(15,23,42,0.94);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.related-link span.label {
  font-size: 12px;
}

.related-link span.chevron {
  font-size: 13px;
  opacity: 0.8;
}

.related-link:hover {
  transform: translateY(-1px);
  border-color: rgba(226,232,240,0.9);
  background: rgba(15,23,42,0.98);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 16px 10px;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  background: radial-gradient(circle at 50% 120%, rgba(168,85,247,0.35) 0, transparent 52%);
}

.site-footer span.brand {
  color: #e5e7eb;
}

.site-footer a {
  color: #c7d2fe;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
