/* ===== Design tokens ===== */
:root {
  --bg: #000000;
  --bg-elevated: #0c0c12;
  --bg-card: #0f0f16;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f3;
  --text-muted: #a3a3ad;
  --text-faint: #6b6b76;

  --purple: #8a2be8;
  --purple-deep: #6a00d4;
  --blue: #2a3cff;
  --blue-deep: #001fff;

  --gradient-primary: linear-gradient(90deg, var(--purple-deep) 0%, var(--blue-deep) 130%);
  --gradient-text: linear-gradient(90deg, #ffffff 0%, #e3e5ff 55%, #b6a8ff 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(106, 0, 212, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Background glow ===== */
.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 900px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 11, 97, 0.55) 0%, rgba(20, 0, 38, 0.45) 35%, rgba(0,0,0,0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

header, main, footer, .treasury-banner { position: relative; z-index: 1; }

/* ===== Typography ===== */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 14px;
}

.acronym-reveal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}
.acronym-reveal .acronym-word {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.acronym-reveal .letter {
  font-size: 1.6em;
  font-weight: 800;
  margin-right: 0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

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

.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.hero-text, .section-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0;
}
.hero-text a {
  color: #c4b0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-text a:hover { color: #d9ccff; }

.section-intro { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-intro .section-text { margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(106, 0, 212, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(106, 0, 212, 0.8); }

.btn-outline {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.3); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-logo--sm { width: 36px; height: 36px; }

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
}
.main-nav a { transition: color 0.15s ease; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.hq-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hq-chip:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.07);
}
.hq-chip-item { color: var(--text); }
.hq-chip-sep { color: var(--text-faint); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Sections ===== */
.section { padding: 96px 0; }

/* ===== Coming soon ===== */
.coming-soon {
  padding-top: 140px;
  padding-bottom: 160px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.coming-soon-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.coming-soon-text {
  max-width: 480px;
  margin: 0 auto;
}
.coming-soon .hero-ctas { justify-content: center; }

/* ===== Treasury banner ===== */
.treasury-banner {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(138,43,232,0.06), rgba(0,0,0,0));
}
.treasury-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 20px 24px;
}
.treasury-main, .treasury-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.treasury-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.treasury-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.treasury-usd { font-size: 0.85rem; color: var(--text-muted); }

.treasury-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.treasury-price-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.price-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}
.price-tag[data-simulated="true"] {
  background: rgba(240, 180, 41, 0.15);
  color: #f0b429;
}

.price-slider {
  width: 180px;
  margin-top: 6px;
  accent-color: var(--purple);
  cursor: pointer;
}

.price-reset {
  margin-top: 2px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
  visibility: hidden;
}
.price-reset.is-visible { visibility: visible; }
.price-reset:hover { color: var(--text-muted); }

@media (max-width: 560px) {
  .treasury-inner { flex-direction: column; gap: 16px; padding: 20px; }
  .treasury-divider { width: 100%; height: 1px; }
}

/* ===== Hero ===== */
.hero { padding-top: 88px; }
.hero-grid { display: block; }
.hero-copy { max-width: 700px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.node-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card) 0%, #08080c 100%);
  box-shadow: var(--shadow-glow);
  padding: 32px 24px 24px;
  overflow: hidden;
}
.node-graphic { width: 100%; height: auto; display: block; }
.node-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ===== USA section ===== */
.usa-solo { display: flex; justify-content: center; }
.usa-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.usa-graphic { width: 100%; max-width: 620px; height: auto; }
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
}
.location-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

/* ===== Stat cards ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(138,43,232,0.18), rgba(42,60,255,0.18));
  color: #c4b0ff;
  margin-bottom: 20px;
}
.stat-icon svg { width: 22px; height: 22px; }

.stat-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.stat-domain {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-text { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.stat-grid--compact { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
.stat-card--compact {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-card--compact:hover { transform: none; }
.stat-card--compact .stat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.stat-card--compact .stat-icon svg { width: 20px; height: 20px; }
.stat-card-body { flex: 1; min-width: 0; }
.stat-card--compact .stat-title { font-size: 0.95rem; margin: 0 0 2px; }
.stat-card--compact .stat-domain { font-size: 0.85rem; margin: 0; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.status-pill[data-status="online"] { color: var(--text); }
.status-pill[data-status="online"] .status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
.status-pill[data-status="unavailable"] .status-dot { background: #f0b429; }
.status-pill[data-status="unavailable"] { color: var(--text-muted); }

/* ===== BP rank panel ===== */
.rank-panel { max-width: 480px; margin: 24px auto 0; }
.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.rank-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.rank-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.rank-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-sub { font-size: 0.78rem; color: var(--text-muted); }
.rank-source {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 14px 0 0;
}
.rank-source a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 4px 24px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 0 22px;
}
.faq-answer a { color: #c4b0ff; text-decoration: underline; text-underline-offset: 3px; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-subheading {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin: 20px 0 10px !important;
}
.faq-answer-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-answer-list:last-child { margin-bottom: 0; }
.faq-answer-list strong { color: var(--text); font-weight: 600; }
.faq-answer-list li {
  position: relative;
  padding-left: 18px;
}
.faq-answer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand-name { font-weight: 700; font-size: 1.05rem; }
.footer-address, .footer-tagline { color: var(--text-muted); font-size: 0.92rem; margin: 6px 0; }
.footer-tagline a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; padding: 6px 0; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }

.telegram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(106, 0, 212, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(106, 0, 212, 0.8);
}
.telegram-btn svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.back-to-top { color: var(--text-faint); transition: color 0.15s ease; }
.back-to-top:hover { color: var(--text); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .rank-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #000000;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
    z-index: 60;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.btn-sm { display: none; }
  .hq-chip { padding: 6px 10px; font-size: 0.72rem; gap: 4px; }
  .hq-chip-usd, .hq-chip-usd-sep { display: none; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 420px) {
  .hq-chip-item:nth-child(3), .hq-chip-sep { display: none; }
}
