@charset "utf-8";

/* ==========================================================================
   XPHERE — page.css
   Shared layer for data-dense pages (staking, security) and the homepage
   protocol sections. Deliberately denser than the marketing sections in
   style.css: hairline borders, 20px radii, tabular figures for on-chain data.
   No external fonts or CDNs — the site ships everything it uses.
   ========================================================================== */

:root {
  --pg-surface: #0b0b0b;
  --pg-surface-2: #131313;
  --pg-line: rgba(255, 255, 255, 0.09);
  --pg-line-strong: rgba(255, 255, 255, 0.18);
  --pg-text: #ffffff;
  --pg-text-2: rgba(255, 255, 255, 0.62);
  --pg-text-3: rgba(255, 255, 255, 0.4);
  --pg-ember: linear-gradient(
    90deg,
    #ffeed4 0%,
    #ff9738 9%,
    #e7453a 47%,
    #cf1512 100%
  );
  --pg-ember-solid: #ff7a3d;
  --pg-warn: #ff5252;
  --pg-ok: #3ddc97;
  --pg-mono: ui-monospace, SFMono-Regular, "SF Mono", "Menlo", "Consolas",
    monospace;
  --pg-radius: 20px;
}

/* style.css declares `a:link { color: inherit }`, whose (0,1,1) specificity
   beats a single class. Every anchor component below therefore states its
   colour through :link/:visited too, or it renders as inherited grey. */
a.pg-btn,
a.pg-btn:link,
a.pg-btn:visited {
  color: var(--pg-text);
}
a.pg-btn--primary,
a.pg-btn--primary:link,
a.pg-btn--primary:visited,
a.pg-btn--primary:hover {
  color: #fff;
}
a.pg-link,
a.pg-link:link,
a.pg-link:visited {
  color: var(--pg-text);
}
a.pg-link:hover {
  color: var(--pg-ember-solid);
}
a.pg-card,
a.pg-card:link,
a.pg-card:visited {
  color: var(--pg-text);
  text-decoration: none;
}
.pg-verify a:link,
.pg-verify a:visited {
  color: var(--pg-text);
}
.pg-verify a:hover {
  color: var(--pg-ember-solid);
}

/* style.css sets `word-break: break-all` globally, which shatters English
   prose mid-word. Restore sane wrapping inside page.css surfaces. */
.pg,
.pg * {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.pg {
  position: relative;
  padding: 120px 0;
}
.pg + .pg {
  padding-top: 0;
}
/* .section blocks in style.css are full-viewport and vertically centred, so a
   .pg immediately before one would stack two large gaps. Progressive
   enhancement — ignored by browsers without :has(). */
.pg:has(+ .section) {
  padding-bottom: 40px;
}
/* Gutters mirror .section-inner in style.css so content clears the fixed
   #aside / #fix-logo rails, which are 130 / 90 / 72px above 992px. */
.pg-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 130px;
}
.pg-narrow {
  max-width: 1100px;
}

/* --- type ---------------------------------------------------------------- */

.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pg-text-3);
  margin-bottom: 20px;
}
.pg-eyebrow:before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--pg-ember-solid);
}

.pg-h1 {
  font-size: clamp(40px, 6.2vw, 84px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--pg-text);
}
.pg-h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--pg-text);
}
.pg-h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pg-text);
}
.pg-grad {
  background: var(--pg-ember);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg-lead {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--pg-text-2);
  max-width: 62ch;
}
.pg-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--pg-text-2);
  max-width: 68ch;
}
.pg-body strong,
.pg-lead strong {
  color: var(--pg-text);
  font-weight: 500;
}
.pg-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--pg-text-3);
}
.pg-mono {
  font-family: var(--pg-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.pg-sec-head {
  margin-bottom: 48px;
}
.pg-sec-head .pg-lead {
  margin-top: 18px;
}

a.pg-link {
  color: var(--pg-text);
  text-decoration: none;
  border-bottom: 1px solid var(--pg-line-strong);
  transition: border-color 0.25s ease, color 0.25s ease;
}
a.pg-link:hover {
  color: var(--pg-ember-solid);
  border-bottom-color: var(--pg-ember-solid);
}

/* --- buttons ------------------------------------------------------------- */

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--pg-line-strong);
  color: var(--pg-text);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease,
    transform 0.25s ease;
}
.pg-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}
/* Matches .grant-join-btn in style.css — the brand's established primary CTA:
   deep red gradient, white text, which keeps contrast usable. */
.pg-btn--primary {
  position: relative;
  border-color: transparent;
  background: linear-gradient(
    to right,
    #e7453a 38.5%,
    #d7183b 60%,
    #a90120 100%
  );
  color: #fff;
  font-weight: 600;
}
.pg-btn--primary:hover {
  opacity: 0.9;
  border-color: transparent;
  transform: translateY(-1px);
}
.pg-btn:after {
  content: "↗";
  font-size: 11px;
  opacity: 0.7;
}
.pg-btn--plain:after {
  content: none;
}

/* --- cards / grid -------------------------------------------------------- */

.pg-grid {
  display: grid;
  gap: 16px;
}
.pg-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pg-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pg-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  overflow: hidden;
}
.pg-card--lit:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--pg-ember);
  opacity: 0.9;
}
.pg-card .pg-h3 {
  margin-bottom: 12px;
}
a.pg-card {
  display: block;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.pg-card:hover {
  border-color: var(--pg-line-strong);
  transform: translateY(-2px);
}
a.pg-card:hover .pg-h3 {
  color: var(--pg-ember-solid);
}
.pg-card p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--pg-text-2);
}

/* --- stat tiles (live readout) ------------------------------------------- */

.pg-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  overflow: hidden;
}
.pg-stat {
  padding: 30px 28px;
  border-right: 1px solid var(--pg-line);
}
.pg-stat:last-child {
  border-right: 0;
}
.pg-stat dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-text-3);
  margin-bottom: 14px;
}
.pg-stat dd {
  font-family: var(--pg-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--pg-text);
}
.pg-stat dd small {
  display: block;
  margin-top: 8px;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--pg-text-3);
  letter-spacing: 0;
}
/* value refreshed → brief ember flash, so a live figure reads as live.
   The class lands on the value node, not the <dd>, so the <small>
   sublabel survives each refresh. */
.pg-stat [data-xp-stat].is-tick {
  animation: pg-tick 0.7s ease-out;
}
@keyframes pg-tick {
  0% {
    color: var(--pg-ember-solid);
  }
  100% {
    color: var(--pg-text);
  }
}

.pg-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pg-text-3);
}
.pg-live:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pg-ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55);
  animation: pg-pulse 2.4s infinite;
}
.pg-live.is-down:before {
  background: var(--pg-text-3);
  animation: none;
  box-shadow: none;
}
@keyframes pg-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(61, 220, 151, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0);
  }
}

/* --- parameter / spec table ---------------------------------------------- */

.pg-table {
  width: 100%;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  overflow: hidden;
  background: var(--pg-surface);
}
.pg-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--pg-line);
  align-items: baseline;
}
.pg-row:last-child {
  border-bottom: 0;
}
.pg-row dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--pg-text-3);
}
.pg-row dd {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--pg-text);
}
.pg-row dd .pg-mono {
  font-size: 15px;
}
.pg-row dd small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--pg-text-3);
}

/* --- split / allocation bar ---------------------------------------------- */

.pg-split {
  margin-top: 8px;
}
.pg-split__bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--pg-surface-2);
}
.pg-split__bar span {
  display: block;
  height: 100%;
}
.pg-split__key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 18px;
}
.pg-split__key li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--pg-text-2);
  list-style: none;
}
.pg-split__key i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.pg-split__key b {
  font-family: var(--pg-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--pg-text);
}

/* --- numbered steps ------------------------------------------------------ */

.pg-steps {
  counter-reset: pg-step;
  display: grid;
  gap: 0;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  overflow: hidden;
}
.pg-steps li {
  counter-increment: pg-step;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 30px 32px;
  border-bottom: 1px solid var(--pg-line);
  list-style: none;
}
.pg-steps li:last-child {
  border-bottom: 0;
}
.pg-steps li:before {
  content: counter(pg-step, decimal-leading-zero);
  font-family: var(--pg-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--pg-ember-solid);
  padding-top: 4px;
}
.pg-steps h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--pg-text);
  margin-bottom: 8px;
}
.pg-steps p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--pg-text-2);
  max-width: 70ch;
}

/* --- address rows -------------------------------------------------------- */

.pg-addr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: var(--pg-surface);
}
.pg-addr + .pg-addr {
  margin-top: 10px;
}
.pg-addr__label {
  font-size: 13px;
  color: var(--pg-text-3);
  margin-bottom: 8px;
}
.pg-addr__value {
  font-family: var(--pg-mono);
  font-size: 14px;
  color: var(--pg-text);
}
.pg-copy {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--pg-line-strong);
  background: transparent;
  color: var(--pg-text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pg-copy:hover {
  color: var(--pg-text);
  border-color: rgba(255, 255, 255, 0.45);
}
.pg-copy.is-done {
  color: var(--pg-ok);
  border-color: var(--pg-ok);
}

/* --- callouts ------------------------------------------------------------ */

.pg-callout {
  padding: 32px;
  border: 1px solid var(--pg-line);
  border-left: 3px solid var(--pg-text-3);
  border-radius: 14px;
  background: var(--pg-surface);
}
.pg-callout--warn {
  border-left-color: var(--pg-warn);
  background: rgba(255, 82, 82, 0.045);
}
.pg-callout--risk {
  border-left-color: var(--pg-ember-solid);
  background: rgba(255, 122, 61, 0.04);
}
.pg-callout h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--pg-text);
  margin-bottom: 14px;
}
.pg-callout p,
.pg-callout li {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--pg-text-2);
}
.pg-callout ul {
  margin: 0;
  padding: 0;
}
.pg-callout li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  margin-top: 10px;
}
.pg-callout li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pg-text-3);
}
.pg-callout--warn li:before {
  background: var(--pg-warn);
}

/* --- checklist (official domains) ---------------------------------------- */

.pg-verify {
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  overflow: hidden;
}
.pg-verify li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 260px);
  gap: 20px;
  align-items: center;
  padding: 22px 30px;
  border-bottom: 1px solid var(--pg-line);
  list-style: none;
}
.pg-verify li:last-child {
  border-bottom: 0;
}
.pg-verify li:before {
  content: "✓";
  font-size: 13px;
  color: var(--pg-ok);
  border: 1px solid rgba(61, 220, 151, 0.4);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-verify a {
  font-family: var(--pg-mono);
  font-size: 15px;
  color: var(--pg-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.pg-verify a:hover {
  border-bottom-color: var(--pg-ember-solid);
  color: var(--pg-ember-solid);
}
.pg-verify span {
  font-size: 14px;
  font-weight: 300;
  color: var(--pg-text-3);
}

/* --- hero ---------------------------------------------------------------- */

.pg-hero {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
}
.pg-hero:before {
  /* off-centre ember bloom — atmosphere without another image asset */
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(231, 69, 58, 0.2) 0%,
    rgba(207, 21, 18, 0.07) 40%,
    transparent 68%
  );
  pointer-events: none;
}
.pg-hero .pg-inner {
  position: relative;
  z-index: 1;
}
.pg-hero .pg-lead {
  margin-top: 26px;
}

/* one orchestrated page-load reveal, staggered */
.pg-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: pg-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pg-rise:nth-child(1) {
  animation-delay: 0.05s;
}
.pg-rise:nth-child(2) {
  animation-delay: 0.14s;
}
.pg-rise:nth-child(3) {
  animation-delay: 0.23s;
}
.pg-rise:nth-child(4) {
  animation-delay: 0.32s;
}
@keyframes pg-rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg-rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .pg-stat [data-xp-stat].is-tick {
    animation: none;
  }
  .pg-live:before {
    animation: none;
  }
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1680px) {
  .pg-inner {
    padding: 0 90px;
  }
}
@media (max-width: 1280px) {
  .pg-inner {
    padding: 0 72px;
  }
}
@media (max-width: 1100px) {
  .pg-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pg-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pg-stat:nth-child(2) {
    border-right: 0;
  }
  .pg-stat:nth-child(1),
  .pg-stat:nth-child(2) {
    border-bottom: 1px solid var(--pg-line);
  }
}
@media (max-width: 992px) {
  .pg {
    padding: 80px 0;
  }
  .pg-hero {
    padding: 90px 0 70px;
  }
  .pg-inner {
    padding: 0 24px;
  }
}
@media (max-width: 900px) {
  .pg-grid--2,
  .pg-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 20px 24px;
  }
  .pg-card {
    padding: 26px;
  }
  .pg-steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 24px;
  }
  .pg-verify li {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 18px 22px;
    gap: 14px;
  }
  .pg-verify li span {
    grid-column: 2;
  }
  .pg-addr {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-copy {
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .pg-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .pg-stat {
    border-right: 0;
    border-bottom: 1px solid var(--pg-line);
  }
  .pg-stat:last-child {
    border-bottom: 0;
  }
  .pg-btn {
    width: 100%;
    justify-content: center;
  }
}
