:root {
    --c-primary: #804ee4;
    --c-primary-hover: #6a3bc5;
    --c-primary-light: #f4effc;
    --c-text-main: #1d1d21;
    --c-text-muted: #5e5e66;
    --c-bg-base: #ffffff;
    --c-bg-alt: #faf9fd;
    --c-bg-dark: #120c1e;
    --c-danger: #e74c3c;
    --c-success: #2ecc71;
    --c-border: rgba(128, 78, 228, 0.1);
    --radius-soft: 18px;
    --radius-pill: 100px;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Fira Code", Consolas, Monaco, "Courier New", monospace;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(128, 78, 228, 0.12);
    --transition: all 0.25s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--c-text-main);
    background-color: var(--c-bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Base Text Rules */
.cipher-base {
    word-break: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
}
.apex-mega, .apex-large, .apex-medium {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    color: var(--c-text-main);
}

/* Master Wrapper */
.cloak {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Flex Utilities */
.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.cluster > * {
    min-width: 0;
}
.cluster-vertical {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
}
.cluster-vertical > * {
    min-width: 0;
}

/* Header & Nav (Mandatory match) */
.crest {
    background-color: var(--c-bg-base);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nexus {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.nexus > * { min-width: 0; }
.sigil img {
    height: 32px;
    width: auto;
    display: block;
}
.mesh {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.mesh > * { min-width: 0; }
.wire {
    text-decoration: none;
    color: var(--c-text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}
.wire:hover, .wire:focus {
    color: var(--c-primary);
}
.wire.active {
    color: var(--c-primary);
    font-weight: 700;
}

/* Main Container */
.stream {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.stream > * {
    min-width: 0;
}

/* Top Level Containers */
.portal-split,
.beam,
.tunnel,
.flare {
    padding: 5rem 2rem;
    width: 100%;
}
.cloak {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Section 1: Hero Intro (split_diagonal theme) */
.portal-split {
    background: linear-gradient(135deg, var(--c-bg-alt) 65%, var(--c-primary-light) 65%);
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.portal-split .cloak {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}
.portal-split .cloak > * { min-width: 0; }
.portal-cloak {
    flex: 1 1 500px;
}
.apex-mega {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.cipher-lead {
    font-size: 1.25rem;
    color: var(--c-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}
.pulse-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background-color: var(--c-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 20px rgba(128, 78, 228, 0.25);
    border: 2px solid var(--c-primary);
    transition: var(--transition);
}
.pulse-primary:hover, .pulse-primary:focus {
    background-color: var(--c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(128, 78, 228, 0.35);
}
.portal-visual {
    flex: 1 1 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.portal-visual > * { min-width: 0; }
/* Decorative Data Node SVG */
.glyph-portal {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(128, 78, 228, 0.15));
}

/* Aside 1: Troubleshooting Details */
.beam {
    background-color: var(--c-bg-base);
}
.apex-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}
.cipher-center {
    text-align: center;
    color: var(--c-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.shard {
    background: var(--c-bg-base);
    padding: 2rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--c-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
}
.shard > * { min-width: 0; }
.shard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(128, 78, 228, 0.2);
}
.glyph-cloak {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--c-primary-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
}
.glyph-cloak > * { min-width: 0; }
.apex-medium {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Section 2: FAQ Checklist */
.tunnel {
    background-color: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.pod-check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--c-bg-base);
    border-radius: 12px;
    border: 1px solid var(--c-border);
}
.pod-check > * { min-width: 0; }
.glyph-check {
    color: var(--c-success);
    flex-shrink: 0;
    margin-top: 2px;
}
.pod-cloak {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.pod-cloak > * { min-width: 0; }
.pod-apex {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--c-text-main);
}
.pod-desc {
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

/* Article 1: Data Panel (Proof) */
.flare {
    background-color: var(--c-bg-base);
}
.pod-terminal {
    background-color: var(--c-bg-dark);
    border-radius: var(--radius-soft);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    font-family: var(--font-mono);
    color: #a9b7c6;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}
.pod-terminal .line-error {
    color: #ff6b6b;
}
.pod-terminal .line-info {
    color: #4facfe;
}
.pod-terminal .line-warn {
    color: #feca57;
}
.band-crest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.band-crest > * { min-width: 0; }
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-r { background-color: #ff5f56; }
.dot-y { background-color: #ffbd2e; }
.dot-g { background-color: #27c93f; }

/* Footer */
.root {
    background-color: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
    padding: 4rem 2rem 2rem;
}
.root .cloak {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 3rem;
}
.root .cloak > * { min-width: 0; }
.base-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.brand-cipher {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-primary);
    margin-bottom: 1rem;
}
.root-apex {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--c-text-main);
}
.root-links {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.root-links > * { min-width: 0; }
.under {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mesh {
        display: none; /* Fallback for mobile [role="navigation"] toggle in a real app, keeping simple here per constraints */
    }
    .portal-split {
        background: var(--c-bg-alt);
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .apex-mega { font-size: 2rem; }
    .grid-3, .grid-2, .base-grid {
        grid-template-columns: 1fr;
    }
    .portal-visual {
        display: none; /* Hide decorative SVG on very small screens to save space */
    }
}

.nexus-crest {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--c-text-main);
}
.nexus-crest,
.nexus-crest *,
.nexus-crest *::before,
.nexus-crest *::after {
    box-sizing: border-box;
}

.nexus-crest [role="navigation"],
.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-wire {
    --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;
}

.nexus-crest a.nexus-wire,
.nexus-crest a.nexus-wire:hover,
.nexus-crest a.nexus-wire:focus,
.nexus-crest a.nexus-wire:active,
.nexus-crest a.nexus-wire.active,
.nexus-crest a.nexus-wire[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: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 100;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            transition: all 0.25s ease;
        }

.nexus-crest .nexus-nexus{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            height: 80px;
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 2rem;
        }

.nexus-crest .nexus-nexus > *{
            min-width: 0;
        }

.nexus-crest .nexus-sigil{
            display: flex;
            align-items: center;
        }

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

.nexus-crest .nexus-mesh{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2rem;
        }

.nexus-crest .nexus-mesh > *{
            min-width: 0;
        }

.nexus-crest .nexus-wire{
            text-decoration: none;
            color: #5e5e66;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            position: relative;
            padding: 0.5rem 0;
        }

.nexus-crest .nexus-wire:hover{
            color: #804ee4;
        }

.nexus-crest .nexus-wire.active{
            color: #804ee4;
            font-weight: 600;
        }

.nexus-crest .nexus-wire.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #804ee4;
            border-radius: 2px;
        }

@media (max-width: 768px){.nexus-crest .nexus-nexus{
                height: 70px;
                padding: 0 1.5rem;
            }

.nexus-crest .nexus-mesh{
                display: none; 
            }}

.nexus-crest {
    background: rgb(255, 255, 255);
    background-image: none;
}

.root-tail {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--c-text-main);
}
.root-tail,
.root-tail *,
.root-tail *::before,
.root-tail *::after {
    box-sizing: border-box;
}

.root-tail [role="navigation"],
.root-tail div,
.root-tail section,
.root-tail article,
.root-tail aside,
.root-tail p,
.root-tail h1,
.root-tail h2,
.root-tail h3,
.root-tail h4,
.root-tail h5,
.root-tail h6,
.root-tail a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

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

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

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

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

.root-tail .root-wire{
            text-decoration: none;
            color: #5e5e66;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            position: relative;
            padding: 0.5rem 0;
        }

.root-tail .root-wire:hover{
            color: #804ee4;
        }

.root-tail .root-wire.active{
            color: #804ee4;
            font-weight: 600;
        }

.root-tail .root-wire.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #804ee4;
            border-radius: 2px;
        }

.root-tail{
            background-color: #0b0714;
            color: rgba(255,255,255,0.6);
            padding: 4rem 2rem 2rem;
            text-align: center;
            font-size: 0.95rem;
        }

.root-tail .root-tail-brand{
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 1rem;
            letter-spacing: 0.5px;
        }

.root-tail .root-cluster-tail-links{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }

.root-tail .root-cluster-tail-links > *{ min-width: 0; }

.root-tail .root-wire{
            color: rgba(255,255,255,0.6);
        }

.root-tail .root-wire:hover{
            color: #804ee4;
        }

.root-tail .root-cipher-cipher{
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 2rem;
            max-width: 1240px;
            margin: 0 auto;
        }