@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --font-display: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --bg-0: #000000;
  --bg-1: #040404;
  --surface: #090909;
  --line: #1a1a1a;

  --text: #f2f2f2;
  --text-muted: #bcbcbc;
  --text-soft: #8b8b8b;

  --accent-primary: #39ff14;
  --accent-secondary: #0000ff;
  --accent-alert: #ff0f22;
  --accent-success: #82ffc2;

  --terminal-light-dim: 0.28;

  --focus-ring: 0 0 0 2px rgba(57, 255, 20, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);

  --max-width: 1100px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;

  --mx: 50vw;
  --my: 35vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  color: var(--text);
  line-height: 1.56;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(57, 255, 20, 0.1), transparent 62%),
    radial-gradient(220px circle at calc(var(--mx) + 80px) calc(var(--my) - 40px), rgba(0, 0, 255, 0.08), transparent 65%),
    repeating-linear-gradient(
      0deg,
      rgba(57, 255, 20, 0.008) 0px,
      rgba(57, 255, 20, 0.008) 1px,
      transparent 1px,
      transparent 24px
    );
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-primary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  background: var(--accent-primary);
  color: #051404;
  padding: 0.55rem 0.8rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(57, 255, 20, 0.3);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-with-logo {
  gap: 0.25rem;
}

.brand-logo {
  width: min(220px, 42vw);
  height: auto;
  image-rendering: auto;
}

.brand-mark {
  font-family: var(--font-display);
  color: var(--accent-primary);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 255, 0.6);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.73rem;
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-link.is-current,
.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  border-color: rgba(0, 0, 255, 0.75);
  background: rgba(0, 0, 255, 0.16);
  text-decoration: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.58rem 0.92rem;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--accent-primary);
  color: #041003;
}

.button.secondary {
  border-color: rgba(0, 0, 255, 0.75);
  color: #e8e8ff;
  background: rgba(0, 0, 255, 0.14);
}

.button.ghost {
  border-color: rgba(255, 15, 34, 0.7);
  color: #ffd8dc;
  background: rgba(255, 15, 34, 0.08);
}

.signal-uplink {
  position: fixed;
  right: clamp(0.7rem, 1.6vw, 1.25rem);
  top: 50%;
  z-index: 69;
  display: grid;
  gap: 0.42rem;
  padding: 0.55rem 0.34rem;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.08), inset 0 0 22px rgba(57, 255, 20, 0.035);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.signal-uplink::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(57, 255, 20, 0.42), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.uplink-label {
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  color: rgba(57, 255, 20, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center right;
  white-space: nowrap;
}

.social-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(57, 255, 20, 0.34);
  border-radius: 50%;
  color: var(--accent-primary);
  background: #000;
  overflow: visible;
  text-decoration: none;
  isolation: isolate;
  animation: uplink-idle 2.8s ease-in-out infinite;
}

.social-node:nth-of-type(2) {
  animation-delay: 0.2s;
}

.social-node:nth-of-type(3) {
  animation-delay: 0.4s;
}

.social-node:nth-of-type(4) {
  animation-delay: 0.6s;
}

.social-node:nth-of-type(5) {
  animation-delay: 0.8s;
}

.social-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(57, 255, 20, 0.32) 46% 54%, transparent 54%),
    linear-gradient(rgba(255, 15, 34, 0.24), rgba(255, 15, 34, 0));
  opacity: 0;
  transform: translateY(-60%);
  transition: opacity 120ms ease, transform 180ms ease;
  pointer-events: none;
}

.social-node::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 1px;
  background: rgba(57, 255, 20, 0.5);
  transition: width 160ms ease;
}

.social-node:hover,
.social-node:focus-visible {
  color: #041003;
  background: var(--accent-primary);
  border-color: rgba(57, 255, 20, 0.92);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.34);
  text-decoration: none;
}

.social-node:hover::before,
.social-node:focus-visible::before {
  opacity: 1;
  transform: translateY(60%);
}

.social-node:hover::after,
.social-node:focus-visible::after {
  width: 1.35rem;
}

.node-icon,
.node-code {
  grid-area: 1 / 1;
}

.node-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

.node-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-code {
  opacity: 0;
  color: #000;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-label {
  position: absolute;
  right: calc(100% + 1rem);
  top: 50%;
  min-width: max-content;
  padding: 0.2rem 0.38rem;
  border: 1px solid rgba(57, 255, 20, 0.32);
  color: rgba(216, 255, 210, 0.9);
  background: rgba(0, 0, 0, 0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.social-node:hover .node-icon,
.social-node:focus-visible .node-icon {
  opacity: 0;
}

.social-node:hover .node-code,
.social-node:focus-visible .node-code {
  opacity: 1;
}

.social-node:hover .node-label,
.social-node:focus-visible .node-label {
  opacity: 1;
  transform: translate(0, -50%);
}

@keyframes uplink-idle {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(57, 255, 20, 0);
  }

  50% {
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.22);
  }
}

.page-main {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-7);
}

.hero {
  padding: var(--space-7) 0 var(--space-6);
}

body[data-page="home"] .hero {
  min-height: calc(80vh - 72px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
}

.hero-symbol {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
  border: 1px solid rgba(57, 255, 20, 0.6);
  transform: rotate(45deg);
}

.hero-symbol::before,
.hero-symbol::after {
  content: "";
  position: absolute;
  background: var(--accent-primary);
}

.hero-symbol::before {
  left: 50%;
  top: -10%;
  width: 2px;
  height: 120%;
  transform: translateX(-50%);
}

.hero-symbol::after {
  top: 50%;
  left: -10%;
  width: 120%;
  height: 2px;
  transform: translateY(-50%);
}

.hero-wordmark {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8ffbf;
}

.hero-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 var(--space-3);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 0, 255, 0.62);
  border-radius: 999px;
  color: #e5e5ff;
  text-decoration: none;
  font-size: 0.75rem;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  background: rgba(0, 0, 255, 0.16);
  border-color: rgba(0, 0, 255, 0.86);
  text-decoration: none;
}

.kicker {
  margin: 0 0 var(--space-3);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.kicker::before {
  content: ">> ";
  color: var(--accent-alert);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  line-height: 1.13;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  color: #dcdcdc;
  max-width: 56ch;
}

.hero-panel {
  border: 1px solid rgba(0, 0, 255, 0.36);
  background: rgba(7, 7, 7, 0.88);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.stat-card {
  border: 1px solid rgba(255, 15, 34, 0.48);
  border-radius: 10px;
  padding: 0.74rem;
  background: rgba(0, 0, 0, 0.75);
}

.stat-card strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.stat-card span {
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  margin-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 255, 0.3);
  padding-top: var(--space-4);
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.section-intro p {
  margin-bottom: 0;
  max-width: 64ch;
}

.grid {
  display: grid;
  gap: var(--space-3);
}

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

.bio-split {
  align-items: stretch;
}

.bio-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  min-height: 0;
}

.bio-stack .card {
  flex: 0 0 auto;
}

.promo-shot {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: var(--radius-md);
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.08);
}

.promo-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: var(--radius-md);
  background: rgba(6, 6, 6, 0.88);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 56%, var(--accent-alert) 100%);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.meta-row {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 255, 0.45);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  color: var(--text-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.list li {
  margin-bottom: 0.45rem;
}

.table-wrap {
  border: 1px solid rgba(0, 0, 255, 0.4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  background: rgba(6, 6, 6, 0.92);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  text-align: left;
  padding: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

thead th {
  color: #ededff;
  background: rgba(0, 0, 255, 0.18);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(0, 0, 255, 0.08);
}

.faq {
  border: 1px solid rgba(255, 15, 34, 0.44);
  border-radius: var(--radius-md);
  background: rgba(6, 6, 6, 0.9);
  padding: var(--space-3) var(--space-4);
}

details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.78rem 0;
}

details:last-child {
  border-bottom: none;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

summary + p {
  margin-top: 0.55rem;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.58rem;
}

.input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 255, 0.38);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.88);
  color: var(--text);
  padding: 0.68rem 0.72rem;
}

.input:focus-visible,
textarea:focus-visible {
  border-color: rgba(57, 255, 20, 0.66);
}

.input::placeholder,
textarea::placeholder {
  color: #7f7f7f;
}

label {
  display: inline-block;
  margin-bottom: 0.36rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text-soft);
}

.helper-text {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.status-note {
  min-height: 1.2em;
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.status-note.error {
  color: var(--accent-alert);
}

.status-note.success {
  color: var(--accent-success);
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.resource-item {
  border: 1px solid rgba(0, 0, 255, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  background: rgba(5, 5, 5, 0.86);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: baseline;
  min-width: 0;
  flex-wrap: wrap;
}

.resource-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.resource-item > strong {
  min-width: 0;
  flex: 1 1 auto;
}

.resource-item a,
.resource-item .pill {
  min-width: 0;
  flex: 0 0 auto;
  overflow-wrap: anywhere;
  text-align: right;
}

.resource-item strong {
  color: var(--text);
}

.resource-item span {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0, 0, 255, 0.44);
  margin-top: var(--space-7);
  padding: var(--space-5) 0;
  background: rgba(0, 0, 0, 0.75);
}

.interactive-surface {
  position: relative;
  transform: perspective(960px) rotateX(calc(var(--tilt-y, 0) * 1deg))
    rotateY(calc(var(--tilt-x, 0) * -1deg));
  transition: transform 140ms ease, border-color 140ms ease;
}

.interactive-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    220px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(57, 255, 20, 0.12),
    rgba(0, 0, 255, 0.09) 30%,
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.interactive-surface.is-hovered::after {
  opacity: 1;
}

.glitch-layer {
  position: fixed;
  inset: 0;
  z-index: 66;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glitch-fragment {
  position: fixed;
  left: var(--gx);
  top: var(--gy);
  opacity: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  animation: glitch-fragment 560ms steps(2, end) forwards;
  will-change: transform, opacity;
}

.glitch-fragment.line {
  width: var(--gw);
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.6), 18px 0 0 rgba(255, 15, 34, 0.46);
}

.glitch-fragment.block {
  width: var(--gw);
  height: var(--gh);
  border: 1px solid rgba(57, 255, 20, 0.48);
  background:
    linear-gradient(90deg, rgba(255, 15, 34, 0.28), transparent 42%),
    rgba(57, 255, 20, 0.07);
}

.glitch-fragment.label {
  padding: 0.15rem 0.35rem;
  border-left: 2px solid var(--accent-alert);
  color: rgba(216, 255, 210, 0.86);
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 1px 0 rgba(0, 0, 255, 0.72), -1px 0 rgba(255, 15, 34, 0.62);
}

.is-system-glitch {
  animation: panel-glitch 260ms steps(2, end);
}

.text-glitch {
  position: relative;
  isolation: isolate;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-glitch-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  overflow: hidden;
  color: currentColor;
  pointer-events: none;
  white-space: inherit;
}

.text-glitch.is-text-glitch {
  animation: text-glitch-base 360ms steps(2, end);
  text-shadow: 1px 0 rgba(0, 0, 255, 0.55), -1px 0 rgba(255, 15, 34, 0.48);
}

.text-glitch.is-text-glitch::before {
  z-index: 1;
  opacity: 0.82;
  color: var(--accent-secondary);
  animation: text-glitch-top 360ms steps(2, end);
  clip-path: inset(0 0 58% 0);
}

.text-glitch.is-text-glitch::after {
  z-index: 1;
  opacity: 0.72;
  color: var(--accent-alert);
  animation: text-glitch-bottom 360ms steps(2, end);
  clip-path: inset(46% 0 0 0);
}

@keyframes glitch-fragment {
  0% {
    opacity: 0;
    transform: translate3d(-14px, 0, 0) scaleX(0.34);
  }

  14% {
    opacity: 0.92;
    transform: translate3d(8px, -1px, 0) scaleX(1);
  }

  25% {
    opacity: 0.28;
    transform: translate3d(-5px, 2px, 0) scaleX(0.72);
  }

  42% {
    opacity: 0.86;
    transform: translate3d(2px, 0, 0) scaleX(1.08);
  }

  100% {
    opacity: 0;
    transform: translate3d(20px, 0, 0) scaleX(0.2);
  }
}

@keyframes text-glitch-base {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  18% {
    transform: translate3d(-1px, 0, 0);
  }

  34% {
    transform: translate3d(2px, -1px, 0);
  }

  52% {
    transform: translate3d(-2px, 1px, 0);
  }

  74% {
    transform: translate3d(1px, 0, 0);
  }
}

@keyframes text-glitch-top {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  20% {
    transform: translate3d(5px, -1px, 0);
  }

  44% {
    transform: translate3d(-4px, 1px, 0);
  }

  66% {
    transform: translate3d(3px, 0, 0);
  }
}

@keyframes text-glitch-bottom {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  16% {
    transform: translate3d(-5px, 1px, 0);
  }

  42% {
    transform: translate3d(4px, 0, 0);
  }

  70% {
    transform: translate3d(-2px, -1px, 0);
  }
}

@keyframes panel-glitch {
  0%,
  100% {
    filter: none;
    transform: translate3d(0, 0, 0);
  }

  22% {
    filter: drop-shadow(2px 0 0 rgba(0, 0, 255, 0.38)) drop-shadow(-2px 0 0 rgba(255, 15, 34, 0.32));
    transform: translate3d(-2px, 1px, 0);
  }

  48% {
    filter: drop-shadow(-1px 0 0 rgba(255, 15, 34, 0.42));
    transform: translate3d(2px, -1px, 0);
  }

  68% {
    filter: drop-shadow(1px 0 0 rgba(57, 255, 20, 0.44));
    transform: translate3d(0, 1px, 0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-links a {
  font-size: 0.88rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

/* One-of-one homepage: live terminal / computer interior */
body[data-page="home"] {
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(57, 255, 20, 0.16), transparent 58%),
    linear-gradient(180deg, #000 0%, #030303 100%);
}

body[data-page="home"]::before {
  background:
    linear-gradient(rgba(57, 255, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 255, 0.05) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 4px);
  background-size: 44px 44px, 44px 44px, 100% 6px;
  opacity: 0.55;
}

body[data-page="home"] .site-header {
  border-bottom-color: rgba(57, 255, 20, 0.55);
}

.system-hero {
  min-height: calc(100vh - 72px);
  padding: clamp(1rem, 3vw, 2rem) 0 var(--space-6);
}

.system-shell {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 120px);
  border: 1px solid rgba(57, 255, 20, 0.55);
  border-radius: 22px;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(57, 255, 20, 0.08), transparent 60%),
    #030303;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(57, 255, 20, 0.18),
    0 26px 80px rgba(0, 0, 0, 0.78);
}

.system-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 15, 34, 0.08), transparent),
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(57, 255, 20, 0.055) 64px 65px);
  transform: translateX(calc((var(--mx) - 50vw) * 0.018));
  pointer-events: none;
}

.system-shell::after {
  content: "";
  position: absolute;
  right: clamp(-110px, -6vw, -40px);
  top: 72px;
  width: min(460px, 42vw);
  aspect-ratio: 1;
  background: url("../brand/sc-mark-green.png") center / contain no-repeat;
  opacity: 0.08;
  transform: translate(calc((var(--mx) - 50vw) * -0.018), calc((var(--my) - 50vh) * -0.012));
  pointer-events: none;
}

.system-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.28);
  background: rgba(0, 0, 0, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-lights {
  display: flex;
  align-items: center;
  width: 52px;
  height: 12px;
  line-height: 0;
  flex-shrink: 0;
}

.terminal-lights-svg {
  display: block;
  width: 52px;
  height: 12px;
}

.terminal-light {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 0.5;
}

.terminal-light-green {
  fill: var(--accent-primary);
}

.terminal-light-blue {
  fill: var(--accent-secondary);
}

.terminal-light-red {
  fill: var(--accent-alert);
}

.terminal-light-overlay {
  fill: #000000;
  opacity: var(--terminal-light-dim);
  stroke: none;
}

.terminal-path {
  color: var(--text-muted);
}

.terminal-status {
  color: var(--accent-primary);
  text-align: right;
}

.system-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: clamp(1.2rem, 4vw, 3.5rem);
}

.system-copy {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.boot-line {
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(255, 15, 34, 0.72);
  background: rgba(255, 15, 34, 0.08);
  color: #ffd7db;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boot-line.error-line {
  border-color: rgba(255, 15, 34, 1);
  background: rgba(255, 15, 34, 0.18);
  color: #ff6b7a;
}

.system-title {
  position: relative;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--accent-primary);
  font-size: clamp(3.8rem, 11vw, 9.8rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 3px 0 0 var(--accent-secondary), -3px 0 0 var(--accent-alert);
}

.logo-title {
  width: min(760px, 92vw);
  min-height: clamp(220px, 36vw, 390px);
  margin: 0 auto 1.2rem;
  transform: translateY(5%);
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-shadow: none;
}

.logo-layer,
.logo-hero {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.logo-layer-green {
  position: relative;
  z-index: 3;
}

.logo-layer-blue,
.logo-layer-red {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: screen;
}

.logo-layer-blue {
  z-index: 1;
  transform: translate(calc((var(--mx) - 50vw) * 0.01), calc((var(--my) - 50vh) * -0.006));
}

.logo-layer-red {
  z-index: 2;
  transform: translate(calc((var(--mx) - 50vw) * -0.012), calc((var(--my) - 50vh) * 0.007));
}

.system-title::after {
  content: attr(data-text);
  position: absolute;
  left: calc((var(--mx) - 50vw) * 0.01);
  top: calc((var(--my) - 50vh) * 0.006);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  text-shadow: none;
  pointer-events: none;
}

.system-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 58ch;
  color: #e6e6e6;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}

.command-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 780px;
  margin: 2rem auto 0;
}

.command-tile {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.command-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(57, 255, 20, 0.18), transparent 62%);
  opacity: 0;
  transition: opacity 140ms ease;
}

.command-tile:hover,
.command-tile:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.command-tile:hover::after,
.command-tile:focus-visible::after {
  opacity: 1;
}

.command-tile span,
.command-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.command-tile span {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.command-tile strong {
  margin-top: 0.5rem;
  color: #fff;
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
}

.command-tile.primary {
  border-color: rgba(57, 255, 20, 0.68);
}

.command-tile.secondary {
  border-color: rgba(0, 0, 255, 0.36);
}

.command-tile.alert {
  border-color: rgba(255, 15, 34, 0.34);
}

.system-monitor {
  width: min(760px, 100%);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: inset 0 0 40px rgba(57, 255, 20, 0.04);
}

.monitor-mark {
  position: absolute;
  right: -34px;
  bottom: -72px;
  width: min(320px, 54%);
  opacity: 0.16;
  pointer-events: none;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.24);
  color: #d8ffd2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.monitor-readout {
  display: grid;
  gap: 0;
  margin: 0;
}

.monitor-readout div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.monitor-readout dt,
.monitor-readout dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.76rem;
}

.monitor-readout dt {
  color: var(--text-soft);
}

.monitor-readout dd {
  color: var(--accent-primary);
  text-align: right;
}

.signal-stack {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  height: 160px;
  padding: 1rem;
}

.signal-stack span {
  flex: 1;
  height: var(--level);
  min-height: 12%;
  background: var(--accent-primary);
  transform-origin: bottom;
  animation: signal-pulse 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--level) * -8ms);
}

.system-module {
  position: relative;
  margin-top: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(0, 0, 255, 0.36);
}

.system-module::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.66;
}

.module-header {
  max-width: 760px;
  margin-bottom: var(--space-4);
}

.module-header h2,
.release-console h2,
.proof-console h2,
.handshake-console h2 {
  max-width: 760px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.process-node {
  position: relative;
  min-height: 160px;
  text-align: left;
  border: 1px solid rgba(57, 255, 20, 0.26);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text);
  padding: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.process-node::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--accent-primary);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 180ms ease, background 180ms ease;
}

.process-node:hover::before,
.process-node:focus-visible::before,
.process-node.is-active::before {
  transform: scaleX(1);
}

.process-node.is-active {
  border-color: rgba(57, 255, 20, 0.78);
  background: rgba(57, 255, 20, 0.055);
}

.process-node:nth-child(2)::before {
  background: var(--accent-primary);
}

.process-node:nth-child(3)::before {
  background: var(--accent-primary);
}

.process-node:nth-child(4)::before {
  background: var(--accent-primary);
}

.node-id,
.process-node em,
.kernel-output span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-style: normal;
  text-transform: uppercase;
}

.node-id {
  color: var(--accent-alert);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.process-node strong {
  display: block;
  margin-top: 1.7rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.process-node em {
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.kernel-output {
  margin-top: 0.85rem;
  border: 1px solid rgba(0, 0, 255, 0.42);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.78);
  padding: 1rem;
}

.kernel-output span {
  color: var(--accent-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.kernel-output strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.kernel-output p {
  margin: 0.35rem 0 0;
}

.split-console,
.handshake-console {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.release-console,
.routing-console,
.proof-console,
.handshake-console,
.terminal-form {
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.78);
  padding: clamp(1rem, 3vw, 1.5rem);
  min-width: 0;
  max-width: 100%;
}

.routing-console {
  border-color: rgba(255, 15, 34, 0.45);
}

.routing-kicker .typing-dots {
  display: inline-block;
  min-width: 1.1em;
}

.routing-kicker .dot {
  opacity: 0;
  animation-duration: 3s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.routing-kicker .dot-1 {
  animation-name: routing-dot-1;
}

.routing-kicker .dot-2 {
  animation-name: routing-dot-2;
}

.routing-kicker .dot-3 {
  animation-name: routing-dot-3;
}

@keyframes routing-dot-1 {
  0%,
  12% {
    opacity: 0;
  }

  13%,
  88% {
    opacity: 1;
  }

  89%,
  100% {
    opacity: 0;
  }
}

@keyframes routing-dot-2 {
  0%,
  28% {
    opacity: 0;
  }

  29%,
  88% {
    opacity: 1;
  }

  89%,
  100% {
    opacity: 0;
  }
}

@keyframes routing-dot-3 {
  0%,
  44% {
    opacity: 0;
  }

  45%,
  54% {
    opacity: 1;
  }

  55%,
  58% {
    opacity: 0.2;
  }

  59%,
  62% {
    opacity: 1;
  }

  63%,
  66% {
    opacity: 0.2;
  }

  67%,
  70% {
    opacity: 1;
  }

  71%,
  74% {
    opacity: 0.2;
  }

  75%,
  78% {
    opacity: 1;
  }

  79%,
  82% {
    opacity: 0.2;
  }

  83%,
  86% {
    opacity: 1;
  }

  87%,
  88% {
    opacity: 0.2;
  }

  89%,
  100% {
    opacity: 0;
  }
}

.audio-visual {
  position: relative;
  height: 148px;
  margin: 1.4rem 0;
  padding: 0.45rem 0.65rem 0.55rem;
  border: 1px solid rgba(255, 15, 34, 0.46);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.82);
  overflow: hidden;
}

.audio-visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.audio-visual::after {
  content: "audio.spectrum.rgb_channels";
  position: absolute;
  left: 0.85rem;
  top: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}

.audio-visual.is-playing::after {
  color: rgba(255, 255, 255, 0.82);
}

.soundcloud-player {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 1.2rem 0 0;
  border: 1px solid rgba(255, 15, 34, 0.5);
  border-radius: 14px;
  background: #000;
  isolation: isolate;
}

.soundcloud-player::before {
  content: "soundcloud.embed";
  position: absolute;
  z-index: 1;
  right: 0.75rem;
  top: 0.55rem;
  color: rgba(255, 15, 34, 0.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.soundcloud-player iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 166px;
  border: 0;
  filter: grayscale(1) contrast(1.12);
}

.route-line {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) minmax(0, auto);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 0;
}

.route-line > * {
  min-width: 0;
}

.route-line strong {
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.route-line em,
.route-date,
.inline-command,
.terminal-output,
.terminal-form {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.route-date {
  color: var(--accent-primary);
  font-size: 0.76rem;
}

.route-line em {
  color: var(--text-soft);
  font-style: normal;
  font-size: 0.76rem;
  text-transform: uppercase;
  text-align: right;
  overflow-wrap: anywhere;
}

.routing-kicker {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.inline-command {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-secondary);
  font-size: 0.82rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.proof-console {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.terminal-output {
  border: 1px solid rgba(0, 0, 255, 0.44);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  overflow: hidden;
}

.terminal-output p {
  margin: 0;
  padding: 0.55rem 0;
  color: #dcdcdc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-output p:last-child {
  border-bottom: none;
}

.terminal-output span {
  color: var(--accent-alert);
}

.handshake-console {
  align-items: center;
}

.terminal-form {
  border-color: rgba(0, 0, 255, 0.46);
}

.system-visual {
  position: absolute;
  inset: 48px 0 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.cursor-orb {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: 220px;
  height: 220px;
  border: 1px solid rgba(57, 255, 20, 0.36);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(57, 255, 20, 0.12), rgba(0, 0, 255, 0.08) 42%, transparent 70%);
  mix-blend-mode: screen;
}

.core-cross {
  position: absolute;
  left: calc(50% + (var(--mx) - 50vw) * -0.055);
  top: calc(50% + (var(--my) - 50vh) * -0.045);
  width: min(36vw, 420px);
  transform: translate(-50%, -50%);
  opacity: 0.12;
  mix-blend-mode: screen;
}

.core-cross-blue {
  transform: translate(calc(-50% + (var(--mx) - 50vw) * 0.012), calc(-50% + (var(--my) - 50vh) * -0.009));
}

.core-cross-red {
  transform: translate(calc(-50% + (var(--mx) - 50vw) * -0.014), calc(-50% + (var(--my) - 50vh) * 0.01));
}

.core-cross-green {
  opacity: 0.18;
}

.data-rain {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  padding: 1rem;
  opacity: 0.42;
}

.data-rain span {
  color: rgba(57, 255, 20, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  writing-mode: vertical-rl;
  transform: translateY(calc((var(--my) - 50vh) * 0.025));
}

@keyframes signal-pulse {
  from {
    transform: scaleY(0.66);
    opacity: 0.58;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.tech-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  pointer-events: none;
}

body[data-page="home"],
body[data-page="home"] .system-shell,
body[data-page="home"] .system-monitor,
body[data-page="home"] .release-console,
body[data-page="home"] .routing-console,
body[data-page="home"] .proof-console,
body[data-page="home"] .handshake-console,
body[data-page="home"] .terminal-form,
body[data-page="home"] .process-node,
body[data-page="home"] .kernel-output,
body[data-page="home"] .command-tile {
  background: #000;
}

body[data-page="home"]::before {
  background:
    linear-gradient(rgba(57, 255, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.72;
}

body[data-page="home"] .system-shell {
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.3);
}

body[data-page="home"] .system-shell::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(57, 255, 20, 0.055) 84px 85px),
    repeating-linear-gradient(0deg, transparent 0 84px, rgba(255, 15, 34, 0.035) 84px 85px);
}

body[data-page="home"] .system-title {
  color: var(--accent-primary);
  text-shadow: 2px 0 0 rgba(0, 0, 255, 0.4), -2px 0 0 rgba(255, 15, 34, 0.32);
}

body[data-page="home"] .system-title::after {
  display: none;
}

body[data-page="home"] .command-tile::after,
body[data-page="home"] .interactive-surface::after {
  background: transparent;
  border: 1px solid rgba(57, 255, 20, 0.18);
}

body[data-page="home"] .command-tile:hover,
body[data-page="home"] .command-tile:focus-visible,
body[data-page="home"] .process-node:hover,
body[data-page="home"] .process-node:focus-visible {
  background: #050505;
}

body[data-page="home"] .signal-stack span {
  background: var(--accent-primary);
}

body[data-page="home"] .signal-stack span:nth-child(3n + 2) {
  background: rgba(57, 255, 20, 0.56);
}

body[data-page="home"] .signal-stack span:nth-child(3n) {
  background: rgba(57, 255, 20, 0.82);
}

body[data-page="home"] .system-module::before,
body[data-page="home"] .card::before,
body[data-page="home"] .process-node:nth-child(4)::before {
  background: var(--accent-primary);
}

body[data-page="home"] .cursor-orb {
  background: transparent;
  border-color: rgba(57, 255, 20, 0.42);
}

body[data-page="home"] .data-rain {
  opacity: 0.28;
}

body:not([data-page="home"]) {
  background: #000;
}

body:not([data-page="home"])::before {
  background:
    linear-gradient(rgba(57, 255, 20, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.74;
}

body:not([data-page="home"]) .page-main {
  padding-bottom: var(--space-6);
}

body:not([data-page="home"]) .hero {
  padding: clamp(2.5rem, 6vw, 4.8rem) 0 var(--space-5);
}

body:not([data-page="home"]) .hero .container {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 42vw, 420px);
  padding: clamp(4.8rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2rem) clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid rgba(57, 255, 20, 0.36);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.12), inset 0 0 34px rgba(57, 255, 20, 0.035);
}

body:not([data-page="home"]) .hero .container::before {
  content: "systems.critical/page.boot";
  position: absolute;
  inset: 0 0 auto;
  height: 2.85rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(57, 255, 20, 0.26);
  color: rgba(216, 255, 210, 0.82);
  background: #020202;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body:not([data-page="home"]) .hero .container::after {
  content: "";
  position: absolute;
  right: clamp(-3.2rem, -4vw, -1.2rem);
  bottom: clamp(-4.4rem, -7vw, -2.2rem);
  width: min(310px, 46vw);
  aspect-ratio: 1;
  background: url("../brand/sc-mark-green.png") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

body:not([data-page="home"]) .hero .kicker,
body:not([data-page="home"]) .hero h1,
body:not([data-page="home"]) .hero .lead {
  position: relative;
  z-index: 1;
}

body:not([data-page="home"]) .hero h1 {
  max-width: 12ch;
  color: var(--accent-primary);
  text-shadow: 1px 0 0 rgba(0, 0, 255, 0.42), -1px 0 0 rgba(255, 15, 34, 0.28);
}

body:not([data-page="home"]) .hero .lead {
  max-width: 60ch;
}

body:not([data-page="home"]) .section {
  position: relative;
  margin-top: var(--space-5);
  border-top-color: rgba(57, 255, 20, 0.28);
}

body:not([data-page="home"]) .section::before {
  content: "";
  position: absolute;
  left: max(1rem, calc((100vw - var(--max-width)) / 2));
  top: -1px;
  width: min(220px, calc(100vw - 2rem));
  height: 1px;
  background: var(--accent-primary);
}

body:not([data-page="home"]) .section-intro {
  align-items: stretch;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 14px;
  background: #000;
}

body:not([data-page="home"]) .card,
body:not([data-page="home"]) .faq {
  overflow: hidden;
  border-color: rgba(57, 255, 20, 0.28);
  background: #000;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.08);
}

body:not([data-page="home"]) .table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  border-color: rgba(57, 255, 20, 0.28);
  background: #000;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.08);
}

body:not([data-page="home"]) .card::before {
  height: 1px;
  background: var(--accent-primary);
}

body:not([data-page="home"]) .card h2,
body:not([data-page="home"]) .card h3 {
  color: #f7fff5;
}

body:not([data-page="home"]) .card .kicker::before,
body:not([data-page="home"]) .section-intro .kicker::before {
  color: var(--accent-primary);
}

body:not([data-page="home"]) .resource-item,
body:not([data-page="home"]) .stat-card {
  border-color: rgba(57, 255, 20, 0.26);
  background: #020202;
}

body:not([data-page="home"]) .resource-item:hover {
  border-color: rgba(57, 255, 20, 0.58);
  background: rgba(57, 255, 20, 0.045);
}

body:not([data-page="home"]) thead th {
  color: #d8ffd2;
  background: rgba(57, 255, 20, 0.08);
}

body:not([data-page="home"]) tbody tr:hover td {
  background: rgba(57, 255, 20, 0.045);
}

body:not([data-page="home"]) .input,
body:not([data-page="home"]) textarea,
body:not([data-page="home"]) select {
  border-color: rgba(57, 255, 20, 0.32);
  background: #020202;
}

body:not([data-page="home"]) .site-footer {
  border-top-color: rgba(57, 255, 20, 0.28);
  background: #000;
}

body:not([data-page="home"]) .interactive-surface::after {
  background: transparent;
  border: 1px solid rgba(57, 255, 20, 0.16);
}

@media (max-width: 980px) {
  .system-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .system-monitor {
    max-width: 640px;
  }

  .command-dock {
    grid-template-columns: 1fr;
  }

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

  .split-console,
  .handshake-console,
  .proof-console {
    grid-template-columns: 1fr;
  }

  .route-line {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-areas:
      "date status"
      "title title";
    gap: 0.3rem 0.75rem;
    align-items: center;
  }

  .route-date {
    grid-area: date;
  }

  .route-line strong {
    grid-area: title;
  }

  .route-line em {
    grid-area: status;
    justify-self: end;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .table-wrap {
    overflow-x: visible;
  }

  .table-wrap table {
    min-width: 0;
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    display: block;
  }

  .table-wrap tbody tr {
    display: block;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
  }

  .table-wrap tbody tr:last-child {
    margin-bottom: 0;
  }

  .table-wrap tbody td {
    display: grid;
    grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .table-wrap tbody tr td:last-child {
    border-bottom: none;
  }

  .table-wrap tbody td::before {
    content: attr(data-label);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
  }

  .table-wrap tbody tr:hover td {
    background: transparent;
  }
}

@media (max-width: 520px) {
  .route-line {
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "title"
      "status";
    gap: 0.2rem;
  }

  .route-line em {
    text-align: left;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .system-shell {
    min-height: auto;
    border-radius: 16px;
  }

  .system-topbar {
    grid-template-columns: auto 1fr;
  }

  .terminal-status {
    display: none;
  }

  .system-grid {
    min-height: auto;
    padding: 1rem 0.75rem 1.25rem;
  }

  .boot-line {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .system-title {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .logo-title {
    width: min(100%, 560px);
    min-height: auto;
    margin: 0.35rem auto 1.45rem;
    transform: translateY(3%);
  }

  .system-subtitle {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }

  .data-rain {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero {
    min-height: auto;
  }

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

@media (max-width: 820px) {
  html {
    scroll-padding-bottom: 5rem;
  }

  body {
    padding-bottom: 4.4rem;
  }

  .header-inner {
    gap: 0.75rem;
    min-height: 68px;
  }

  .brand-logo {
    width: min(180px, 48vw);
  }

  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 48px;
    height: 48px;
    padding: 0 0.5rem;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .nav-link {
    display: block;
    text-align: center;
    text-transform: uppercase;
  }

  .main-nav {
    gap: var(--space-2);
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 1rem;
    width: min(312px, calc(100% - 2rem));
    padding: 0.86rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 255, 0.5);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  }

  .nav-links[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-cta {
    display: none;
  }

  .signal-uplink {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0.7rem;
    grid-auto-flow: column;
    grid-template-columns: repeat(5, auto);
    justify-content: center;
    width: min(245px, calc(100vw - 1.5rem));
    gap: 0.32rem;
    padding: 0.34rem 0.55rem;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .signal-uplink::before {
    left: 0.8rem;
    right: 0.8rem;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.42), transparent);
  }

  .uplink-label {
    display: none;
  }

  .social-node {
    width: 34px;
    height: 34px;
  }

  .node-label {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 0.6rem);
    transform: translate(-50%, 8px);
  }

  .social-node::after {
    display: none;
  }

  .social-node:hover .node-label,
  .social-node:focus-visible .node-label {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 680px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .bio-split {
    align-items: start;
  }

  .bio-stack {
    height: auto;
  }

  .promo-shot {
    flex: none;
  }

  .promo-shot img {
    height: auto;
    object-fit: initial;
  }

  .resource-item {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .resource-item > div,
  .resource-item > strong {
    flex: 0 0 auto;
  }

  .resource-item a,
  .resource-item .pill {
    text-align: left;
  }

  .hero {
    padding-top: var(--space-6);
  }

  body:not([data-page="home"]) .hero {
    padding-top: var(--space-4);
  }

  body:not([data-page="home"]) .hero .container {
    min-height: auto;
    padding: 4.4rem 1rem 1.35rem;
  }

  body:not([data-page="home"]) .hero h1 {
    max-width: 10ch;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .hero-logo-lockup {
    gap: 0.45rem;
  }

  .hero-symbol {
    width: 20px;
    height: 20px;
  }

  .hero-wordmark {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }

  .interactive-surface {
    transform: none !important;
  }

  .glitch-layer {
    display: none;
  }

  .is-system-glitch {
    animation: none !important;
  }

  .routing-kicker .dot {
    opacity: 1;
    animation: none !important;
  }
}
