/*
 * NOVEX STATUS / PUBLIC OPERATIONS READOUT
 * Availability only. No account, wallet, order, or position access.
 */

body.nx-status-page {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--nx-white) !important;
  background: var(--nx-ink) !important;
  font-family: var(--nx-body) !important;
  -webkit-font-smoothing: antialiased;
}

.nx-status-page *,
.nx-status-page *::before,
.nx-status-page *::after {
  box-sizing: border-box;
}

.nx-status-page h1,
.nx-status-page h2,
.nx-status-page h3,
.nx-status-page p {
  text-wrap: pretty;
}

.nx-status-page h1,
.nx-status-page h2,
.nx-status-page h3 {
  font-family: var(--nx-display) !important;
}

.nx-status-page a { color: inherit; }

.nx-status-page .nx-header {
  background: rgba(10, 13, 15, 0.88);
  border-bottom-color: var(--nx-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nx-status-page .nx-header.is-scrolled { background: rgba(10, 13, 15, 0.98); }
.nx-status-page .nx-header::before { display: none; }

/* Hero */

.nt-hero {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(99, 217, 229, 0.04) 50%, transparent calc(50% + 0.5px)),
    var(--nx-ink);
}

.nt-hero::before {
  position: absolute;
  top: -31%;
  right: -8%;
  width: min(70vw, 1020px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(99, 217, 229, 0.12), rgba(99, 217, 229, 0.025) 43%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.nt-hero::after {
  position: absolute;
  top: 124px;
  right: max(24px, calc((100vw - var(--nx-width)) / 2));
  content: "02 / STATUS";
  color: var(--nx-muted);
  font: 500 10px/1 var(--nx-mono);
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.nt-hero__inner {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), var(--nx-width));
  min-height: 880px;
  margin: 0 auto;
  padding: 148px 0 40px;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(48px, 7vw, 108px);
}

.nt-hero__copy { max-width: 800px; }
.nt-hero .nx-kicker { color: var(--nx-blue) !important; }

.nt-hero h1 {
  margin: 0;
  color: var(--nx-white) !important;
  font-size: clamp(68px, 7.2vw, 106px) !important;
  font-weight: 500 !important;
  line-height: 0.91;
  letter-spacing: -0.067em !important;
}

.nt-hero__lede {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--nx-copy) !important;
  font-size: clamp(16px, 1.18vw, 19px);
  font-weight: 450;
  line-height: 1.72;
}

/* Live overall state */

.nt-readout {
  --nt-state: var(--nx-blue);
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 18, 20, 0.9);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.nt-readout[data-state="operational"] { --nt-state: var(--nx-green); }
.nt-readout[data-state="degraded"] { --nt-state: #f0bf6a; }
.nt-readout[data-state="unavailable"] { --nt-state: var(--nx-red); }

.nt-readout__head {
  display: flex;
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--nx-copy);
  border-bottom: 1px solid var(--nx-line);
  font: 500 11px/1.4 var(--nx-mono);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.nt-readout__head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nt-state);
  font-weight: 500;
  transition: color 180ms ease;
}

.nt-readout__head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.nt-readout__field {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(rgba(99, 217, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 217, 229, 0.035) 1px, transparent 1px),
    #0b0f11;
  background-size: 46px 46px;
}

.nt-readout__field::before,
.nt-readout__field::after {
  position: absolute;
  content: "";
  background: color-mix(in srgb, var(--nt-state) 18%, transparent);
}

.nt-readout__field::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.nt-readout__field::after { top: 50%; right: 0; left: 0; height: 1px; }

.nt-readout__rings,
.nt-readout__rings i {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid color-mix(in srgb, var(--nt-state) 24%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.nt-readout__rings { width: 310px; aspect-ratio: 1; }
.nt-readout__rings i:nth-child(1) { width: 220px; aspect-ratio: 1; }
.nt-readout__rings i:nth-child(2) { width: 400px; aspect-ratio: 1; opacity: 0.5; }
.nt-readout__rings i:nth-child(3) { width: 500px; aspect-ratio: 1; opacity: 0.25; }

.nt-readout__state {
  position: relative;
  z-index: 3;
  display: grid;
  min-width: 250px;
  min-height: 170px;
  padding: 28px;
  place-content: center;
  gap: 13px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--nt-state) 42%, transparent);
  background: rgba(10, 13, 15, 0.94);
  box-shadow: 0 0 48px color-mix(in srgb, var(--nt-state) 10%, transparent);
}

.nt-readout__state > span,
.nt-readout__state small {
  color: var(--nx-muted);
  font: 500 10px/1.35 var(--nx-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nt-readout__state strong {
  color: var(--nt-state);
  font: 500 clamp(25px, 3vw, 39px)/1 var(--nx-mono);
  letter-spacing: -0.055em;
  transition: color 180ms ease;
}

.nt-readout__sweep {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 198px;
  height: 1px;
  background: linear-gradient(90deg, var(--nt-state), transparent);
  transform-origin: left center;
  animation: nt-sweep 7s linear infinite;
}

.nt-readout__facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--nx-line);
}

.nt-readout__facts > div {
  min-width: 0;
  padding: 15px 16px 17px;
  border-right: 1px solid var(--nx-line);
}

.nt-readout__facts > div:last-child { border-right: 0; }
.nt-readout__facts dt { color: var(--nx-muted); font: 500 10px/1 var(--nx-mono); text-transform: uppercase; }
.nt-readout__facts dd { margin: 7px 0 0; color: var(--nx-white); font: 500 11px/1.35 var(--nx-mono); text-transform: uppercase; }

.nt-hero__rail {
  grid-column: 1 / -1;
  display: grid;
  padding-top: 22px;
  grid-template-columns: minmax(190px, 0.35fr) 1.65fr;
  align-items: start;
  gap: 30px;
  border-top: 1px solid var(--nx-line);
}

.nt-hero__rail > span {
  color: var(--nx-blue);
  font: 500 11px/1.4 var(--nx-mono);
  letter-spacing: 0.05em;
}

.nt-hero__rail p {
  max-width: 920px;
  margin: 0;
  color: var(--nx-muted) !important;
  font: 500 11px/1.7 var(--nx-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Service array */

.nt-services {
  padding: clamp(96px, 10vw, 148px) max(24px, calc((100vw - var(--nx-width)) / 2));
  color: var(--nx-ink);
  background: var(--nx-paper);
}

.nt-services__inner { width: 100%; margin: 0 auto; }

.nt-services__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
}

.nt-services__head .nx-kicker { color: var(--nx-blue-dark) !important; }

.nt-services__head h2 {
  margin: 0;
  color: var(--nx-ink) !important;
  font-size: clamp(56px, 6.8vw, 96px) !important;
  font-weight: 500 !important;
  line-height: 0.94;
  letter-spacing: -0.063em !important;
}

.nt-services__head > p {
  max-width: 480px;
  margin: 0 0 6px;
  color: var(--nx-paper-copy) !important;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.7;
}

.nt-service-deck {
  margin-top: 76px;
  overflow: hidden;
  border: 1px solid rgba(10, 13, 15, 0.22);
  background: var(--nx-ink);
  box-shadow: 0 30px 90px rgba(10, 13, 15, 0.14);
}

.nt-service-deck__bar {
  display: flex;
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--nx-white);
  border-bottom: 1px solid var(--nx-line);
  font: 500 11px/1 var(--nx-mono);
  letter-spacing: 0.05em;
}

.nt-service-deck__bar strong { color: var(--nx-muted); font-weight: 500; }

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-row {
  display: grid;
  min-width: 0;
  min-height: 102px;
  padding: 20px 18px;
  grid-template-columns: minmax(0, 0.86fr) minmax(150px, 1.14fr);
  align-items: center;
  gap: 20px;
  border-right: 1px solid var(--nx-line);
  border-bottom: 1px solid var(--nx-line);
  transition: background-color 160ms ease;
}

.status-row:nth-child(2n) { border-right: 0; }
.status-row:hover { background: rgba(99, 217, 229, 0.04); }

.status-row > a,
.status-row > span:first-child {
  width: fit-content;
  color: var(--nx-white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.status-row > a {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(99, 217, 229, 0.32);
}

.status-row > a:hover { color: var(--nx-blue); }

.state {
  display: inline-flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  color: var(--nx-copy);
  font: 500 10px/1.55 var(--nx-mono);
  letter-spacing: 0.035em;
  text-align: right;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.state::before,
.state > i {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  flex: 0 0 auto;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.state > i + i { display: none; }
.state.operational { color: var(--nx-green); }
.state.degraded { color: #f0bf6a; }
.state.unavailable { color: var(--nx-red); }

.nt-service-deck__foot {
  display: grid;
  min-height: 66px;
  padding: 0 18px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--nx-line);
}

.nt-service-deck__foot > span {
  color: var(--nx-blue);
  font: 500 10px/1.4 var(--nx-mono);
  letter-spacing: 0.04em;
}

.nt-service-deck__foot p {
  margin: 0;
  color: var(--nx-muted) !important;
  font: 500 11px/1.5 var(--nx-mono);
}

.nt-service-deck__foot button {
  min-height: 42px;
  padding: 0 13px;
  color: var(--nx-ink);
  border: 1px solid var(--nx-blue);
  border-radius: 0;
  background: var(--nx-blue);
  font: 500 10px/1 var(--nx-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.nt-service-deck__foot button:hover { border-color: #a7f4f7; background: #a7f4f7; }
.nt-service-deck__foot button:disabled { color: var(--nx-muted); border-color: var(--nx-line); background: transparent; cursor: wait; }

/* Trust boundary */

.nt-boundary {
  padding: clamp(96px, 10vw, 148px) max(24px, calc((100vw - var(--nx-width)) / 2));
  color: var(--nx-white);
  background: var(--nx-ink-2);
}

.nt-boundary > div:first-child {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  align-items: end;
  gap: 50px;
}

.nt-boundary .nx-kicker { color: var(--nx-blue) !important; }

.nt-boundary h2 {
  margin: 0;
  color: var(--nx-white) !important;
  font-size: clamp(56px, 6.8vw, 96px) !important;
  font-weight: 500 !important;
  line-height: 0.94;
  letter-spacing: -0.063em !important;
}

.nt-boundary__grid {
  display: grid;
  margin-top: 76px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--nx-line);
  border-left: 1px solid var(--nx-line);
}

.nt-boundary article {
  min-height: 310px;
  padding: 24px 22px;
  border-right: 1px solid var(--nx-line);
  border-bottom: 1px solid var(--nx-line);
}

.nt-boundary article > span { color: var(--nx-blue); font: 500 11px/1 var(--nx-mono); }

.nt-boundary h3 {
  margin: 88px 0 0;
  color: var(--nx-white) !important;
  font-size: 24px;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
}

.nt-boundary article p {
  margin: 18px 0 0;
  color: var(--nx-copy) !important;
  font-size: 14px;
  line-height: 1.68;
}

/* Final support handoff */

.nt-final {
  display: grid;
  padding: clamp(96px, 10vw, 148px) max(24px, calc((100vw - var(--nx-width)) / 2));
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  align-items: end;
  gap: clamp(60px, 9vw, 140px);
  color: var(--nx-ink);
  background: var(--nx-blue);
}

.nt-final .nx-kicker { color: var(--nx-ink) !important; }

.nt-final h2 {
  margin: 0;
  color: var(--nx-ink) !important;
  font-size: clamp(54px, 6.8vw, 96px) !important;
  font-weight: 500 !important;
  line-height: 0.93;
  letter-spacing: -0.062em !important;
}

.nt-final > div:first-child > p:last-child {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--nx-blue-copy) !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.nt-final__actions { border-top: 1px solid rgba(10, 13, 15, 0.3); }

.nt-final__actions a {
  display: grid;
  min-height: 92px;
  padding: 0 4px;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 8px 20px;
  color: var(--nx-ink) !important;
  border-bottom: 1px solid rgba(10, 13, 15, 0.3);
  text-decoration: none;
}

.nt-final__actions span { font-size: 18px; font-weight: 600; }
.nt-final__actions small { grid-column: 1; color: var(--nx-blue-copy); font: 500 11px/1 var(--nx-mono); text-transform: uppercase; }
.nt-final__actions b { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 500 11px/1 var(--nx-mono); text-transform: uppercase; }

@keyframes nt-sweep { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .nt-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr); gap: 46px; }
  .nt-services__head { grid-template-columns: 1fr 0.55fr; }
  .status-row { grid-template-columns: 1fr; align-content: center; gap: 11px; }
  .state { justify-content: flex-start; text-align: left; }
  .nt-boundary__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-boundary article { min-height: 270px; }
  .nt-boundary h3 { margin-top: 64px; }
}

@media (max-width: 860px) {
  .nt-hero { min-height: 0; }
  .nt-hero::after { display: none; }
  .nt-hero__inner {
    min-height: 0;
    padding-top: 124px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 46px;
  }
  .nt-readout { width: min(100%, 680px); }
  .nt-hero__rail { grid-template-columns: 1fr; gap: 10px; }
  .nt-services__head, .nt-boundary > div:first-child, .nt-final { grid-template-columns: 1fr; }
  .nt-services__head { gap: 28px; }
  .nt-services__head > p { margin: 0; }
  .nt-boundary > div:first-child { gap: 28px; }
  .nt-final { gap: 54px; }
}

@media (max-width: 620px) {
  .status-list { grid-template-columns: 1fr; }
  .status-row { min-height: 94px; border-right: 0; }
  .nt-service-deck__foot { padding-block: 18px; grid-template-columns: 1fr; gap: 11px; }
  .nt-service-deck__foot button { justify-self: start; }
}

@media (max-width: 560px) {
  .nt-hero__inner { width: calc(100% - 24px); padding: 110px 0 26px; }
  .nt-hero h1 { font-size: clamp(54px, 16vw, 76px) !important; line-height: 0.92; }
  .nt-hero__lede { font-size: 16px; line-height: 1.65; }
  .nt-readout__field { min-height: 330px; }
  .nt-readout__rings { width: 240px; }
  .nt-readout__rings i:nth-child(1) { width: 170px; }
  .nt-readout__rings i:nth-child(2) { width: 320px; }
  .nt-readout__rings i:nth-child(3) { width: 400px; }
  .nt-readout__state { min-width: 210px; min-height: 150px; padding: 20px; }
  .nt-readout__sweep { width: 155px; }
  .nt-readout__facts { grid-template-columns: 1fr; }
  .nt-readout__facts > div { display: flex; padding: 12px 14px; align-items: center; justify-content: space-between; gap: 16px; border-right: 0; border-bottom: 1px solid var(--nx-line); }
  .nt-readout__facts > div:last-child { border-bottom: 0; }
  .nt-readout__facts dd { margin: 0; text-align: right; }
  .nt-services, .nt-boundary, .nt-final { padding: 82px 12px; }
  .nt-services__head h2, .nt-boundary h2, .nt-final h2 { font-size: clamp(44px, 13.5vw, 60px) !important; }
  .nt-service-deck { margin-top: 52px; }
  .nt-service-deck__bar { display: grid; min-height: 68px; padding-block: 12px; }
  .status-row { padding-inline: 14px; }
  .nt-boundary__grid { margin-top: 52px; grid-template-columns: 1fr; }
  .nt-boundary article { min-height: 250px; }
  .nt-boundary h3 { margin-top: 56px; }
}

@media (max-width: 360px) {
  .nt-readout__head { align-items: flex-start; flex-direction: column; padding-block: 13px; }
  .nt-readout__field { min-height: 300px; }
  .nt-readout__state { min-width: 190px; }
  .nt-readout__state strong { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-readout__sweep { animation: none; }
}
