:root {
    --primary: #8a2be2;
    --secondary: #ff0080;
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', 'Noto Kufi Arabic', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 70%);
    z-index: -2;
}

.glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: moveSphere 20s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes moveSphere {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 50px); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.void-text { color: var(--primary); }
.tweak-text { color: var(--text-white); text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.5);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
}

.hero {
    display: flex;
    padding: 5rem 5%;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.badge {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.card-glass {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dots { display: flex; gap: 5px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.title { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 326.7;
    stroke-dashoffset: 32.67; /* 90% */
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.percent { font-size: 1.5rem; font-weight: 800; display: block; }
.label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

.tweak-list { display: flex; flex-direction: column; gap: 1rem; }
.tweak-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: 0.3s;
}

.tweak-item.active { border-left: 3px solid var(--primary); }

.icon { font-size: 1.2rem; }
.info { flex: 1; }
.info span { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 5px; }

.status-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.fill { height: 100%; background: var(--primary); border-radius: 2px; }

.features { padding: 5rem 5%; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 4rem; }

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

.feature-card {
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
}

.f-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.feature-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 500px;
    width: 90%;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.options-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.full-width { width: 100%; margin-top: 1rem; }

.script-viewer {
    max-width: 700px;
}

.code-box {
    background: #000;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--primary);
    text-align: left;
    direction: ltr;
}

.code-box pre {
    color: #00ff00;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions .btn-primary, .modal-actions .btn-secondary {
    flex: 1;
}

.status-area { margin-top: 2rem; }
.loading-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.loading-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.3s; }

.cleaner-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
}

.cleaner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.btn-sm { padding: 8px 15px; font-size: 0.8rem; }

.cleaner-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cleaner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.size-tag {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cleaner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.total-info { font-size: 1.1rem; font-weight: 600; }
.total-info span { color: var(--secondary); font-size: 1.4rem; }

footer { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 968px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-stats { justify-content: center; }
    h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
}
