/* Base Variables & Typography */
:root {
    --color-primary: #7672e5;
    --color-primary-light: #ecebfa;
    --color-primary-dark: #5855c4;
    --color-text-main: #1d1d1f;
    --color-text-sub: #515154;
    --color-bg-base: #ffffff;
    --color-bg-mute: #f5f5f7;
    --color-bg-alt: #fafafa;
    --color-border: #e5e5ea;
    --radius-sm: 12px;
    --radius-md: 19px;
    --radius-lg: 25px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease;
    --font-sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

/* Typography Global */
h1, h2, h3 {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

p {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Shell Layout */
.shell-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-wrap: wrap;
    min-width: 0;
}

.dict-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 0;
}

.board-center {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}

/* Navigation - Reused from Home */
.crown-board {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    min-width: 0;
}

.seal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

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

.tray-glide {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.knot-cand {
    color: var(--color-text-sub);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

/* Hero Section (Intro) - Reverse Split */
.cloud-prime {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-mute) 100%);
    padding: 6rem 0;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.cloud-prime .board-center {
    align-items: center;
    gap: 4rem;
    /* Reverse split logic */
    flex-direction: row-reverse;
}

.batch-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.visual-glyph {
    width: 100%;
    max-width: 500px;
    height: auto;
    transform: translateY(0);
    transition: var(--transition);
    filter: drop-shadow(0 20px 40px rgba(118,114,229,0.15));
}

.batch-visual:hover .visual-glyph {
    transform: translateY(-10px);
}

.batch-script {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.crest-cloud {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.script-prime {
    font-size: 1.25rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    max-width: 90%;
}

.batch-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.term-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.rune-prime {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.script-feature {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

/* Gallery Article (Acquire) */
.aura-vault {
    padding: 6rem 0;
    background-color: var(--color-bg-base);
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}

.aura-vault .board-center {
    flex-direction: column;
    align-items: center;
}

.crest-aura {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.script-aura {
    font-size: 1.125rem;
    color: var(--color-text-sub);
    text-align: center;
    max-width: 700px;
    margin-bottom: 3rem;
}

.shell-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex-wrap: wrap;
    min-width: 0;
}

.ink-gallery {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

.ink-gallery:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.batch-lex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.lex-mock {
    background: var(--color-bg-base);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    flex-wrap: wrap;
    min-width: 0;
}

.lex-mock:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
    transform: translateY(-5px);
}

.rune-lex {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-wrap: wrap;
    min-width: 0;
}

.crest-lex {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Customization Div (Capability) */
.board-vault {
    padding: 6rem 0;
    background-color: var(--color-bg-alt);
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    border-top: 1px solid var(--color-border);
}

.board-vault .board-center {
    flex-direction: column;
}

.batch-board-head {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.crest-board {
    font-size: 2.25rem;
    font-weight: 700;
}

.script-board {
    font-size: 1.125rem;
    color: var(--color-text-sub);
    max-width: 800px;
}

.batch-glyph {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.term-capability {
    background: var(--color-bg-base);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    flex-wrap: wrap;
    min-width: 0;
}

.term-capability:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.rune-cap {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}

.crest-cap {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Call to Action Button */
.tap-prime {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(118,114,229,0.3);
    border: none;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 1rem;
    cursor: pointer;
    flex-wrap: wrap;
    min-width: 0;
}

.tap-prime:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(118,114,229,0.4);
}

/* Footer */
.sole-root {
    background-color: var(--color-bg-base);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.sole-root .board-center {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.crest-sole {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.tray-sole {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.knot-sole {
    color: var(--color-text-sub);
    text-decoration: none;
    transition: var(--transition);
}

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

.script-tail {
    color: var(--color-text-sub);
    font-size: 0.875rem;
    margin-top: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .cloud-prime .board-center {
        gap: 2rem;
    }
    .crest-cloud {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .cloud-prime .board-center {
        flex-direction: column;
        text-align: center;
    }
    .batch-script {
        align-items: center;
    }
    .term-feature {
        justify-content: center;
    }
    .crown-board {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .tray-glide {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .knot-cand {
        white-space: nowrap;
        font-size: 0.9rem;
    }
    .batch-lex, .batch-glyph {
        grid-template-columns: 1fr;
    }
}

.cand-crown-board{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid #e5e5ea;
            padding: 1rem 2rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
        }

.cand-crown-board .cand-seal{
            display: flex;
            align-items: center;
            min-width: 0;
        }

.cand-crown-board .cand-seal img{
            height: 32px;
            width: auto;
            display: block;
        }

.cand-crown-board .cand-tray-glide{
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            align-items: center;
        }

.cand-crown-board .cand-knot-cand{
            font-size: 0.95rem;
            font-weight: 500;
            color: #515154;
            padding: 0.5rem 0;
            position: relative;
            min-width: 0;
        }

.cand-crown-board .cand-knot-cand:hover, .cand-crown-board .cand-knot-cand.active{
            color: #7672e5;
        }

.cand-crown-board .cand-knot-cand.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #7672e5;
            border-radius: 2px;
        }

@media (max-width: 768px){.cand-crown-board .cand-tray-glide{
                display: none; 
            }}

.cand-crown-board {
    background: rgb(255, 255, 255);
    background-image: none;
}

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

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

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

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

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

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

.root-sole-root .root-script{
            word-break: break-word;
            overflow-wrap: break-word;
            line-height: 1.7;
            color: #515154;
        }

.root-sole-root{
            background: #ffffff;
            border-top: 1px solid #e5e5ea;
            padding: 4rem 2rem 2rem;
        }

.root-sole-root .root-dict-sole{
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 3rem;
            margin-bottom: 3rem;
        }

.root-sole-root .root-shell-sole-brand{
            flex: 1 1 300px;
            min-width: 0;
        }

.root-sole-root .root-crest-brand{
            font-size: 1.5rem;
            font-weight: 700;
            color: #7672e5;
            margin-bottom: 1rem;
        }

.root-sole-root .root-batch-sole-links{
            display: flex;
            flex-wrap: wrap;
            gap: 4rem;
            flex: 2 1 500px;
            min-width: 0;
        }

.root-sole-root .root-band-sole{
            display: flex;
            flex-direction: column;
            gap: 1rem;
            min-width: 0;
        }

.root-sole-root .root-crest-sole{
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

.root-sole-root .root-knot-sole{
            font-size: 0.9rem;
            color: #515154;
        }

.root-sole-root .root-knot-sole:hover{
            color: #7672e5;
        }

.root-sole-root .root-tail-sole{
            max-width: 1280px;
            margin: 0 auto;
            padding-top: 2rem;
            border-top: 1px solid #e5e5ea;
            text-align: center;
            font-size: 0.85rem;
            color: #515154;
        }

@media (max-width: 768px){.root-sole-root .root-batch-sole-links{
                flex-direction: column;
                gap: 2rem;
            }}