/* ============================================================
   V2 — punch-ups: aurora, animated gradients, button sheen
   + BLOG / ARTICLE styles
   ============================================================ */

/* animated hero gradient text */
.text-gradient {
  background: linear-gradient(100deg,
    var(--gold-bright) 0%, var(--gold) 30%, #ff8a3d 55%, var(--gold-bright) 80%, var(--gold) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-slide 7s ease-in-out infinite;
}
@keyframes gradient-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* aurora blobs behind the hero */
.aurora {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.aurora-a {
  width: 620px; height: 620px;
  left: -180px; top: 10%;
  background: radial-gradient(circle at 40% 40%,
    rgba(245, 166, 35, 0.22), rgba(217, 126, 15, 0.08) 55%, transparent 75%);
  animation: aurora-drift-a 18s ease-in-out infinite alternate;
}
.aurora-b {
  width: 560px; height: 560px;
  right: -160px; top: 34%;
  background: radial-gradient(circle at 60% 40%,
    rgba(255, 110, 60, 0.16), rgba(140, 60, 220, 0.10) 55%, transparent 75%);
  animation: aurora-drift-b 22s ease-in-out infinite alternate;
}
@keyframes aurora-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(90px, -60px) scale(1.15); }
}
@keyframes aurora-drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-80px, 50px) scale(0.95); }
}

/* sheen sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: -80%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
}
.btn-primary:hover::after { left: 130%; }

/* stronger hero glow */
.hero-glow {
  background: radial-gradient(circle,
    rgba(245, 166, 35, 0.22) 0%,
    rgba(245, 166, 35, 0.07) 38%,
    transparent 68%);
}

/* animated conic border on the CTA card */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.cta-card::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 29px;
  padding: 1px;
  background: conic-gradient(from var(--spin, 0deg),
    transparent 0%, rgba(245, 166, 35, 0.0) 20%,
    rgba(255, 199, 94, 0.8) 32%, rgba(245, 166, 35, 0.0) 45%,
    transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 6s linear infinite;
  pointer-events: none;
}
@keyframes spin-border { to { --spin: 360deg; } }

/* split section head (title left, button right) */
.section-head.split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.section-head.split > div { max-width: 640px; }

/* ============================================================
   BLOG — listing cards
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-grid.home { grid-template-columns: repeat(3, 1fr); }

.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 24px 60px -24px rgba(245, 166, 35, 0.28);
}
.blog-cover {
  --hue: 35;
  position: relative;
  aspect-ratio: 16 / 8.2;
  display: grid; place-items: center;
  background:
    radial-gradient(480px circle at 30% -20%, hsla(var(--hue), 85%, 60%, 0.28), transparent 60%),
    radial-gradient(400px circle at 90% 120%, hsla(calc(var(--hue) + 40), 85%, 55%, 0.16), transparent 55%),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.blog-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.blog-cover svg {
  width: 64px; height: 64px;
  color: hsl(var(--hue), 90%, 70%);
  filter: drop-shadow(0 0 18px hsla(var(--hue), 90%, 60%, 0.55));
  transition: transform 0.4s var(--ease-out);
}
.blog-card:hover .blog-cover svg { transform: scale(1.12) rotate(-4deg); }

.blog-body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 26px 26px;
  flex: 1;
}
.blog-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.blog-chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px;
}
.blog-chip.technical {
  color: var(--gold-bright);
  border: 1px solid rgba(245, 166, 35, 0.35);
  background: var(--amber-glow);
}
.blog-chip.partner {
  color: #9d7bff;
  border: 1px solid rgba(157, 123, 255, 0.35);
  background: rgba(157, 123, 255, 0.1);
}
.blog-chip.update {
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}
.blog-body h3 {
  font-size: 19.5px; line-height: 1.28;
  transition: color 0.25s;
}
.blog-card:hover .blog-body h3 { color: var(--gold-bright); }
.blog-body p { font-size: 14.5px; color: var(--text-dim); flex: 1; }
.blog-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

/* featured post (blog page) */
.blog-featured {
  display: grid; grid-template-columns: 1.15fr 1fr;
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 28px;
  background:
    radial-gradient(700px circle at 0% 0%, rgba(245, 166, 35, 0.1), transparent 55%),
    var(--surface);
  overflow: hidden;
  margin-bottom: 56px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.blog-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: 0 28px 70px -28px rgba(245, 166, 35, 0.3);
}
.blog-featured .blog-cover {
  aspect-ratio: auto; min-height: 300px;
  border-bottom: 0; border-right: 1px solid var(--border);
}
.blog-featured .blog-cover svg { width: 96px; height: 96px; }
.blog-featured .blog-body { padding: 40px 42px; justify-content: center; }
.blog-featured .blog-body h3 { font-size: clamp(24px, 2.8vw, 32px); }
.blog-featured .blog-body p { font-size: 16px; flex: none; }

/* blog page hero */
.page-hero {
  position: relative;
  padding: 170px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-hero h1 { font-size: clamp(38px, 5.6vw, 62px); margin-bottom: 18px; }
.page-hero p { color: var(--text-dim); font-size: 17px; max-width: 560px; }
.page-hero .hero-glow { top: -560px; opacity: 0.8; }

/* filter bar */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 44px 0 36px;
}
.filter-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--text-dim);
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text); }
.filter-btn.active {
  color: #17110a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(245, 166, 35, 0.5);
}
.blog-card.filtered-out, .blog-featured.filtered-out { display: none; }

/* ============================================================
   ARTICLE pages
   ============================================================ */
.article-hero {
  position: relative;
  padding: 160px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}
.article-hero .hero-glow { top: -600px; opacity: 0.7; }
.article-hero-inner { max-width: 780px; margin-inline: auto; position: relative; z-index: 2; }
.article-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-faint); margin-bottom: 26px;
  transition: color 0.2s;
}
.article-hero .breadcrumb:hover { color: var(--gold); }
.article-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  margin: 18px 0 22px;
}
.article-meta-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
}
.article-meta-row .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--gold-bright);
  background: var(--amber-glow);
  border: 1px solid rgba(245, 166, 35, 0.4);
}
.article-meta-row .author { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dim); }

.article {
  max-width: 780px;
  margin-inline: auto;
  padding: 64px 0 32px;
}
.article > * + * { margin-top: 22px; }
.article p { font-size: 16.5px; line-height: 1.75; color: #c3c8d6; }
.article h2 {
  font-size: 28px; margin-top: 52px;
  padding-top: 18px;
}
.article h2::before {
  content: ""; display: block;
  width: 44px; height: 2px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.article h3 { font-size: 21px; margin-top: 38px; }
.article a { color: var(--gold-bright); border-bottom: 1px solid rgba(245, 166, 35, 0.35); }
.article strong { color: var(--text); }
.article ul, .article ol {
  display: grid; gap: 10px;
  padding-left: 6px;
}
.article ul li, .article ol li {
  position: relative;
  padding-left: 26px;
  font-size: 16px; line-height: 1.7; color: #c3c8d6;
}
.article ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.7);
}
.article ol { counter-reset: item; list-style: none; }
.article ol li { counter-increment: item; }
.article ol li::before {
  content: counter(item) "."; position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 14px; color: var(--gold);
}
.article blockquote {
  border-left: 3px solid var(--gold);
  padding: 18px 26px;
  border-radius: 0 14px 14px 0;
  background: var(--amber-glow);
  font-size: 17px; font-style: italic; color: var(--text);
}
.article pre {
  background: #0a0d15;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
  color: #d8dce8;
}
.article pre .c { color: #626a80; }
.article pre .k { color: var(--gold-bright); }
.article pre .v { color: #8be9a8; }
.article code {
  font-family: var(--font-mono); font-size: 0.88em;
  color: var(--gold-bright);
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.18);
  border-radius: 6px;
  padding: 2px 7px;
}
.article pre code { background: none; border: 0; padding: 0; color: inherit; }
.article table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--border);
}
.article th, .article td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.article th {
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); background: var(--surface-2);
}
.article td { color: var(--text-dim); }
.article tr:last-child td { border-bottom: 0; }
.article .table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.article .table-wrap table { border: 0; }

.article .callout {
  display: flex; gap: 14px;
  padding: 20px 24px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 14px;
  background: var(--amber-glow);
}
.article .callout p { font-size: 15px; margin: 0; }
.article .callout .icon { color: var(--gold); flex: none; padding-top: 2px; }

.article-tags {
  max-width: 780px; margin-inline: auto;
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 26px 0 60px;
  border-bottom: 1px solid var(--border);
}
.tag {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}

.article-nav {
  max-width: 780px; margin-inline: auto;
  padding: 40px 0 80px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .blog-grid.home { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .blog-cover { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .blog-grid.home { grid-template-columns: 1fr; }
  .aurora { opacity: 0.35; }
  .article-hero { padding-top: 130px; }
}

/* ============================================================
   V3 — live market data + per-chain staking pages
   ============================================================ */

/* skeleton shimmer while prices load */
.skeleton {
  display: inline-block;
  min-width: 64px;
  border-radius: 6px;
  color: transparent !important;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  user-select: none;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* price row inside network cards */
.net-price-row {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px;
}
.np-price {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--text);
}
.np-change {
  font-family: var(--font-mono); font-size: 12.5px;
}
.np-change.up { color: #4ade80; }
.np-change.down { color: #f87171; }
a.net-card { display: block; color: inherit; }

/* ---------- chain hero ---------- */
.chain-hero {
  position: relative;
  padding: 150px 0 80px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}
.chain-hero .hero-glow { top: -540px; }
.chain-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-faint); margin-bottom: 34px;
  transition: color 0.2s;
  position: relative; z-index: 2;
}
.chain-hero .breadcrumb:hover { color: var(--gold); }
.chain-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.chain-title-row { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.chain-title-row h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.net-logo.lg {
  width: 74px; height: 74px; font-size: 32px; border-radius: 20px;
  box-shadow: 0 0 40px -8px hsla(var(--hue), 80%, 60%, 0.5);
}
.chain-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 5px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
}
.chip.live { color: #4ade80; display: inline-flex; align-items: center; gap: 7px; border-color: rgba(74,222,128,0.3); }
.chain-tagline { color: var(--text-dim); font-size: 18px; max-width: 520px; margin-bottom: 28px; }

.chain-market {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 16, 26, 0.55);
  backdrop-filter: blur(10px);
  margin-bottom: 16px;
  width: 100%;
  max-width: 500px;
}

/* buttons lock to the exact same track as the market box:
   same left edge, same right edge, split 50/50 */
.chain-hero .hero-actions {
  justify-content: flex-start;
  width: 100%;
  max-width: 500px;
  gap: 12px;
}
.chain-hero .hero-actions .btn {
  flex: 1;
  min-width: 0;
}
.market-item { display: grid; gap: 3px; }
.market-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}
.market-value {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
}
.market-value.change { font-size: 16px; padding-top: 4px; }
.market-value.up { color: #4ade80; }
.market-value.down { color: #f87171; }

/* APR ring card */
.apr-card {
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(500px circle at 50% -20%, rgba(245, 166, 35, 0.12), transparent 60%),
    var(--surface);
  padding: 36px 32px;
  display: grid; justify-items: center; gap: 28px;
  box-shadow: 0 30px 80px -40px rgba(245, 166, 35, 0.35);
}
.apr-ring {
  --hue: 40;
  width: 190px; height: 190px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    conic-gradient(from -90deg, var(--gold-bright), #ff8a3d, var(--gold-deep), var(--gold-bright));
  animation: apr-rotate 10s linear infinite;
  position: relative;
}
@keyframes apr-rotate { to { transform: rotate(360deg); } }
.apr-inner {
  width: 168px; height: 168px; border-radius: 50%;
  background: var(--surface);
  display: grid; place-content: center; justify-items: center; gap: 2px;
  animation: apr-rotate 10s linear infinite reverse; /* keep text upright */
}
.apr-value {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  color: var(--gold-bright);
}
.apr-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.apr-meta {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px;
}
.apr-meta div {
  display: flex; justify-content: space-between; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.apr-meta dt { font-size: 13px; color: var(--text-faint); }
.apr-meta dd { font-family: var(--font-display); font-weight: 600; font-size: 14px; text-align: right; }

/* ---------- calculator ---------- */
.calc-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.calc-copy h2 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 16px; }
.calc-copy > p { color: var(--text-dim); font-size: 16.5px; }
.calc-about {
  margin-top: 34px; padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.calc-about h3 { font-size: 17px; margin-bottom: 10px; color: var(--gold-bright); }
.calc-about p { font-size: 14.5px; color: var(--text-dim); }

.calc-card {
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  padding: 32px;
  display: grid; gap: 18px;
  position: sticky; top: 100px;
}
.calc-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.calc-input-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
  padding: 4px 18px 4px 6px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.calc-input-row:focus-within {
  border-color: rgba(245, 166, 35, 0.6);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}
.calc-input-row input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: var(--text);
  padding: 12px 14px;
}
.calc-input-row input::-webkit-outer-spin-button,
.calc-input-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-symbol {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--gold);
}
#calcRange {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(255,255,255,0.1) 0%);
  outline: none; cursor: pointer;
  accent-color: var(--gold);
}
#calcRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border: 2px solid #17110a;
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.6);
}
.calc-usd {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
  min-height: 18px;
}
.calc-results {
  display: grid; gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.calc-row {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: baseline; gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.calc-row:last-child { border-bottom: 0; }
.calc-row span { font-size: 13px; color: var(--text-faint); }
.calc-row strong {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600;
}
.calc-row em {
  font-style: normal; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-faint);
}
.calc-row.total {
  background: var(--amber-glow);
}
.calc-row.total strong { color: var(--gold-bright); font-size: 19px; }
.calc-note {
  font-size: 12px; color: var(--text-faint); text-align: center;
}

/* ---------- validator address box ---------- */
.val-box {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 18px;
  padding: 26px 30px;
  background:
    radial-gradient(500px circle at 0% 0%, rgba(245, 166, 35, 0.08), transparent 55%),
    var(--surface);
}
.val-address { flex: 1; min-width: 260px; display: grid; gap: 8px; }
.val-label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}
.val-address code {
  font-family: var(--font-mono); font-size: 14.5px;
  color: var(--gold-bright);
  word-break: break-all;
  background: none; border: 0; padding: 0;
}

/* ============================================================
   V9 — final polish pass: UX fixes + editorial details
   ============================================================ */

/* anchors never hide behind the fixed nav */
[id] { scroll-margin-top: 96px; }

/* thin gold reading-progress bar */
#scrollProgress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.6);
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* themed scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #05070c; }
::-webkit-scrollbar-thumb {
  background: #232838;
  border-radius: 6px;
  border: 3px solid #05070c;
}
::-webkit-scrollbar-thumb:hover { background: rgba(245, 166, 35, 0.55); }

/* keyboard focus ring */
:focus-visible {
  outline: 2px solid rgba(245, 166, 35, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* scrollspy: nav knows where you are */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

/* editorial section numbering inside eyebrows */
.eyebrow i {
  font-style: normal;
  color: var(--text-faint);
}

/* footer live-status line */
.footer-status {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim);
}
.footer-status span { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- contact section ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}
.contact-info { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 16px 40px -20px rgba(245, 166, 35, 0.3);
}
.contact-icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 12px;
  background: var(--amber-glow);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card-body { display: grid; gap: 2px; min-width: 0; }
.contact-card-body strong { font-family: var(--font-display); font-size: 16px; }
.contact-card-body span { font-size: 13.5px; color: var(--text-dim); }
.contact-response {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-dim);
  width: fit-content;
}

.contact-form {
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface);
  padding: 30px;
  display: grid; gap: 18px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(245, 166, 35, 0.6);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%239aa1b5' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field select option { background: #10141f; color: var(--text); }
.form-note {
  font-size: 12.5px; color: var(--text-faint);
  text-align: center;
}
.form-note.sent { color: #4ade80; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- staking panel (merged dashboard) ---------- */
.panel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.panel-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.panel-about { margin-top: 18px; }
.wallet-area {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.net-chip {
  font-family: var(--font-mono); font-size: 12px;
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.net-chip.ok {
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}
.net-chip.bad {
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  cursor: pointer;
  transition: background 0.2s;
}
.net-chip.bad:hover { background: rgba(251, 191, 36, 0.2); }
.demo-link {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint);
  text-decoration: underline dotted;
  transition: color 0.2s;
  padding: 4px;
}
.demo-link:hover { color: var(--gold); }
#walletBtn.connected {
  background: var(--surface-2);
  color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.4) inset;
  font-family: var(--font-mono); font-weight: 500;
}

/* ---------- stake page: dashboard-style network sidebar ---------- */
.stake-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}
.stake-side {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  padding-top: 18px;
  border-right: 1px solid var(--border);
}
.stake-side .asset-list { flex: none; padding: 0 10px 12px; }
.stake-side-dash {
  margin: 6px 20px 16px;
  justify-content: center;
}
.stake-main { min-width: 0; }

@media (max-width: 900px) {
  .stake-layout { grid-template-columns: 1fr; }
  .stake-side {
    position: static;
    max-height: none;
    padding-top: 88px;             /* clears the fixed nav */
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .stake-side .asset-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 14px;
  }
  .stake-side .asset-item { min-width: 215px; flex: none; }
  .stake-side-dash, .stake-side .dash-side-foot { display: none; }
  .chain-hero { padding-top: 46px; }
}

@media (max-width: 1024px) {
  .chain-hero-grid { grid-template-columns: 1fr; }
  .apr-card { max-width: 420px; margin-inline: auto; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-card { position: static; }
}
@media (max-width: 760px) {
  .chain-market { max-width: none; gap: 14px; padding: 14px 18px; }
  .chain-hero .hero-actions { max-width: none; }
}
@media (max-width: 760px) {
  .chain-title-row h1 { font-size: 34px; }
  .net-logo.lg { width: 58px; height: 58px; font-size: 24px; }
  .chain-market { width: 100%; }
}

/* ============================================================
   V4 — staking dashboard (app frame)
   ============================================================ */
.dash-body {
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dash-topbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(14px);
  z-index: 50;
}
.dash-app-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  padding: 4px 10px; margin-left: 10px;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 100px;
  background: var(--amber-glow);
}
.dash-topbar-right { display: flex; align-items: center; gap: 18px; }
.dash-back {
  font-size: 13.5px; color: var(--text-dim);
  transition: color 0.2s;
}
.dash-back:hover { color: var(--text); }
#walletBtn.connected {
  background: var(--surface-2);
  color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.4) inset;
  font-family: var(--font-mono); font-weight: 500;
}

.dash {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 0;
}

/* ---------- sidebar ---------- */
.dash-side {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
  min-height: 0;
}
.dash-search {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 16px 6px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-faint);
  transition: border-color 0.25s;
}
.dash-search:focus-within { border-color: rgba(245, 166, 35, 0.5); }
.dash-search input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  font-family: var(--font-body); font-size: 14px;
  color: var(--text);
  padding: 11px 0;
}
.dash-side-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
  padding: 14px 22px 8px;
}
.asset-list {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 10px 10px;
}
.asset-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  transition: background 0.2s, border-color 0.2s;
}
.asset-item:hover { background: rgba(255, 255, 255, 0.03); }
.asset-item.active {
  background: var(--amber-glow);
  border-color: rgba(245, 166, 35, 0.35);
}
.asset-item.active::before {
  content: ""; position: absolute; left: -10px; top: 20%;
  width: 3px; height: 60%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
}
.net-logo.sm { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; flex: none; }
.asset-names { display: grid; gap: 1px; min-width: 0; }
.asset-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.asset-sym { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.asset-right { margin-left: auto; display: grid; gap: 2px; justify-items: end; }
.asset-price { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
.asset-apr { font-family: var(--font-mono); font-size: 10.5px; color: var(--gold); }
.asset-change {
  position: absolute; top: 8px; right: 12px;
  font-family: var(--font-mono); font-size: 9.5px;
  display: none;
}
.asset-empty { padding: 20px; font-size: 13.5px; color: var(--text-faint); text-align: center; }
.dash-side-foot {
  flex: none;
  display: flex; align-items: center; gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-faint);
}

/* ---------- main ---------- */
.dash-main {
  overflow-y: auto;
  padding: 28px 32px 48px;
  min-height: 0;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.dash-head-id { display: flex; align-items: center; gap: 16px; }
.dash-head-id .net-logo { width: 54px; height: 54px; font-size: 22px; border-radius: 15px; }
.dash-head h1 { font-size: 26px; }
.dash-sym { color: var(--text-faint); font-weight: 500; font-size: 18px; }
.dash-price {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 3px;
}
.dash-price strong { font-family: var(--font-display); font-size: 17px; color: var(--gold-bright); }
.dash-cap { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  display: grid; gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.sc-label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.sc-value { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.sc-value.gold { color: var(--gold-bright); }
.sc-value.green { color: #4ade80; }
.sc-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

.dash-panels {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start;
}
.dash-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 24px;
}
.dash-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  margin-bottom: 22px;
  width: fit-content;
}
.dash-tab {
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: var(--text-dim);
  background: none; border: 0; cursor: pointer;
  padding: 9px 22px; border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.dash-tab.active {
  color: #17110a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}
.dash-tabbody { display: grid; gap: 16px; }
.form-balance {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13px; color: var(--text-faint);
}
.form-balance strong { font-family: var(--font-display); font-size: 15px; color: var(--text); }
.max-btn {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  color: var(--gold);
  background: var(--amber-glow);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
  flex: none;
}
.max-btn:hover:not(:disabled) { background: rgba(245, 166, 35, 0.2); }
.max-btn:disabled { opacity: 0.4; cursor: default; }
.est-box {
  display: grid; gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.est-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.est-row:last-child { border-bottom: 0; background: var(--amber-glow); }
.est-row span { font-size: 13px; color: var(--text-faint); }
.est-row strong { font-family: var(--font-display); font-size: 14.5px; }
.est-row:last-child strong { color: var(--gold-bright); }
.unbond-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 14px;
  background: var(--amber-glow);
  font-size: 13.5px; color: var(--text-dim);
  line-height: 1.6;
}
.unbond-note .icon { color: var(--gold); }
.btn:disabled {
  opacity: 0.45; cursor: default;
  transform: none !important;
}
.btn:disabled::after { display: none; }

/* rewards tab */
.rewards-big {
  display: grid; gap: 4px; justify-items: center;
  padding: 26px 20px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 16px;
  background: rgba(74, 222, 128, 0.05);
}
.rb-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.rb-value { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #4ade80; }
.rb-usd { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.proj {
  display: grid; gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
}
.proj span { font-size: 11.5px; color: var(--text-faint); }
.proj strong { font-family: var(--font-display); font-size: 14px; }
.proj em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* validator card */
.dash-valcard h3 { font-size: 17px; margin-bottom: 16px; }
.val-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px; color: var(--text-faint);
}
.val-row strong { font-family: var(--font-display); font-size: 14px; color: var(--text); }
.val-row strong.green { color: #4ade80; display: inline-flex; align-items: center; gap: 8px; }
.val-addr-mini {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 11px; color: var(--text-faint);
}
.val-addr-mini code {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--gold-bright);
}
.copy-mini {
  margin-left: auto;
  background: none; border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 4px 9px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy-mini:hover { color: var(--gold); border-color: rgba(245, 166, 35, 0.5); }
.val-note {
  margin-top: 16px;
  font-size: 12.5px; line-height: 1.6;
  color: var(--text-faint);
}

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 24px;
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 100px;
  background: rgba(13, 16, 26, 0.95);
  backdrop-filter: blur(10px);
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--gold-bright);
  box-shadow: 0 16px 44px -12px rgba(0, 0, 0, 0.7);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dash-side {
    border-right: 0; border-bottom: 1px solid var(--border);
    max-height: 260px;
  }
  .dash-panels { grid-template-columns: 1fr; }
  .dash-main { padding: 20px 18px 40px; }
  .dash-back { display: none; }
}

/* ============================================================
   V5 — ambient theme: mesh gradient + grid, blog-cover style
   applied to the whole site background
   ============================================================ */

:root {
  /* deepen the base and let surfaces go translucent so the
     mesh glows through every card and section */
  --bg: #04060b;
  --bg-alt: rgba(9, 12, 21, 0.58);
  --surface: rgba(15, 19, 31, 0.66);
  --surface-2: rgba(21, 26, 41, 0.7);
  --border: rgba(255, 255, 255, 0.09);
}

/* multi-hue gradient mesh — same palette as the blog covers */
body {
  background:
    radial-gradient(1100px 750px at 88% -12%, rgba(245, 166, 35, 0.10), transparent 62%),
    radial-gradient(950px 700px at -12% 14%, rgba(130, 70, 230, 0.09), transparent 60%),
    radial-gradient(850px 620px at 108% 46%, rgba(56, 130, 255, 0.07), transparent 60%),
    radial-gradient(900px 650px at -6% 78%, rgba(40, 200, 140, 0.06), transparent 60%),
    radial-gradient(1000px 800px at 55% 112%, rgba(255, 110, 60, 0.08), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

/* faint blueprint grid, masked so it breathes instead of tiling flat */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image:
    radial-gradient(1300px 850px at 50% -8%, #000 25%, transparent 72%),
    radial-gradient(900px 600px at 92% 88%, rgba(0,0,0,0.7) 10%, transparent 65%);
  mask-image:
    radial-gradient(1300px 850px at 50% -8%, #000 25%, transparent 72%),
    radial-gradient(900px 600px at 92% 88%, rgba(0,0,0,0.7) 10%, transparent 65%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

/* two slow ambient orbs drifting behind everything */
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 560px; height: 560px;
  left: -220px; top: 55%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%,
    rgba(130, 70, 230, 0.10), rgba(56, 130, 255, 0.05) 55%, transparent 75%);
  filter: blur(80px);
  animation: ambient-drift 26s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(140px, -90px) scale(1.18); }
}

/* sections pick up corner glows like the blog covers */
.section::before {
  content: ""; position: absolute; inset: 0;
  z-index: -1; pointer-events: none;
  background: radial-gradient(640px 380px at 10% -4%, rgba(245, 166, 35, 0.055), transparent 62%);
}
.section-alt::before {
  background:
    radial-gradient(640px 380px at 90% -4%, rgba(130, 70, 230, 0.07), transparent 62%),
    radial-gradient(560px 360px at 2% 104%, rgba(56, 130, 255, 0.055), transparent 60%);
}

/* glassify the flat panels now that surfaces are translucent */
.section-alt, .page-hero, .article-hero, .chain-hero {
  backdrop-filter: blur(2px);
}
.value-card, .service-card, .net-card, .step, .faq-item,
.blog-card, .blog-featured, .calc-card, .calc-about,
.dash-card, .stat-card, .apr-card, .cta-card, .val-box {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* footer + strip sit on glass too */
.footer, .strip {
  background: rgba(9, 12, 21, 0.66);
  backdrop-filter: blur(10px);
}

/* nav gets a hair more presence over the colorful mesh */
.nav.scrolled {
  background: rgba(5, 7, 12, 0.72);
}

/* dashboard frame over the mesh */
.dash-side { background: rgba(9, 12, 21, 0.72); backdrop-filter: blur(12px); }
.dash-topbar { background: rgba(5, 7, 12, 0.78); }

/* hero title glow for extra pop on the new dark base */
.hero-title {
  text-shadow: 0 0 80px rgba(245, 166, 35, 0.25);
}

@media (max-width: 760px) {
  body::after { display: none; }        /* save mobile GPU */
  body::before { background-size: 38px 38px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ============================================================
   V6 — only the FIRST SCREEN (hero) opts out of the mesh/grid:
   solid dark hero like the original, fading into the theme below
   ============================================================ */
body.home .hero {
  background: linear-gradient(180deg,
    #07090f 0%, #07090f 80%, rgba(7, 9, 15, 0) 100%);
}

/* ============================================================
   V6 — cursor FX (homepage): aura glow, dot + trailing ring,
   spark trail canvas, magnetic buttons
   ============================================================ */
#cursorAura {
  position: fixed; left: 0; top: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 58;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(245, 166, 35, 0.10) 0%,
    rgba(245, 166, 35, 0.035) 42%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s;
}
#sparkCanvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 59;
}
body.fx-on #cursorAura { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  #cursorAura, #sparkCanvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #cursorAura, #sparkCanvas { display: none; }
}

/* ============================================================
   V8 — hero WOW pass + card alignment fixes
   ============================================================ */

/* --- net-card: uniform rows so every card lines up (Penumbra fix) --- */
.net-head { flex-wrap: nowrap; align-items: flex-start; min-height: 46px; }
.net-head > div:not(.net-logo) { flex: 1; min-width: 0; }
.net-head .net-logo { flex: 0 0 44px; width: 44px; height: 44px; }
.net-head h3 {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.net-type {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.net-status { flex: none; white-space: nowrap; margin-top: 3px; }
.net-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.asset-name { white-space: nowrap; }
.asset-price { white-space: nowrap; }

/* every card: same row heights, button pinned to the bottom */
.net-card { display: flex; flex-direction: column; }
.net-price-row { min-height: 34px; align-items: center; }
.net-card .net-meta { margin-top: auto; }
.net-card .btn { margin-top: 0; }

/* --- THE ECLIPSE: blazing corona around a dark solar disc --- */
.eclipse {
  position: absolute;
  left: 50%; top: 4.5%;
  width: 460px; height: 460px;
  margin-left: -230px;
  pointer-events: none;
  z-index: 0;
}
.corona, .corona-b {
  position: absolute; inset: -72px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 90, 40, 0) 0%,
    rgba(255, 170, 60, 0.55) 14%,
    rgba(255, 225, 150, 0.95) 26%,
    rgba(255, 120, 80, 0.5) 42%,
    rgba(170, 70, 255, 0.28) 55%,
    rgba(255, 170, 60, 0.6) 72%,
    rgba(255, 205, 120, 0.85) 86%,
    rgba(255, 90, 40, 0) 100%);
  filter: blur(48px) saturate(1.25);
  animation: corona-spin 26s linear infinite;
}
.corona-b {
  inset: -38px;
  filter: blur(22px) saturate(1.1);
  opacity: 0.85;
  animation: corona-spin 17s linear infinite reverse;
}
@keyframes corona-spin { to { transform: rotate(360deg); } }
.eclipse-disc {
  position: absolute; inset: 0;
  z-index: 1;                       /* flare tucks behind the disc */
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #0b0d16 0%, #05060b 68%);
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 214, 150, 0.5),
    0 0 46px 4px rgba(255, 178, 80, 0.42),
    0 0 150px 24px rgba(255, 140, 50, 0.2);
}
.flare {
  position: absolute; top: 50%; left: 50%;
  z-index: 0;
  width: 1150px; height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg,
    transparent 0%, rgba(255, 224, 165, 0.85) 50%, transparent 100%);
  filter: blur(0.6px);
  opacity: 0.75;
  animation: flare-breathe 5s ease-in-out infinite;
}
.flare::after {
  content: ""; position: absolute;
  inset: -16px 18%;
  background: linear-gradient(90deg,
    transparent, rgba(255, 190, 110, 0.35), transparent);
  filter: blur(14px);
}
@keyframes flare-breathe {
  0%, 100% { opacity: 0.55; width: 1050px; }
  50% { opacity: 0.9; width: 1200px; }
}

/* --- planet horizon glowing at the bottom of the hero --- */
.horizon {
  position: absolute;
  left: 50%; top: 100%;
  width: 280vw; height: 280vw;
  margin-top: -7vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #04060c;
  box-shadow:
    inset 0 70px 140px -50px rgba(255, 172, 70, 0.4),
    inset 0 14px 36px -10px rgba(255, 224, 165, 0.55),
    0 -40px 160px rgba(245, 166, 35, 0.22);
  pointer-events: none;
  z-index: 0;
}

/* headline goes bigger over the eclipse */
.hero-title {
  font-size: clamp(46px, 7.8vw, 94px);
  letter-spacing: -0.03em;
  position: relative; z-index: 2;
}

/* --- 3D hero canvas: replaces the CSS eclipse + 2D starfield --- */
#hero3d {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
body.has-3d .eclipse,
body.has-3d #orbits,
body.has-3d .horizon { display: none; }  /* particle horizon replaces the CSS planet */

/* ============================================================
   ECOSYSTEM GROWTH section
   ============================================================ */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.growth-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.growth-metrics .sc-value { font-size: 30px; }
.growth-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.case-card {
  padding: 32px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(157, 123, 255, 0.4);
  box-shadow: 0 22px 56px -26px rgba(157, 123, 255, 0.3);
}
.case-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.case-head h3 { font-size: 20px; }
.case-card > p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 18px; }
@media (max-width: 900px) {
  .growth-cases { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO HUD — mission-control frame + side telemetry
   ============================================================ */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hud-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(245, 166, 35, 0.35);
}
.hud-corner.tl { top: 96px; left: 28px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 96px; right: 28px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }
.hud-label {
  position: absolute;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.hud-label b { color: var(--gold); font-weight: 500; }
.hud-label.pos-tl { top: 102px; left: 66px; }
.hud-label.pos-tr { top: 102px; right: 66px; }
.hud-label.pos-bl { bottom: 34px; left: 66px; }
.hud-label.pos-br { bottom: 34px; right: 66px; }

.hud-side {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  width: 190px;
}
.hud-left { left: 30px; }
.hud-right { right: 30px; text-align: right; }
.hud-title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(245, 166, 35, 0.18);
}
.hud-side ul { display: grid; gap: 9px; }
.hud-side li {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.hud-right li { justify-content: flex-end; }
.hud-side li .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  flex: none;
  animation: hud-blink 2.4s ease-in-out infinite;
}
.hud-side li .pct { color: var(--text-faint); margin-left: auto; }
@keyframes hud-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.hud-side li.feed-row { color: var(--text-faint); }
.hud-side li.feed-row b { color: var(--text-dim); font-weight: 500; }
.hud-side li.feed-row .ok { color: #4ade80; }
.hud-side li.feed-in { animation: feed-in 0.5s var(--ease-out); }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .hud, .hud-side { display: none; }
}

/* tooltip for the orbiting network planets */
.planet-tip {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  padding: 10px 16px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 12px;
  background: rgba(10, 13, 21, 0.92);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-dim);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
}
.planet-tip.show { opacity: 1; transform: none; }
.planet-tip b { color: var(--gold-bright); font-weight: 600; }
.planet-tip span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--gold);
}

/* cinematic vignette — softens the sun's glare and frames the hero */
body.home .hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(115% 88% at 50% 38%, transparent 52%, rgba(4, 6, 11, 0.6) 100%),
    linear-gradient(180deg, rgba(4, 6, 11, 0.35) 0%, transparent 14%);
}

@media (max-width: 760px) {
  .eclipse { width: 290px; height: 290px; margin-left: -145px; top: 6%; }
  .corona { inset: -46px; filter: blur(34px) saturate(1.2); }
  .corona-b { inset: -24px; filter: blur(16px); }
  .flare { width: 96vw; }
  .horizon { margin-top: -14vw; }
}

/* --- headline: word-by-word blur-rise entrance --- */
.hero-title .w {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(34px) scale(0.96);
  animation: word-in 0.85s var(--ease-out) forwards;
  animation-delay: calc(var(--wi) * 130ms + 250ms);
}
@keyframes word-in {
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* --- live market ticker pill --- */
.hero-ticker {
  margin-top: 46px;
  max-width: min(720px, 92vw);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(13, 16, 26, 0.6);
  backdrop-filter: blur(10px);
  padding: 11px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.hero-ticker:hover .ticker-track { animation-play-state: paused; }
.tick {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 26px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}
.tick img {
  width: 18px; height: 18px;
  border-radius: 5px;
  object-fit: cover;
}
.tick b {
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}
.tick b.skeleton { min-width: 54px; }
.tick .up { color: #4ade80; }
.tick .down { color: #f87171; }
.tick .lbl { color: var(--gold); }

/* ============================================================
   V7 — real logos (Helios + partner networks)
   ============================================================ */
.brand-mark img {
  width: 26px; height: 26px; display: block;
  transition: filter 0.3s var(--ease-out);
}
/* footer sits one step down the hierarchy */
.footer .brand-mark img { width: 22px; height: 22px; }
/* logo glows a touch brighter on interaction — no tilt */
.brand:hover .brand-mark img,
.brand:active .brand-mark img,
.brand:focus-visible .brand-mark img {
  filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.75)) drop-shadow(0 0 13px rgba(245, 166, 35, 0.4)) brightness(1.12);
}
.net-logo img,
.net-logo.sm img,
.net-logo.lg img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.net-logo.img { background: #0c0f18; border-color: var(--border-strong); }
.strip-group span {
  display: inline-flex; align-items: center; gap: 12px;
}
.strip-group img {
  width: 24px; height: 24px;
  border-radius: 7px;
  object-fit: cover;
}
