<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>st4rware</title>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: 'Roboto', sans-serif;
            color: #ffffff;
            background-color: #0e0e0e;
            overflow: hidden;
            cursor: url('https://cdn.discordapp.com/attachments/1233881524550635650/1319480566139064371/Untitled_design_1.png?ex=67769849&is=677546c9&hm=5ff4df3ed072344c39321df75e5eca34ac487e4d327e6008245b0ef38ab889bb'), auto; /* Custom cursor */
        }
        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 20px 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(14, 14, 14, 0.8);
            z-index: 1;
        }
        .navbar .menu {
            justify-content: flex-start;
            margin-left: -20px; /* Adjusted to move tabs left */
        }
        .navbar a {
            color: #ffffff;
            text-decoration: none;
            font-size: 1rem;
            margin: 0 15px;
            transition: color 0.3s ease;
        }
        .navbar a:hover {
            color: #6c63ff;
        }
        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            text-align: center;
            padding-left: 50px;
        }
        h1 {
            font-size: 4rem; /* Increased size */
            font-weight: 700;
            margin-bottom: 20px;
            background: linear-gradient(90deg, #6c63ff, #9d50ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(108, 99, 255, 0.8); /* Glow effect */
            animation: titleAnimation 5s infinite, moveAnimation 1s infinite alternate; /* Animation */
        }
        @keyframes titleAnimation {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(10px); }
        }
        @keyframes moveAnimation {
            0% { transform: translateY(0); }
            100% { transform: translateY(-5px); }
        }
        p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto 30px;
        }
        .btn {
            display: inline-block;
            padding: 15px 30px;
            font-size: 1rem;
            color: #ffffff;
            background-color: #6c63ff;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }
        .btn:hover {
            background-color: #5750d4;
        }
        .tab {
            display: none;
            padding: 50px 20px;
            position: relative;
        }
        .tab.active {
            display: block;
        }
        .documentation, .examples {
            background: rgba(14, 14, 14, 0.9);
            color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            max-width: 800px;
            margin: 20px auto;
            text-align: left;
            font-family: monospace;
        }
        .code {
            background: #1e1e1e;
            padding: 15px;
            border-radius: 5px;
            overflow-x: auto;
            font-size: 0.9rem;
        }
        .api-code {
            color: purple;
        }
        .api-code .token.api {
            color: green;
        }
        .examples img {
            width: 100%;
            max-width: 400px;
            border-radius: 8px;
            transition: transform 0.3s ease;
            transform-style: preserve-3d;
        }
        .examples img:hover {
            transform: perspective(500px) rotateY(calc(var(--mouse-x) * 15deg)) rotateX(calc(var(--mouse-y) * 15deg));
        }
        .back-btn {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 20px;
            color: #ffffff;
            background-color: #6c63ff;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }
        .back-btn:hover {
            background-color: #5750d4;
        }
        pre.code-highlight {
            background: #1e1e1e;
            padding: 15px;
            border-radius: 5px;
            overflow-x: auto;
            font-size: 0.9rem;
            margin: 0;
        }
        pre.code-highlight code {
            display: block;
            padding: 0;
            margin: 0;
            white-space: pre-wrap;
            word-wrap: break-word;
            word-break: normal;
            overflow-x: auto;
            line-height: 1.5;
        }
        pre.code-highlight code.language-cs {
            color: #d1d1d1;
            background: transparent;
            border: none;
        }
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10; /* Ensure it is above other content */
            cursor: pointer; /* Change cursor to indicate clickable area */
        }
        .overlay-text {
            font-size: 3rem; /* Adjust font size */
            color: purple; /* Text color */
            text-shadow: 0 0 20px rgba(108, 63, 255, 0.8); /* Glow effect */
        }
    </style>
    <script>
        function showTab(tabId) {
            document.querySelectorAll('.tab').forEach(tab => tab.classList.remove('active'));
            document.getElementById(tabId).classList.add('active');
        }

        // Function to animate the title in the tab
        function animateTitle() {
            const title = "st4rware";
            let index = 0;
            let forward = true;

            function updateTitle() {
                if (forward) {
                    document.title = title.substring(0, index + 1);
                    index++;
                    if (index === title.length) {
                        forward = false;
                    }
                } else {
                    document.title = title.substring(0, index);
                    index--;
                    if (index < 0) {
                        forward = true;
                    }
                }
                setTimeout(updateTitle, 300); // Adjust speed here
            }
            updateTitle();
        }

        // Audio control based on initial play
        let audio;
        window.onload = function() {
            audio = new Audio('https://github.com/NebulaServicesA/st4rwaresite/raw/refs/heads/main/Cancun_luxurious_remix__SEGA__unreleased_%5B_YouConvert.net_%5D.mp3');
            audio.volume = 0.8; // Set volume to 80%
            audio.loop = true; // Loop the audio
            animateTitle(); // Start title animation

            // Hide all elements initially
            document.querySelector('.navbar').style.display = 'none';
            document.querySelector('#home').style.display = 'none';
            document.querySelector('#documentation').style.display = 'none';
            document.querySelector('#examples').style.display = 'none';
        };

        document.addEventListener('click', function() {
            const overlay = document.getElementById('overlay');
            overlay.style.display = 'none'; // Hide overlay on click
            audio.play().catch(error => {
                console.log("Audio playback failed:", error);
            });

            // Show all elements after clicking "Click to Enter"
            document.querySelector('.navbar').style.display = 'flex';
            document.querySelector('#home').style.display = 'flex';
            document.querySelector('#documentation').style.display = 'block';
            document.querySelector('#examples').style.display = 'block';
        });
    </script>
</head>
<body>
    <div id="particles-js"></div>
    <div id="overlay" class="overlay">
        <div class="overlay-text"style="font-weight: 900;">Click to Enter...</div>
    </div>
    <div class="navbar">
        <div class="logo"><a href="#" onclick="showTab('home')">st4rware</a></div>
        <div class="menu">
            <a href="#" onclick="showTab('documentation')">Documentation</a>
            <a href="#" onclick="showTab('examples')">Examples</a>
            <a href="https://keyauthst4rware.vercel.app/" target="_blank">Key System</a>
            <a href="https://discord.gg/UJwp3BH69J" target="_blank">Discord</a>
        </div>
    </div>
    <div id="home" class="container tab active">
        <div style="display: flex; flex-direction: column; align-items: center;">
            <h1 style="font-weight: 900;">Download st4rware for Windows.</h1>
            <p style="margin-top: 20px; text-align: center;">st4rware provides a smooth, sleek executor design with high execution power.</p>
            <a href="#" onclick="showTab('documentation')" class="btn">Get Started Now</a>
            <script>
                document.querySelector('.btn').addEventListener('click', () => {
                    window.open('https://cdn.discordapp.com/attachments/1226733320293974047/1323933293326110760/st4rwareee.zip?ex=67765076&is=6774fef6&hm=892a177adb215228cd2cd885569051788da815865a8f9585d606e3d33a3798a6&', '_blank');
                });
            </script>
        </div>
    </div>
    <div id="documentation" class="tab">
        <div class="documentation">
            <h2>API Documentation</h2>
            <pre class="code-highlight"><code class="language-cs"><span class="api-code"><span class="token api">API</span></span>.Attach(); // Execute a script <span class="api-code"><span class="token api">API</span></span>.SendScript(<span class="token string">"ScriptTextBox.Text"</span>); // Kill Roblox <span class="api-code"><span class="token api">API</span></span>.KillRoblox(); // Auto Inject (checkbox) <span class="api-code"><span class="token api">API</span></span>.SetAutoInject(<span class="token boolean">true</span>); // Kill Injector <span class="api-code"><span class="token api">API</span></span>.KillInjector(); // Execute Multiple Scripts string[] scripts = {<span class="token string">"script1"</span>, <span class="token string">"script2"</span>}; await <span class="api-code"><span class="token api">API</span></span>.ExecuteMultipleScripts(scripts); // Check if injected <span class="api-code"><span class="token api">API</span></span>.IsInjected(); // Check if Roblox is open <span class="api-code"><span class="token api">API</span></span>.IsRobloxOpen();</code></pre>
            <a href="#" class="back-btn" onclick="showTab('home')">Back</a>
        </div>
    </div>
    <div id="examples" class="tab">
        <div class="examples">
            <h2>Sponsored Executors</h2>
            <img src="https://cdn.discordapp.com/attachments/1241152754626465874/1263655658956521492/image.png?ex=6775df8a&is=67748e0a&hm=74ffb13f040cbffb1250f51464ece01a4bb1758a4f37a18f611b76a363355496&" alt="Abyss Executor" data-hover>
            <p>Abyss Executor</p>
            <a href="#" class="back-btn" onclick="showTab('home')">Back</a>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
    <script>
        particlesJS('particles-js', {
            "particles": {
                "number": {
                    "value": 80,
                    "density": {
                        "enable": true,
                        "value_area": 800
                    }
                },
                "color": {
                    "value": "#6c63ff"
                },
                "shape": {
                    "type": "circle",
                    "stroke": {
                        "width": 0,
                        "color": "#000000"
                    },
                    "polygon": {
                        "nb_sides": 5
                    }
                },
                "opacity": {
                    "value": 0.5,
                    "random": false,
                    "anim": {
                        "enable": false,
                        "speed": 1,
                        "opacity_min": 0.1,
                        "sync": false
                    }
                },
                "size": {
                    "value": 3,
                    "random": true,
                    "anim": {
                        "enable": false,
                        "speed": 40,
                        "size_min": 0.1,
                        "sync": false
                    }
                },
                "line_linked": {
                    "enable": true,
                    "distance": 150,
                    "color": "#6c63ff",
                    "opacity": 0.4,
                    "width": 1
                },
                "move": {
                    "enable": true,
                    "speed": 6,
                    "direction": "none",
                    "random": false,
                    "straight": false,
                    "out_mode": "out",
                    "attract": {
                        "enable": false,
                        "rotateX": 600,
                        "rotateY": 1200
                    }
                }
            },
            "interactivity": {
                "detect_on": "canvas",
                "events": {
                    "onhover": {
                        "enable": true,
                        "mode": "repulse"
                    },
                    "onclick": {
                        "enable": true,
                        "mode": "push"
                    },
                    "resize": true
                },
                "modes": {
                    "grab": {
                        "distance": 400,
                        "line_linked": {
                            "opacity": 1
                        }
                    },
                    "bubble": {
                        "distance": 400,
                        "size": 40,
                        "duration": 2,
                        "opacity": 8,
                        "speed": 3
                    },
                    "repulse": {
                        "distance": 200,
                        "duration": 0.4
                    },
                    "push": {
                        "particles_nb": 4
                    },
                    "remove": {
                        "particles_nb": 2
                    }
                }
            },
            "retina_detect": true
        });

        const exampleImage = document.querySelector('.examples img[data-hover]');
        exampleImage.addEventListener('mousemove', (event) => {
            const rect = exampleImage.getBoundingClientRect();
            const x = ((event.clientX - rect.left) / rect.width - 0.5) * 2;
            const y = ((event.clientY - rect.top) / rect.height - 0.5) * 2;
            exampleImage.style.setProperty('--mouse-x', x);
            exampleImage.style.setProperty('--mouse-y', y);
        });
        exampleImage.addEventListener('mouseleave', () => {
            exampleImage.style.setProperty('--mouse-x', 0);
            exampleImage.style.setProperty('--mouse-y', 0);
        });
    </script>
</body>
</html>
