/* 
 * Aisitex Design System - Core Variables
 * Theme: Dark High Contrast Tech
 */
:root {
    --color-bg: #090a10;
    --color-bg-alt: #121420;
    --color-primary: #2f34d1;
    --color-primary-light: #5257f5;
    --color-primary-glow: rgba(47, 52, 209, 0.3);
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-vault-bg: rgba(255, 255, 255, 0.03);
    --color-vault-bg-hover: rgba(255, 255, 255, 0.06);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-base: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 24px var(--color-primary-glow);
    --transition: 0.15s ease;
    --tube-width: 1280px;
}

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

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

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

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Text Wrapping & Flex Safeguards */
[class*=""] {
    word-break: break-word;
    overflow-wrap: break-word;
}

.cluster-flex {
    display: flex;
    flex-wrap: wrap;
}

.cluster-flex > * {
    min-width: 0; /* Prevent flex blowout */
}

/* Layout Boundaries */
.tube-bound {
    width: 100%;
    max-width: var(--tube-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header System (Strictly Reused) --- */
.crown-helm {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 10, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.helm-layout {
    align-items: center;
    justify-content: space-between;
}

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

.route-mesh {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.route-mesh > * { min-width: 0; }

.route-wire {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.route-wire:hover,
.route-wire.active {
    color: var(--color-text-main);
}

.route-wire.active {
    position: relative;
}

.route-wire.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Action Keys (Buttons) */
.pulse-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.pulse-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

.pulse-primary:hover,
.pulse-primary:focus {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 87, 245, 0.4);
}

.pulse-ghost {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.pulse-ghost:hover,
.pulse-ghost:focus {
    background-color: var(--color-vault-bg-hover);
    border-color: var(--color-text-muted);
}

/* --- Page Specific Sections --- */

/* Typography */
.apex-mega {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: normal;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apex-major {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: normal;
    margin-bottom: 1rem;
}

.cipher-lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* 1. Hero Zone (acquire) */
.cloak-zone {
    padding: calc(clamp(3rem, 6vw, 6rem) * 1.5) 0 clamp(3rem, 6vw, 6rem);
    position: relative;
    overflow: hidden;
}

.cloak-zone::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.cloak-layout {
    align-items: center;
    gap: 4rem;
}

.cloak-cipher {
    flex: 1 1 400px;
}

.cloak-lens {
    flex: 1 1 500px;
    position: relative;
}

.lens-frame {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-base);
    overflow: hidden;
    background: var(--color-bg-alt);
    position: relative;
}

.lens-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    pointer-events: none;
}

/* 2. Selection Zone (acquire) */
.aura-zone {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.aura-crown {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aura-crown .cipher-lead {
    margin-bottom: 0;
}

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

.vault-cell {
    background: var(--color-vault-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.vault-cell:hover {
    background: var(--color-vault-bg-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.vault-glyph-cluster {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.glyph-surface {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.vault-apex {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    white-space: normal;
}

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

.vault-belt {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 3. Steps Zone (steps) */
.veil-zone {
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
}

.veil-layout {
    align-items: center;
    gap: 5rem;
}

.veil-lens {
    flex: 1 1 450px;
}

.veil-track {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-blip {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.step-blip:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 48px;
    left: 23px;
    width: 2px;
    height: calc(100% - 32px);
    background: var(--color-border);
}

.step-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-vault-bg);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(47, 52, 209, 0.2);
}

.step-mantle {
    padding-top: 0.5rem;
}

.step-apex {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: normal;
}

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

/* --- Footer System --- */
.root-sole {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    background-color: var(--color-bg);
}

.sole-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.sole-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.sole-mesh {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sole-wire {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.sole-wire:hover {
    color: var(--color-text-main);
}

.sole-cipher {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .cloak-layout,
    .veil-layout {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .route-mesh {
        display: none; /* Mobile menu logic handled by runtime if any, keeping simple for this spec */
    }
    
    .cloak-layout,
    .veil-layout {
        flex-direction: column;
    }
    
    .veil-track {
        order: 2;
    }
    
    .veil-lens {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .cloak-cipher {
        text-align: center;
    }
    
    .cloak-cipher .cipher-lead {
        margin: 0 auto 2.5rem;
    }
    
    .cluster-flex[style*="gap: 1rem;"] {
        justify-content: center;
    }
    
    .vault-belt {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vault-belt > * {
        text-align: center;
    }
}

.helm-crown-helm {
    font-family: var(--font-sans);
    line-height: 1.6;
    word-break: break-word;
    color: var(--color-text-main);
}
.helm-crown-helm,
.helm-crown-helm *,
.helm-crown-helm *::before,
.helm-crown-helm *::after {
    box-sizing: border-box;
}

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

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

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

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

.helm-crown-helm a.helm-route-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;
}

.helm-crown-helm a.helm-route-wire,
.helm-crown-helm a.helm-route-wire:hover,
.helm-crown-helm a.helm-route-wire:focus,
.helm-crown-helm a.helm-route-wire:active,
.helm-crown-helm a.helm-route-wire.active,
.helm-crown-helm a.helm-route-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);
}

.helm-crown-helm .helm-cluster-flex{
            display: flex;
            flex-wrap: wrap;
            min-width: 0;
        }

.helm-crown-helm .helm-tube-bound{
            width: 100%;
            max-width: 1360px;
            margin: 0 auto;
            padding-left: clamp(1rem, 4vw, 2rem);
            padding-right: clamp(1rem, 4vw, 2rem);
        }

.helm-crown-helm{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(9, 10, 16, 0.8);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 1rem 0;
        }

.helm-crown-helm .helm-helm-layout{
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
        }

.helm-crown-helm .helm-sigil-mark{
            display: flex;
            align-items: center;
            height: 32px;
        }

.helm-crown-helm .helm-sigil-mark img{
            height: 100%;
            object-fit: contain;
        }

.helm-crown-helm .helm-route-mesh{
            display: flex;
            gap: 2rem;
            align-items: center;
        }

.helm-crown-helm .helm-route-wire{
            font-size: 0.95rem;
            font-weight: 500;
            color: #94a3b8;
            padding: 0.5rem 0;
            position: relative;
        }

.helm-crown-helm .helm-route-wire:hover{
            color: #f1f5f9;
        }

.helm-crown-helm .helm-route-wire.active{
            color: #f1f5f9;
        }

.helm-crown-helm .helm-route-wire.active::after{
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #2f34d1;
            border-radius: 2px;
        }

@media (max-width: 768px){.helm-crown-helm .helm-route-mesh{
                display: none; 
            }}

.helm-crown-helm .helm-pulse-key{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.875rem 1.75rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            border: 1px solid transparent;
            gap: 0.5rem;
        }

.helm-crown-helm .helm-pulse-primary{
            background-color: #2f34d1;
            color: #fff;
            box-shadow: 0 4px 14px rgba(47, 52, 209, 0.3);
        }

.helm-crown-helm .helm-pulse-primary:hover{
            background-color: #5257f5;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(47, 52, 209, 0.3);
        }

.helm-crown-helm {
    background: rgb(9, 10, 16);
    background-image: none;
}

.anchor-sole-anchor {
    font-family: var(--font-sans);
    line-height: 1.6;
    word-break: break-word;
    color: var(--color-text-main);
}
.anchor-sole-anchor,
.anchor-sole-anchor *,
.anchor-sole-anchor *::before,
.anchor-sole-anchor *::after {
    box-sizing: border-box;
}

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

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

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

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

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

.anchor-sole-anchor .anchor-cluster-flex{
            display: flex;
            flex-wrap: wrap;
            min-width: 0;
        }

.anchor-sole-anchor .anchor-tube-bound{
            width: 100%;
            max-width: 1360px;
            margin: 0 auto;
            padding-left: clamp(1rem, 4vw, 2rem);
            padding-right: clamp(1rem, 4vw, 2rem);
        }

.anchor-sole-anchor{
            background: #050608;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 4rem 0 2rem;
            margin-top: auto;
        }

.anchor-sole-anchor .anchor-base-cluster{
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 4rem;
            margin-bottom: 3rem;
        }

@media (max-width: 768px){.anchor-sole-anchor .anchor-base-cluster{
                grid-template-columns: 1fr;
                gap: 2rem;
            }}

.anchor-sole-anchor .anchor-root-brand{
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #fff;
            margin-bottom: 1rem;
        }

.anchor-sole-anchor .anchor-root-cipher{
            color: #94a3b8;
            font-size: 0.9rem;
            max-width: 400px;
        }

.anchor-sole-anchor .anchor-root-apex{
            color: #fff;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            white-space: normal;
        }

.anchor-sole-anchor .anchor-cluster-links{
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

.anchor-sole-anchor .anchor-root-wire{
            color: #94a3b8;
            font-size: 0.9rem;
        }

.anchor-sole-anchor .anchor-root-wire:hover{
            color: #5257f5;
        }

.anchor-sole-anchor .anchor-base-legal{
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #94a3b8;
            font-size: 0.85rem;
        }