:root {
  --bg: #07111d;
  --bg-alt: #0d1b2a;
  --panel: rgba(7, 17, 29, 0.8);
  --panel-border: rgba(124, 245, 202, 0.22);
  --panel-border-strong: rgba(124, 245, 202, 0.32);
  --text: #d8f7ee;
  --muted: #8db3a6;
  --accent: #7cf5ca;
  --accent-strong: #48d5ff;
  --warning: #ffd36b;
  --warm: #ffb86a;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top, rgba(72, 213, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #08111c 0%, #030811 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(124, 245, 202, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 245, 202, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(216, 247, 238, 0.04) 0,
      rgba(216, 247, 238, 0.04) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0.5px, transparent 1.2px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0.5px, transparent 1.3px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.06) 0.5px, transparent 1.1px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04) 0.5px, transparent 1.4px);
  background-size: 100% 6px, 180px 180px, 220px 220px, 160px 160px, 240px 240px;
  mix-blend-mode: screen;
  animation: scanlineDrift 9s linear infinite, noiseShift 0.45s steps(2) infinite;
}

.page-shell {
  width: min(1220px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 4.5rem;
  position: relative;
}

.grid-glow {
  position: absolute;
  inset: 10rem 10% auto;
  height: 20rem;
  background: radial-gradient(circle, rgba(124, 245, 202, 0.18), transparent 68%);
  filter: blur(42px);
  pointer-events: none;
}

.topbar,
.layout,
.panel,
.brand-lockup,
.hero-actions,
.signal-list,
.section-heading,
.module-grid,
.feed-list,
.feed-list div {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 2.4rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.flow-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(72, 213, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 20, 33, 0.58);
  color: var(--text);
  text-decoration: none;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.flow-link:hover,
.flow-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 245, 202, 0.35);
  background: rgba(10, 24, 39, 0.82);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark,
.eyebrow,
.section-tag,
.status-pill,
.prompt,
.feed-time {
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  filter: drop-shadow(0 0 18px rgba(72, 213, 255, 0.35));
}

.brand-ring,
.brand-link,
.brand-node,
.brand-letter {
  vector-effect: non-scaling-stroke;
}

.brand-ring {
  fill: none;
  stroke: rgba(124, 245, 202, 0.7);
  stroke-width: 2.4;
}

.brand-ring-outer {
  stroke-dasharray: 12 7;
  animation: orbit 18s linear infinite;
}

.brand-ring-inner {
  stroke: rgba(72, 213, 255, 0.8);
  stroke-dasharray: 7 5;
  animation: orbit-reverse 12s linear infinite;
}

.brand-link {
  fill: none;
  stroke: rgba(124, 245, 202, 0.55);
  stroke-width: 1.9;
  stroke-linecap: round;
  animation: linkPulse 2.8s ease-in-out infinite;
}

.brand-node {
  fill: url(#brand-core);
  filter: drop-shadow(0 0 10px rgba(124, 245, 202, 0.75));
  animation: nodePulse 2.4s ease-in-out infinite;
}

.brand-mark .brand-node-404,
.brand-mark .brand-letter-404 {
  fill: url(#brand-core-404);
}

.brand-node:nth-of-type(1) {
  animation-delay: 0s;
}

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

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

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

.brand-letter {
  fill: url(#brand-core);
  font-family: "Share Tech Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow,
.section-tag {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(12, 27, 42, 0.66);
  color: var(--muted);
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

.layout {
  display: grid;
  grid-template-columns: 1.42fr 0.88fr;
  gap: 1.35rem;
}

.sidebar-stack {
  display: grid;
  gap: 1.45rem;
  align-self: start;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 20, 33, 0.86), rgba(4, 13, 23, 0.88));
  border: 1px solid var(--panel-border);
  border-radius: 1.7rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 245, 202, 0.4), transparent);
  opacity: 0.65;
  pointer-events: none;
}

.panel-feature {
  background:
    radial-gradient(circle at top right, rgba(72, 213, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(9, 22, 36, 0.9), rgba(4, 13, 23, 0.92));
}

.panel-soft {
  background:
    radial-gradient(circle at top left, rgba(255, 184, 106, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(9, 21, 34, 0.82), rgba(4, 13, 23, 0.88));
}

.panel-spotlight {
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 184, 106, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(10, 22, 34, 0.88), rgba(4, 13, 23, 0.9));
  border-color: rgba(255, 184, 106, 0.2);
}

.hero {
  min-height: 24rem;
  overflow: hidden;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero-kicker {
  margin: 0;
  color: #e6bb88;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(250px, 0.78fr);
  gap: 1.1rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.hero-primary {
  min-width: 0;
}

.hero-sideband {
  display: flex;
}

.hero-sideband-panel {
  width: 100%;
  border: 1px solid rgba(255, 184, 106, 0.18);
  border-radius: 1.35rem;
  padding: 1rem 1rem 0.95rem;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 106, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(14, 26, 39, 0.86), rgba(8, 20, 33, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 184, 106, 0.08);
}

.hero-sideband-label {
  margin: 0 0 0.95rem;
  color: #efc592;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sideband-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.hero-sideband-metrics div {
  display: grid;
  gap: 0.24rem;
  align-content: start;
  min-width: 0;
  min-height: 5.1rem;
  padding: 0.68rem 0.62rem 0.62rem;
  border: 1px solid rgba(255, 184, 106, 0.12);
  border-radius: 1rem;
  background: rgba(8, 20, 33, 0.4);
}

.hero-metric-value {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.hero-metric-label {
  color: #d7b080;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-sideband-copy {
  margin: 0;
  color: #c8d7d1;
  line-height: 1.58;
  font-size: 0.88rem;
  max-width: 32ch;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -35%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(143, 255, 241, 0.015) 35%,
    rgba(72, 213, 255, 0.08) 50%,
    rgba(143, 255, 241, 0.015) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  filter: blur(6px);
  animation: heroSweep 15s ease-in-out infinite;
}

.hero h2 {
  font-size: clamp(2.05rem, 3.8vw, 3.55rem);
  line-height: 0.98;
  max-width: 13ch;
  margin-bottom: 0.95rem;
}

.hero-copy,
.modules p,
.feed p,
.terminal-output {
  color: #bad8cf;
  line-height: 1.7;
}

.hero-copy {
  max-width: 54ch;
  margin-bottom: 0;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.status-card {
  margin: 0;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(124, 245, 202, 0.14);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(9, 22, 36, 0.68), rgba(8, 20, 33, 0.44));
}

.status-label {
  margin: 0 0 0.45rem;
  color: var(--accent-strong);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-value {
  margin: 0;
  color: #bad8cf;
  line-height: 1.55;
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #042438;
}

.button-secondary {
  border: 1px solid rgba(124, 245, 202, 0.2);
  color: var(--text);
  background: rgba(8, 20, 33, 0.7);
}

.signal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signal-list li {
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 107, 0.22);
  color: #f2ddb1;
  background: rgba(255, 211, 107, 0.08);
}

.terminal-card {
  align-self: start;
}

.joke-card {
  overflow: hidden;
}

.terminal-card,
.joke-card {
  padding: 1.28rem 1.35rem;
}

.joke-terminal p {
  margin-bottom: 0.82rem;
}

.joke-line {
  min-height: 1.4rem;
}

.joke-date {
  color: var(--muted);
  font-size: 0.92rem;
}

.joke-copy {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 4.25rem;
}

.joke-meta {
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.typing-cursor {
  display: inline-block;
  width: 0.62rem;
  height: 1.05rem;
  margin-left: 0.15rem;
  vertical-align: -0.14rem;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(124, 245, 202, 0.4);
  animation: cursorBlink 0.9s steps(1) infinite;
}

.typing-cursor.is-hidden {
  visibility: hidden;
}

.joke-animated-line {
  opacity: 0;
  transform: translateY(0.3rem);
  animation: terminalLineReveal 420ms ease forwards;
}

.terminal-head {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.terminal-head span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(141, 179, 166, 0.4);
}

.terminal-head span:first-child {
  background: #ff7a7a;
}

.terminal-head span:nth-child(2) {
  background: #ffd36b;
}

.terminal-head span:nth-child(3) {
  background: var(--accent);
}

.terminal-body p {
  margin-bottom: 0.82rem;
}

.prompt {
  color: var(--accent);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.section-heading h3 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  margin-bottom: 0;
  line-height: 1.02;
}

.section-heading-copy {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.modules,
.stack,
.public-services,
.topology,
.about,
.feed {
  grid-column: span 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.featured-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.8rem;
}

.featured-service {
  position: relative;
  min-height: 100%;
  padding: 1.3rem 1.25rem 1.2rem;
  border: 1px solid rgba(255, 184, 106, 0.2);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 106, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(14, 26, 39, 0.84), rgba(9, 22, 36, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 184, 106, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.featured-service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 184, 106, 0.24), rgba(255, 184, 106, 0.92), rgba(124, 245, 202, 0.2));
}

.featured-service:hover,
.featured-service:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 106, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 184, 106, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(17, 30, 44, 0.9), rgba(11, 24, 38, 0.78));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.featured-service h4 {
  font-size: 1.22rem;
  margin-bottom: 0.7rem;
}

.featured-service p:last-child {
  margin-bottom: 0;
  color: #d4dfd9;
  line-height: 1.72;
}

.inventory-block {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(124, 245, 202, 0.12);
}

.inventory-summary {
  list-style: none;
  cursor: pointer;
}

.inventory-summary::-webkit-details-marker {
  display: none;
}

.inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inventory-tag {
  margin: 0;
  color: #efc592;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.inventory-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(124, 245, 202, 0.2);
  border-radius: 999px;
  background: rgba(9, 22, 36, 0.62);
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.inventory-toggle-label::after {
  content: "+";
  margin-left: 0.55rem;
  font-size: 1rem;
}

.inventory-summary:hover .inventory-toggle-label,
.inventory-summary:focus-visible .inventory-toggle-label {
  transform: translateY(-2px);
  border-color: rgba(124, 245, 202, 0.34);
  background: rgba(11, 25, 40, 0.82);
}

.inventory-block[open] .inventory-toggle-label::after {
  content: "-";
}

.inventory-block[open] .inventory-toggle-label {
  border-color: rgba(124, 245, 202, 0.3);
}

.inventory-block .module-grid {
  margin-top: 1.3rem;
}

.about-grid p {
  margin-bottom: 0;
  border: 1px solid rgba(124, 245, 202, 0.15);
  border-radius: 1.3rem;
  padding: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 106, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(10, 23, 36, 0.66), rgba(8, 20, 33, 0.5));
  color: #bad8cf;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 184, 106, 0.05);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.8rem;
}

.module-grid article,
.feed-list div {
  border: 1px solid rgba(124, 245, 202, 0.15);
  border-radius: 1.25rem;
  padding: 1.18rem 1.1rem 1.12rem;
  background: linear-gradient(180deg, rgba(10, 23, 36, 0.66), rgba(8, 20, 33, 0.48));
}

.module-grid article {
  min-height: 100%;
  position: relative;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.module-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(72, 213, 255, 0.1), rgba(124, 245, 202, 0.75), rgba(255, 184, 106, 0.12));
  opacity: 0.7;
}

.module-grid article:hover,
.module-grid article:focus-within {
  transform: translateY(-4px);
  border-color: rgba(124, 245, 202, 0.32);
  background: linear-gradient(180deg, rgba(12, 27, 42, 0.86), rgba(9, 22, 36, 0.74));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.module-grid article:hover h4,
.module-grid article:focus-within h4 {
  color: var(--accent);
}

.module-grid h4 {
  font-size: 1.16rem;
  margin-bottom: 0.6rem;
}

.card-tag {
  margin: 0 0 0.65rem;
  color: var(--accent-strong);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-note {
  margin: 1.6rem 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  gap: 0.9rem;
  margin-top: 1.7rem;
  justify-content: start;
}

.stack-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(72, 213, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 23, 36, 0.76), rgba(8, 20, 33, 0.6));
  color: #d3f4eb;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.7rem;
}

.service-link {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.2rem;
  padding: 1.3rem 1.3rem;
  border: 1px solid rgba(255, 184, 106, 0.22);
  border-radius: 1.3rem;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 106, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(13, 24, 37, 0.8), rgba(9, 19, 30, 0.68));
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-link:hover,
.service-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 106, 0.36);
  background:
    radial-gradient(circle at top right, rgba(255, 184, 106, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(17, 30, 44, 0.9), rgba(10, 24, 39, 0.78));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.service-copy,
.service-meta {
  display: grid;
  gap: 0.35rem;
}

.service-copy {
  align-content: start;
}

.service-name {
  color: var(--text);
  font-weight: 700;
  font-size: 1.12rem;
}

.service-description {
  color: #c9d9d2;
  line-height: 1.65;
  font-size: 0.94rem;
}

.service-meta {
  align-content: space-between;
  justify-items: end;
}

.service-url {
  color: #eec18c;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
}

.service-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(255, 184, 106, 0.24);
  border-radius: 999px;
  background: rgba(255, 184, 106, 0.08);
  color: #f4d0a2;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topology-map {
  display: grid;
  gap: 1.45rem;
  margin-top: 1.75rem;
  position: relative;
}

.topology-details {
  position: relative;
}

.topology-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
}

.topology-summary::-webkit-details-marker {
  display: none;
}

.topology-summary .section-heading {
  flex: 1;
  align-items: center;
  margin-bottom: 0;
}

.topology-summary-copy {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.topology-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(124, 245, 202, 0.22);
  border-radius: 999px;
  background: rgba(9, 22, 36, 0.68);
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topology-toggle-label::after {
  content: "+";
  margin-left: 0.6rem;
  font-size: 1rem;
}

.topology-summary:hover .topology-toggle-label,
.topology-summary:focus-visible .topology-toggle-label {
  transform: translateY(-2px);
  border-color: rgba(124, 245, 202, 0.34);
  background: rgba(11, 25, 40, 0.82);
}

.topology-details[open] .topology-toggle-label::after {
  content: "-";
}

.topology-details[open] .topology-toggle-label {
  border-color: rgba(124, 245, 202, 0.32);
}

.topology-lane {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.45rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.topology-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.topology-path {
  fill: none;
  stroke: rgba(72, 213, 255, 0.28);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 9;
}

.topology-pulse {
  fill: #7cf5ca;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(124, 245, 202, 0.95));
}

.topology-group {
  position: relative;
  border: 1px solid rgba(124, 245, 202, 0.18);
  border-radius: 1.4rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(10, 23, 36, 0.68), rgba(8, 20, 33, 0.5));
  box-shadow: inset 0 1px 0 rgba(124, 245, 202, 0.05);
  z-index: 1;
}

.topology-label {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topology-node {
  border: 1px solid rgba(72, 213, 255, 0.16);
  border-radius: 1.05rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(11, 25, 40, 0.82), rgba(8, 20, 33, 0.66));
  position: relative;
  z-index: 1;
}

.topology-feature {
  background:
    radial-gradient(circle at 78% 12%, rgba(72, 213, 255, 0.14), transparent 18%),
    radial-gradient(circle at 12% 16%, rgba(124, 245, 202, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(8, 21, 35, 0.92), rgba(4, 13, 23, 0.95));
}

.topology-entry,
.topology-core {
  border-color: rgba(124, 245, 202, 0.22);
  box-shadow: inset 0 1px 0 rgba(124, 245, 202, 0.05);
}

.topology-node h4 {
  margin-bottom: 0.4rem;
}

.topology-node p {
  margin-bottom: 0;
  color: #bad8cf;
  line-height: 1.6;
}

.topology-entry,
.topology-core {
  position: relative;
  overflow: hidden;
}

.topology-entry::after,
.topology-core::after {
  content: "";
  position: absolute;
  inset: auto auto -0.6rem 50%;
  width: 1px;
  height: 1.2rem;
  background: linear-gradient(180deg, rgba(124, 245, 202, 0.45), transparent);
}

.topology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.05rem;
  padding-left: 1.6rem;
  position: relative;
}

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

.topology-grid::before {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(72, 213, 255, 0.22), rgba(124, 245, 202, 0.34));
}

.topology-grid::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.1rem;
  width: 2px;
  height: 3.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(124, 245, 202, 0.95), transparent);
  box-shadow: 0 0 12px rgba(124, 245, 202, 0.55);
}

.topology-grid-cloud::after {
  animation: busPulseCloud 9s linear infinite;
}

.topology-grid-home::after {
  animation: busPulseHome 7.2s linear infinite;
}

.topology-grid > .topology-node::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 50%;
  width: 1.45rem;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(72, 213, 255, 0.22);
}

.topology-grid > .topology-node::after {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 50%;
  width: 1.15rem;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(124, 245, 202, 0.95), transparent);
  animation: servicePulse 7s linear infinite;
}

.topology-grid > .topology-node:nth-child(1)::after { animation-delay: 0.2s; }
.topology-grid > .topology-node:nth-child(2)::after { animation-delay: 0.7s; }
.topology-grid > .topology-node:nth-child(3)::after { animation-delay: 1.2s; }
.topology-grid > .topology-node:nth-child(4)::after { animation-delay: 1.7s; }
.topology-grid > .topology-node:nth-child(5)::after { animation-delay: 2.2s; }
.topology-grid > .topology-node:nth-child(6)::after { animation-delay: 2.7s; }
.topology-grid > .topology-node:nth-child(7)::after { animation-delay: 3.2s; }
.topology-grid > .topology-node:nth-child(8)::after { animation-delay: 3.7s; }
.topology-grid > .topology-node:nth-child(9)::after { animation-delay: 4.2s; }
.topology-grid > .topology-node:nth-child(10)::after { animation-delay: 4.7s; }
.topology-grid > .topology-node:nth-child(11)::after { animation-delay: 5.2s; }

.feed-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.7rem;
}

.feed-list div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: start;
  gap: 1.15rem;
  position: relative;
  overflow: hidden;
}

.feed-list div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(72, 213, 255, 0.18), rgba(124, 245, 202, 0.85), rgba(255, 184, 106, 0.2));
}

.feed-time {
  color: var(--accent-strong);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 1rem;
  background: rgba(8, 20, 33, 0.38);
  border: 1px solid rgba(72, 213, 255, 0.14);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  padding: 2rem 1.35rem 1rem;
  border: 1px solid rgba(124, 245, 202, 0.14);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 106, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(9, 21, 34, 0.82), rgba(5, 14, 24, 0.88));
  box-shadow: inset 0 1px 0 rgba(124, 245, 202, 0.05);
  color: var(--muted);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0;
}

.brand-link-home {
  color: inherit;
  text-decoration: none;
}

.brand-mark-image {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  filter: drop-shadow(0 0 18px rgba(72, 213, 255, 0.35));
}

.not-found-page .page-shell {
  min-height: 100vh;
}

.not-found-page {
  overflow-x: hidden;
}

.not-found-shell {
  display: flex;
  flex-direction: column;
}

.not-found-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 1.35rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.not-found-layout > *,
.not-found-status > * {
  min-width: 0;
}

.not-found-hero {
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found-code {
  margin: 0 0 0.5rem;
  color: transparent;
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(6.2rem, 16vw, 13rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0;
  -webkit-text-stroke: 1px rgba(124, 245, 202, 0.75);
  text-shadow:
    0 0 18px rgba(124, 245, 202, 0.26),
    0 0 42px rgba(72, 213, 255, 0.16);
}

.not-found-hero h2 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.8vw, 4.7rem);
  line-height: 0.95;
}

.not-found-copy {
  max-width: 62ch;
  margin-bottom: 1.45rem;
  color: #bad8cf;
  line-height: 1.7;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.not-found-terminal {
  align-self: stretch;
}

.not-found-terminal .terminal-body {
  min-height: 100%;
}

.not-found-terminal .terminal-output {
  overflow-wrap: anywhere;
}

#missing-path {
  color: var(--text);
  overflow-wrap: anywhere;
}

.not-found-status {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.35rem;
  position: relative;
  z-index: 1;
}

.not-found-status h3 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

.not-found-status p:last-child {
  margin-bottom: 0;
  color: #bad8cf;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent);
  }

  50% {
    transform: scale(1.45);
    opacity: 0.6;
    box-shadow: 0 0 20px var(--accent);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
    transform-origin: 50% 50%;
  }

  to {
    transform: rotate(360deg);
    transform-origin: 50% 50%;
  }
}

@keyframes orbit-reverse {
  from {
    transform: rotate(360deg);
    transform-origin: 50% 50%;
  }

  to {
    transform: rotate(0deg);
    transform-origin: 50% 50%;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
    transform-origin: 50% 50%;
  }

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

@keyframes linkPulse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.95;
  }
}

@keyframes scanlineDrift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(6px);
  }
}

@keyframes noiseShift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  25% {
    background-position: 0 1px, 8px -6px, -10px 5px, 5px -4px, -7px 8px;
  }

  50% {
    background-position: 0 2px, -6px 4px, 7px -8px, -8px 6px, 10px -3px;
  }

  75% {
    background-position: 0 3px, 5px -3px, -4px 6px, 7px -7px, -5px 4px;
  }

  100% {
    background-position: 0 4px, 0 0, 0 0, 0 0, 0 0;
  }
}

@keyframes heroSweep {
  0%,
  82%,
  100% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }

  8% {
    opacity: 0.38;
  }

  30% {
    opacity: 0.16;
    transform: translateX(420%) skewX(-18deg);
  }
}

@keyframes busPulseCloud {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  65% { opacity: 1; }
  100% { transform: translateY(14.2rem); opacity: 0; }
}

@keyframes busPulseHome {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(10.4rem); opacity: 0; }
}

@keyframes servicePulse {
  0%,
  12%,
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(-0.2rem);
  }

  35%,
  65% {
    opacity: 1;
    transform: translateY(-50%) translateX(0.2rem);
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }

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

@keyframes terminalLineReveal {
  from {
    opacity: 0;
    transform: translateY(0.3rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .not-found-layout,
  .not-found-status {
    grid-template-columns: 1fr;
  }

  .not-found-hero {
    min-height: auto;
  }

  .modules,
  .stack,
  .public-services,
  .topology,
  .about,
  .feed {
    grid-column: span 1;
  }

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

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

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

  .hero-topline,
  .hero-grid,
  .topology-summary,
  .topology-summary .section-heading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-kicker,
  .topology-summary-copy,
  .section-heading-copy,
  .inventory-copy {
    text-align: left;
  }

  .section-heading,
  .inventory-heading {
    align-items: flex-start;
  }

  .featured-services {
    grid-template-columns: 1fr 1fr;
  }

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

  .topology-lane {
    grid-template-columns: 1fr;
  }

  .service-links {
    grid-template-columns: 1fr;
  }

  .topology-lines {
    display: none;
  }

  .topology-grid {
    padding-left: 1.1rem;
  }

  .topology-grid > .topology-node::before,
  .topology-grid > .topology-node::after {
    left: -1.1rem;
    width: 1.1rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 2rem));
  }

  .not-found-code {
    font-size: clamp(5.2rem, 28vw, 8rem);
  }

  .not-found-hero h2 {
    max-width: none;
  }

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

  .topbar-actions {
    justify-content: flex-start;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .hero h2 {
    max-width: none;
  }

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

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

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

  .featured-services {
    grid-template-columns: 1fr;
  }

  .service-link {
    flex-direction: column;
  }

  .service-meta {
    justify-items: start;
  }

  .feed-list div {
    grid-template-columns: 1fr;
  }

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

  .topology-grid,
  .topology-grid-home {
    grid-template-columns: 1fr;
  }
}
