Spaces:
Running
Running
File size: 42,932 Bytes
0334396 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AnyCoder - Modern Web Platform</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<script src="https://unpkg.com/lucide@latest"></script>
<style>
* {
font-family: 'Inter', sans-serif;
}
.font-mono {
font-family: 'JetBrains Mono', monospace;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #0f172a;
}
::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #475569;
}
/* Glassmorphism Effects */
.glass {
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
background: rgba(30, 41, 59, 0.4);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
background: rgba(51, 65, 85, 0.5);
transform: translateY(-4px);
border-color: rgba(99, 102, 241, 0.3);
box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}
/* Animated Gradient Background */
.gradient-bg {
background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #0f172a);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* Floating Animation */
.float {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
/* Pulse Glow */
.pulse-glow {
animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}
/* Text Gradient */
.text-gradient {
background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Code Block Styling */
.code-block {
background: #0d1117;
border-radius: 12px;
overflow: hidden;
}
.code-header {
background: #161b22;
padding: 12px 16px;
display: flex;
align-items: center;
gap: 8px;
}
.code-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
/* Tab Active State */
.tab-active {
background: rgba(99, 102, 241, 0.2);
color: #818cf8;
border-bottom: 2px solid #818cf8;
}
/* Smooth Scroll */
html {
scroll-behavior: smooth;
}
/* Reveal Animation */
.reveal {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
opacity: 1;
transform: translateY(0);
}
/* Custom Range Slider */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
background: #334155;
height: 6px;
border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
margin-top: -5px;
background: #818cf8;
height: 16px;
width: 16px;
border-radius: 50%;
transition: all 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.2);
box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}
/* Loading Spinner */
.spinner {
border: 3px solid rgba(255,255,255,0.1);
border-left-color: #818cf8;
border-radius: 50%;
width: 24px;
height: 24px;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Tooltip */
.tooltip {
position: relative;
}
.tooltip::after {
content: attr(data-tip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(-8px);
padding: 6px 12px;
background: #1e293b;
color: white;
font-size: 12px;
border-radius: 6px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: all 0.2s;
}
.tooltip:hover::after {
opacity: 1;
visibility: visible;
}
</style>
</head>
<body class="gradient-bg min-h-screen text-slate-200 overflow-x-hidden">
<!-- Navigation -->
<nav class="fixed top-0 w-full z-50 glass border-b border-slate-800/50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-xl bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center pulse-glow">
<i data-lucide="code-2" class="w-5 h-5 text-white"></i>
</div>
<span class="text-xl font-bold text-white">AnyCoder</span>
</div>
<div class="hidden md:flex items-center gap-8">
<a href="#features" class="text-sm text-slate-400 hover:text-white transition-colors">Features</a>
<a href="#playground" class="text-sm text-slate-400 hover:text-white transition-colors">Playground</a>
<a href="#pricing" class="text-sm text-slate-400 hover:text-white transition-colors">Pricing</a>
<a href="#docs" class="text-sm text-slate-400 hover:text-white transition-colors">Docs</a>
</div>
<div class="flex items-center gap-4">
<button id="themeToggle" class="p-2 rounded-lg hover:bg-slate-800 transition-colors tooltip" data-tip="Toggle Theme">
<i data-lucide="moon" class="w-5 h-5"></i>
</button>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="hidden sm:flex items-center gap-2 px-4 py-2 bg-indigo-600 hover:bg-indigo-700 text-white text-sm font-medium rounded-lg transition-all hover:scale-105">
<span>Built with anycoder</span>
<i data-lucide="external-link" class="w-4 h-4"></i>
</a>
<button class="md:hidden p-2" onclick="toggleMobileMenu()">
<i data-lucide="menu" class="w-6 h-6"></i>
</button>
</div>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="hidden md:hidden glass border-t border-slate-800/50">
<div class="px-4 py-4 space-y-3">
<a href="#features" class="block text-slate-400 hover:text-white py-2">Features</a>
<a href="#playground" class="block text-slate-400 hover:text-white py-2">Playground</a>
<a href="#pricing" class="block text-slate-400 hover:text-white py-2">Pricing</a>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="block text-indigo-400 py-2">Built with anycoder →</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="relative pt-32 pb-20 lg:pt-48 lg:pb-32 overflow-hidden">
<!-- Background Elements -->
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<div class="absolute -top-40 -right-40 w-96 h-96 bg-indigo-500/20 rounded-full blur-3xl"></div>
<div class="absolute -bottom-40 -left-40 w-96 h-96 bg-purple-500/20 rounded-full blur-3xl"></div>
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-blue-500/10 rounded-full blur-3xl"></div>
</div>
<div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid lg:grid-cols-2 gap-12 items-center">
<div class="text-center lg:text-left reveal active">
<div class="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 text-sm mb-6">
<span class="w-2 h-2 rounded-full bg-indigo-400 animate-pulse"></span>
v2.0 Now Available
</div>
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-bold leading-tight mb-6">
Build <span class="text-gradient">Intelligent</span><br>
Applications Faster
</h1>
<p class="text-lg text-slate-400 mb-8 max-w-xl mx-auto lg:mx-0">
Harness the power of AI-driven code generation. Transform your ideas into production-ready applications with unprecedented speed and precision.
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center lg:justify-start">
<button onclick="scrollToSection('playground')" class="group px-8 py-4 bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white font-semibold rounded-xl transition-all hover:scale-105 flex items-center justify-center gap-2">
<span>Start Building</span>
<i data-lucide="arrow-right" class="w-5 h-5 group-hover:translate-x-1 transition-transform"></i>
</button>
<button onclick="showDemo()" class="px-8 py-4 glass text-white font-semibold rounded-xl hover:bg-slate-800 transition-all flex items-center justify-center gap-2">
<i data-lucide="play" class="w-5 h-5"></i>
<span>Watch Demo</span>
</button>
</div>
<div class="mt-12 flex items-center gap-8 justify-center lg:justify-start">
<div class="text-center">
<div class="text-2xl font-bold text-white">50K+</div>
<div class="text-sm text-slate-500">Developers</div>
</div>
<div class="w-px h-12 bg-slate-700"></div>
<div class="text-center">
<div class="text-2xl font-bold text-white">1M+</div>
<div class="text-sm text-slate-500">Projects</div>
</div>
<div class="w-px h-12 bg-slate-700"></div>
<div class="text-center">
<div class="text-2xl font-bold text-white">99.9%</div>
<div class="text-sm text-slate-500">Uptime</div>
</div>
</div>
</div>
<!-- Interactive Code Preview -->
<div class="relative float reveal active" style="transition-delay: 0.2s;">
<div class="code-block shadow-2xl shadow-indigo-500/20">
<div class="code-header">
<div class="code-dot bg-red-500"></div>
<div class="code-dot bg-yellow-500"></div>
<div class="code-dot bg-green-500"></div>
<span class="ml-4 text-sm text-slate-400 font-mono">app.tsx</span>
<div class="ml-auto flex items-center gap-2">
<button onclick="copyCode()" class="p-1.5 hover:bg-slate-700 rounded transition-colors tooltip" data-tip="Copy Code">
<i data-lucide="copy" class="w-4 h-4 text-slate-400"></i>
</button>
</div>
</div>
<div class="p-6 font-mono text-sm overflow-x-auto">
<pre id="typewriter" class="text-slate-300 leading-relaxed"></pre>
<span class="inline-block w-2 h-5 bg-indigo-400 animate-pulse ml-1"></span>
</div>
</div>
<!-- Floating Cards -->
<div class="absolute -top-4 -right-4 glass-card p-4 rounded-xl shadow-xl">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-lg bg-green-500/20 flex items-center justify-center">
<i data-lucide="check-circle" class="w-5 h-5 text-green-400"></i>
</div>
<div>
<div class="text-sm font-medium text-white">Build Success</div>
<div class="text-xs text-slate-400">Deployed in 2.3s</div>
</div>
</div>
</div>
<div class="absolute -bottom-4 -left-4 glass-card p-4 rounded-xl shadow-xl">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-lg bg-purple-500/20 flex items-center justify-center">
<i data-lucide="zap" class="w-5 h-5 text-purple-400"></i>
</div>
<div>
<div class="text-sm font-medium text-white">AI Optimized</div>
<div class="text-xs text-slate-400">98% performance</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Features Grid -->
<section id="features" class="py-20 relative">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16 reveal">
<h2 class="text-3xl sm:text-4xl font-bold mb-4">Powerful <span class="text-gradient">Features</span></h2>
<p class="text-slate-400 max-w-2xl mx-auto">Everything you need to build, deploy, and scale modern applications with AI assistance.</p>
</div>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Feature 1 -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.1s;">
<div class="w-12 h-12 rounded-xl bg-indigo-500/20 flex items-center justify-center mb-4">
<i data-lucide="brain" class="w-6 h-6 text-indigo-400"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">AI Code Generation</h3>
<p class="text-slate-400 text-sm leading-relaxed">Generate production-ready code from natural language descriptions with context-aware suggestions.</p>
</div>
<!-- Feature 2 -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.2s;">
<div class="w-12 h-12 rounded-xl bg-purple-500/20 flex items-center justify-center mb-4">
<i data-lucide="git-branch" class="w-6 h-6 text-purple-400"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">Smart Version Control</h3>
<p class="text-slate-400 text-sm leading-relaxed">Intelligent branching and merging with AI-powered conflict resolution and code review.</p>
</div>
<!-- Feature 3 -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.3s;">
<div class="w-12 h-12 rounded-xl bg-pink-500/20 flex items-center justify-center mb-4">
<i data-lucide="shield-check" class="w-6 h-6 text-pink-400"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">Security Scanning</h3>
<p class="text-slate-400 text-sm leading-relaxed">Real-time vulnerability detection and automated security patches for your codebase.</p>
</div>
<!-- Feature 4 -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.4s;">
<div class="w-12 h-12 rounded-xl bg-blue-500/20 flex items-center justify-center mb-4">
<i data-lucide="cloud" class="w-6 h-6 text-blue-400"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">One-Click Deploy</h3>
<p class="text-slate-400 text-sm leading-relaxed">Deploy to global edge networks with automatic SSL, CDN, and performance optimization.</p>
</div>
<!-- Feature 5 -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.5s;">
<div class="w-12 h-12 rounded-xl bg-emerald-500/20 flex items-center justify-center mb-4">
<i data-lucide="users" class="w-6 h-6 text-emerald-400"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">Team Collaboration</h3>
<p class="text-slate-400 text-sm leading-relaxed">Real-time collaborative editing with AI-assisted pair programming and knowledge sharing.</p>
</div>
<!-- Feature 6 -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.6s;">
<div class="w-12 h-12 rounded-xl bg-orange-500/20 flex items-center justify-center mb-4">
<i data-lucide="bar-chart-3" class="w-6 h-6 text-orange-400"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">Analytics Dashboard</h3>
<p class="text-slate-400 text-sm leading-relaxed">Comprehensive insights into code quality, performance metrics, and team productivity.</p>
</div>
</div>
</div>
</section>
<!-- Interactive Playground -->
<section id="playground" class="py-20 relative">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12 reveal">
<h2 class="text-3xl sm:text-4xl font-bold mb-4">Try It <span class="text-gradient">Now</span></h2>
<p class="text-slate-400 max-w-2xl mx-auto">Experience the power of AI-assisted coding in our interactive playground.</p>
</div>
<div class="glass rounded-2xl p-1 reveal">
<div class="bg-slate-900/50 rounded-xl overflow-hidden">
<!-- Toolbar -->
<div class="flex items-center justify-between p-4 border-b border-slate-800">
<div class="flex items-center gap-4">
<div class="flex items-center gap-2">
<label class="text-sm text-slate-400">Language:</label>
<select id="languageSelect" onchange="updatePlayground()" class="bg-slate-800 text-white text-sm rounded-lg px-3 py-1.5 border border-slate-700 focus:border-indigo-500 focus:outline-none">
<option value="javascript">JavaScript</option>
<option value="python">Python</option>
<option value="typescript">TypeScript</option>
<option value="rust">Rust</option>
</select>
</div>
<div class="flex items-center gap-2">
<label class="text-sm text-slate-400">Theme:</label>
<select id="editorTheme" onchange="updateTheme()" class="bg-slate-800 text-white text-sm rounded-lg px-3 py-1.5 border border-slate-700 focus:border-indigo-500 focus:outline-none">
<option value="dark">Dark</option>
<option value="light">Light</option>
</select>
</div>
</div>
<div class="flex items-center gap-2">
<button onclick="resetCode()" class="p-2 hover:bg-slate-800 rounded-lg transition-colors tooltip" data-tip="Reset">
<i data-lucide="rotate-ccw" class="w-4 h-4 text-slate-400"></i>
</button>
<button onclick="runCode()" id="runBtn" class="flex items-center gap-2 px-4 py-2 bg-green-600 hover:bg-green-700 text-white text-sm font-medium rounded-lg transition-all">
<i data-lucide="play" class="w-4 h-4"></i>
<span>Run</span>
</button>
</div>
</div>
<!-- Editor Area -->
<div class="grid lg:grid-cols-2 divide-y lg:divide-y-0 lg:divide-x divide-slate-800">
<div class="p-4">
<textarea id="codeEditor" class="w-full h-80 bg-transparent text-slate-300 font-mono text-sm resize-none focus:outline-none" spellcheck="false">// Write your code here
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log("Fibonacci sequence:");
for (let i = 0; i < 10; i++) {
console.log(`F(${i}) = ${fibonacci(i)}`);
}</textarea>
</div>
<div class="p-4 bg-slate-950">
<div class="flex items-center justify-between mb-3">
<span class="text-sm text-slate-500 font-mono">Output</span>
<button onclick="clearOutput()" class="text-xs text-slate-500 hover:text-slate-300">Clear</button>
</div>
<div id="outputArea" class="font-mono text-sm text-slate-300 h-80 overflow-auto">
<span class="text-slate-600">// Click Run to execute code...</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Pricing Section -->
<section id="pricing" class="py-20 relative">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12 reveal">
<h2 class="text-3xl sm:text-4xl font-bold mb-4">Simple <span class="text-gradient">Pricing</span></h2>
<p class="text-slate-400 max-w-2xl mx-auto">Choose the plan that fits your needs. Upgrade or downgrade anytime.</p>
<!-- Billing Toggle -->
<div class="flex items-center justify-center gap-4 mt-8">
<span class="text-sm text-slate-400" id="monthlyLabel">Monthly</span>
<button onclick="toggleBilling()" class="relative w-14 h-7 bg-slate-700 rounded-full transition-colors" id="billingToggle">
<div class="absolute top-1 left-1 w-5 h-5 bg-white rounded-full transition-transform" id="billingKnob"></div>
</button>
<span class="text-sm text-slate-400" id="yearlyLabel">Yearly <span class="text-green-400 text-xs">Save 20%</span></span>
</div>
</div>
<div class="grid md:grid-cols-3 gap-6 max-w-5xl mx-auto">
<!-- Free Plan -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.1s;">
<div class="mb-6">
<h3 class="text-lg font-semibold text-white mb-2">Starter</h3>
<p class="text-slate-400 text-sm">Perfect for learning and small projects</p>
</div>
<div class="mb-6">
<span class="text-4xl font-bold text-white">$0</span>
<span class="text-slate-400">/month</span>
</div>
<ul class="space-y-3 mb-6">
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
100 AI generations/month
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Community support
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Basic analytics
</li>
<li class="flex items-center gap-3 text-sm text-slate-500">
<i data-lucide="x" class="w-4 h-4"></i>
Priority support
</li>
</ul>
<button class="w-full py-3 border border-slate-600 text-white rounded-lg hover:bg-slate-800 transition-all">Get Started</button>
</div>
<!-- Pro Plan -->
<div class="glass-card p-6 rounded-2xl border-indigo-500/30 relative reveal" style="transition-delay: 0.2s;">
<div class="absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-gradient-to-r from-indigo-600 to-purple-600 text-white text-xs font-medium rounded-full">
Most Popular
</div>
<div class="mb-6">
<h3 class="text-lg font-semibold text-white mb-2">Professional</h3>
<p class="text-slate-400 text-sm">For serious developers and teams</p>
</div>
<div class="mb-6">
<span class="text-4xl font-bold text-white" id="proPrice">$29</span>
<span class="text-slate-400">/month</span>
</div>
<ul class="space-y-3 mb-6">
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Unlimited AI generations
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Priority support
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Advanced analytics
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Team collaboration
</li>
</ul>
<button class="w-full py-3 bg-gradient-to-r from-indigo-600 to-purple-600 text-white rounded-lg hover:opacity-90 transition-all">Start Free Trial</button>
</div>
<!-- Enterprise Plan -->
<div class="glass-card p-6 rounded-2xl reveal" style="transition-delay: 0.3s;">
<div class="mb-6">
<h3 class="text-lg font-semibold text-white mb-2">Enterprise</h3>
<p class="text-slate-400 text-sm">Custom solutions for large organizations</p>
</div>
<div class="mb-6">
<span class="text-4xl font-bold text-white">Custom</span>
</div>
<ul class="space-y-3 mb-6">
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Everything in Pro
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Dedicated infrastructure
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
SLA guarantee
</li>
<li class="flex items-center gap-3 text-sm text-slate-300">
<i data-lucide="check" class="w-4 h-4 text-green-400"></i>
Custom integrations
</li>
</ul>
<button class="w-full py-3 border border-slate-600 text-white rounded-lg hover:bg-slate-800 transition-all">Contact Sales</button>
</div>
</div>
</div>
</section>
<!-- Testimonials Marquee -->
<section class="py-20 overflow-hidden">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-12">
<h2 class="text-3xl sm:text-4xl font-bold text-center mb-4">Loved by <span class="text-gradient">Developers</span></h2>
</div>
<div class="relative">
<div class="flex gap-6 animate-marquee" id="testimonialTrack">
<!-- Testimonials injected via JS -->
</div>
</div>
</section>
<!-- CTA Section -->
<section class="py-20 relative">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="glass rounded-3xl p-8 sm:p-12 text-center relative overflow-hidden reveal">
<div class="absolute inset-0 bg-gradient-to-r from-indigo-600/20 to-purple-600/20"></div>
<div class="relative z-10">
<h2 class="text-3xl sm:text-4xl font-bold text-white mb-4">Ready to Transform Your Workflow?</h2>
<p class="text-slate-300 mb-8 max-w-xl mx-auto">Join thousands of developers who are already building faster and smarter with AnyCoder.</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center">
<button class="px-8 py-4 bg-white text-slate-900 font-semibold rounded-xl hover:bg-slate-100 transition-all">
Get Started Free
</button>
<button class="px-8 py-4 border border-white/20 text-white font-semibold rounded-xl hover:bg-white/10 transition-all">
Schedule Demo
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="border-t border-slate-800/50 py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid md:grid-cols-4 gap-8 mb-8">
<div>
<div class="flex items-center gap-2 mb-4">
<div class="w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center">
<i data-lucide="code-2" class="w-4 h-4 text-white"></i>
</div>
<span class="text-lg font-bold text-white">AnyCoder</span>
</div>
<p class="text-slate-400 text-sm">Empowering developers with AI-driven tools for the future of software development.</p>
</div>
<div>
<h4 class="text-white font-semibold mb-4">Product</h4>
<ul class="space-y-2 text-sm text-slate-400">
<li><a href="#" class="hover:text-white transition-colors">Features</a></li>
<li><a href="#" class="hover:text-white transition-colors">Pricing</a></li>
<li><a href="#" class="hover:text-white transition-colors">Changelog</a></li>
<li><a href="#" class="hover:text-white transition-colors">Roadmap</a></li>
</ul>
</div>
<div>
<h4 class="text-white font-semibold mb-4">Resources</h4>
<ul class="space-y-2 text-sm text-slate-400">
<li><a href="#" class="hover:text-white transition-colors">Documentation</a></li>
<li><a href="#" class="hover:text-white transition-colors">API Reference</a></li>
<li><a href="#" class="hover:text-white transition-colors">Community</a></li>
<li><a href="#" class="hover:text-white transition-colors">Blog</a></li>
</ul>
</div>
<div>
<h4 class="text-white font-semibold mb-4">Connect</h4>
<div class="flex gap-3">
<a href="#" class="w-10 h-10 rounded-lg bg-slate-800 flex items-center justify-center hover:bg-slate-700 transition-colors">
<i data-lucide="github" class="w-5 h-5 text-slate-400"></i>
</a>
<a href="#" class="w-10 h-10 rounded-lg bg-slate-800 flex items-center justify-center hover:bg-slate-700 transition-colors">
<i data-lucide="twitter" class="w-5 h-5 text-slate-400"></i>
</a>
<a href="#" class="w-10 h-10 rounded-lg bg-slate-800 flex items-center justify-center hover:bg-slate-700 transition-colors">
<i data-lucide="linkedin" class="w-5 h-5 text-slate-400"></i>
</a>
<a href="#" class="w-10 h-10 rounded-lg bg-slate-800 flex items-center justify-center hover:bg-slate-700 transition-colors">
<i data-lucide="youtube" class="w-5 h-5 text-slate-400"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-slate-800/50 pt-8 flex flex-col sm:flex-row justify-between items-center gap-4">
<p class="text-slate-500 text-sm">© 2024 AnyCoder. All rights reserved.</p>
<div class="flex gap-6 text-sm text-slate-500">
<a href="#" class="hover:text-white transition-colors">Privacy Policy</a>
<a href="#" class="hover:text-white transition-colors">Terms of Service</a>
</div>
</div>
</div>
</footer>
<!-- Toast Notification -->
<div id="toast" class="fixed bottom-4 right-4 glass px-6 py-4 rounded-xl shadow-2xl transform translate-y-20 opacity-0 transition-all duration-300 z-50 flex items-center gap-3">
<i data-lucide="check-circle" class="w-5 h-5 text-green-400"></i>
<span id="toastMessage" class="text-white text-sm">Action completed successfully!</span>
</div>
<script>
// Initialize Lucide Icons
lucide.createIcons();
// Typewriter Effect
const codeSnippets = [
`import { useState } from 'react';
export default function App() {
const [count, setCount] = useState(0);
return (
<button onClick={() => setCount(c => c + 1)}>
Count: {count}
</button>
);
}`,
`async function fetchData() {
const response = await fetch('/api/data');
const data = await response.json();
return data.map(item => ({
...item,
processed: true
}));
}`,
`const fibonacci = (n) => {
if (n <= 1) return n;
return fibonacci(n - 1) +
fibonacci(n - 2);
};
console.log(fibonacci(10));`
];
let currentSnippet = 0;
let charIndex = 0;
let isDeleting = false;
const typewriterElement = document.getElementById('typewriter');
function typeWriter() {
const current = codeSnippets[currentSnippet];
if (isDeleting) {
typewriterElement.textContent = current.substring(0, charIndex - 1);
charIndex--;
} else {
typewriterElement.textContent = current.substring(0, charIndex + 1);
charIndex++;
}
let typeSpeed = isDeleting ? 30 : 50;
if (!isDeleting && charIndex === current.length) {
typeSpeed = 2000;
isDeleting = true;
} else if (isDeleting && charIndex === 0) {
isDeleting = false;
currentSnippet = (currentSnippet + 1) % codeSnippets.length;
typeSpeed = 500;
}
setTimeout(typeWriter, typeSpeed);
}
typeWriter();
// Scroll Reveal Animation
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('active');
}
});
}, observerOptions);
document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
// Mobile Menu Toggle
function toggleMobileMenu() {
const menu = document.getElementById('mobileMenu');
menu.classList.toggle('hidden');
}
// Smooth Scroll
function scrollToSection(id) {
document.getElementById(id).scrollIntoView({ behavior: 'smooth' });
}
// Copy Code
function copyCode() {
const code = codeSnippets[0];
navigator.clipboard.writeText(code);
showToast('Code copied to clipboard!');
}
// Toast Notification
function showToast(message) {
const toast = document.getElementById('toast');
document.getElementById('toastMessage').textContent = message;
toast.classList.remove('translate-y-20', 'opacity-0');
setTimeout(() => {
toast.classList.add('translate-y-20', 'opacity-0');
}, 3000);
}
// Playground Functions
const codeTemplates = {
javascript: `// Write your code here
function fibonacci(n) {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log("Fibonacci sequence:");
for (let i = 0; i < 10; i++) {
console.log(\`F(\${i}) = \${fibonacci(i)}\`);
}`,
python: `# Write your code here
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n - 1) + fibonacci(n - 2)
print("Fibonacci sequence:")
for i in range(10):
print(f"F({i}) = {fibonacci(i)}")`,
typescript: `// Write your code here
function fibonacci(n: number): number {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log("Fibonacci sequence:");
for (let i: number = 0; i < 10; i++) {
console.log(\`F(\${i}) = \${fibonacci(i)}\`);
}`,
rust: `// Write your code here
fn fibonacci(n: u32) -> u32 {
match n {
0 | 1 => n,
_ => fibonacci(n - 1) + fibonacci(n - 2),
}
}
fn main() {
println!("Fibonacci sequence:");
for i in 0..10 {
println!("F({}) = {}", i, fibonacci(i));
}
}`
};
function updatePlayground() {
const lang = document.getElementById('languageSelect').value;
document.getElementById('codeEditor').value = codeTemplates[lang];
}
function updateTheme() {
const theme = document.getElementById('editorTheme').value;
const editor = document.getElementById('codeEditor');
const output = document.getElementById('outputArea');
if (theme === 'light') {
editor.classList.remove('text-slate-300');
editor.classList.add('text-slate-800'); |