/* ============================================================================
 * ASTARTER · Network Activity page (/network)  ·  design system: .ns-*
 * A dedicated, top-tier metrics showcase for the live network figures
 * (wallet interactions · points claimed · online · new today · new/month).
 * Dark, restrained, brand-violet accent · numbers carry the weight.
 * Values + growth chart filled by js/live-stats.js (shared engine).
 * ========================================================================== */

/* This page is DARK. The shared product-page chrome themes the body light
 * (body.has-prod-page{background:#F8F8FB!important}); override it here with
 * higher specificity + !important, and drop its light decorations. */
body.ns-page.has-prod-page {
  background: #040404 !important;
  color: #fff;
}
body.ns-page.has-prod-page::before,
body.ns-page.has-prod-page::after {
  display: none !important;
}

.ns {
  position: relative;
  color: #fff;
  overflow: clip;
}

/* NO colour spreading (standing rule): no ambient violet glow / blurred blobs
 * bleeding into space. The page is a clean flat dark; depth comes from the
 * glass surfaces themselves, not from colour washing behind them. */

.ns__wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── live eyebrow · liquid-glass capsule ──────────────────────────────────── */
.ns-live {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #eaeaf2;
  padding: 8px 17px 8px 13px;
  border-radius: 999px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 62%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 10px 26px -14px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
/* glass top-edge sheen */
.ns-live::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 90% at 20% -20%, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}
/* live indicator: a lit dot with a steady glow + a gentle expanding ring
   (reads as "live", not a flat status blip) */
.ns-live__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #7dffbf, #16c26a 78%);
  box-shadow: 0 0 9px 1px rgba(34, 211, 138, 0.75);
  flex: none;
}
.ns-live__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 138, 0.55);
  animation: ns-ring 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes ns-ring {
  0% { transform: scale(0.55); opacity: 0.85; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-live__dot::after { animation: none; }
}

/* ── reveal motion · base.org-style fade-up on enter ──────────────────────── */
.ns .ed-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  /* safety net: if the reveal JS never fires, show everything anyway */
  animation: ns-reveal-safety 0.01s linear 2.2s forwards;
}
.ns .ed-reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@keyframes ns-reveal-safety {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ns .ed-reveal { opacity: 1; transform: none; transition: none; animation: none; }
}

/* ── editorial hero (commanding headline, left-aligned) ───────────────────── */
.ns-hero {
  padding: clamp(130px, 20vh, 240px) 0 clamp(48px, 7vh, 88px);
  max-width: 920px;
}
.ns-hero .ns-live { margin-bottom: 30px; }
.ns-hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
}
.ns-hero__title em {
  font-style: normal;
  background: linear-gradient(115deg, #cbb8ff, #8b5cff 58%, #bd8cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ns-hero__lede {
  max-width: 600px;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: #9a9aa6;
}

/* ── primary stat + growth chart ──────────────────────────────────────────── */
.ns-primary {
  padding: 0 0 clamp(56px, 9vh, 110px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ns-primary__value {
  font-size: clamp(3.6rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: linear-gradient(180deg, #ffffff 44%, #c9b6ff 128%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ns-primary__label {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a95;
}

/* ── section eyebrow ──────────────────────────────────────────────────────── */
.ns-section__eyebrow {
  margin: 0 0 30px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8a95;
}

/* ── growth chart ─────────────────────────────────────────────────────────── */
.ns-chart {
  position: relative;
  margin: 40px 0 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 70%);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 30px 60px -34px rgba(0, 0, 0, 0.85);
  padding: 22px 22px 14px;
  overflow: hidden;
}
/* glass rim highlight along the top */
.ns-chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 30% -10%, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}
.ns-chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.ns-chart__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a95;
}
.ns-chart__delta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #22d38a;
  font-variant-numeric: tabular-nums;
}
.ns-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}
.ns-chart__grid line { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.ns-chart__area {
  fill: url(#ns-grad);
  opacity: 0;
  animation: ns-fade 1.1s ease-out 0.55s forwards;
}
.ns-chart__line {
  fill: none;
  stroke: url(#ns-stroke);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* draw-in: pathLength="1" on the path normalises length to 1 unit */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ns-draw 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ns-chart__dot {
  fill: #fff;
  /* neutral shadow only - a violet bloom here bled colour into the card */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
  opacity: 0;
  animation: ns-fade 0.5s ease-out 1.55s forwards;
}
@keyframes ns-draw { to { stroke-dashoffset: 0; } }
@keyframes ns-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ns-chart__line { stroke-dashoffset: 0; animation: none; }
  .ns-chart__area, .ns-chart__dot { opacity: 1; animation: none; }
}
.ns-chart__xlabels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #6b6b76;
}

/* ── metric grid ──────────────────────────────────────────────────────────── */
.ns-section {
  padding: clamp(56px, 9vh, 100px) 0;
}
/* "Points claimed" carries a 9-13 digit number while the other four are 3-7
   digits, so an even 5-across grid starves it and the value gets clipped by
   the card's overflow:hidden. Give that one column the extra width it needs. */
.ns-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 1080px) {
  .ns-grid { grid-template-columns: repeat(3, 1fr); }
  .ns-grid > .ns-card:nth-child(2) { grid-column: span 2; }
}
.ns-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 62%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 44px -28px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
/* liquid-glass sheen — a soft WHITE top-left light only (no colour bleed) */
.ns-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 12% -6%, rgba(255, 255, 255, 0.14), transparent 52%);
  pointer-events: none;
}
/* a soft moving sheen band that sweeps across on hover (liquid feel) */
.ns-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-16deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.ns-card:hover {
  border-color: rgba(157, 92, 255, 0.55);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 26px 50px -28px rgba(0, 0, 0, 0.9);
}
.ns-card:hover::after { left: 120%; }
@media (prefers-reduced-motion: reduce) {
  .ns-card::after { transition: none; }
}
.ns-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9aa6;
}
.ns-card__value {
  margin-top: 14px;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.ns-card__note {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #75757f;
}
.ns-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d38a;
  box-shadow: 0 0 0 0 rgba(34, 211, 138, 0.5);
  animation: ns-pulse 2.4s ease-out infinite;
  flex: none;
}

/* ── questions (visible answers, mirrored in FAQPage JSON-LD) ─────────────── */
.ns-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ns-faq__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.ns-faq__q {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.32;
  color: #fff;
}
.ns-faq__a {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: #8b8b95;
}
@media (max-width: 900px) {
  .ns-faq__list { grid-template-columns: 1fr; gap: 32px; }
}

/* ── closing note / CTA ───────────────────────────────────────────────────── */
.ns-final {
  padding: 20px 0 clamp(80px, 12vh, 140px);
  text-align: center;
}
.ns-final__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.ns-final__sub {
  max-width: 560px;
  margin: 14px auto 26px;
  font-size: 1rem;
  line-height: 1.6;
  color: #9a9aa6;
}
.ns-final__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ns-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background 0.3s;
}
.ns-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #7a14ff, #6500e6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
}
.ns-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -10px rgba(0, 0, 0, 0.65);
}
.ns-btn--ghost {
  color: #eaeaf2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ns-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Two columns and five cards would leave a half-empty orphan row. Promote
     the widest metric to a full-width lead card: the number gets the room it
     needs and the remaining four tile cleanly 2 x 2. */
  .ns-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-grid > .ns-card:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 520px) {
  .ns-hero { padding-top: 110px; }
  .ns-grid { gap: 10px; }
  .ns-card { padding: 18px 16px; }
  .ns-card__value { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .ns-grid > .ns-card:nth-child(2) .ns-card__value { font-size: clamp(1.9rem, 9vw, 2.3rem); }

  .ns-chart { margin-top: 30px; padding: 16px 16px 12px; border-radius: 18px; }
  .ns-chart__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 10px;
  }
  .ns-chart__title { font-size: 0.66rem; letter-spacing: 0.1em; }
}
