/* ==========================================================================
           V2RayN Design System - Aisitex Core
           Theme: New edge release download site type
           Color: #804ee4 (Primary Purple)
           ========================================================================== */
        
        :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;
            --radius-soft: 18px;
            --radius-pill: 100px;
            --shadow-flat: 0 12px 32px rgba(128, 78, 228, 0.08);
            --shadow-hover: 0 16px 48px rgba(128, 78, 228, 0.15);
            --transition-base: all 0.25s ease;
            --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --layout-max: 1240px;
        }

        /* Base Resets & Typography */
        * {
            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;
            overflow-x: hidden;
        }

        /* Mandatory Word Break Constraints */
        .cipher-wrap {
            word-break: break-word;
            overflow-wrap: break-word;
            word-break: keep-all; /* Better for Chinese */
        }

        /* Typography */
        .apex-mega {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            line-height: 1.15;
            letter-spacing: -0.02em;
            color: var(--c-text-main);
            margin-bottom: 1.5rem;
            white-space: normal;
        }

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

        .apex-pod {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--c-text-main);
            white-space: normal;
        }

        .cipher-lead {
            font-size: clamp(1.125rem, 2vw, 1.35rem);
            color: var(--c-text-muted);
            margin-bottom: 2rem;
            line-height: 1.7;
            max-width: 600px;
        }

        .cipher-body {
            font-size: 1.05rem;
            color: var(--c-text-muted);
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }

        /* Structural Wrappers */
        .cloak-root {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .cloak-inner {
            width: 100%;
            max-width: var(--layout-max);
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Flexbox Mandates */
        .cluster-flex {
            display: flex;
            flex-wrap: wrap;
        }
        .cluster-flex > * {
            min-width: 0;
        }

        /* Header / Nexus (Navigation) */
        .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: var(--transition-base);
        }

        .nexus {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            height: 80px;
            max-width: var(--layout-max);
            margin: 0 auto;
            padding: 0 2rem;
        }
        
        .nexus > * {
            min-width: 0;
        }

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

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

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

        .wire {
            text-decoration: none;
            color: var(--c-text-muted);
            font-weight: 500;
            font-size: 0.95rem;
            transition: var(--transition-base);
            position: relative;
            padding: 0.5rem 0;
        }

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

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

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

        /* Main Content Area */
        .stream {
            flex: 1;
            padding-top: 80px; /* Offset for fixed [role="banner"] */
        }

        /* ----------------------------------------------------------------------
           Section 1: Hero (Blueprint: split_diagonal)
           Type: <article>, Role: intro
           ---------------------------------------------------------------------- */
        .portal-split {
            position: relative;
            background-color: var(--c-bg-alt);
            overflow: hidden;
            display: flex;
            flex-wrap: wrap;
            min-height: max(600px, 85vh);
        }

        .portal-split > * {
            min-width: 0;
        }

        .portal-cipher-side {
            flex: 1 1 50%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 6rem 4rem 6rem 10vw;
            z-index: 10;
        }

        .portal-lens-side {
            flex: 1 1 50%;
            position: relative;
            /* The diagonal split cut at 20 degrees */
            clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
            background-color: var(--c-primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .lens-diagonal {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center left;
            opacity: 0.95;
            transition: transform 3s ease;
        }

        .portal-split:hover .lens-diagonal {
            transform: scale(1.03);
        }

        /* Hero Features List */
        .cluster-marks {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin-bottom: 2.5rem;
        }
        
        .drop-mark {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .glyph-cloak {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(128, 78, 228, 0.1);
            color: var(--c-primary);
        }

        .glyph-cloak svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        .cipher-mark {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--c-text-main);
        }

        /* Buttons (Pulse) */
        .cluster-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .cluster-actions > * {
            min-width: 0;
        }

        .pulse-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 2.5rem;
            background-color: var(--c-primary);
            color: #fff;
            font-weight: 600;
            font-size: 1.1rem;
            border-radius: var(--radius-pill);
            text-decoration: none;
            transition: var(--transition-base);
            box-shadow: 0 8px 20px rgba(128, 78, 228, 0.25);
            border: 2px solid var(--c-primary);
        }

        .pulse-primary:hover, .pulse-primary:focus {
            background-color: var(--c-primary-hover);
            border-color: var(--c-primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(128, 78, 228, 0.35);
        }

        .pulse-ghost {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 2.5rem;
            background-color: transparent;
            color: var(--c-primary);
            font-weight: 600;
            font-size: 1.1rem;
            border-radius: var(--radius-pill);
            text-decoration: none;
            transition: var(--transition-base);
            border: 2px solid var(--c-primary-light);
        }

        .pulse-ghost:hover, .pulse-ghost:focus {
            background-color: var(--c-primary-light);
            border-color: var(--c-primary-light);
        }

        /* ----------------------------------------------------------------------
           Section 2: Multi-protocol
           Type: <div>, Role: capability
           ---------------------------------------------------------------------- */
        .tunnel-feature {
            padding: 8rem 0;
            background-color: var(--c-bg-base);
        }

        .cluster-duo {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4rem;
        }

        .cluster-duo > * {
            min-width: 0;
        }

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

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

        .lens-showcase {
            width: 100%;
            height: auto;
            border-radius: var(--radius-soft);
            box-shadow: var(--shadow-flat);
            display: block;
            border: 1px solid rgba(0,0,0,0.03);
            transition: var(--transition-base);
        }

        .duo-lens:hover .lens-showcase {
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
        }

        /* ----------------------------------------------------------------------
           Section 3: Smart Routing
           Type: <article>, Role: capability
           ---------------------------------------------------------------------- */
        .tunnel-alt {
            padding: 8rem 0;
            background-color: var(--c-bg-alt);
        }
        
        /* Reverse order for alternating layout */
        .cluster-duo.reverse {
            flex-direction: row-reverse;
        }

        /* Detail List */
        .cluster-details {
            margin-top: 2rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
        }

        .drop-detail {
            background: #fff;
            padding: 1.5rem;
            border-radius: 14px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.03);
            border: 1px solid rgba(128, 78, 228, 0.05);
            transition: var(--transition-base);
        }

        .drop-detail:hover {
            border-color: var(--c-primary-light);
            box-shadow: 0 8px 24px rgba(128, 78, 228, 0.08);
        }

        .apex-detail {
            font-weight: 600;
            color: var(--c-primary);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* ----------------------------------------------------------------------
           Section 4: Editorial Bridge / Guide (Information Density)
           Type: <aside>, Role: bridge
           ---------------------------------------------------------------------- */
        .cloak-editorial {
            padding: 7rem 0;
            background-color: var(--c-bg-base);
            border-top: 1px solid rgba(0,0,0,0.03);
        }

        .crest-center {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 4rem;
        }

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

        .pod-guide {
            background: var(--c-bg-alt);
            border-radius: var(--radius-soft);
            padding: 2.5rem 2rem;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            transition: var(--transition-base);
            border: 1px solid transparent;
            height: 100%;
        }

        .pod-guide:hover, .pod-guide:focus {
            background: #fff;
            border-color: var(--c-primary-light);
            box-shadow: var(--shadow-flat);
            transform: translateY(-5px);
        }

        .glyph-large {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: var(--c-primary-light);
            color: var(--c-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .glyph-large svg {
            width: 28px;
            height: 28px;
            fill: currentColor;
        }

        .wire-inline {
            margin-top: auto;
            padding-top: 1.5rem;
            color: var(--c-primary);
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .wire-inline svg {
            width: 16px; height: 16px; fill: currentColor;
            transition: transform 0.2s ease;
        }
        .pod-guide:hover .wire-inline svg {
            transform: translateX(4px);
        }

        /* ----------------------------------------------------------------------
           Section 5: CTA
           Type: <section>, Role: acquire
           ---------------------------------------------------------------------- */
        .stream-pulse {
            padding: 8rem 2rem;
            background-color: var(--c-bg-dark);
            color: #fff;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        /* Background glow effect */
        .stream-pulse::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(128,78,228,0.2) 0%, rgba(18,12,30,0) 70%);
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        .cloak-pulse {
            position: relative;
            z-index: 2;
            max-width: 700px;
            margin: 0 auto;
        }

        .apex-pulse {
            font-size: clamp(2.25rem, 4vw, 3.25rem);
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #fff;
        }
        
        .cipher-pulse {
            font-size: 1.25rem;
            color: rgba(255,255,255,0.7);
            margin-bottom: 3rem;
        }

        /* CTA buttons adaptation for dark bg */
        .stream-pulse .pulse-ghost {
            color: #fff;
            border-color: rgba(255,255,255,0.2);
        }
        .stream-pulse .pulse-ghost:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.3);
        }

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

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

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

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

        .tail .wire {
            color: rgba(255,255,255,0.6);
        }
        .tail .wire:hover {
            color: var(--c-primary);
        }

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

        /* ----------------------------------------------------------------------
           Responsive Breakpoints
           ---------------------------------------------------------------------- */
        @media (max-width: 1024px) {
            .portal-cipher-side {
                padding: 5rem 3rem 5rem 5vw;
            }
            .cluster-duo {
                gap: 2rem;
            }
        }

        @media (max-width: 768px) {
            .nexus {
                height: 70px;
                padding: 0 1.5rem;
            }
            .stream {
                padding-top: 70px;
            }
            .mesh {
                display: none; /* In a real app, this would be a hamburger menu via JS */
            }
            
            /* Defeat the split hero on mobile */
            .portal-split {
                flex-direction: column;
            }
            .portal-cipher-side {
                flex: 1 1 auto;
                padding: 4rem 2rem;
                text-align: center;
                align-items: center;
            }
            .cipher-lead {
                text-align: center;
            }
            .portal-lens-side {
                flex: 1 1 auto;
                min-height: 400px;
                clip-path: none; /* Remove diagonal on mobile */
                width: 100%;
            }

            .tunnel-feature, .tunnel-alt, .cloak-editorial {
                padding: 4rem 0;
            }

            .cluster-duo, .cluster-duo.reverse {
                flex-direction: column;
            }
            
            .duo-cipher, .duo-lens {
                flex: 1 1 100%;
                width: 100%;
            }
            
            .cluster-actions {
                justify-content: center;
            }
        }

.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;
        }