glonectsite / index.html
seqator1's picture
Add 3 files
6e05fca verified
Raw History Blame Contribute Delete
42.4 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GLONECT | AI-Powered IT Outsourcing Solutions</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Space Grotesk', sans-serif;
background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
color: #ffffff;
overflow-x: hidden;
}
.neon-text {
text-shadow: 0 0 5px #00ff9d, 0 0 10px #00ff9d;
}
.neon-border {
box-shadow: 0 0 10px #00ff9d, 0 0 20px rgba(0, 255, 157, 0.3);
}
.glow-on-hover {
transition: all 0.3s ease;
}
.glow-on-hover:hover {
box-shadow: 0 0 15px #00ff9d;
transform: translateY(-2px);
}
.fade-in {
animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.binary-rain {
position: absolute;
color: rgba(0, 255, 157, 0.7);
font-size: 16px;
user-select: none;
animation: fall linear infinite;
}
@keyframes fall {
to {
transform: translateY(100vh);
}
}
#earth-container {
width: 100%;
height: 500px;
position: relative;
}
.chat-message {
max-width: 80%;
padding: 12px 16px;
border-radius: 18px;
margin-bottom: 8px;
animation: fadeIn 0.3s ease-in;
}
.ai-message {
background: rgba(0, 255, 157, 0.1);
border: 1px solid rgba(0, 255, 157, 0.3);
border-radius: 18px 18px 18px 4px;
}
.user-message {
background: rgba(98, 0, 255, 0.1);
border: 1px solid rgba(98, 0, 255, 0.3);
border-radius: 18px 18px 4px 18px;
margin-left: auto;
}
.case-study-card {
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.case-study-card:hover {
transform: translateY(-10px);
background: rgba(255, 255, 255, 0.1);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.benefit-card {
transition: all 0.3s ease;
background: rgba(15, 23, 42, 0.7);
border: 1px solid rgba(0, 255, 157, 0.2);
}
.benefit-card:hover {
transform: scale(1.03);
border-color: rgba(0, 255, 157, 0.5);
box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}
.modal {
transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-content {
transform: translateY(20px);
transition: transform 0.3s ease;
}
.modal.show {
opacity: 1;
pointer-events: all;
}
.modal.show .modal-content {
transform: translateY(0);
}
</style>
</head>
<body class="min-h-screen">
<!-- Binary Rain Background Effect -->
<div id="binary-rain"></div>
<!-- Navigation -->
<nav class="container mx-auto px-6 py-4 flex justify-between items-center">
<div class="flex items-center">
<span class="text-2xl font-bold neon-text">GLONECT</span>
</div>
<div class="hidden md:flex space-x-8">
<a href="#services" class="text-white hover:text-green-400 transition">Services</a>
<a href="#why-us" class="text-white hover:text-green-400 transition">Why Us</a>
<a href="#cases" class="text-white hover:text-green-400 transition">Case Studies</a>
<a href="#contact" class="text-white hover:text-green-400 transition">Contact</a>
</div>
<button id="ai-consult-btn" class="px-6 py-2 bg-gradient-to-r from-green-400 to-blue-500 text-white rounded-full glow-on-hover font-medium">
Free AI Consultation
</button>
<button class="md:hidden text-white">
<i class="fas fa-bars text-2xl"></i>
</button>
</nav>
<!-- Hero Section with 3D Earth -->
<section class="container mx-auto px-6 py-16 md:py-24 flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-12 md:mb-0 fade-in">
<h1 class="text-4xl md:text-6xl font-bold mb-6 leading-tight">
<span class="neon-text">Transform</span> Your Business <br>With <span class="text-green-400">AI-Powered</span> Solutions
</h1>
<p class="text-xl text-gray-300 mb-8">
GLONECT delivers cutting-edge IT outsourcing and AI integration services that drive efficiency, reduce costs, and future-proof your operations.
</p>
<div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
<button id="main-ai-btn" class="px-8 py-3 bg-green-500 hover:bg-green-600 text-white rounded-full glow-on-hover font-medium text-lg transition">
Get Free AI Analysis
</button>
<button class="px-8 py-3 border border-green-500 text-green-500 hover:bg-green-500 hover:text-white rounded-full glow-on-hover font-medium text-lg transition">
Explore Services
</button>
</div>
</div>
<div class="md:w-1/2 flex justify-center fade-in">
<div id="earth-container"></div>
</div>
</section>
<!-- Services Section -->
<section id="services" class="container mx-auto px-6 py-16">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">Our <span class="text-green-400">AI-Powered</span> Services</h2>
<p class="text-xl text-gray-300 max-w-3xl mx-auto">
We combine deep technical expertise with business acumen to deliver transformative solutions.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="benefit-card p-8 rounded-xl">
<div class="text-green-400 mb-4">
<i class="fas fa-brain text-4xl"></i>
</div>
<h3 class="text-2xl font-bold mb-3">AI Strategy & Integration</h3>
<p class="text-gray-300">
From initial assessment to full implementation, we embed AI into your core processes to unlock new efficiencies.
</p>
</div>
<div class="benefit-card p-8 rounded-xl">
<div class="text-green-400 mb-4">
<i class="fas fa-code text-4xl"></i>
</div>
<h3 class="text-2xl font-bold mb-3">Custom Software Development</h3>
<p class="text-gray-300">
Bespoke solutions tailored to your unique business needs, built with scalability in mind.
</p>
</div>
<div class="benefit-card p-8 rounded-xl">
<div class="text-green-400 mb-4">
<i class="fas fa-cloud text-4xl"></i>
</div>
<h3 class="text-2xl font-bold mb-3">Cloud & DevOps</h3>
<p class="text-gray-300">
Optimized infrastructure and CI/CD pipelines that accelerate your development cycles.
</p>
</div>
</div>
</section>
<!-- Why GLONECT Section with Slider -->
<section id="why-us" class="bg-gradient-to-b from-blue-900/30 to-purple-900/30 py-16">
<div class="container mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">Why Choose <span class="text-green-400">GLONECT</span>?</h2>
<p class="text-xl text-gray-300 max-w-3xl mx-auto">
We're not just another IT vendor - we're your strategic innovation partner.
</p>
</div>
<div class="relative">
<div id="benefits-slider" class="overflow-hidden">
<div class="flex transition-transform duration-300 ease-in-out">
<div class="w-full flex-shrink-0 px-4">
<div class="benefit-card p-8 rounded-xl">
<div class="flex items-center mb-6">
<div class="text-green-400 mr-4">
<i class="fas fa-bolt text-3xl"></i>
</div>
<h3 class="text-2xl font-bold">Rapid Prototyping</h3>
</div>
<p class="text-gray-300 mb-4">
We deliver working prototypes in weeks, not months, allowing you to validate ideas quickly and iterate based on real feedback.
</p>
<ul class="text-gray-300 space-y-2">
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Proof-of-concepts in 2-4 weeks</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>MVP development in 6-8 weeks</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Agile development methodology</span>
</li>
</ul>
</div>
</div>
<div class="w-full flex-shrink-0 px-4">
<div class="benefit-card p-8 rounded-xl">
<div class="flex items-center mb-6">
<div class="text-green-400 mr-4">
<i class="fas fa-shield-alt text-3xl"></i>
</div>
<h3 class="text-2xl font-bold">Transparent Partnership</h3>
</div>
<p class="text-gray-300 mb-4">
Complete visibility into our processes, progress, and pricing with no hidden costs or surprises.
</p>
<ul class="text-gray-300 space-y-2">
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Dedicated account manager</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Real-time progress dashboards</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Flexible engagement models</span>
</li>
</ul>
</div>
</div>
<div class="w-full flex-shrink-0 px-4">
<div class="benefit-card p-8 rounded-xl">
<div class="flex items-center mb-6">
<div class="text-green-400 mr-4">
<i class="fas fa-robot text-3xl"></i>
</div>
<h3 class="text-2xl font-bold">AI Expertise</h3>
</div>
<p class="text-gray-300 mb-4">
Our team includes PhD-level AI researchers and engineers who stay ahead of the curve on emerging technologies.
</p>
<ul class="text-gray-300 space-y-2">
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Specialized AI/ML engineers</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Custom model development</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
<span>Continuous learning programs</span>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="flex justify-center mt-8 space-x-2">
<button class="benefit-dot w-3 h-3 rounded-full bg-gray-600 hover:bg-green-400 transition" data-index="0"></button>
<button class="benefit-dot w-3 h-3 rounded-full bg-gray-600 hover:bg-green-400 transition" data-index="1"></button>
<button class="benefit-dot w-3 h-3 rounded-full bg-gray-600 hover:bg-green-400 transition" data-index="2"></button>
</div>
</div>
</div>
</section>
<!-- Case Studies Section -->
<section id="cases" class="container mx-auto px-6 py-16">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-4">Our <span class="text-green-400">Success</span> Stories</h2>
<p class="text-xl text-gray-300 max-w-3xl mx-auto">
Real-world examples of how we've transformed businesses with technology.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="case-study-card rounded-xl overflow-hidden">
<div class="h-48 bg-gradient-to-r from-purple-500 to-blue-600 flex items-center justify-center">
<i class="fas fa-shopping-cart text-6xl text-white opacity-30"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">E-commerce Personalization</h3>
<p class="text-gray-300 mb-4">
AI-powered recommendation engine increased conversion by 32% for a fashion retailer.
</p>
<div class="flex justify-between items-center">
<span class="text-sm text-green-400">AI Integration</span>
<button class="text-green-400 hover:text-green-300">
<i class="fas fa-arrow-right"></i>
</button>
</div>
</div>
</div>
<div class="case-study-card rounded-xl overflow-hidden">
<div class="h-48 bg-gradient-to-r from-green-500 to-teal-600 flex items-center justify-center">
<i class="fas fa-chart-line text-6xl text-white opacity-30"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Financial Forecasting</h3>
<p class="text-gray-300 mb-4">
Predictive analytics platform reduced risk exposure by 45% for an investment firm.
</p>
<div class="flex justify-between items-center">
<span class="text-sm text-green-400">Data Science</span>
<button class="text-green-400 hover:text-green-300">
<i class="fas fa-arrow-right"></i>
</button>
</div>
</div>
</div>
<div class="case-study-card rounded-xl overflow-hidden">
<div class="h-48 bg-gradient-to-r from-blue-500 to-indigo-600 flex items-center justify-center">
<i class="fas fa-robot text-6xl text-white opacity-30"></i>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Process Automation</h3>
<p class="text-gray-300 mb-4">
Automated 85% of manual document processing for a logistics company.
</p>
<div class="flex justify-between items-center">
<span class="text-sm text-green-400">RPA</span>
<button class="text-green-400 hover:text-green-300">
<i class="fas fa-arrow-right"></i>
</button>
</div>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="bg-gradient-to-r from-blue-900/50 to-purple-900/50 py-16">
<div class="container mx-auto px-6 text-center">
<h2 class="text-3xl md:text-4xl font-bold mb-6">Ready to <span class="text-green-400">Transform</span> Your Business?</h2>
<p class="text-xl text-gray-300 max-w-3xl mx-auto mb-8">
Our AI consultant will analyze your current processes and provide personalized recommendations - completely free.
</p>
<button id="bottom-ai-btn" class="px-8 py-4 bg-green-500 hover:bg-green-600 text-white rounded-full glow-on-hover font-medium text-lg transition">
Get Free AI Consultation
</button>
</div>
</section>
<!-- Footer -->
<footer id="contact" class="bg-gray-900/50 py-12">
<div class="container mx-auto px-6">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4 neon-text">GLONECT</h3>
<p class="text-gray-300">
AI-powered IT outsourcing and digital transformation services for forward-thinking businesses.
</p>
</div>
<div>
<h4 class="text-lg font-bold mb-4 text-green-400">Services</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">AI Integration</a></li>
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">Custom Development</a></li>
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">Cloud Solutions</a></li>
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">Data Analytics</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-bold mb-4 text-green-400">Company</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">About Us</a></li>
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">Careers</a></li>
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">Blog</a></li>
<li><a href="#" class="text-gray-300 hover:text-green-400 transition">Contact</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-bold mb-4 text-green-400">Connect</h4>
<div class="flex space-x-4 mb-4">
<a href="#" class="text-gray-300 hover:text-green-400 transition text-xl"><i class="fab fa-linkedin"></i></a>
<a href="#" class="text-gray-300 hover:text-green-400 transition text-xl"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-300 hover:text-green-400 transition text-xl"><i class="fab fa-github"></i></a>
<a href="#" class="text-gray-300 hover:text-green-400 transition text-xl"><i class="fab fa-medium"></i></a>
</div>
<p class="text-gray-300">
hello@glonect.com<br>
+1 (555) 123-4567
</p>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 GLONECT. All rights reserved.</p>
</div>
</div>
</footer>
<!-- AI Consultation Modal -->
<div id="ai-modal" class="modal fixed inset-0 bg-black bg-opacity-80 flex items-center justify-center z-50 opacity-0 pointer-events-none transition">
<div class="modal-content bg-gray-900 rounded-xl w-full max-w-2xl mx-4 border border-gray-800 overflow-hidden">
<div class="flex justify-between items-center p-4 border-b border-gray-800 bg-gray-900/50">
<h3 class="text-xl font-bold text-green-400">AI Business Consultant</h3>
<button id="close-modal" class="text-gray-400 hover:text-white">
<i class="fas fa-times"></i>
</button>
</div>
<div id="chat-container" class="p-4 h-96 overflow-y-auto space-y-4">
<div class="chat-message ai-message">
<p>Hello! I'm GLONECT's AI consultant. I'll help identify opportunities to optimize your business with technology.</p>
<p class="mt-2">What industry is your business in?</p>
<div class="mt-3 flex flex-wrap gap-2">
<button class="quick-reply px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm">Retail</button>
<button class="quick-reply px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm">Finance</button>
<button class="quick-reply px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm">Healthcare</button>
<button class="quick-reply px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm">Manufacturing</button>
<button class="quick-reply px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm">Other</button>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-800 bg-gray-900/50">
<div class="flex">
<input id="chat-input" type="text" placeholder="Type your message..." class="flex-grow px-4 py-2 bg-gray-800 border border-gray-700 rounded-l-lg focus:outline-none focus:border-green-500">
<button id="send-btn" class="px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded-r-lg transition">
<i class="fas fa-paper-plane"></i>
</button>
</div>
<p class="text-xs text-gray-500 mt-2">By using this service, you agree to our <a href="#" class="text-green-400 hover:underline">Terms</a> and <a href="#" class="text-green-400 hover:underline">Privacy Policy</a></p>
</div>
</div>
</div>
<script>
// Initialize Three.js for 3D Earth
document.addEventListener('DOMContentLoaded', function() {
// Binary rain effect
createBinaryRain();
// 3D Earth initialization
init3DEarth();
// Benefits slider
setupBenefitsSlider();
// AI Consultation modal
setupAIModal();
});
function createBinaryRain() {
const container = document.getElementById('binary-rain');
const characters = ['0', '1'];
const count = 100;
for (let i = 0; i < count; i++) {
const element = document.createElement('div');
element.className = 'binary-rain';
element.textContent = characters[Math.floor(Math.random() * characters.length)];
// Random position and animation duration
const left = Math.random() * 100;
const duration = 2 + Math.random() * 5;
const delay = Math.random() * 5;
const opacity = 0.2 + Math.random() * 0.5;
element.style.left = `${left}%`;
element.style.animationDuration = `${duration}s`;
element.style.animationDelay = `${delay}s`;
element.style.opacity = opacity;
// Random size
const size = 12 + Math.random() * 10;
element.style.fontSize = `${size}px`;
container.appendChild(element);
}
}
function init3DEarth() {
const container = document.getElementById('earth-container');
const width = container.clientWidth;
const height = container.clientHeight;
// Scene setup
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true });
renderer.setSize(width, height);
container.appendChild(renderer.domElement);
// Create binary sphere
const geometry = new THREE.SphereGeometry(3, 64, 64);
// Custom shader material for binary texture
const material = new THREE.ShaderMaterial({
uniforms: {
time: { value: 0 }
},
vertexShader: `
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
`,
fragmentShader: `
uniform float time;
varying vec2 vUv;
void main() {
// Create binary pattern
float scale = 20.0;
vec2 p = vUv * scale;
float pattern = step(0.5, mod(p.x + mod(p.y + time * 0.2, 2.0), 1.0));
// Color mix
vec3 color1 = vec3(0.0, 0.8, 0.6);
vec3 color2 = vec3(0.0, 0.3, 0.8);
vec3 color = mix(color1, color2, pattern);
// Add some glow
float glow = 0.05 / distance(vUv, vec2(0.5));
color += glow * vec3(0.0, 0.5, 0.3);
gl_FragColor = vec4(color, 0.8);
}
`,
transparent: true
});
const sphere = new THREE.Mesh(geometry, material);
scene.add(sphere);
// Add floating binary particles around the sphere
const particlesGeometry = new THREE.BufferGeometry();
const particlesCount = 500;
const posArray = new Float32Array(particlesCount * 3);
for (let i = 0; i < particlesCount * 3; i++) {
posArray[i] = (Math.random() - 0.5) * 10;
}
particlesGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
const particlesMaterial = new THREE.PointsMaterial({
size: 0.05,
color: 0x00ff9d,
transparent: true,
opacity: 0.8
});
const particlesMesh = new THREE.Points(particlesGeometry, particlesMaterial);
scene.add(particlesMesh);
// Lighting
const light = new THREE.PointLight(0x00ff9d, 1, 100);
light.position.set(5, 5, 5);
scene.add(light);
const ambientLight = new THREE.AmbientLight(0xffffff, 0.2);
scene.add(ambientLight);
camera.position.z = 5;
// Animation loop
function animate() {
requestAnimationFrame(animate);
sphere.rotation.y += 0.002;
particlesMesh.rotation.y -= 0.001;
// Update shader time uniform
material.uniforms.time.value += 0.01;
renderer.render(scene, camera);
}
animate();
// Handle window resize
window.addEventListener('resize', () => {
const newWidth = container.clientWidth;
const newHeight = container.clientHeight;
camera.aspect = newWidth / newHeight;
camera.updateProjectionMatrix();
renderer.setSize(newWidth, newHeight);
});
}
function setupBenefitsSlider() {
const slider = document.querySelector('#benefits-slider > div');
const dots = document.querySelectorAll('.benefit-dot');
let currentIndex = 0;
const slideCount = 3;
function goToSlide(index) {
currentIndex = index;
const translateX = -index * 100;
slider.style.transform = `translateX(${translateX}%)`;
// Update dots
dots.forEach((dot, i) => {
if (i === index) {
dot.classList.add('bg-green-400');
dot.classList.remove('bg-gray-600');
} else {
dot.classList.remove('bg-green-400');
dot.classList.add('bg-gray-600');
}
});
}
// Click on dots
dots.forEach(dot => {
dot.addEventListener('click', () => {
const index = parseInt(dot.getAttribute('data-index'));
goToSlide(index);
});
});
// Auto slide
setInterval(() => {
currentIndex = (currentIndex + 1) % slideCount;
goToSlide(currentIndex);
}, 5000);
}
function setupAIModal() {
const modal = document.getElementById('ai-modal');
const openButtons = [
document.getElementById('ai-consult-btn'),
document.getElementById('main-ai-btn'),
document.getElementById('bottom-ai-btn')
];
const closeButton = document.getElementById('close-modal');
const chatContainer = document.getElementById('chat-container');
const chatInput = document.getElementById('chat-input');
const sendButton = document.getElementById('send-btn');
// Conversation flow
const conversation = [
{
question: "What industry is your business in?",
quickReplies: ["Retail", "Finance", "Healthcare", "Manufacturing", "Other"],
key: "industry"
},
{
question: "What's your approximate annual revenue?",
quickReplies: ["Under $1M", "$1M-$10M", "$10M-$50M", "Over $50M", "Prefer not to say"],
key: "revenue"
},
{
question: "What's your biggest operational challenge?",
quickReplies: ["Manual processes", "Data silos", "Customer acquisition", "Scaling issues", "Other"],
key: "challenge"
},
{
question: "Do you currently use any AI/automation tools?",
quickReplies: ["Yes, extensively", "Some basic tools", "No, but interested", "No, not interested"],
key: "current_ai"
}
];
let currentStep = 0;
const userAnswers = {};
// Open modal
openButtons.forEach(button => {
button.addEventListener('click', () => {
modal.classList.add('show');
document.body.style.overflow = 'hidden';
});
});
// Close modal
closeButton.addEventListener('click', () => {
modal.classList.remove('show');
document.body.style.overflow = '';
});
// Send message
function sendMessage() {
const message = chatInput.value.trim();
if (message === '') return;
addUserMessage(message);
chatInput.value = '';
// Process answer
if (currentStep < conversation.length) {
userAnswers[conversation[currentStep].key] = message;
currentStep++;
if (currentStep < conversation.length) {
setTimeout(() => askQuestion(currentStep), 1000);
} else {
setTimeout(() => provideRecommendation(), 1500);
}
}
}
// Quick reply buttons
document.addEventListener('click', function(e) {
if (e.target.classList.contains('quick-reply')) {
const reply = e.target.textContent;
addUserMessage(reply);
// Process answer
if (currentStep < conversation.length) {
userAnswers[conversation[currentStep].key] = reply;
currentStep++;
if (currentStep < conversation.length) {
setTimeout(() => askQuestion(currentStep), 1000);
} else {
setTimeout(() => provideRecommendation(), 1500);
}
}
}
});
// Ask question from conversation flow
function askQuestion(index) {
const { question, quickReplies } = conversation[index];
const messageDiv = document.createElement('div');
messageDiv.className = 'chat-message ai-message';
messageDiv.innerHTML = `
<p>${question}</p>
<div class="mt-3 flex flex-wrap gap-2">
${quickReplies.map(reply =>
`<button class="quick-reply px-3 py-1 bg-gray-800 hover:bg-gray-700 rounded-full text-sm">${reply}</button>`
).join('')}
</div>
`;
chatContainer.appendChild(messageDiv);
chatContainer.scrollTop = chatContainer.scrollHeight;
}
// Provide final recommendation
function provideRecommendation() {
// Analyze answers (simplified for demo)
let recommendation = "";
if (userAnswers.industry && userAnswers.challenge) {
if (userAnswers.industry === "Retail" && (userAnswers.challenge === "Manual processes" || userAnswers.challenge === "Scaling issues")) {
recommendation = `Based on your ${userAnswers.industry} business facing ${userAnswers.challenge.toLowerCase()}, I recommend exploring our AI-powered inventory management and customer personalization solutions. These can automate up to 80% of manual tasks while improving customer experience.`;
} else if (userAnswers.industry === "Finance" && userAnswers.challenge === "Data silos") {
recommendation = `For your ${userAnswers.industry} business struggling with data silos, our data unification platform with built-in AI analytics would be ideal. We've helped similar firms achieve 360° customer views and reduce reporting time by 65%.`;
} else {
recommendation = `For your ${userAnswers.industry} business, our AI assessment package would help identify the highest-impact opportunities. We typically find 20-40% efficiency gains in similar organizations.`;
}
} else {
recommendation = "Our AI solutions can help optimize your business processes. Based on typical clients in your sector, we usually identify 20-40% efficiency gains through automation and data-driven decision making.";
}
const messageDiv = document.createElement('div');
messageDiv.className = 'chat-message ai-message';
messageDiv.innerHTML = `
<p>Thank you for the information! Here's my preliminary analysis:</p>
<p class="mt-2">${recommendation}</p>
<p class="mt-4 font-medium">Would you like to schedule a free consultation with our human experts to discuss specific solutions?</p>
<div class="mt-4 flex flex-wrap gap-3">
<button class="schedule-btn px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded-lg transition">Yes, schedule call</button>
<button class="px-4 py-2 border border-gray-600 hover:bg-gray-800 text-white rounded-lg transition">Not now</button>
</div>
`;
chatContainer.appendChild(messageDiv);
chatContainer.scrollTop = chatContainer.scrollHeight;
}
// Add user message to chat
function addUserMessage(text) {
const messageDiv = document.createElement('div');
messageDiv.className = 'chat-message user-message';
messageDiv.innerHTML = `<p>${text}</p>`;
chatContainer.appendChild(messageDiv);
chatContainer.scrollTop = chatContainer.scrollHeight;
}
// Event listeners
sendButton.addEventListener('click', sendMessage);
chatInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter') sendMessage();
});
// Schedule button (added dynamically)
document.addEventListener('click', function(e) {
if (e.target.classList.contains('schedule-btn')) {
const messageDiv = document.createElement('div');
messageDiv.className = 'chat-message ai-message';
messageDiv.innerHTML = `
<p>Excellent! Our team will contact you within 24 hours to schedule your free consultation.</p>
<p class="mt-2">In the meantime, you can explore our <a href="#" class="text-green-400 hover:underline">case studies</a> or <a href="#" class="text-green-400 hover:underline">service offerings</a>.</p>
<p class="mt-4">Thank you for using GLONECT's AI consultant!</p>
`;
chatContainer.appendChild(messageDiv);
chatContainer.scrollTop = chatContainer.scrollHeight;
}
});
}
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=seqator1/glonectsite" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>