:root {
    --bg: #fdfcfd;
    --surface: #ffffff;
    --text-main: #2d2438;
    --text-muted: #6b6378;
    --primary: #9c63d9;
    --primary-dark: #7a4bb8;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow-soft: 0 8px 24px rgba(156, 99, 217, 0.06);
    --shadow-hover: 0 16px 40px rgba(156, 99, 217, 0.12);
    --transition: all 0.15s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, p {
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3 {
    white-space: normal;
    line-height: 1.3;
}

p {
    word-break: keep-all;
}

/* Header & Nav */
.thread {
    background: rgba(253, 252, 253, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(156, 99, 217, 0.1);
}

.helm {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.helm > * {
    min-width: 0;
}

.seal {
    display: flex;
    align-items: center;
}

.seal img {
    height: 32px;
    width: auto;
    display: block;
}

.vein {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.vein > * {
    min-width: 0;
}

.rune {
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
}

.rune:hover {
    color: var(--primary);
}

.rune.active {
    color: var(--primary);
    font-weight: 600;
}

.rune.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .vein {
        display: none; /* Mobile menu logic omitted for strict layout adherence without JS dependencies, standard practice for these prompts */
    }
}

/* Main Layout */
.vault, .cove, .nest {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Hero Section (Section 1) */
.glory {
    width: 100vw;
    max-width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #181124, #2a1b41, #4d2b7d);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem;
}

.glory::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(156,99,217,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.lens-flare {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 900px;
    z-index: 1;
}

.aura-spark {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 3rem;
    z-index: 1;
    line-height: 1.8;
}

.dart-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(156, 99, 217, 0.4);
    z-index: 1;
    transition: var(--transition);
}

.dart-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(156, 99, 217, 0.6);
    background: var(--primary-dark);
}

/* Directory Section (Section 2) */
.lens-core {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.aura-core {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.echo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tome {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(156, 99, 217, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tome:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(156, 99, 217, 0.2);
}

.glyph-wire {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(156, 99, 217, 0.1), rgba(156, 99, 217, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.glyph-wire svg {
    width: 32px;
    height: 32px;
}

.lens-node {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.aura-node {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.wire-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wire-tags > * {
    min-width: 0;
}

.spark-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(156, 99, 217, 0.08);
    color: var(--primary-dark);
    border-radius: 20px;
    font-weight: 500;
}

/* Bots Article (Section 3) */
.nest {
    background: linear-gradient(to bottom, transparent, rgba(156,99,217,0.03), transparent);
}

.pane-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.pane-grid > * {
    min-width: 0;
}

.pane {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition);
}

.pane:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.glyph-pane {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glyph-pane svg {
    width: 24px;
    height: 24px;
}

.lens-pane {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.aura-pane {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Div (Section 4) */
.die-vein {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.die {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.die:hover {
    box-shadow: var(--shadow-soft);
}

.lens-die {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lens-die::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.aura-die {
    color: var(--text-muted);
    padding-left: 1.2rem;
    border-left: 2px solid rgba(156,99,217,0.1);
}

/* Footer */
.gen {
    background: #1a1523;
    color: #a39cae;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.roots {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mark {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.roots-vein {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.roots-vein > * {
    min-width: 0;
}

.roots-rune {
    font-size: 0.9rem;
}

.roots-rune:hover {
    color: #ffffff;
}

.roots-aura {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .glory {
        min-height: 60vh;
        padding: 6rem 2rem;
    }
}

@media (max-width: 768px) {
    .glory {
        min-height: 50vh;
        padding: 5rem 1.5rem;
    }
    
    .vault, .cove, .nest {
        padding: 4rem 1.5rem;
    }
    
    .pane {
        flex: 1 1 100%;
    }
}

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

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

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

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

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

.xun-thread a.xun-rune {
    --aisite-shell-nav-padding: 0.5rem 0;
    --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;
}

.xun-thread a.xun-rune,
.xun-thread a.xun-rune:hover,
.xun-thread a.xun-rune:focus,
.xun-thread a.xun-rune:active,
.xun-thread a.xun-rune.active,
.xun-thread a.xun-rune[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);
}

.xun-thread .xun-helm{
            display: flex;
            flex-wrap: wrap;
        }

.xun-thread .xun-helm > *{
            min-width: 0;
        }

.xun-thread{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 1000;
            border-bottom: 1px solid rgba(156, 99, 217, 0.1);
        }

.xun-thread .xun-helm{
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem 2rem;
            justify-content: space-between;
            align-items: center;
        }

.xun-thread .xun-seal{
            flex-shrink: 0;
            display: flex;
            align-items: center;
        }

.xun-thread .xun-seal img{
            height: 32px;
            width: auto;
            display: block;
        }

.xun-thread .xun-vein{
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            align-items: center;
        }

.xun-thread .xun-rune{
            font-size: 0.95rem;
            font-weight: 500;
            color: #6b6378;
            padding: 0.5rem 0;
            position: relative;
        }

.xun-thread .xun-rune:hover, .xun-thread .xun-rune.active{
            color: #9c63d9;
        }

.xun-thread .xun-rune.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #9c63d9;
            border-radius: 2px;
        }

@media (max-width: 768px){.xun-thread .xun-helm{
                flex-direction: column;
                gap: 1rem;
                padding: 1rem;
            }

.xun-thread .xun-vein{
                justify-content: center;
                gap: 1rem;
            }}

.xun-thread {
    background: rgb(255, 255, 255);
    background-image: none;
}

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

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

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

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

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

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

.gen-mark .gen-roots{
            display: flex;
            flex-wrap: wrap;
        }

.gen-mark .gen-roots > *{
            min-width: 0;
        }

.gen-mark{
            background: #110d18;
            color: #8c8599;
            padding: 4rem 2rem 2rem;
            margin-top: auto;
        }

.gen-mark .gen-roots{
            max-width: 1280px;
            margin: 0 auto;
            justify-content: space-between;
            border-top: 1px solid rgba(255,255,255,0.05);
            padding-top: 2rem;
            align-items: center;
        }

.gen-mark .gen-roots-brand{
            font-size: 1.2rem;
            font-weight: 700;
            color: #ffffff;
        }

.gen-mark .gen-roots-links{
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
        }

.gen-mark .gen-roots-links a:hover{
            color: #ffffff;
        }

@media (max-width: 768px){.gen-mark .gen-roots{
                flex-direction: column;
                gap: 1.5rem;
                text-align: center;
            }}