:root {
  color-scheme: light;
  --ink: #191a17;
  --paper: #f3f0e8;
  --card: #fbfaf6;
  --line: rgb(25 26 23 / 13%);
  --muted: #74766f;
  --lime: #dfff63;
  --coral: #ff7051;
  --focus: rgb(112 134 30 / 27%);
}

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

html, body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgb(25 26 23 / 2.8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(25 26 23 / 2.8%) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body::before {
  top: -17rem;
  right: -13rem;
  width: 35rem;
  height: 35rem;
  background: radial-gradient(circle, rgb(223 255 99 / 48%), transparent 68%);
}

body::after {
  bottom: -19rem;
  left: -15rem;
  width: 39rem;
  height: 39rem;
  background: radial-gradient(circle, rgb(255 112 81 / 13%), transparent 70%);
}

.nx-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem;
  width: min(100%, 82rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.25rem;
}

.nx-topbar,
.nx-page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nx-topbar { min-height: 3.25rem; }

.nx-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}

.nx-brand img { display: block; width: 2.35rem; height: 2.35rem; }

.nx-brand-copy { display: grid; gap: .18rem; line-height: 1; }
.nx-brand-copy strong { font-size: .82rem; font-weight: 850; letter-spacing: .19em; }
.nx-brand-copy small { color: var(--muted); font-size: .58rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; }

.nx-live {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #64665f;
  font-size: .67rem;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nx-live i {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: #6caa3c;
  box-shadow: 0 0 0 .28rem rgb(108 170 60 / 13%);
}

.nx-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, .92fr);
  align-items: stretch;
  gap: 1.15rem;
  width: min(100%, 68rem);
  margin: auto;
}

.nx-manifest,
.nx-card {
  min-height: 36.5rem;
  border-radius: 2rem;
}

.nx-manifest {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 2.15rem;
  color: #f8f7f2;
  background: var(--ink);
  box-shadow: 0 2rem 5rem rgb(25 26 23 / 18%);
}

.nx-manifest::before {
  position: absolute;
  top: -8rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgb(223 255 99 / 22%);
  border-radius: 50%;
  box-shadow: 0 0 0 2.8rem rgb(223 255 99 / 4%), 0 0 0 6rem rgb(223 255 99 / 2%);
  content: "";
}

.nx-manifest::after {
  position: absolute;
  right: -3.5rem;
  bottom: -5rem;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgb(255 112 81 / 40%), transparent 68%);
  content: "";
}

.nx-index,
.nx-sign {
  position: relative;
  z-index: 2;
  color: rgb(248 247 242 / 48%);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.nx-orbit {
  position: absolute;
  top: 3.65rem;
  right: 2.2rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 7.6rem;
  height: 7.6rem;
  border: 1px solid rgb(248 247 242 / 18%);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.nx-orbit::before { width: 4.65rem; height: 4.65rem; border: 1px solid rgb(223 255 99 / 46%); border-radius: 50%; content: ""; }
.nx-orbit span { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .8rem; color: var(--ink); background: var(--lime); font-weight: 880; transform: rotate(9deg); }
.nx-orbit i { position: absolute; top: .35rem; right: 1.05rem; width: .8rem; height: .8rem; border: .18rem solid var(--ink); border-radius: 50%; background: var(--coral); }

.nx-statement {
  position: relative;
  z-index: 2;
  margin: auto 0 2.1rem;
  font-size: clamp(3.65rem, 7vw, 6.8rem);
  font-weight: 780;
  letter-spacing: -.075em;
  line-height: .78;
}

.nx-statement > div:nth-child(2) { margin-top: .18em; color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; }
.nx-statement p { margin: 1.75rem 0 0 .35rem; color: rgb(248 247 242 / 61%); font-size: .88rem; font-weight: 480; letter-spacing: -.015em; line-height: 1.5; }

.nx-card {
  display: flex;
  flex-direction: column;
  padding: 3.1rem 3rem 2rem;
  border: 1px solid var(--line);
  background: rgb(251 250 246 / 96%);
  box-shadow: 0 1.5rem 4rem rgb(25 26 23 / 8%);
}

.nx-kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.15rem; color: #62645d; font-size: .64rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.nx-kicker::before { width: 1.4rem; height: .18rem; border-radius: 99px; background: var(--coral); content: ""; }

h1 { margin: 0; font-size: clamp(3rem, 5.4vw, 4.35rem); font-weight: 720; letter-spacing: -.075em; line-height: .86; }
.nx-lead { max-width: 27rem; margin: 1.55rem 0 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }

.nx-actions { display: grid; gap: .7rem; margin-top: 2rem; }
.nx-button { display: grid; place-items: center; min-height: 3.35rem; padding: 0 1.15rem; border: 1px solid var(--ink); border-radius: .85rem; color: var(--ink); font-size: .88rem; font-weight: 780; text-decoration: none; transition: transform 140ms ease, background 140ms ease; }
.nx-primary { color: #f8f7f2; background: var(--ink); }
.nx-primary:hover { background: #31342b; transform: translateY(-1px); }
.nx-secondary { border-color: var(--line); background: transparent; }
.nx-secondary:hover { background: #efeee8; }
.nx-button:focus-visible { outline: .2rem solid var(--focus); outline-offset: .15rem; }
.nx-action-note { margin: .15rem .15rem 0; color: #8b8d85; font-size: .69rem; line-height: 1.45; }

.nx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: auto 0 0; padding-top: 2rem; }
.nx-facts div { min-width: 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.nx-facts dt { color: #92948c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .52rem; letter-spacing: .08em; }
.nx-facts dd { overflow: hidden; margin: .38rem 0 0; font-size: .69rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.nx-card footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #92948c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; }
.nx-page-foot { color: #8a8c84; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .56rem; letter-spacing: .1em; }

@media (max-width: 48rem) {
  .nx-page { display: block; padding: 1rem; }
  .nx-topbar { margin-bottom: 1rem; }
  .nx-stage { grid-template-columns: 1fr; }
  .nx-manifest { min-height: 10rem; padding: 1.4rem; border-radius: 1.5rem; }
  .nx-index, .nx-sign, .nx-statement p { display: none; }
  .nx-statement { margin: auto 0 0; font-size: 3rem; line-height: .8; }
  .nx-orbit { top: 1.25rem; right: 1.5rem; width: 6rem; height: 6rem; }
  .nx-orbit::before { width: 3.6rem; height: 3.6rem; }
  .nx-card { min-height: 0; padding: 2.35rem; border-radius: 1.5rem; }
  .nx-page-foot { margin-top: 1.2rem; }
}

@media (max-width: 30rem) {
  .nx-brand-copy small, .nx-live { font-size: 0; }
  .nx-card { padding: 2rem 1.4rem 1.4rem; }
  .nx-facts { grid-template-columns: 1fr; }
  .nx-page-foot span:last-child, .nx-card footer span:first-child { display: none; }
  .nx-page-foot { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
