:root {
  --hue-primary: #3a63f9;
  --hue-primary-hover: #2950e8;
  --hue-accent: #00d2ff;
  --hue-amber: #ffb703;
  --hue-rose: #ff4d6d;
  --bg-main: #0b0f19;
  --bg-surface: #141c2e;
  --bg-surface-elevated: #1b263e;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 13px;
  --trans-quick: 0.15s ease;
}

* {
  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: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* Outer Shell */
.realm {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav Header */
.crest {
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background-color: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

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

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

.sigil img {
  height: 36px;
  width: auto;
  display: block;
}

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

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

.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 var(--trans-quick);
}

.trace:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.trace.active {
  color: #ffffff;
  background-color: var(--hue-primary);
  box-shadow: 0 0 15px rgba(58, 99, 249, 0.3);
}

/* Main Canvas */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 40px 0;
}

/* Section 1: Article (Hero / Overview) */
.apex {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  padding: 44px;
  background: radial-gradient(circle at 10% 20%, rgba(58, 99, 249, 0.15) 0%, transparent 65%), var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.shard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(58, 99, 249, 0.15);
  border: 1px solid rgba(58, 99, 249, 0.3);
  border-radius: 50px;
  color: var(--hue-accent);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.rune {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.echo {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pod {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
}

.strand {
  flex: 1 1 calc(50% - 14px);
  min-width: 220px;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform var(--trans-quick), border-color var(--trans-quick);
}

.strand:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 99, 249, 0.4);
}

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

.glyph svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.strand-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strand-rune {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.strand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section 2: Section (System Proxy Issues) */
.beacon {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.beacon-crest {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
}

.beacon-rune-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.beacon-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.capsule {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-width: 0;
}

.capsule-mark {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hue-accent);
  background: rgba(0, 210, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.capsule-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.capsule-echo {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--hue-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--trans-quick);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(58, 99, 249, 0.25);
}

.spark:hover {
  background-color: var(--hue-primary-hover);
  transform: translateY(-1px);
}

/* Section 3: Aside (Timeout Fixing) */
.prism {
  background: linear-gradient(135deg, rgba(20, 28, 46, 0.9) 0%, rgba(27, 38, 62, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--hue-amber);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.prism-crest {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prism-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prism-h2-tag {
  font-size: 0.8rem;
  padding: 2px 8px;
  background: rgba(255, 183, 3, 0.2);
  color: var(--hue-amber);
  border-radius: 4px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step-counter;
}

.step-strand {
  counter-increment: step-counter;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(11, 15, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--hue-amber);
  color: #0b0f19;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.step-sheath {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.step-rune {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.code-block {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.85rem;
  color: var(--hue-accent);
  margin-top: 6px;
  display: block;
}

/* Section 4: Div (Icon Red & Crash FAQ) */
.vault {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.vault-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  border-left: 4px solid var(--hue-rose);
  padding-left: 14px;
}

.faq-cluster {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-details {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--trans-quick);
}

.faq-details[open] {
  border-color: rgba(58, 99, 249, 0.4);
}

.faq-summary {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

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

.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--trans-quick);
}

.faq-details[open] .faq-summary::after {
  content: "-";
  color: var(--hue-accent);
}

.faq-body {
  padding: 0 24px 22px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: -4px;
  padding-top: 16px;
}

/* Footer */
.nadir {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  margin-top: 40px;
}

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

.brand-echo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

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

.echo {
  font-size: 0.85rem;
  color: var(--text-dim);
  width: 100%;
  margin-top: 12px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .apex {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .realm {
    padding: 0 14px;
  }
  .crest {
    padding: 14px 0;
  }
  .nexus {
    flex-direction: column;
    align-items: flex-start;
  }
  .apex, .beacon, .prism, .vault {
    padding: 24px 18px;
  }
  .rune {
    font-size: 1.75rem;
  }
  .strand {
    flex: 1 1 100%;
  }
}

.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;
        }