/* ==========================================================================
   Foundation & Variables (Inherited Visual Family)
   ========================================================================== */
:root {
    --primary: #70c1e1;
    --primary-hover: #5bb3d5;
    --surface: #ffffff;
    --surface-alt: #f4f7f9;
    --surface-dark: #1e293b;
    --surface-code: #0f172a;
    --text-main: #2d3748;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-pill: 40px;
    --shadow-soft: 0 12px 36px -8px rgba(112, 193, 225, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(112, 193, 225, 0.25);
    --shadow-border: 0 0 0 1px rgba(112, 193, 225, 0.1);
    --transition: all 0.25s ease;
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--surface-alt);
    color: var(--text-main);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* Base Mandatory Rules */
.flex-matrix {
    display: flex;
    flex-wrap: wrap;
}
.flex-matrix > * {
    min-width: 0;
}
.text-flow {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.gist-flow-zh {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Header Shell (Mandatory Replication)
   ========================================================================== */
.loft-cloak {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4vw;
    background: var(--surface);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}
.loft-cloak > * { min-width: 0; }

.glyph {
    display: flex;
    align-items: center;
}
.glyph img {
    height: 32px;
    width: auto;
    display: block;
}

.orbit {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}
.orbit > * { min-width: 0; }

.axon {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}
.axon:hover,
.axon.active {
    color: var(--primary);
}
.axon.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .orbit {
        gap: 12px;
        justify-content: center;
        width: 100%;
        margin-top: 12px;
    }
}

/* ==========================================================================
   Main Layout & Realms
   ========================================================================== */
.realm-core {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cloak-bound {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vw;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Hero Intro (Section)
   ========================================================================== */
.flare-apex {
    padding: 12vh 0 8vh;
    background: linear-gradient(145deg, #ffffff 0%, #eef6f9 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative geometric patterns instead of images */
.flare-apex::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 193, 225, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.flare-matrix {
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 40px;
}

.flare-gist {
    flex: 1 1 500px;
}

.crest-flare {
    line-height: 1.25;
    color: #0f172a;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 24px 0;
}

.gist-lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    margin: 0 0 40px 0;
    max-width: 700px;
}

.herd-tags {
    gap: 16px;
    margin-bottom: 40px;
}
.stem-tag {
    background: var(--surface);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-border), 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stem-tag svg {
    width: 18px;
    height: 18px;
}

.flux-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    background: var(--primary);
    color: var(--surface);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(112, 193, 225, 0.4);
    transition: var(--transition);
}
.flux-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Scripts Extension (Article)
   ========================================================================== */
.prism-detail {
    padding: 8vh 0;
    background: var(--surface);
}

.crest-prime {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #0f172a;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-align: center;
}

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

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

.voxel-node {
    background: var(--surface);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-border), 0 4px 12px rgba(0,0,0,0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.voxel-node:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover), var(--shadow-border);
}

.rune-rune {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(112, 193, 225, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}
.rune-rune svg {
    width: 28px;
    height: 28px;
}

.crest-node {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #0f172a;
}

.gist-node {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

.flux-ghost {
    margin-top: 24px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.flux-ghost:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* ==========================================================================
   Themes & Skins (Div)
   ========================================================================== */
.realm-visual {
    padding: 8vh 0;
    background: var(--surface-alt);
}

.matrix-split {
    gap: 60px;
    align-items: center;
}

.split-gist {
    flex: 1 1 400px;
}

.split-visual {
    flex: 1 1 450px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Visual Representation of Themes using CSS instead of images */
.voxel-theme {
    width: 100%;
    max-width: 240px;
    height: 160px;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.voxel-theme:hover {
    transform: translateY(-5px) scale(1.02);
}

.theme-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.theme-dark {
    background: #1e293b;
    border: 1px solid #334155;
}
.theme-morandi {
    background: #e5e5e5;
    border: 1px solid #d4d4d4;
}

.theme-band {
    height: 12px;
    border-radius: 6px;
    width: 60%;
}
.theme-light .theme-band { background: #f1f5f9; }
.theme-dark .theme-band { background: #334155; }
.theme-morandi .theme-band { background: #d4d4d4; }

.theme-crest {
    font-size: 0.85rem;
    font-weight: 600;
}
.theme-light .theme-crest { color: #475569; }
.theme-dark .theme-crest { color: #94a3b8; }
.theme-morandi .theme-crest { color: #525252; }

/* ==========================================================================
   Bot API (Aside)
   ========================================================================== */
.cloak-capability {
    padding: 10vh 0;
    background: var(--surface-dark);
    color: var(--text-inverse);
}

.crest-inverse {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-inverse);
    font-weight: 700;
    margin: 0 0 16px 0;
    text-align: center;
}

.gist-inverse-sub {
    text-align: center;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
}

.matrix-terminal {
    gap: 40px;
    align-items: stretch;
}

.terminal-gist {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stem-feature {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stem-feature:last-child {
    border-bottom: none;
}
.crest-term {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.gist-term {
    color: #cbd5e1;
    margin: 0;
    font-size: 0.95rem;
}

.terminal-visual {
    flex: 1 1 450px;
}

.voxel-code {
    background: var(--surface-code);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e2e8f0;
    overflow-x: auto;
}
.code-loft {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-dot:nth-child(1) { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }

.code-line { margin: 0 0 8px 0; }
.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }
.code-function { color: #61afef; }

/* ==========================================================================
   Footer
   ========================================================================== */
.hush-abyss {
    background: var(--surface);
    padding: 60px 4vw 40px;
    border-top: 1px solid rgba(112, 193, 225, 0.1);
}

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

.hush-brand {
    flex: 1 1 250px;
}
.crest-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 16px 0;
}
.gist-brand {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
}

.hush-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}
.herd-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.crest-axon {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
}
.axon-foot {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.axon-foot:hover {
    color: var(--primary);
}

.hush-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .flare-matrix { flex-direction: column; text-align: center; }
    .gist-lead { margin: 0 auto 40px auto; }
    .herd-tags { justify-content: center; }
    .matrix-split { flex-direction: column; }
    .split-gist { text-align: center; }
    .matrix-terminal { flex-direction: column; }
    .hush-links { width: 100%; justify-content: space-between; }
}

.orbit-loft-cloak .orbit-orbit, .orbit-loft-cloak{
            display: flex;
            flex-wrap: wrap;
        }

.orbit-loft-cloak .orbit-orbit > *, .orbit-loft-cloak > *{
            min-width: 0;
        }

.orbit-loft-cloak{
            justify-content: space-between;
            align-items: center;
            padding: 16px 6vw;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid rgba(112, 193, 225, 0.15);
        }

.orbit-loft-cloak .orbit-glyph img{
            height: 36px;
            width: auto;
            border-radius: 0; 
        }

.orbit-loft-cloak .orbit-orbit{
            gap: 1.5rem;
            align-items: center;
        }

.orbit-loft-cloak .orbit-axon{
            font-weight: 500;
            font-size: 0.95rem;
            color: #64748b;
            padding: 8px 16px;
            border-radius: 8px;
        }

.orbit-loft-cloak .orbit-axon:hover, .orbit-loft-cloak .orbit-axon.active{
            color: #70c1e1;
            background: rgba(112, 193, 225, 0.1);
        }

@media (max-width: 768px){.orbit-loft-cloak .orbit-orbit{ display: flex; flex-direction: column; width: 100%; margin-top: 1rem; align-items: flex-start; gap: 0.5rem; }

.orbit-loft-cloak .orbit-axon{ width: 100%; padding: 12px 16px; background: rgba(0,0,0,0.02); }}

.orbit-loft-cloak {
    background: rgb(255, 255, 255);
    background-image: none;
}

.echo-hush {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.75;
    word-break: break-word;
    color: var(--gist-main);
}
.echo-hush,
.echo-hush *,
.echo-hush *::before,
.echo-hush *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.echo-hush .echo-realm, .echo-hush{
            display: flex;
            flex-wrap: wrap;
        }

.echo-hush .echo-realm > *, .echo-hush > *{
            min-width: 0;
        }

.echo-hush .echo-realm{
            width: 100%;
            max-width: 1240px; 
            margin: 0 auto;
            padding: 0 6vw;
        }

.echo-hush{ background: #0f172a; padding: 80px 6vw 40px; color: #64748b; }

.echo-hush .echo-realm{ justify-content: space-between; gap: 4rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 30px; }

.echo-hush .echo-hush-brand{ font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 1.5rem; display: block; letter-spacing: -0.02em; }

.echo-hush .echo-hush-gist{ max-width: 300px; line-height: 1.6; }

.echo-hush .echo-hush-vein{ display: flex; flex-direction: column; gap: 1rem; }

.echo-hush .echo-hush-vein-crest{ color: white; font-weight: 600; margin-bottom: 0.5rem; font-size: 1.1rem; }

.echo-hush .echo-hush-axon{ transition: all 0.25s ease; }

.echo-hush .echo-hush-axon:hover{ color: #70c1e1; }

.echo-hush .echo-band{ width: 100%; text-align: center; font-size: 0.9rem; }

@media (max-width: 768px){.echo-hush .echo-realm{ flex-direction: column; gap: 2rem; }}