/* ─────────────────────────────────────────────────────────────────────────────
   SIGIL Graph — first screen, three ways in, and the live proof card
   2026-12-04 (rocky; Viktor: "lets do this" on the plain-headline advice)

   Same non-destructive pattern as countdown.css: the markup sits in index.html
   ABOVE #root, paints on the first byte, and React never touches it. Nothing
   here targets an app selector. Remove the sections, this file and hero.js and
   the page is exactly what it was.

   Palette copied from countdown.css (which copied it from the live cascade):
       accent #7de3c3 · deep #10a37f · gold #f4b860 · text #f2f7f4
       dim #a5b5ae · dimmer #6e8078 · panel rgba(17,25,22,.72)
   Also used by /sigil-testnet.html, so the proof card looks the same there.
   ──────────────────────────────────────────────────────────────────────────── */

.sg-hero, .sg-ways, .sg-proof, .sg-tn {
  --h-accent: #7de3c3;
  --h-deep: #10a37f;
  --h-gold: #f4b860;
  --h-text: #f2f7f4;
  --h-dim: #a5b5ae;
  --h-dimmer: #6e8078;
  --h-panel: rgba(17, 25, 22, 0.72);
  --h-line: rgba(125, 227, 195, 0.16);
  font-family: "Sora", system-ui, sans-serif;
  color: var(--h-text);
  box-sizing: border-box;
}
.sg-hero *, .sg-ways *, .sg-proof *, .sg-tn * { box-sizing: border-box; }

/* ── 1. The first screen ─────────────────────────────────────────────────── */
.sg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  /* top padding clears the fixed NEXT / K pills (~44 px on phones) */
  padding: clamp(4.6rem, 10vw, 7.5rem) 1.25rem clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(110% 120% at 50% -10%, rgba(16, 163, 127, 0.24) 0%, rgba(8, 11, 10, 0) 60%),
    linear-gradient(180deg, #0b1311 0%, #080b0a 100%);
}
.sg-hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 227, 195, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 227, 195, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 100%);
          mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 100%);
}
.sg-hero__eyebrow, .sg-proof__eyebrow, .sg-tn__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border: 1px solid rgba(125, 227, 195, 0.22); border-radius: 999px;
  background: rgba(125, 227, 195, 0.06);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--h-accent);
}
.sg-hero__dot, .sg-proof__dot, .sg-tn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--h-accent); box-shadow: 0 0 10px var(--h-accent);
  animation: sg-hero-pulse 2.4s ease-in-out infinite;
}
@keyframes sg-hero-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.sg-hero__title {
  margin: 1.2rem auto 0;
  max-width: 17ch;
  font-size: clamp(2.05rem, 6.4vw, 4.1rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.025em;
  text-wrap: balance;
}
.sg-hero__title em, .sg-proof__title em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(90deg, var(--h-accent), var(--h-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sg-hero__sub {
  margin: 1.1rem auto 0; max-width: 40rem;
  font-size: clamp(1rem, 2.3vw, 1.16rem); line-height: 1.62; color: var(--h-dim);
  text-wrap: pretty;
}
.sg-hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin-top: 1.8rem;
}
.sg-hero__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.45rem;
  border-radius: 12px; border: 1px solid rgba(125, 227, 195, 0.32);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  color: var(--h-text); background: rgba(125, 227, 195, 0.06);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.sg-hero__btn:hover { transform: translateY(-1px); background: rgba(125, 227, 195, 0.12); }
.sg-hero__btn:focus-visible { outline: 2px solid var(--h-gold); outline-offset: 3px; }
.sg-hero__btn--primary {
  border-color: transparent; color: #04120d;
  background: linear-gradient(135deg, #7de3c3 0%, #10a37f 100%);
  box-shadow: 0 8px 28px rgba(16, 163, 127, 0.35);
}
.sg-hero__btn--primary:hover { background: linear-gradient(135deg, #95ecd0 0%, #14b48d 100%); }

.sg-hero__block {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.35rem 0.6rem;
  /* capped so it wraps to two centred lines instead of reaching under the fixed SIGIL · LIVE card
     (bottom-left, x 18-304 px on a 1280 px screen, measured 12-04) */
  max-width: min(34rem, 100%);
  margin: 1.6rem auto 0; padding: 0.6rem 1rem;
  border: 1px solid var(--h-line); border-radius: 12px; background: var(--h-panel);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; color: var(--h-dim);
}
.sg-hero__block b { color: var(--h-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-hero__block a { color: var(--h-accent); text-decoration: none; font-weight: 600; }
.sg-hero__block a:hover { text-decoration: underline; }
.sg-hero__sep { color: var(--h-dimmer); }
.sg-hero__live { width: 7px; height: 7px; border-radius: 50%; background: var(--h-accent); }
.sg-hero__block[data-state="stale"] .sg-hero__live { background: var(--h-gold); }
.sg-hero__block[data-state="down"] .sg-hero__live { background: #e5736b; }

/* ── 2. Three ways in ───────────────────────────────────────────────────── */
.sg-ways {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  max-width: 72rem; margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  background: #080b0a;
}
.sg-way {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.35rem 1.3rem 1.25rem;
  border: 1px solid var(--h-line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 34, 30, 0.75), rgba(13, 19, 17, 0.75));
  scroll-margin-top: 4.5rem;
}
.sg-way__kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--h-gold);
}
.sg-way h2 { margin: 0; font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em; }
.sg-way p { margin: 0; color: var(--h-dim); line-height: 1.6; font-size: 0.96rem; }
.sg-way small { color: var(--h-dimmer); line-height: 1.5; font-size: 0.82rem; }
/* buttons follow the description directly (not pushed to the card bottom): after "Start mining" the
   download buttons must sit above the fixed SIGIL · LIVE card (bottom-left, from y 432 on a 1280x800 screen) */
.sg-way__links { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.15rem; }
.sg-way__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 0.85rem;
  border-radius: 10px; border: 1px solid rgba(125, 227, 195, 0.28);
  color: var(--h-accent); text-decoration: none; font-weight: 600; font-size: 0.9rem;
  background: rgba(125, 227, 195, 0.05);
}
.sg-way__links a:hover { background: rgba(125, 227, 195, 0.12); }
.sg-way__links a.sg-way__main {
  color: #04120d; border-color: transparent;
  background: linear-gradient(135deg, #7de3c3 0%, #10a37f 100%);
}
.sg-code {
  display: block; margin: 0; padding: 0.6rem 0.75rem;
  border-radius: 10px; border: 1px solid var(--h-line); background: rgba(0, 0, 0, 0.35);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; line-height: 1.5;
  color: var(--h-accent); white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere;
  -webkit-user-select: all; user-select: all;
}

/* ── 3. A chain that proves, not asserts — one real block ────────────────── */
.sg-proof {
  position: relative; isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.25rem) 1.25rem;
  background: linear-gradient(180deg, #080b0a 0%, #0a1210 50%, #080b0a 100%);
}
.sg-proof::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 184, 96, 0.35), transparent);
}
.sg-proof__in { max-width: 56rem; margin: 0 auto; }
.sg-proof__title {
  margin: 1rem 0 0; font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.sg-proof__lead { margin: 0.9rem 0 0; color: var(--h-dim); line-height: 1.65; font-size: 1.02rem; max-width: 46rem; }
.sg-pcard {
  margin-top: 1.4rem;
  border: 1px solid rgba(244, 184, 96, 0.28); border-radius: 16px;
  background: var(--h-panel); overflow: hidden;
}
.sg-pcard__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--h-line);
}
.sg-pcard__head strong { font-size: 1.05rem; }
.sg-pcard__head strong b { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--h-gold); font-variant-numeric: tabular-nums; }
.sg-pcard__head span { color: var(--h-dimmer); font-size: 0.82rem; }
.sg-pcard__btn {
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  min-height: 36px; padding: 0.3rem 0.8rem; border-radius: 9px;
  border: 1px solid rgba(125, 227, 195, 0.3); color: var(--h-accent); background: transparent;
}
.sg-pcard__btn:hover { background: rgba(125, 227, 195, 0.1); }
.sg-pcard__row {
  display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0.25rem 1rem;
  padding: 0.75rem 1.1rem; border-bottom: 1px solid rgba(125, 227, 195, 0.07);
}
.sg-pcard__row:last-child { border-bottom: 0; }
.sg-pcard__k { font-weight: 600; font-size: 0.92rem; }
.sg-pcard__k small { display: block; font-weight: 400; color: var(--h-dimmer); font-size: 0.78rem; line-height: 1.45; margin-top: 0.15rem; }
.sg-pcard__v {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; line-height: 1.5;
  color: var(--h-accent); word-break: break-all; align-self: center;
}
.sg-pcard__v.is-empty { color: var(--h-dimmer); }
.sg-pcard__v em { display: block; margin-top: 0.15rem; font-style: normal; word-break: normal; color: var(--h-dimmer); font-family: "Sora", system-ui, sans-serif; }
.sg-proof__how { margin: 1.1rem 0 0; color: var(--h-dim); line-height: 1.6; font-size: 0.95rem; }
.sg-proof__honest {
  margin: 1rem 0 0; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(244, 184, 96, 0.22); background: rgba(244, 184, 96, 0.05);
  color: var(--h-dim); line-height: 1.6; font-size: 0.9rem;
}
.sg-proof__honest b { color: var(--h-gold); font-weight: 600; }
.sg-proof__more { display: inline-block; margin-top: 1.1rem; color: var(--h-accent); font-weight: 700; text-decoration: none; }
.sg-proof__more:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .sg-pcard__row { grid-template-columns: 1fr; }
  .sg-hero__block { font-size: 0.76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-hero__dot, .sg-proof__dot, .sg-tn__dot { animation: none; }
  .sg-hero__btn { transition: none; }
}

/* the React wallet card gets id="try" (bundle patch); leave room above it when "Make a wallet here" jumps to it */
#try { scroll-margin-top: 1.5rem; }
