:root {
  --ink: #f7f0d0;
  --muted: #a9b8ad;
  --line: rgba(127, 255, 231, 0.28);
  --paper: #020304;
  --white: #ffffff;
  --void: #020304;
  --obsidian: #06100d;
  --panel: rgba(6, 22, 20, 0.82);
  --panel-strong: rgba(8, 8, 8, 0.76);
  --gold: #d9b75f;
  --gold-strong: #f4d887;
  --signal: #7fffe7;
  --aqua: #20c7b2;
  --violet: #9a6cff;
  --live: #8cffb4;
  --danger: #ff8f7f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, rgba(217, 183, 95, 0.14), transparent 25rem),
    radial-gradient(circle at 18% 28%, rgba(127, 255, 231, 0.10), transparent 23rem),
    radial-gradient(circle at 84% 34%, rgba(154, 108, 255, 0.12), transparent 23rem),
    var(--void);
}

button,
input,
textarea {
  font: inherit;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #06100d;
  background: #fffdf1;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(2, 3, 4, 0.82);
  border-bottom: 1px solid rgba(127, 255, 231, 0.16);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  font-weight: 800;
  font-size: 1.24rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(217, 183, 95, 0.24);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  animation: trilexSpin 10s linear infinite;
  filter:
    drop-shadow(0 0 12px rgba(217, 183, 95, 0.46))
    drop-shadow(0 0 14px rgba(127, 255, 231, 0.14));
}

@keyframes trilexSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.header-actions {
  gap: 10px;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(127, 255, 231, 0.20);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(6, 16, 13, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.cns-dot,
.sentinel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cns-dot {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 143, 127, 0.42);
}

.cns-status.online .cns-dot {
  background: var(--signal);
  animation: cnsPulse 1.7s ease-in-out infinite;
  box-shadow:
    0 0 8px rgba(127, 255, 231, 0.9),
    0 0 20px rgba(127, 255, 231, 0.72),
    0 0 34px rgba(127, 255, 231, 0.38);
}

.cns-status.online {
  color: var(--gold-strong);
  border-color: rgba(127, 255, 231, 0.48);
  box-shadow:
    0 0 18px rgba(127, 255, 231, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sentinel-dot {
  background: #7db8ff;
  box-shadow:
    0 0 8px rgba(125, 184, 255, 0.92),
    0 0 20px rgba(125, 184, 255, 0.58);
}

.sentinel-status.protected {
  color: var(--gold-strong);
  border-color: rgba(125, 184, 255, 0.55);
  box-shadow:
    0 0 18px rgba(125, 184, 255, 0.26),
    0 0 32px rgba(125, 184, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes cnsPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.primary-button {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(32, 199, 178, 0.38), rgba(217, 183, 95, 0.24)),
    var(--obsidian);
  padding: 12px 18px;
  border: 1px solid rgba(127, 255, 231, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 22px rgba(127, 255, 231, 0.12),
    0 0 18px rgba(217, 183, 95, 0.10);
}

.primary-button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 28px rgba(127, 255, 231, 0.20),
    0 0 24px rgba(217, 183, 95, 0.14);
}

.secondary-button {
  color: var(--gold-strong);
  background: rgba(6, 16, 13, 0.72);
  padding: 12px 18px;
  border: 1px solid rgba(127, 255, 231, 0.38);
}

.text-button {
  color: var(--gold-strong);
  background: transparent;
  padding: 10px 12px;
}

.large {
  min-height: 50px;
  padding: 14px 22px;
}

.full {
  width: 100%;
  min-height: 50px;
}

.text-button.full {
  min-height: 44px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 118px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(46px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: #020604;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  background: url("assets/trilex-1024.png") center / contain no-repeat;
  opacity: 0.08;
  animation: trilexSpin 34s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.5rem, 14vw, 9.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-shadow:
    0 0 18px rgba(217, 183, 95, 0.24),
    0 0 42px rgba(127, 255, 231, 0.07);
}

.hero-wordmark img {
  width: 0.84em;
  height: 0.84em;
  object-fit: contain;
  animation: trilexSpin 10s linear infinite;
  filter:
    drop-shadow(0 0 14px rgba(217, 183, 95, 0.52))
    drop-shadow(0 0 18px rgba(127, 255, 231, 0.20));
}

.hero-offer {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.positioning-copy {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(247, 240, 208, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

.founder-line {
  margin: 14px auto 0;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(127, 255, 231, 0.26);
  border-radius: 8px;
  background: rgba(6, 22, 20, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.status-row,
.health-card {
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(127, 255, 231, 0.22);
  color: var(--ink);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  font-weight: 700;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 16px rgba(140, 255, 180, 0.58);
}

.health-card {
  padding: 18px;
}

.health-card span {
  color: var(--muted);
  font-weight: 700;
}

.health-card strong {
  display: block;
  margin: 8px 0 14px;
  font-size: 2.4rem;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e9e7;
  background: rgba(255, 255, 255, 0.14);
}

.meter span {
  display: block;
  width: 86%;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
}

.section-band,
.security-section,
.cta-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading,
.security-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.public-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.public-copy p:last-child {
  margin-bottom: 0;
}

.knowledge-section,
.sentinel-section {
  background: rgba(6, 16, 13, 0.62);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.knowledge-grid div {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 20px;
  background: rgba(3, 9, 8, 0.96);
}

.knowledge-grid strong {
  color: var(--gold-strong);
  font-size: 1.35rem;
}

.knowledge-grid span,
.preview-note {
  color: var(--muted);
  line-height: 1.5;
}

.pack-preview-grid,
.platform-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.pack-preview-grid span,
.platform-options span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 13, 15, 0.72);
  font-weight: 700;
  text-align: center;
}

.platform-options span {
  border-color: rgba(217, 183, 95, 0.30);
}

.preview-note {
  margin: 22px 0 0;
}

.preview-note strong {
  color: var(--gold-strong);
}

.sentinel-status-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(125, 184, 255, 0.34);
  border-radius: 8px;
  background: rgba(2, 7, 9, 0.68);
}

.sentinel-status-panel strong,
.sentinel-status-panel > span {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
}

.sentinel-status-panel strong {
  gap: 9px;
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.feature-card p,
.cta-section p,
#authSubtitle,
.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.watch-status-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.watch-status-list strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.watch-status-list > span {
  padding-left: 18px;
}

.watch-state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.watch-status-list.active .watch-state-dot,
.sentinel-status-panel.active .watch-state-dot {
  background: #7db8ff;
  box-shadow:
    0 0 8px rgba(125, 184, 255, 0.92),
    0 0 18px rgba(125, 184, 255, 0.48);
}

.security-section {
  background: rgba(6, 16, 13, 0.62);
}

.security-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.security-steps li {
  counter-increment: steps;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.58);
  border: 1px solid rgba(127, 255, 231, 0.20);
  font-weight: 700;
}

.security-steps li::before {
  content: counter(steps);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #06100d;
  background: var(--gold);
}

.cta-section {
  text-align: center;
}

.cta-section p {
  max-width: 560px;
  margin: 0 auto 24px;
}

.auth-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
}

.auth-shell.open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 15, 0.62);
}

.auth-card {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 183, 95, 0.10), transparent 18rem),
    var(--panel-strong);
  border: 1px solid rgba(127, 255, 231, 0.28);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.auth-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 48px 24px 0;
}

.auth-progress span {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-progress span.active {
  background: linear-gradient(90deg, var(--aqua), var(--gold));
}

.auth-form {
  display: grid;
  gap: 16px;
}

.form-step {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #06100d;
  background: #fffdf1;
}

input::placeholder {
  color: #526276;
}

input:focus {
  outline: 3px solid rgba(127, 255, 231, 0.20);
  border-color: var(--signal);
  box-shadow:
    0 0 18px rgba(127, 255, 231, 0.22),
    0 0 24px rgba(154, 108, 255, 0.08);
}

.verification-box,
.qr-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(6, 16, 13, 0.88);
  border: 1px solid rgba(127, 255, 231, 0.24);
}

.verification-box {
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
}

.verification-box span,
.qr-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.qr-grid {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border: 8px solid var(--white);
  background:
    linear-gradient(90deg, #06100d 10px, transparent 10px) 0 0/22px 22px,
    linear-gradient(#06100d 10px, transparent 10px) 0 0/22px 22px,
    var(--gold-strong);
}

.form-note {
  margin: -4px 0 0;
  font-size: 0.9rem;
}

.form-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.success-state {
  text-align: center;
}

.success-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 4px auto 18px;
  border-radius: 50%;
  color: #06100d;
  background: var(--gold);
  font-size: 2rem;
  font-weight: 800;
}

.success-state p {
  color: var(--muted);
  line-height: 1.6;
}

.recovery-options {
  display: grid;
  gap: 10px;
}

.choice-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  background: rgba(6, 16, 13, 0.72);
}

.choice-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.choice-row:has(input:disabled) {
  opacity: 0.54;
}

.choice-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.app-shell {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(127, 255, 231, 0.09), transparent 24rem),
    radial-gradient(circle at 34% 76%, rgba(217, 183, 95, 0.10), transparent 24rem),
    var(--void);
}

.app-sidebar {
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  padding: 22px;
  border-right: 1px solid rgba(127, 255, 231, 0.18);
  background: rgba(2, 3, 4, 0.72);
}

.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(217, 183, 95, 0.24);
  border-radius: 8px;
  background: rgba(6, 16, 13, 0.86);
}

.member-card strong,
.member-card span {
  display: block;
}

.member-card span:not(.member-avatar) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.member-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #06100d;
  background: var(--gold);
  font-weight: 800;
}

.nav-button {
  width: 100%;
  min-height: 46px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(127, 255, 231, 0.20);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(8, 8, 8, 0.46);
  text-align: left;
  font-weight: 700;
}

.nav-button.active,
.nav-button:hover {
  color: var(--gold-strong);
  border-color: rgba(127, 255, 231, 0.48);
  background:
    linear-gradient(135deg, rgba(32, 199, 178, 0.24), rgba(217, 183, 95, 0.14)),
    rgba(6, 16, 13, 0.92);
}

.app-content {
  padding: clamp(28px, 5vw, 64px);
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.view-copy {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.pi-chat-panel {
  max-width: 760px;
  margin: 28px 0;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(125, 184, 255, 0.34);
  border-radius: 8px;
  background: rgba(5, 13, 15, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.pi-chat-heading,
.pi-chat-meta,
.pi-chat-form {
  display: flex;
  align-items: center;
}

.pi-chat-heading {
  justify-content: space-between;
  gap: 18px;
}

.pi-chat-heading h3,
.pi-chat-heading .eyebrow {
  margin-bottom: 0;
}

.pi-runtime-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.pi-runtime-state.online {
  color: var(--signal);
  border-color: rgba(127, 255, 231, 0.48);
  box-shadow: 0 0 16px rgba(127, 255, 231, 0.14);
}

.pi-runtime-copy {
  margin: 14px 0;
  color: var(--muted);
}

.pi-chat-meta {
  gap: 20px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.pi-chat-meta strong {
  color: var(--ink);
}

.pi-chat-stream {
  display: grid;
  gap: 12px;
  min-height: 220px;
  max-height: 390px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(127, 255, 231, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.pi-message {
  max-width: min(86%, 580px);
}

.pi-message strong,
.pi-message p {
  display: block;
}

.pi-message strong {
  margin-bottom: 5px;
  color: var(--gold-strong);
  font-size: 0.78rem;
}

.pi-message p {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(127, 255, 231, 0.08);
  line-height: 1.5;
}

.user-message {
  justify-self: end;
}

.user-message strong {
  text-align: right;
}

.user-message p {
  background: rgba(125, 184, 255, 0.16);
}

.pi-chat-form {
  gap: 10px;
  margin-top: 12px;
}

.pi-chat-form input {
  flex: 1 1 auto;
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.module-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.module-card span {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  margin-bottom: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #06100d;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.module-card strong,
.module-card small {
  display: block;
}

.module-card strong {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.module-card small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.communication-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 26px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(127, 255, 231, 0.22);
  border-radius: 8px;
  background: rgba(127, 255, 231, 0.22);
}

.communication-index div {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(5, 13, 15, 0.96);
}

.communication-index span,
.registry-note,
.node-status-card dt {
  color: var(--muted);
}

.communication-index span,
.node-status-card dt {
  font-size: 0.8rem;
}

.node-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
}

.node-status-card {
  min-height: 160px;
  padding: 20px;
  border: 1px solid rgba(127, 255, 231, 0.22);
  border-radius: 8px;
  background: var(--panel);
}

.node-status-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.node-status-heading h3 {
  margin-bottom: 0;
}

.node-state {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(127, 255, 231, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.node-state.active,
.node-state.online {
  color: var(--signal);
  border-color: rgba(127, 255, 231, 0.48);
  box-shadow: 0 0 14px rgba(127, 255, 231, 0.12);
}

.node-status-card dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.node-status-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.node-status-card dt,
.node-status-card dd {
  margin: 0;
}

.node-status-card dd {
  color: var(--ink);
  font-weight: 700;
}

.assistant-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  max-width: 980px;
}

.assistant-panel {
  padding: 20px;
  border: 1px solid rgba(127, 255, 231, 0.22);
  border-radius: 8px;
  background: rgba(5, 13, 15, 0.96);
}

.assistant-panel > p {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.registry-note {
  max-width: 900px;
  margin-top: 14px;
  font-size: 0.84rem;
}

.record-office {
  max-width: 900px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(125, 184, 255, 0.32);
  border-radius: 8px;
  background: rgba(5, 13, 15, 0.88);
}

.record-office-heading,
.room-message-form > div,
.record-search-form > div,
.room-response-stream article > div {
  display: flex;
  align-items: center;
}

.record-office-heading {
  justify-content: space-between;
  gap: 16px;
}

.record-office-heading h3,
.record-office-heading .eyebrow {
  margin-bottom: 0;
}

.room-message-form,
.record-search-form {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.room-message-form > div,
.record-search-form > div {
  gap: 10px;
}

.room-message-form input,
.record-search-form input {
  flex: 1 1 auto;
  min-width: 0;
}

.room-response-stream,
.record-search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.room-response-stream > p,
.record-search-results > p {
  color: var(--muted);
}

.room-response-stream article,
.record-search-results article {
  padding: 14px;
  border-left: 3px solid rgba(125, 184, 255, 0.58);
  background: rgba(0, 0, 0, 0.28);
}

.room-response-stream article > div {
  justify-content: space-between;
  gap: 12px;
}

.room-response-stream article p,
.record-search-results article p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.record-state {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.record-state.saved {
  color: var(--signal);
}

.work-panel,
.identity-form,
.external-audit-form,
.audit-list,
.review-state,
.admin-panel {
  max-width: 760px;
  padding: 24px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.work-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.identity-form {
  display: grid;
  gap: 16px;
}

.external-audit-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-top: 20px;
}

.audit-isolation-note {
  border-color: rgba(237, 195, 92, 0.42);
  background: rgba(237, 195, 92, 0.07);
}

.external-audit-result {
  margin-top: 20px;
}

#auditResultHash {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.pi-flow {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.flow-step {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  background: var(--panel);
}

.flow-step legend {
  padding: 0 8px;
  color: var(--gold-strong);
  font-weight: 800;
}

.fkl-pack-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fkl-pack-options .choice-row {
  min-height: 104px;
  align-items: flex-start;
}

.fkl-pack-options small {
  margin-top: 7px;
  line-height: 1.45;
}

.general-knowledge-note {
  border-color: rgba(125, 184, 255, 0.42);
  background: rgba(125, 184, 255, 0.08);
}

.human-foundation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.human-foundation > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  background: rgba(127, 255, 231, 0.05);
}

.human-foundation span,
.human-foundation small,
.governance-note {
  color: var(--muted);
}

.human-foundation strong {
  color: var(--cream);
}

.human-foundation small,
.governance-note {
  line-height: 1.5;
}

.quadrant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quadrant-list span {
  padding: 7px 9px;
  border-left: 2px solid var(--gold-strong);
  color: var(--cream);
  background: rgba(237, 195, 92, 0.06);
  font-size: 0.82rem;
}

.governance-note {
  margin: 0;
  font-size: 0.88rem;
}

.install-location {
  max-width: 680px;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-left: 3px solid var(--signal);
  color: var(--muted);
  background: rgba(127, 255, 231, 0.07);
  text-align: left;
  line-height: 1.5;
}

.choice-row:has(input:checked) {
  border-color: rgba(127, 255, 231, 0.48);
  background: rgba(127, 255, 231, 0.08);
}

input[type="file"] {
  padding: 10px;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(127, 255, 231, 0.42);
  border-radius: 8px;
  color: var(--gold-strong);
  background: var(--obsidian);
  font-weight: 700;
}

.privacy-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(217, 183, 95, 0.26);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.44);
}

.privacy-panel span,
.audit-list span {
  color: var(--muted);
  line-height: 1.5;
}

.audit-list {
  display: grid;
  gap: 12px;
}

.audit-list div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.44);
}

.review-state {
  text-align: center;
}

.checkout-layout {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.price-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.42);
}

.price-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.price-summary strong {
  color: var(--ink);
}

.total-row {
  padding-top: 10px;
  border-top: 1px solid rgba(127, 255, 231, 0.18);
  font-size: 1.12rem;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.certificate-card {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(217, 183, 95, 0.28);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.42);
  text-align: left;
}

.certificate-card strong,
.certificate-card span {
  display: block;
}

.certificate-card span {
  margin-top: 5px;
  color: var(--muted);
}

.certificate-card b {
  color: var(--ink);
}

.certificate-qr {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 8px solid var(--gold-strong);
  object-fit: cover;
  background: #fffdf1;
  box-shadow:
    0 0 18px rgba(217, 183, 95, 0.18),
    0 0 24px rgba(127, 255, 231, 0.10);
}

.runtime-package {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(127, 255, 231, 0.24);
  border-radius: 8px;
  background: rgba(6, 16, 13, 0.72);
  text-align: left;
}

.runtime-package strong {
  color: var(--gold-strong);
}

.runtime-package span {
  color: var(--muted);
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.empty-state {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(127, 255, 231, 0.18);
}

.case-header strong,
.case-header span {
  display: block;
}

.case-header span:not(.status-pill) {
  margin-top: 4px;
  color: var(--muted);
}

.status-pill {
  padding: 7px 10px;
  border: 1px solid rgba(127, 255, 231, 0.34);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(6, 16, 13, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.document-grid div {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid rgba(127, 255, 231, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.42);
}

.document-grid span {
  color: var(--muted);
  line-height: 1.4;
}

.admin-system-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 0 18px;
}

.admin-system-panel div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(127, 255, 231, 0.22);
  border-radius: 8px;
  background: rgba(6, 22, 20, 0.62);
}

.admin-system-panel span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-system-panel strong {
  color: var(--gold-strong);
}

.admin-system-panel strong.online {
  color: var(--signal);
}

.account-identity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.account-identity-strip div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(127, 255, 231, 0.2);
  border-radius: 8px;
  background: rgba(6, 22, 20, 0.62);
}

.account-identity-strip span,
.site-footer span {
  color: var(--muted);
  font-size: 0.86rem;
}

.account-identity-strip strong {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(127, 255, 231, 0.16);
  background: rgba(2, 3, 4, 0.92);
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer a {
  color: var(--gold-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-heading,
  .security-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-grid,
  .pack-preview-grid,
  .platform-options,
  .sentinel-status-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .human-foundation {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(127, 255, 231, 0.18);
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .communication-index,
  .node-status-grid,
  .assistant-panel-grid {
    grid-template-columns: 1fr;
  }

  .fkl-pack-options {
    grid-template-columns: 1fr;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  .account-identity-strip {
    grid-template-columns: 1fr;
  }

  .admin-system-panel {
    grid-template-columns: 1fr;
  }

  .certificate-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px;
    flex-wrap: wrap;
  }

  .header-actions {
    gap: 4px;
    margin-left: auto;
  }

  .status-chip {
    display: flex;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .knowledge-grid,
  .pack-preview-grid,
  .platform-options,
  .sentinel-status-panel {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .text-button {
    padding-inline: 12px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions button {
    width: 100%;
  }

  h1 {
    font-size: clamp(3rem, 23vw, 5.4rem);
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .positioning-copy {
    font-size: 0.92rem;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}

.compile-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(127, 255, 231, 0.34);
  border-radius: 8px;
  background: rgba(8, 36, 31, 0.72);
  box-shadow: 0 0 22px rgba(51, 238, 204, 0.14);
}

.compile-panel img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  animation: trilexSpin 3.6s linear infinite;
  filter: drop-shadow(0 0 12px rgba(244, 206, 97, 0.42));
}

.compile-panel strong,
.compile-panel span {
  display: block;
}

.compile-panel strong {
  color: var(--gold);
  margin-bottom: 5px;
}

.compile-panel.ready img {
  animation-duration: 9s;
}
