/* ── Plutoniumite ───────────────────────────────────────────────────────────
   Same tokens as plutoniumnetwork.com so the network reads as one family.
   Purple leads here; green is reserved for live/online signals.
   ────────────────────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #161616;
  --surface:   #1c1c1d;
  --surface-2: #212123;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);

  --purple:    #9b3fd9;
  --blue:      #3e6fe3;
  --grad:      linear-gradient(100deg, var(--purple) 0%, var(--blue) 100%);

  --green:     #4bff00;
  --green-dim: #43d300;
  --glow:      rgba(75, 255, 0, .12);
  --red:       #ff5c5c;

  --text:      #ededed;
  --text-dim:  #9a9a9a;

  --font: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI",
          system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 1180px;
  --radius: 10px;
}

html { scroll-behavior: smooth }

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

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px }
a { color: inherit }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.container {
  width: 100%; max-width: var(--measure);
  margin-inline: auto; padding-inline: var(--gutter);
}

/* Ambient wash */
.glow-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(720px 520px at 80% 12%, rgba(155, 63, 217, .16), transparent 62%),
    radial-gradient(620px 460px at 12% 72%, rgba(62, 111, 227, .12), transparent 62%);
}
main, header, footer { position: relative; z-index: 1 }

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  background: rgba(22, 22, 22, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none }
.brand img { width: 30px; height: 30px; display: block }
.brand-name { font-weight: 700; font-size: .98rem; letter-spacing: -.01em }
.brand-sub {
  font-size: .72rem; color: var(--text-dim); display: block;
  line-height: 1.2; font-weight: 500;
}

nav { display: flex; gap: 1.6rem; align-items: center }
nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: .9rem; font-weight: 500; transition: color .18s;
}
nav a:hover { color: var(--text) }
.nav-cta {
  padding: .5rem 1.1rem; border-radius: 6px;
  background: var(--grad); color: #fff !important; font-weight: 600;
  transition: opacity .18s, transform .15s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px) }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px }
.nav-toggle .icon-close { display: none }
.nav-toggle[aria-expanded="true"] .icon-open { display: none }
.nav-toggle[aria-expanded="true"] .icon-close { display: block }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
#hero { padding: 8.5rem 0 clamp(3rem, 7vw, 5rem) }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .36rem .9rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: .82rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 1.3rem;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--text-dim);
}
.status-pill.online { border-color: rgba(75,255,0,.35); background: var(--glow); color: var(--green) }
.status-pill.online .dot { background: var(--green); animation: blink 2.2s ease-in-out infinite }
.status-pill.offline { border-color: rgba(255,92,92,.35); background: rgba(255,92,92,.07); color: var(--red) }
.status-pill.offline .dot { background: var(--red) }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.03em;
  margin-bottom: 1.1rem;
}
.h1-sub {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  color: var(--text-dim); font-size: 1.04rem; line-height: 1.75;
  max-width: 50ch; margin-bottom: 2rem;
}

/* ── Player counter ───────────────────────────────────────────────────────── */
.counter {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem;
  max-width: 420px; margin-bottom: 1.5rem;
}
.counter-top {
  display: flex; align-items: baseline; gap: .6rem; margin-bottom: .9rem;
}
.count-now {
  font-size: 2.6rem; font-weight: 700; line-height: 1;
  letter-spacing: -.03em; color: var(--green);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.count-now.loading { color: var(--text-dim) }
.count-max { font-size: 1.1rem; color: var(--text-dim); font-weight: 600 }
.count-label { font-size: .85rem; color: var(--text-dim); margin-left: auto }

.bar {
  height: 6px; border-radius: 99px; background: rgba(255,255,255,.07);
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.counter-note { font-size: .78rem; color: var(--text-dim); margin-top: .7rem }

/* ── Connect box ──────────────────────────────────────────────────────────── */
.connect {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; max-width: 460px;
  margin-bottom: 1.4rem;
}
.connect-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line) }
.connect-addr {
  flex: 1; min-width: 0; padding: .85rem 1rem;
  font-family: var(--mono); font-size: .92rem; color: var(--green);
  white-space: nowrap; overflow-x: auto; overflow-y: hidden;
  display: flex; align-items: center; scrollbar-width: none;
}
.connect-addr::-webkit-scrollbar { display: none }
.copy-btn {
  border: none; border-left: 1px solid var(--line);
  background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: .85rem; font-weight: 600;
  padding: 0 1.15rem; cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.copy-btn:hover { background: var(--glow); color: var(--green) }
.copy-btn.done { color: var(--green) }
.connect-hint { padding: .7rem 1rem; font-size: .83rem; color: var(--text-dim) }
.connect-hint code { font-family: var(--mono); color: var(--text); font-size: .85rem }

.actions { display: flex; gap: .7rem; flex-wrap: wrap }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 7px; border: 1px solid transparent;
  font-family: var(--font); font-size: .92rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: opacity .18s, transform .15s, border-color .18s, color .18s;
}
.btn svg { width: 16px; height: 16px }
.btn-primary { background: var(--grad); color: #fff }
.btn-primary:hover { opacity: .88; transform: translateY(-1px) }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: none }
.btn-ghost:hover { border-color: var(--green); color: var(--green) }

/* ── Shard art ────────────────────────────────────────────────────────────── */
.art { display: grid; place-items: center }
.shards {
  position: relative; width: clamp(200px, 26vw, 300px); aspect-ratio: 1;
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(-8px) } 50% { transform: translateY(8px) } }
.shard { position: absolute }
.shard i { position: absolute; inset: 0; display: block }
.shard .lf { background: var(--s-dark);  clip-path: polygon(50% 0%, 0% 34%, 50% 100%) }
.shard .rf { background: var(--s-light); clip-path: polygon(50% 0%, 100% 34%, 50% 100%) }
.shard::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(circle, var(--s-light) 0%, transparent 62%);
  opacity: .17;
}
.s1 { --s-light: #8a44c9; --s-dark: #4b1a78; left: 10%; top: 38%; width: 22%; height: 44% }
.s2 { --s-light: #5ce01a; --s-dark: #2f8a0d; left: 62%; top: 44%; width: 17%; height: 34% }
.s3 { --s-light: #b062ee; --s-dark: #6a26a0; left: 33%; top: 14%; width: 30%; height: 66% }

/* ── Sections ─────────────────────────────────────────────────────────────── */
section { padding-block: clamp(3.5rem, 7vw, 5.5rem) }
.alt { background: var(--surface); border-block: 1px solid var(--line) }

.section-head { max-width: 52ch; margin-bottom: 2.5rem }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.12;
  margin-bottom: .7rem;
}
.section-head p { color: var(--text-dim) }

/* Fact cards */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem;
}
.fact {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.alt .fact { background: var(--bg) }
.fact-label { font-size: .78rem; font-weight: 600; color: var(--text-dim); margin-bottom: .35rem }
.fact-value { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .3rem }
.fact-note { font-size: .86rem; color: var(--text-dim); line-height: 1.55 }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem }
.step {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.alt .step { background: var(--bg) }
.step-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--glow); border: 1px solid rgba(75,255,0,.3);
  color: var(--green); font-size: .82rem; font-weight: 700;
  margin-bottom: .8rem;
}
.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .45rem; letter-spacing: -.01em }
.step p { font-size: .92rem; color: var(--text-dim); line-height: 1.65 }
.step code {
  font-family: var(--mono); font-size: .86rem; color: var(--green);
  background: rgba(75,255,0,.07); padding: .1rem .35rem; border-radius: 4px;
  word-break: break-all;
}

/* Rules */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem }
.rule {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.alt .rule { background: var(--bg) }
.rule-mark { flex-shrink: 0; width: 20px; height: 20px; margin-top: .15rem }
.rule-mark.yes { color: var(--green) }
.rule-mark.no  { color: var(--red) }
.rule h3 { font-size: .96rem; font-weight: 700; margin-bottom: .25rem }
.rule p { font-size: .88rem; color: var(--text-dim); line-height: 1.6 }

/* Callout */
.callout {
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.6rem;
}
.alt .callout { background: var(--bg) }
.callout-text { flex: 1; min-width: 260px }
.callout h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem }
.callout p { color: var(--text-dim); font-size: .94rem; line-height: 1.7 }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .5rem; max-width: 760px }
.faq-item {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); overflow: hidden; transition: border-color .2s;
}
.alt .faq-item { background: var(--bg) }
.faq-item.open { border-color: rgba(75,255,0,.28) }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: var(--font); font-size: .98rem; font-weight: 600;
  padding: 1.1rem 1.25rem; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color .2s;
}
.faq-q:hover { color: var(--green) }
.faq-icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-dim); transition: transform .25s, color .2s }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--green) }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease }
.faq-item.open .faq-a { grid-template-rows: 1fr }
.faq-a > div { overflow: hidden }
.faq-a p { padding: 0 1.25rem 1.15rem; color: var(--text-dim); font-size: .93rem; line-height: 1.75 }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.2rem; flex-wrap: wrap;
  font-size: .86rem; color: var(--text-dim);
}
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap }
footer a { color: var(--text-dim); text-decoration: none; transition: color .2s }
footer a:hover { color: var(--green) }

/* ── Reveal ───────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s }
.reveal.visible { opacity: 1; transform: none }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr }
  .art { order: -1; margin-bottom: .5rem }
  .shards { width: clamp(170px, 46vw, 230px) }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex }
  nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.2rem;
    background: rgba(22,22,22,.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  nav.open { opacity: 1; visibility: visible; transform: none }
  nav a { padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid var(--line) }
  nav a:last-child { border-bottom: none }
  .nav-cta { text-align: center; margin-top: .8rem; padding: .8rem 1.1rem }

  #hero { padding-top: 6.5rem }
  footer { flex-direction: column; text-align: center }
}

@media (max-width: 560px) {
  .connect-row { flex-direction: column; align-items: stretch }
  .connect-addr { white-space: nowrap; font-size: .8rem; padding: .9rem .85rem .75rem }
  .copy-btn { border-left: none; border-top: 1px solid var(--line); padding: .75rem 1rem }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none }
}
