: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-md: 13px;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  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;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}

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

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

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

.sigil img {
  height: 32px;
  width: auto;
}

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

.trace {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

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

/* Outer Realm */
.realm {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Vault */
.vault {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Section 1: Intro Section (beacon) */
.beacon {
  background: radial-gradient(circle at 10% 20%, rgba(58, 99, 249, 0.15) 0%, transparent 60%), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.apex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.rune {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
  white-space: normal;
}

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

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

.strand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-surface-elevated);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-width: 0;
}

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

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

.strand-echo {
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 500;
}

.spark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: var(--hue-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(58, 99, 249, 0.3);
  margin-top: 12px;
}

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

/* Section 2: Comparison Aside (prism) */
.prism {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
}

.prism-crest {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.capsule {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--hue-accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.pod {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pod:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 99, 249, 0.5);
}

.pod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pod-rune {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.pod-mark {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.pod-mark.primary {
  background: rgba(58, 99, 249, 0.2);
  color: #8da4ff;
  border: 1px solid rgba(58, 99, 249, 0.4);
}

.pod-mark.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.ribbon {
  height: 3px;
  width: 100%;
  background: var(--hue-primary);
  margin: 16px 0;
  border-radius: 2px;
  opacity: 0.6;
}

.ribbon.accent {
  background: var(--hue-accent);
}

.ribbon.dim {
  background: var(--text-dim);
}

/* Section 3: Custom Rules Section (matrix) */
.matrix {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
}

.matrix-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.visor-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  background: #070a12;
}

.visor-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.shard-weave {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.shard {
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.shard-rune {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Section 4: FAQ Article (sheath) */
.sheath {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
}

.sheath-crest {
  margin-bottom: 36px;
}

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

.faq-strand {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.faq-rune {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-glyph {
  color: var(--hue-accent);
  font-weight: 800;
}

/* Footer (nadir) */
.nadir {
  background: #070911;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  margin-top: auto;
}

.anchor {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.anchor-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.anchor-echo {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.anchor-rune {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.anchor-trace {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

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

/* Responsive Rules */
@media (max-width: 992px) {
  .apex,
  .matrix-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .anchor {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .beacon,
  .prism,
  .matrix,
  .sheath {
    padding: 24px 18px;
  }
  
  .rune {
    font-size: 1.7rem;
  }
  
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  
  .anchor {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .datum {
    flex-direction: column;
    text-align: center;
  }
}

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