:root {
  --hue-primary: #3a63f9;
  --hue-primary-hover: #2950e8;
  --hue-accent: #00d2ff;
  --bg-main: #0b0f19;
  --bg-surface: #141c2e;
  --bg-surface-elevated: #1b263e;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 7px;
  --radius-lg: 13px;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(58, 99, 249, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Outer Sheath Wrapper */
.sheath {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Reused Navigation Header */
.crest {
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nexus {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sigil {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sigil img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sigil span {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.weave {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trace {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.trace:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.trace.active {
  color: #ffffff;
  background-color: var(--hue-primary);
  font-weight: 600;
}

/* Main Core Layout */
.realm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Section 1: Intro Article Beacon */
.beacon {
  background: radial-gradient(circle at 10% 20%, rgba(58, 99, 249, 0.15) 0%, transparent 65%), var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.prism {
  flex: 1 1 500px;
  min-width: 0;
}

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(58, 99, 249, 0.12);
  border: 1px solid rgba(58, 99, 249, 0.3);
  border-radius: 20px;
  color: var(--hue-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.rune {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
  word-break: break-word;
}

.echo {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 28px;
  word-break: break-word;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background-color: var(--hue-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(58, 99, 249, 0.3);
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.pulse:hover {
  background-color: var(--hue-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(58, 99, 249, 0.4);
}

.warp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all 0.15s ease;
}

.warp:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.apex {
  flex: 1 1 380px;
  min-width: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: rgba(11, 15, 25, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.glyph {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 99, 249, 0.15);
  border-radius: var(--radius-sm);
  color: var(--hue-accent);
}

.glyph svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section 2: Kernel Comparison Matrix (Aside) */
.matrix {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rune-sub {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  word-break: break-word;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
}

.compare-head {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-light);
}

.compare-head:first-child {
  border-top-left-radius: var(--radius-sm);
}

.compare-head:last-child {
  border-top-right-radius: var(--radius-sm);
}

.compare-strand {
  transition: background-color 0.15s ease;
}

.compare-strand:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.compare-cell {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.95rem;
  vertical-align: middle;
}

.compare-cell strong {
  color: #ffffff;
  font-weight: 600;
}

.status-ribbon {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-ribbon.high {
  background: rgba(0, 210, 255, 0.15);
  color: var(--hue-accent);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.status-ribbon.stable {
  background: rgba(58, 99, 249, 0.15);
  color: #8bb2ff;
  border: 1px solid rgba(58, 99, 249, 0.3);
}

.status-ribbon.legacy {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Section 3: Update Guide Steps (Div) */
.vault {
  background: radial-gradient(circle at 90% 10%, rgba(0, 210, 255, 0.08) 0%, transparent 60%), var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.pod {
  flex: 1 1 300px;
  min-width: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pod:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hue-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(58, 99, 249, 0.4);
}

.code-vault {
  background-color: #070a12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--hue-accent);
  word-break: break-all;
}

/* Section 4: Core Path Structure & Architecture (Article Pathway) */
.path-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.tree-vault {
  flex: 1 1 400px;
  min-width: 0;
  background-color: #070a12;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.8;
}

.tree-strand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-strand.folder {
  color: var(--hue-accent);
  font-weight: 600;
}

.tree-strand.file {
  color: #a5b4fc;
}

.tree-strand.comment {
  color: var(--text-dim);
  font-style: italic;
}

.info-cluster {
  flex: 1 1 450px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spark-note {
  padding: 18px 22px;
  background: rgba(58, 99, 249, 0.08);
  border-left: 4px solid var(--hue-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.spark-note h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.spark-note p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer Stem */
.stem {
  background-color: #070a12;
  border-top: 1px solid var(--border-light);
  padding: 48px 24px 32px 24px;
  margin-top: auto;
}

.nadir {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.datum {
  flex: 1 1 260px;
  min-width: 0;
}

.datum-rune {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.datum-cluster {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.datum-trace {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.datum-trace:hover {
  color: var(--hue-accent);
}

.anchor {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .nexus {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .weave {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .beacon, .matrix, .vault, .path-block {
    padding: 24px;
  }
  .rune {
    font-size: 1.75rem;
  }
  .compare-table {
    display: block;
    overflow-x: auto;
  }
}

.nexus-crest {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.7;
    word-break: break-word;
    color: var(--text-main);
}
.nexus-crest,
.nexus-crest *,
.nexus-crest *::before,
.nexus-crest *::after {
    box-sizing: border-box;
}

.nexus-crest nav,
.nexus-crest div,
.nexus-crest section,
.nexus-crest article,
.nexus-crest aside,
.nexus-crest p,
.nexus-crest h1,
.nexus-crest h2,
.nexus-crest h3,
.nexus-crest h4,
.nexus-crest h5,
.nexus-crest h6,
.nexus-crest a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.nexus-crest p,
.nexus-crest h1,
.nexus-crest h2,
.nexus-crest h3,
.nexus-crest h4,
.nexus-crest h5,
.nexus-crest h6 {
    text-decoration: none;
}

.nexus-crest img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.nexus-crest {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.nexus-crest a.nexus-trace {
    --aisite-shell-nav-padding: 8px 16px;
    --aisite-shell-nav-margin: 0;
    --aisite-shell-nav-line-height: normal;
    --aisite-shell-nav-display: inline;
    --aisite-shell-nav-height: auto;
    --aisite-shell-nav-min-height: auto;
}

.nexus-crest a.nexus-trace,
.nexus-crest a.nexus-trace:hover,
.nexus-crest a.nexus-trace:focus,
.nexus-crest a.nexus-trace:active,
.nexus-crest a.nexus-trace.active,
.nexus-crest a.nexus-trace[aria-current="page"] {
    background: transparent;
    border: none;
    border-bottom: none;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    padding: var(--aisite-shell-nav-padding, 0);
    margin: var(--aisite-shell-nav-margin, 0);
    line-height: var(--aisite-shell-nav-line-height, normal);
    display: var(--aisite-shell-nav-display, inline);
    height: var(--aisite-shell-nav-height, auto);
    min-height: var(--aisite-shell-nav-min-height, auto);
}

.nexus-crest{
            position: sticky;
            top: 0;
            z-index: 100;
            background-color: rgba(11, 15, 25, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0 24px;
        }

.nexus-crest .nexus-nexus{
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 72px;
            flex-wrap: wrap;
        }

.nexus-crest .nexus-sigil{
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

.nexus-crest .nexus-sigil img{
            height: 38px;
            width: auto;
            display: block;
        }

.nexus-crest .nexus-sigil span{
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #ffffff 30%, #00d2ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

.nexus-crest .nexus-weave{
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

.nexus-crest .nexus-trace{
            padding: 8px 16px;
            border-radius: 7px;
            font-size: 0.925rem;
            font-weight: 500;
            color: #94a3b8;
            border: 1px solid transparent;
        }

.nexus-crest .nexus-trace:hover{
            color: #f1f5f9;
            background-color: rgba(255, 255, 255, 0.05);
        }

.nexus-crest .nexus-trace.active{
            color: #ffffff;
            background-color: rgba(58, 99, 249, 0.15);
            border-color: rgba(58, 99, 249, 0.35);
        }

@media (max-width: 768px){.nexus-crest{
                padding: 0 16px;
            }

.nexus-crest .nexus-nexus{
                height: auto;
                padding: 16px 0;
                gap: 16px;
            }

.nexus-crest .nexus-weave{
                width: 100%;
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 4px;
            }

.nexus-crest .nexus-trace{
                white-space: nowrap;
                padding: 6px 12px;
                font-size: 0.85rem;
            }}

.nexus-crest {
    background: rgb(11, 15, 25);
    background-image: none;
}

.nadir-stem {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.7;
    word-break: break-word;
    color: var(--text-main);
}
.nadir-stem,
.nadir-stem *,
.nadir-stem *::before,
.nadir-stem *::after {
    box-sizing: border-box;
}

.nadir-stem nav,
.nadir-stem div,
.nadir-stem section,
.nadir-stem article,
.nadir-stem aside,
.nadir-stem p,
.nadir-stem h1,
.nadir-stem h2,
.nadir-stem h3,
.nadir-stem h4,
.nadir-stem h5,
.nadir-stem h6,
.nadir-stem a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.nadir-stem p,
.nadir-stem h1,
.nadir-stem h2,
.nadir-stem h3,
.nadir-stem h4,
.nadir-stem h5,
.nadir-stem h6 {
    text-decoration: none;
}

.nadir-stem img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.nadir-stem {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.nadir-stem a,
.nadir-stem a:hover,
.nadir-stem a:focus,
.nadir-stem a:active {
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.nadir-stem{
            background-color: #070a12;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 48px 24px 32px;
            margin-top: 40px;
        }

.nadir-stem .nadir-anchor{
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 32px;
        }

.nadir-stem .nadir-datum{
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

.nadir-stem .nadir-datum-brand{
            font-size: 1.25rem;
            font-weight: 700;
            color: #ffffff;
        }

.nadir-stem .nadir-datum-weave{
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

.nadir-stem .nadir-datum-trace{
            font-size: 0.875rem;
            color: #64748b;
        }

.nadir-stem .nadir-datum-trace:hover{
            color: #94a3b8;
        }

.nadir-stem .nadir-nadir{
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            font-size: 0.85rem;
            color: #64748b;
        }