Samad14 commited on
Commit
627ac39
·
1 Parent(s): 076e8f2

redesign: BioFlow AI void-dark theme — new landing page, dashboard, Three.js DNA helix, Lenis smooth scroll

Browse files
bioai-platform/frontend/package-lock.json CHANGED
@@ -10,12 +10,16 @@
10
  "dependencies": {
11
  "@supabase/ssr": "^0.12.0",
12
  "@supabase/supabase-js": "^2.49.4",
 
13
  "axios": "^1.7.9",
 
 
14
  "lucide-react": "^0.474.0",
15
  "next": "^14.2.23",
16
  "react": "^18.3.1",
17
  "react-dom": "^18.3.1",
18
- "react-hot-toast": "^2.5.2"
 
19
  },
20
  "devDependencies": {
21
  "@types/node": "^22.13.4",
@@ -42,6 +46,12 @@
42
  "url": "https://github.com/sponsors/sindresorhus"
43
  }
44
  },
 
 
 
 
 
 
45
  "node_modules/@emnapi/core": {
46
  "version": "1.10.0",
47
  "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
@@ -627,6 +637,12 @@
627
  "tslib": "^2.4.0"
628
  }
629
  },
 
 
 
 
 
 
630
  "node_modules/@tybys/wasm-util": {
631
  "version": "0.10.2",
632
  "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz",
@@ -683,6 +699,32 @@
683
  "@types/react": "^18.0.0"
684
  }
685
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
686
  "node_modules/@typescript-eslint/eslint-plugin": {
687
  "version": "8.61.0",
688
  "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.61.0.tgz",
@@ -2903,6 +2945,12 @@
2903
  "reusify": "^1.0.4"
2904
  }
2905
  },
 
 
 
 
 
 
2906
  "node_modules/file-entry-cache": {
2907
  "version": "6.0.1",
2908
  "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
@@ -3051,6 +3099,33 @@
3051
  "url": "https://github.com/sponsors/rawify"
3052
  }
3053
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3054
  "node_modules/fs.realpath": {
3055
  "version": "1.0.0",
3056
  "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@@ -4110,6 +4185,37 @@
4110
  "node": ">=0.10"
4111
  }
4112
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4113
  "node_modules/levn": {
4114
  "version": "0.4.1",
4115
  "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
@@ -4214,6 +4320,12 @@
4214
  "node": ">= 8"
4215
  }
4216
  },
 
 
 
 
 
 
4217
  "node_modules/micromatch": {
4218
  "version": "4.0.8",
4219
  "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
@@ -4282,6 +4394,21 @@
4282
  "node": ">=16 || 14 >=14.17"
4283
  }
4284
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4285
  "node_modules/ms": {
4286
  "version": "2.1.3",
4287
  "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -5948,6 +6075,12 @@
5948
  "node": ">=0.8"
5949
  }
5950
  },
 
 
 
 
 
 
5951
  "node_modules/tinyglobby": {
5952
  "version": "0.2.17",
5953
  "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
 
10
  "dependencies": {
11
  "@supabase/ssr": "^0.12.0",
12
  "@supabase/supabase-js": "^2.49.4",
13
+ "@types/three": "^0.184.1",
14
  "axios": "^1.7.9",
15
+ "framer-motion": "^12.40.0",
16
+ "lenis": "^1.3.23",
17
  "lucide-react": "^0.474.0",
18
  "next": "^14.2.23",
19
  "react": "^18.3.1",
20
  "react-dom": "^18.3.1",
21
+ "react-hot-toast": "^2.5.2",
22
+ "three": "^0.184.0"
23
  },
24
  "devDependencies": {
25
  "@types/node": "^22.13.4",
 
46
  "url": "https://github.com/sponsors/sindresorhus"
47
  }
48
  },
49
+ "node_modules/@dimforge/rapier3d-compat": {
50
+ "version": "0.12.0",
51
+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",
52
+ "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",
53
+ "license": "Apache-2.0"
54
+ },
55
  "node_modules/@emnapi/core": {
56
  "version": "1.10.0",
57
  "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
 
637
  "tslib": "^2.4.0"
638
  }
639
  },
640
+ "node_modules/@tweenjs/tween.js": {
641
+ "version": "23.1.3",
642
+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",
643
+ "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",
644
+ "license": "MIT"
645
+ },
646
  "node_modules/@tybys/wasm-util": {
647
  "version": "0.10.2",
648
  "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz",
 
699
  "@types/react": "^18.0.0"
700
  }
701
  },
702
+ "node_modules/@types/stats.js": {
703
+ "version": "0.17.4",
704
+ "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",
705
+ "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",
706
+ "license": "MIT"
707
+ },
708
+ "node_modules/@types/three": {
709
+ "version": "0.184.1",
710
+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.184.1.tgz",
711
+ "integrity": "sha512-6q4VdiqVsrTRqmk62/BnlcAvIrnDM0zf2ZDVKI5kZiniWrSaOHaQzmbp+BNzoggc/8tgW412pL//wZIxu2PPTA==",
712
+ "license": "MIT",
713
+ "dependencies": {
714
+ "@dimforge/rapier3d-compat": "~0.12.0",
715
+ "@tweenjs/tween.js": "~23.1.3",
716
+ "@types/stats.js": "*",
717
+ "@types/webxr": ">=0.5.17",
718
+ "fflate": "~0.8.2",
719
+ "meshoptimizer": "~1.1.1"
720
+ }
721
+ },
722
+ "node_modules/@types/webxr": {
723
+ "version": "0.5.24",
724
+ "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",
725
+ "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",
726
+ "license": "MIT"
727
+ },
728
  "node_modules/@typescript-eslint/eslint-plugin": {
729
  "version": "8.61.0",
730
  "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.61.0.tgz",
 
2945
  "reusify": "^1.0.4"
2946
  }
2947
  },
2948
+ "node_modules/fflate": {
2949
+ "version": "0.8.3",
2950
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",
2951
+ "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",
2952
+ "license": "MIT"
2953
+ },
2954
  "node_modules/file-entry-cache": {
2955
  "version": "6.0.1",
2956
  "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
 
3099
  "url": "https://github.com/sponsors/rawify"
3100
  }
3101
  },
3102
+ "node_modules/framer-motion": {
3103
+ "version": "12.40.0",
3104
+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.40.0.tgz",
3105
+ "integrity": "sha512-uaBd3qC1v3KQqBEjwTUd183K6PbS+j0yR9w9VmEOLWA/tnUcSn8Xa3uck7t4dgpDoUss8xQTcj8W2L07lrnLFg==",
3106
+ "license": "MIT",
3107
+ "dependencies": {
3108
+ "motion-dom": "^12.40.0",
3109
+ "motion-utils": "^12.39.0",
3110
+ "tslib": "^2.4.0"
3111
+ },
3112
+ "peerDependencies": {
3113
+ "@emotion/is-prop-valid": "*",
3114
+ "react": "^18.0.0 || ^19.0.0",
3115
+ "react-dom": "^18.0.0 || ^19.0.0"
3116
+ },
3117
+ "peerDependenciesMeta": {
3118
+ "@emotion/is-prop-valid": {
3119
+ "optional": true
3120
+ },
3121
+ "react": {
3122
+ "optional": true
3123
+ },
3124
+ "react-dom": {
3125
+ "optional": true
3126
+ }
3127
+ }
3128
+ },
3129
  "node_modules/fs.realpath": {
3130
  "version": "1.0.0",
3131
  "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
 
4185
  "node": ">=0.10"
4186
  }
4187
  },
4188
+ "node_modules/lenis": {
4189
+ "version": "1.3.23",
4190
+ "resolved": "https://registry.npmjs.org/lenis/-/lenis-1.3.23.tgz",
4191
+ "integrity": "sha512-YxYq3TJqj9sJNv0V9SkyQHejt14xwyIwgDaaMK89Uf9SxQfIszu+gTQSSphh6BWlLTNVKvvXAGkg+Zf+oFIevg==",
4192
+ "license": "MIT",
4193
+ "workspaces": [
4194
+ "packages/*",
4195
+ "playground",
4196
+ "playground/*"
4197
+ ],
4198
+ "funding": {
4199
+ "type": "github",
4200
+ "url": "https://github.com/sponsors/darkroomengineering"
4201
+ },
4202
+ "peerDependencies": {
4203
+ "@nuxt/kit": ">=3.0.0",
4204
+ "react": ">=17.0.0",
4205
+ "vue": ">=3.0.0"
4206
+ },
4207
+ "peerDependenciesMeta": {
4208
+ "@nuxt/kit": {
4209
+ "optional": true
4210
+ },
4211
+ "react": {
4212
+ "optional": true
4213
+ },
4214
+ "vue": {
4215
+ "optional": true
4216
+ }
4217
+ }
4218
+ },
4219
  "node_modules/levn": {
4220
  "version": "0.4.1",
4221
  "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
 
4320
  "node": ">= 8"
4321
  }
4322
  },
4323
+ "node_modules/meshoptimizer": {
4324
+ "version": "1.1.1",
4325
+ "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz",
4326
+ "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==",
4327
+ "license": "MIT"
4328
+ },
4329
  "node_modules/micromatch": {
4330
  "version": "4.0.8",
4331
  "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
 
4394
  "node": ">=16 || 14 >=14.17"
4395
  }
4396
  },
4397
+ "node_modules/motion-dom": {
4398
+ "version": "12.40.0",
4399
+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.40.0.tgz",
4400
+ "integrity": "sha512-HxU3ZaBwNPVQUBQf1xxgq+7JrPNZvjLVxgbpEZL7RrWJnsxOf0/OM+yrHG9ogLQ31Do/r57Oz2gQWPK+6q62mg==",
4401
+ "license": "MIT",
4402
+ "dependencies": {
4403
+ "motion-utils": "^12.39.0"
4404
+ }
4405
+ },
4406
+ "node_modules/motion-utils": {
4407
+ "version": "12.39.0",
4408
+ "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.39.0.tgz",
4409
+ "integrity": "sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==",
4410
+ "license": "MIT"
4411
+ },
4412
  "node_modules/ms": {
4413
  "version": "2.1.3",
4414
  "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
 
6075
  "node": ">=0.8"
6076
  }
6077
  },
6078
+ "node_modules/three": {
6079
+ "version": "0.184.0",
6080
+ "resolved": "https://registry.npmjs.org/three/-/three-0.184.0.tgz",
6081
+ "integrity": "sha512-wtTRjG92pM5eUg/KuUnHsqSAlPM296brTOcLgMRqEeylYTh/CdtvKUvCyyCQTzFuStieWxvZb8mVTMvdPyUpxg==",
6082
+ "license": "MIT"
6083
+ },
6084
  "node_modules/tinyglobby": {
6085
  "version": "0.2.17",
6086
  "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
bioai-platform/frontend/package.json CHANGED
@@ -11,12 +11,16 @@
11
  "dependencies": {
12
  "@supabase/ssr": "^0.12.0",
13
  "@supabase/supabase-js": "^2.49.4",
 
14
  "axios": "^1.7.9",
 
 
15
  "lucide-react": "^0.474.0",
16
  "next": "^14.2.23",
17
  "react": "^18.3.1",
18
  "react-dom": "^18.3.1",
19
- "react-hot-toast": "^2.5.2"
 
20
  },
21
  "devDependencies": {
22
  "@types/node": "^22.13.4",
 
11
  "dependencies": {
12
  "@supabase/ssr": "^0.12.0",
13
  "@supabase/supabase-js": "^2.49.4",
14
+ "@types/three": "^0.184.1",
15
  "axios": "^1.7.9",
16
+ "framer-motion": "^12.40.0",
17
+ "lenis": "^1.3.23",
18
  "lucide-react": "^0.474.0",
19
  "next": "^14.2.23",
20
  "react": "^18.3.1",
21
  "react-dom": "^18.3.1",
22
+ "react-hot-toast": "^2.5.2",
23
+ "three": "^0.184.0"
24
  },
25
  "devDependencies": {
26
  "@types/node": "^22.13.4",
bioai-platform/frontend/src/app/(dashboard)/layout.tsx CHANGED
@@ -1,110 +1,306 @@
1
  'use client';
2
 
3
- import { useEffect, useState } from 'react';
4
  import Link from 'next/link';
5
  import { usePathname } from 'next/navigation';
6
- import { Dna, FileText, Settings, Play, LogOut, Loader2, Search, User } from 'lucide-react';
 
 
 
 
 
 
 
 
 
 
 
7
  import { useAuth } from '@/contexts/auth';
8
- import { getJobCount } from '@/lib/api';
9
- import { GuestBanner } from '@/components/GuestBanner';
10
  import { ThemeToggle } from '@/components/ThemeToggle';
11
 
12
- const navItems = [
13
- { href: '/analyze', label: 'Analyze', icon: Play },
14
- { href: '/jobs', label: 'Jobs', icon: FileText },
15
- { href: '/retrieve', label: 'Retrieve', icon: Search },
16
- { href: '/settings', label: 'Settings', icon: Settings },
17
- ];
 
18
 
19
- export default function DashboardLayout({ children }: { children: React.ReactNode }) {
20
- const pathname = usePathname();
21
- const { user, loading: authLoading, isGuest, signIn, signOut } = useAuth();
22
- const [usage, setUsage] = useState({ count: 0, limit: 10, remaining: 10 });
23
-
24
- useEffect(() => {
25
- getJobCount().then(setUsage).catch(() => {});
26
- }, [pathname]);
27
-
28
- if (authLoading) {
29
- return (
30
- <div className="min-h-screen flex items-center justify-center">
31
- <Loader2 className="w-8 h-8 text-teal-600 animate-spin" />
32
- </div>
33
- );
34
- }
35
-
36
- const usagePct = usage.limit > 0 ? ((usage.limit - usage.remaining) / usage.limit) * 100 : 0;
37
 
 
 
 
 
 
 
 
 
 
 
 
38
  return (
39
- <div className="min-h-screen flex">
40
- <aside className="w-64 bg-white border-r border-gray-200 flex flex-col">
41
- <div className="h-16 border-b border-gray-200 px-4 flex items-center gap-2">
42
- <Dna className="w-7 h-7 text-teal-600" />
43
- <span className="text-lg font-bold text-gray-900">Bio Nexus</span>
44
- </div>
45
- <nav className="flex-1 p-4 space-y-1">
46
- {navItems.map((item) => {
47
- const active = pathname === item.href || pathname.startsWith(item.href + '/');
48
- return (
49
- <Link
50
- key={item.href}
51
- href={item.href}
52
- className={`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition ${active ? 'bg-teal-50 text-teal-700' : 'text-gray-600 hover:bg-gray-50 hover:text-gray-900'}`}
53
- >
54
- <item.icon className="w-5 h-5" />
55
- {item.label}
56
- </Link>
57
- );
58
- })}
59
- </nav>
60
- <div className="px-4 py-2 border-t border-gray-200">
61
- <ThemeToggle />
62
  </div>
63
- <div className="p-4 border-t border-gray-200 space-y-4">
64
- <div className="flex items-center justify-between text-xs text-gray-500">
65
- {isGuest ? (
66
- <div className="flex items-center gap-2">
67
- <User className="w-4 h-4 text-amber-500" />
68
- <span className="text-amber-600 font-medium">Guest</span>
69
- </div>
70
- ) : (
71
- <span className="truncate">{user?.email}</span>
72
- )}
73
- {user && (
74
- <button onClick={signOut} className="p-1 hover:text-red-500 transition" title="Sign out">
75
- <LogOut className="w-4 h-4" />
76
- </button>
77
- )}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  </div>
79
- {isGuest ? (
80
- <div className="space-y-2">
81
- <p className="text-xs text-gray-500">Running as guest. Results saved for 24 hours.</p>
82
- <button
83
- onClick={signIn}
84
- className="w-full px-3 py-2 bg-teal-600 text-white text-xs font-medium rounded-lg hover:bg-teal-700 transition"
 
 
 
 
 
 
 
 
 
 
85
  >
86
- Sign in to save permanently
87
- </button>
88
- </div>
89
- ) : (
90
- <div>
91
- <div className="text-xs text-gray-500 mb-2">Free tier</div>
92
- <div className="text-sm font-medium text-gray-700">
93
- {usage.remaining} jobs remaining today
94
- </div>
95
- <div className="mt-2 h-1.5 bg-gray-200 rounded-full overflow-hidden">
96
- <div className="h-full bg-teal-500 rounded-full transition-all" style={{ width: `${usagePct}%` }} />
97
- </div>
 
 
 
98
  </div>
99
  )}
100
- </div>
101
- </aside>
102
- <main className="flex-1 overflow-auto">
103
- <div className="max-w-5xl mx-auto px-6 py-8">
104
- <GuestBanner />
105
- {children}
106
- </div>
107
- </main>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  </div>
109
  );
110
  }
 
1
  'use client';
2
 
3
+ import { useState, useEffect } from 'react';
4
  import Link from 'next/link';
5
  import { usePathname } from 'next/navigation';
6
+ import { motion, AnimatePresence } from 'framer-motion';
7
+ import {
8
+ LayoutDashboard,
9
+ FlaskConical,
10
+ Clock,
11
+ Search,
12
+ Settings,
13
+ ChevronRight,
14
+ LogOut,
15
+ Dna,
16
+ Menu,
17
+ } from 'lucide-react';
18
  import { useAuth } from '@/contexts/auth';
 
 
19
  import { ThemeToggle } from '@/components/ThemeToggle';
20
 
21
+ const NAV_ITEMS = [
22
+ { href: '/dashboard', icon: LayoutDashboard, label: 'Dashboard' },
23
+ { href: '/analyze', icon: FlaskConical, label: 'Analyze' },
24
+ { href: '/retrieve', icon: Search, label: 'Retrieve' },
25
+ { href: '/jobs', icon: Clock, label: 'Jobs' },
26
+ { href: '/settings', icon: Settings, label: 'Settings' },
27
+ ] as const;
28
 
29
+ const labelVariants = {
30
+ hidden: { opacity: 0, width: 0, transition: { duration: 0.15 } },
31
+ show: { opacity: 1, width: 'auto', transition: { duration: 0.2, delay: 0.05 } },
32
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
+ function SidebarContent({
35
+ collapsed,
36
+ pathname,
37
+ user,
38
+ signOut,
39
+ }: {
40
+ collapsed: boolean;
41
+ pathname: string;
42
+ user: { email?: string | null } | null;
43
+ signOut: () => void;
44
+ }) {
45
  return (
46
+ <div className="flex flex-col h-full py-4">
47
+ <div className={`flex items-center gap-3 px-4 pb-5 mb-1 ${collapsed ? 'justify-center' : ''}`}>
48
+ <div
49
+ className="w-7 h-7 rounded-lg flex items-center justify-center flex-shrink-0"
50
+ style={{
51
+ background: 'rgba(0,245,212,0.1)',
52
+ border: '1px solid rgba(0,245,212,0.25)',
53
+ boxShadow: '0 0 12px rgba(0,245,212,0.1)',
54
+ }}
55
+ >
56
+ <Dna size={14} className="text-accent-cyan" />
 
 
 
 
 
 
 
 
 
 
 
 
57
  </div>
58
+
59
+ <AnimatePresence>
60
+ {!collapsed && (
61
+ <motion.span
62
+ key="logo-text"
63
+ variants={labelVariants}
64
+ initial="hidden"
65
+ animate="show"
66
+ exit="hidden"
67
+ className="font-display text-sm font-semibold overflow-hidden whitespace-nowrap"
68
+ >
69
+ Bio<span className="text-gradient">Flow</span>
70
+ <span className="text-accent-cyan">_</span>AI
71
+ </motion.span>
72
+ )}
73
+ </AnimatePresence>
74
+ </div>
75
+
76
+ <div className="divider mx-4 mb-3" />
77
+
78
+ <nav className="flex-1 px-3 space-y-0.5">
79
+ {NAV_ITEMS.map(({ href, icon: Icon, label }) => {
80
+ const active = pathname === href || (href !== '/dashboard' && pathname.startsWith(href + '/'));
81
+
82
+ return (
83
+ <Link
84
+ key={href}
85
+ href={href}
86
+ className={`nav-item ${active ? 'active' : ''} ${collapsed ? 'justify-center' : ''} group`}
87
+ >
88
+ {active && (
89
+ <motion.div
90
+ layoutId="nav-indicator"
91
+ className="absolute left-0 inset-y-[6px] w-[3px] rounded-full"
92
+ style={{ background: 'var(--accent-cyan)' }}
93
+ transition={{ type: 'spring', stiffness: 380, damping: 35 }}
94
+ />
95
+ )}
96
+
97
+ <Icon
98
+ size={16}
99
+ className="flex-shrink-0"
100
+ strokeWidth={active ? 2 : 1.75}
101
+ />
102
+
103
+ <AnimatePresence>
104
+ {!collapsed && (
105
+ <motion.span
106
+ key={`label-${href}`}
107
+ variants={labelVariants}
108
+ initial="hidden"
109
+ animate="show"
110
+ exit="hidden"
111
+ className="overflow-hidden whitespace-nowrap text-sm"
112
+ >
113
+ {label}
114
+ </motion.span>
115
+ )}
116
+ </AnimatePresence>
117
+
118
+ {collapsed && (
119
+ <div
120
+ className="absolute left-full ml-3 px-2.5 py-1.5 rounded-lg text-xs whitespace-nowrap text-text-primary pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity z-[100]"
121
+ style={{
122
+ background: 'var(--bg-surface-2)',
123
+ border: '1px solid var(--glass-border)',
124
+ boxShadow: '0 4px 16px rgba(0,0,0,0.5)',
125
+ }}
126
+ >
127
+ {label}
128
+ </div>
129
+ )}
130
+ </Link>
131
+ );
132
+ })}
133
+ </nav>
134
+
135
+ <div className="px-3 pt-3 space-y-1">
136
+ <div className="divider mb-3" />
137
+
138
+ {user && !collapsed && (
139
+ <div className="px-3 py-2">
140
+ <p className="text-[11px] text-text-muted font-mono truncate">
141
+ {user.email ?? 'Guest session'}
142
+ </p>
143
  </div>
144
+ )}
145
+
146
+ <button
147
+ onClick={signOut}
148
+ className={`nav-item w-full text-left hover:!text-red-400 hover:!bg-red-500/10 ${collapsed ? 'justify-center' : ''} group`}
149
+ >
150
+ <LogOut size={15} className="flex-shrink-0" strokeWidth={1.75} />
151
+ <AnimatePresence>
152
+ {!collapsed && (
153
+ <motion.span
154
+ key="signout-label"
155
+ variants={labelVariants}
156
+ initial="hidden"
157
+ animate="show"
158
+ exit="hidden"
159
+ className="overflow-hidden whitespace-nowrap text-sm"
160
  >
161
+ Sign out
162
+ </motion.span>
163
+ )}
164
+ </AnimatePresence>
165
+
166
+ {collapsed && (
167
+ <div
168
+ className="absolute left-full ml-3 px-2.5 py-1.5 rounded-lg text-xs whitespace-nowrap text-text-primary pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity z-[100]"
169
+ style={{
170
+ background: 'var(--bg-surface-2)',
171
+ border: '1px solid var(--glass-border)',
172
+ boxShadow: '0 4px 16px rgba(0,0,0,0.5)',
173
+ }}
174
+ >
175
+ Sign out
176
  </div>
177
  )}
178
+ </button>
179
+ </div>
180
+ </div>
181
+ );
182
+ }
183
+
184
+ export default function DashboardLayout({ children }: { children: React.ReactNode }) {
185
+ const pathname = usePathname();
186
+ const { user, signOut } = useAuth();
187
+ const [collapsed, setCollapsed] = useState(false);
188
+ const [mobileOpen, setMobileOpen] = useState(false);
189
+
190
+ useEffect(() => { setMobileOpen(false); }, [pathname]);
191
+
192
+ const sidebarBg = {
193
+ background: 'rgba(8, 8, 18, 0.75)',
194
+ borderRight: '1px solid rgba(100, 110, 180, 0.10)',
195
+ backdropFilter: 'blur(24px) saturate(160%)',
196
+ WebkitBackdropFilter: 'blur(24px) saturate(160%)',
197
+ };
198
+
199
+ return (
200
+ <div className="flex h-screen bg-void overflow-hidden">
201
+ <motion.aside
202
+ animate={{ width: collapsed ? 68 : 220 }}
203
+ transition={{ duration: 0.28, ease: [0.25, 1, 0.5, 1] }}
204
+ className="relative hidden md:flex flex-col flex-shrink-0 overflow-visible"
205
+ style={sidebarBg}
206
+ >
207
+ <SidebarContent
208
+ collapsed={collapsed}
209
+ pathname={pathname}
210
+ user={user}
211
+ signOut={signOut}
212
+ />
213
+
214
+ <button
215
+ onClick={() => setCollapsed(!collapsed)}
216
+ className="absolute -right-3 top-6 z-10 w-6 h-6 rounded-full flex items-center justify-center transition-all"
217
+ style={{
218
+ background: 'var(--bg-surface-2)',
219
+ border: '1px solid var(--glass-border)',
220
+ }}
221
+ onMouseEnter={(e) => {
222
+ (e.currentTarget as HTMLButtonElement).style.borderColor = 'rgba(0,245,212,0.4)';
223
+ }}
224
+ onMouseLeave={(e) => {
225
+ (e.currentTarget as HTMLButtonElement).style.borderColor = 'var(--glass-border)';
226
+ }}
227
+ aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}
228
+ >
229
+ <ChevronRight
230
+ size={11}
231
+ className="text-text-muted transition-transform"
232
+ style={{ transform: collapsed ? 'rotate(0deg)' : 'rotate(180deg)' }}
233
+ />
234
+ </button>
235
+ </motion.aside>
236
+
237
+ <AnimatePresence>
238
+ {mobileOpen && (
239
+ <>
240
+ <motion.div
241
+ key="backdrop"
242
+ initial={{ opacity: 0 }}
243
+ animate={{ opacity: 1 }}
244
+ exit={{ opacity: 0 }}
245
+ transition={{ duration: 0.2 }}
246
+ className="fixed inset-0 z-40 md:hidden"
247
+ style={{ background: 'rgba(4,4,10,0.8)', backdropFilter: 'blur(8px)' }}
248
+ onClick={() => setMobileOpen(false)}
249
+ />
250
+
251
+ <motion.aside
252
+ key="drawer"
253
+ initial={{ x: -240 }}
254
+ animate={{ x: 0 }}
255
+ exit={{ x: -240 }}
256
+ transition={{ type: 'spring', damping: 32, stiffness: 300 }}
257
+ className="fixed left-0 top-0 bottom-0 w-56 z-50 md:hidden overflow-hidden"
258
+ style={sidebarBg}
259
+ >
260
+ <SidebarContent
261
+ collapsed={false}
262
+ pathname={pathname}
263
+ user={user}
264
+ signOut={signOut}
265
+ />
266
+ </motion.aside>
267
+ </>
268
+ )}
269
+ </AnimatePresence>
270
+
271
+ <div className="flex-1 flex flex-col min-w-0 overflow-hidden">
272
+ <header
273
+ className="flex items-center gap-4 px-6 py-4 flex-shrink-0"
274
+ style={{
275
+ background: 'rgba(4,4,10,0.6)',
276
+ borderBottom: '1px solid rgba(100,110,180,0.09)',
277
+ backdropFilter: 'blur(12px)',
278
+ }}
279
+ >
280
+ <button
281
+ onClick={() => setMobileOpen(true)}
282
+ className="md:hidden text-text-muted hover:text-text-primary transition-colors"
283
+ aria-label="Open navigation"
284
+ >
285
+ <Menu size={18} />
286
+ </button>
287
+
288
+ <div className="flex-1">
289
+ <span className="text-xs font-mono text-text-muted capitalize">
290
+ {pathname.split('/').filter(Boolean).join(' · ')}
291
+ </span>
292
+ </div>
293
+
294
+ <ThemeToggle />
295
+ </header>
296
+
297
+ <main className="flex-1 overflow-y-auto relative">
298
+ <div className="absolute inset-0 bg-grid pointer-events-none opacity-[0.025]" />
299
+ <div className="relative z-10 max-w-content mx-auto px-6 py-8">
300
+ {children}
301
+ </div>
302
+ </main>
303
+ </div>
304
  </div>
305
  );
306
  }
bioai-platform/frontend/src/app/globals.css CHANGED
@@ -2,99 +2,379 @@
2
  @tailwind components;
3
  @tailwind utilities;
4
 
 
 
5
  :root {
6
- --bg-base: #FFFFFF;
7
- --bg-surface: #F9FAFB;
8
- --bg-elevated: #FFFFFF;
9
- --border-subtle: #E5E7EB;
10
- --accent: #2DD4BF;
11
- --accent-bright: #14B8A6;
12
- --accent-glow: rgba(45, 212, 191, 0.15);
13
- --text-primary: #111827;
14
- --text-secondary: #6B7280;
15
- --text-tertiary: #9CA3AF;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  --error: #EF4444;
 
 
 
 
 
17
  }
18
 
19
- .dark {
20
- --bg-base: #0A0E14;
21
- --bg-surface: #11161F;
22
- --bg-elevated: #1A212E;
23
- --border-subtle: #232B3A;
24
- --accent: #2DD4BF;
25
- --accent-bright: #5EEAD4;
26
- --accent-glow: rgba(45, 212, 191, 0.15);
27
- --text-primary: #E6EDF3;
28
- --text-secondary: #8B97A8;
29
- --text-tertiary: #5C6878;
30
- --error: #F87171;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
 
33
- body {
34
- background-color: var(--bg-surface);
35
- color: var(--text-primary);
36
- min-height: 100vh;
37
- transition: background-color 0.15s ease, color 0.15s ease;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
 
40
  @layer utilities {
41
- .text-balance { text-wrap: balance; }
42
- .glow-accent { box-shadow: 0 0 20px var(--accent-glow); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  }
44
 
45
- .dark .bg-white { background-color: var(--bg-elevated); }
46
- .dark .bg-gray-50 { background-color: var(--bg-surface); }
47
- .dark .bg-gray-100 { background-color: var(--bg-surface); }
48
- .dark .bg-gray-200 { background-color: var(--bg-surface); }
49
- .dark .divide-gray-100 > * + * { border-color: var(--border-subtle); }
50
- .dark .text-gray-900 { color: var(--text-primary); }
51
- .dark .text-gray-800 { color: var(--text-primary); }
52
- .dark .text-gray-700 { color: var(--text-secondary); }
53
- .dark .text-gray-600 { color: var(--text-secondary); }
54
- .dark .text-gray-500 { color: var(--text-tertiary); }
55
- .dark .text-gray-400 { color: var(--text-tertiary); }
56
- .dark .text-gray-300 { color: var(--text-tertiary); }
57
- .dark .border-gray-200 { border-color: var(--border-subtle); }
58
- .dark .border-gray-100 { border-color: var(--border-subtle); }
59
- .dark .border-gray-300 { border-color: var(--border-subtle); }
60
- .dark .hover\:bg-gray-50:hover { background-color: var(--bg-surface); }
61
- .dark .hover\:text-gray-900:hover { color: var(--text-primary); }
62
- .dark .hover\:text-gray-700:hover { color: var(--text-secondary); }
63
- .dark .hover\:border-gray-300:hover { border-color: var(--border-subtle); }
64
- .dark .bg-teal-50 { background-color: rgba(45, 212, 191, 0.08); }
65
- .dark .hover\:border-teal-300:hover { border-color: var(--accent); }
66
- .dark .text-teal-700 { color: var(--accent-bright); }
67
- .dark .bg-amber-50 { background-color: rgba(251, 191, 36, 0.1); }
68
- .dark .text-amber-700 { color: #FBBF24; }
69
- .dark .border-amber-200 { border-color: rgba(251, 191, 36, 0.2); }
70
- .dark .bg-red-50 { background-color: rgba(248, 113, 113, 0.1); }
71
- .dark .text-red-700 { color: var(--error); }
72
- .dark .text-red-900 { color: var(--error); }
73
- .dark .border-red-200 { border-color: rgba(248, 113, 113, 0.2); }
74
- .dark .bg-gradient-to-br { background-image: none; background-color: var(--bg-surface); }
75
- .dark .bg-gradient-to-b { background-image: none; background-color: var(--bg-surface); }
76
- .dark .bg-white\/80 { background-color: rgba(26, 33, 46, 0.85); backdrop-filter: blur(12px); }
77
- .dark .bg-gray-900 { background-color: var(--bg-surface); }
78
- .dark .bg-gray-800 { background-color: var(--bg-elevated); }
79
- .dark .border-gray-300 { border-color: var(--border-subtle); }
80
- .dark .border-gray-400 { border-color: var(--border-subtle); }
81
- .dark .bg-teal-100 { background-color: rgba(45, 212, 191, 0.12); }
82
- .dark .text-teal-800 { color: var(--accent-bright); }
83
- .dark .text-teal-700 { color: var(--accent-bright); }
84
- .dark .text-teal-600 { color: var(--accent); }
85
- .dark .bg-blue-100 { background-color: rgba(96, 165, 250, 0.12); }
86
- .dark .text-blue-800 { color: #93C5FD; }
87
- .dark .bg-yellow-100 { background-color: rgba(251, 191, 36, 0.12); }
88
- .dark .text-yellow-800 { color: #FDE68A; }
89
- .dark .bg-red-100 { background-color: rgba(248, 113, 113, 0.12); }
90
- .dark .text-red-800 { color: #FCA5A5; }
91
- .dark .text-blue-600 { color: #60A5FA; }
92
- .dark .text-purple-600 { color: #A78BFA; }
93
- .dark .bg-purple-50 { background-color: rgba(167, 139, 250, 0.08); }
94
- .dark input,
95
- .dark textarea,
96
- .dark select {
97
- background-color: var(--bg-elevated);
98
- color: var(--text-primary);
99
  }
100
- .dark select option { background-color: var(--bg-elevated); color: var(--text-primary); }
 
2
  @tailwind components;
3
  @tailwind utilities;
4
 
5
+ @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
6
+
7
  :root {
8
+ --bg-void: #04040A;
9
+ --bg-surface-0: #080812;
10
+ --bg-surface-1: #0D0D1A;
11
+ --bg-surface-2: #111122;
12
+ --bg-surface-3: #151528;
13
+
14
+ --accent-cyan: #00F5D4;
15
+ --accent-purple: #8B5CF6;
16
+ --accent-amber: #F59E0B;
17
+
18
+ --accent-cyan-10: rgba(0, 245, 212, 0.10);
19
+ --accent-cyan-20: rgba(0, 245, 212, 0.20);
20
+ --accent-cyan-30: rgba(0, 245, 212, 0.30);
21
+ --accent-purple-10: rgba(139, 92, 246, 0.10);
22
+ --accent-purple-20: rgba(139, 92, 246, 0.20);
23
+ --accent-amber-10: rgba(245, 158, 11, 0.10);
24
+ --accent-amber-20: rgba(245, 158, 11, 0.20);
25
+
26
+ --text-primary: #F0F0FF;
27
+ --text-secondary: #8890AA;
28
+ --text-muted: #4A4F6A;
29
+
30
+ --glass-bg: rgba(13, 13, 26, 0.55);
31
+ --glass-bg-hover: rgba(17, 17, 34, 0.70);
32
+ --glass-border: rgba(100, 110, 180, 0.12);
33
+ --glass-border-hover: rgba(100, 110, 180, 0.22);
34
+ --glass-blur: 20px;
35
+
36
+ --glow-cyan: rgba(0, 245, 212, 0.18);
37
+ --glow-purple: rgba(139, 92, 246, 0.18);
38
+ --glow-amber: rgba(245, 158, 11, 0.18);
39
+
40
  --error: #EF4444;
41
+ --error-dim: rgba(239, 68, 68, 0.15);
42
+
43
+ --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
44
+ --transition-default: 250ms cubic-bezier(0.25, 0.1, 0.25, 1);
45
+ --transition-slow: 400ms cubic-bezier(0.25, 1, 0.5, 1);
46
  }
47
 
48
+ @layer base {
49
+ html {
50
+ scroll-behavior: smooth;
51
+ text-rendering: optimizeLegibility;
52
+ -webkit-text-size-adjust: 100%;
53
+ }
54
+
55
+ body {
56
+ background-color: var(--bg-void);
57
+ color: var(--text-primary);
58
+ font-family: 'Inter', system-ui, sans-serif;
59
+ -webkit-font-smoothing: antialiased;
60
+ -moz-osx-font-smoothing: grayscale;
61
+ overflow-x: hidden;
62
+ }
63
+
64
+ h1, h2, h3, h4, h5, h6 {
65
+ font-family: 'Space Grotesk', sans-serif;
66
+ font-weight: 600;
67
+ letter-spacing: -0.02em;
68
+ color: var(--text-primary);
69
+ }
70
+
71
+ code, pre, kbd, samp {
72
+ font-family: 'JetBrains Mono', monospace;
73
+ }
74
+
75
+ ::-webkit-scrollbar { width: 4px; height: 4px; }
76
+ ::-webkit-scrollbar-track { background: var(--bg-surface-0); }
77
+ ::-webkit-scrollbar-thumb {
78
+ background: var(--glass-border);
79
+ border-radius: 2px;
80
+ transition: background var(--transition-default);
81
+ }
82
+ ::-webkit-scrollbar-thumb:hover {
83
+ background: var(--accent-cyan-30);
84
+ }
85
+
86
+ ::selection {
87
+ background: var(--accent-cyan-20);
88
+ color: var(--text-primary);
89
+ }
90
+
91
+ :focus-visible {
92
+ outline: 1.5px solid var(--accent-cyan);
93
+ outline-offset: 3px;
94
+ border-radius: 4px;
95
+ }
96
  }
97
 
98
+ @layer components {
99
+ .glass {
100
+ background: var(--glass-bg);
101
+ border: 1px solid var(--glass-border);
102
+ backdrop-filter: blur(var(--glass-blur));
103
+ -webkit-backdrop-filter: blur(var(--glass-blur));
104
+ transition:
105
+ background var(--transition-default),
106
+ border-color var(--transition-default),
107
+ box-shadow var(--transition-default);
108
+ }
109
+
110
+ .glass:hover {
111
+ background: var(--glass-bg-hover);
112
+ border-color: var(--glass-border-hover);
113
+ }
114
+
115
+ .glass-card {
116
+ background: var(--glass-bg);
117
+ border: 1px solid var(--glass-border);
118
+ backdrop-filter: blur(var(--glass-blur));
119
+ -webkit-backdrop-filter: blur(var(--glass-blur));
120
+ border-radius: 1rem;
121
+ transition:
122
+ background var(--transition-default),
123
+ border-color var(--transition-default),
124
+ box-shadow var(--transition-slow),
125
+ transform var(--transition-slow);
126
+ }
127
+
128
+ .glass-card:hover {
129
+ background: var(--glass-bg-hover);
130
+ border-color: var(--glass-border-hover);
131
+ box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
132
+ }
133
+
134
+ .glass-panel {
135
+ background: rgba(8, 8, 18, 0.75);
136
+ border: 1px solid var(--glass-border);
137
+ backdrop-filter: blur(32px) saturate(180%);
138
+ -webkit-backdrop-filter: blur(32px) saturate(180%);
139
+ }
140
+
141
+ .text-gradient {
142
+ background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
143
+ -webkit-background-clip: text;
144
+ -webkit-text-fill-color: transparent;
145
+ background-clip: text;
146
+ }
147
+
148
+ .text-gradient-warm {
149
+ background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-cyan) 100%);
150
+ -webkit-background-clip: text;
151
+ -webkit-text-fill-color: transparent;
152
+ background-clip: text;
153
+ }
154
+
155
+ .glow-cyan {
156
+ box-shadow:
157
+ 0 0 20px var(--glow-cyan),
158
+ 0 0 60px rgba(0, 245, 212, 0.06);
159
+ }
160
+
161
+ .glow-purple {
162
+ box-shadow:
163
+ 0 0 20px var(--glow-purple),
164
+ 0 0 60px rgba(139, 92, 246, 0.06);
165
+ }
166
+
167
+ .glow-amber {
168
+ box-shadow:
169
+ 0 0 20px var(--glow-amber),
170
+ 0 0 40px rgba(245, 158, 11, 0.05);
171
+ }
172
+
173
+ .text-glow-cyan { text-shadow: 0 0 16px var(--glow-cyan); }
174
+ .text-glow-purple { text-shadow: 0 0 16px var(--glow-purple); }
175
+
176
+ .btn-primary {
177
+ display: inline-flex;
178
+ align-items: center;
179
+ gap: 0.5rem;
180
+ padding: 0.75rem 1.75rem;
181
+ border-radius: 9999px;
182
+ background: var(--accent-cyan);
183
+ color: var(--bg-void);
184
+ font-family: 'Space Grotesk', sans-serif;
185
+ font-weight: 600;
186
+ font-size: 0.875rem;
187
+ letter-spacing: 0.01em;
188
+ transition:
189
+ background var(--transition-fast),
190
+ box-shadow var(--transition-default),
191
+ transform var(--transition-fast);
192
+ box-shadow: 0 0 20px var(--glow-cyan);
193
+ }
194
+
195
+ .btn-primary:hover {
196
+ background: #00dbbe;
197
+ transform: translateY(-1px);
198
+ box-shadow: 0 0 30px var(--accent-cyan-30), 0 4px 20px rgba(0, 0, 0, 0.4);
199
+ }
200
+
201
+ .btn-primary:active {
202
+ transform: translateY(0);
203
+ }
204
+
205
+ .btn-ghost {
206
+ display: inline-flex;
207
+ align-items: center;
208
+ gap: 0.5rem;
209
+ padding: 0.75rem 1.5rem;
210
+ border-radius: 9999px;
211
+ border: 1px solid var(--glass-border);
212
+ color: var(--text-secondary);
213
+ font-size: 0.875rem;
214
+ transition:
215
+ border-color var(--transition-fast),
216
+ color var(--transition-fast),
217
+ background var(--transition-fast);
218
+ }
219
+
220
+ .btn-ghost:hover {
221
+ border-color: var(--accent-cyan-30);
222
+ color: var(--accent-cyan);
223
+ background: var(--accent-cyan-10);
224
+ }
225
+
226
+ .input-glass {
227
+ width: 100%;
228
+ padding: 0.625rem 0.875rem;
229
+ background: var(--bg-surface-1);
230
+ border: 1px solid var(--glass-border);
231
+ border-radius: 0.625rem;
232
+ color: var(--text-primary);
233
+ font-family: 'Inter', sans-serif;
234
+ font-size: 0.875rem;
235
+ transition:
236
+ border-color var(--transition-fast),
237
+ box-shadow var(--transition-fast);
238
+ outline: none;
239
+ }
240
+
241
+ .input-glass::placeholder {
242
+ color: var(--text-muted);
243
+ }
244
+
245
+ .input-glass:focus {
246
+ border-color: var(--accent-cyan-30);
247
+ box-shadow: 0 0 0 3px var(--accent-cyan-10);
248
+ }
249
+
250
+ .nav-item {
251
+ display: flex;
252
+ align-items: center;
253
+ gap: 0.75rem;
254
+ padding: 0.6rem 0.75rem;
255
+ border-radius: 0.75rem;
256
+ color: var(--text-muted);
257
+ font-size: 0.875rem;
258
+ font-weight: 500;
259
+ transition:
260
+ color var(--transition-fast),
261
+ background var(--transition-fast);
262
+ position: relative;
263
+ }
264
+
265
+ .nav-item:hover {
266
+ color: var(--text-primary);
267
+ background: var(--glass-bg);
268
+ }
269
+
270
+ .nav-item.active {
271
+ color: var(--accent-cyan);
272
+ background: var(--accent-cyan-10);
273
+ }
274
+
275
+ .badge {
276
+ display: inline-flex;
277
+ align-items: center;
278
+ padding: 0.2rem 0.6rem;
279
+ border-radius: 9999px;
280
+ font-size: 0.65rem;
281
+ font-family: 'JetBrains Mono', monospace;
282
+ font-weight: 500;
283
+ letter-spacing: 0.05em;
284
+ text-transform: uppercase;
285
+ }
286
+
287
+ .badge-cyan {
288
+ background: var(--accent-cyan-10);
289
+ border: 1px solid var(--accent-cyan-20);
290
+ color: var(--accent-cyan);
291
+ }
292
+
293
+ .badge-purple {
294
+ background: var(--accent-purple-10);
295
+ border: 1px solid var(--accent-purple-20);
296
+ color: var(--accent-purple);
297
+ }
298
+
299
+ .divider {
300
+ height: 1px;
301
+ background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
302
+ }
303
  }
304
 
305
  @layer utilities {
306
+ .bg-grid {
307
+ background-image:
308
+ linear-gradient(rgba(100, 110, 255, 0.06) 1px, transparent 1px),
309
+ linear-gradient(90deg, rgba(100, 110, 255, 0.06) 1px, transparent 1px);
310
+ background-size: 48px 48px;
311
+ }
312
+
313
+ .bg-dots {
314
+ background-image: radial-gradient(rgba(100, 110, 255, 0.15) 1px, transparent 1px);
315
+ background-size: 24px 24px;
316
+ }
317
+
318
+ .bg-vignette {
319
+ background: radial-gradient(
320
+ ellipse 80% 80% at 50% 50%,
321
+ transparent 20%,
322
+ rgba(4, 4, 10, 0.6) 65%,
323
+ rgba(4, 4, 10, 0.97) 100%
324
+ );
325
+ }
326
+
327
+ .glow-accent {
328
+ box-shadow:
329
+ 0 0 20px rgba(0, 245, 212, 0.18),
330
+ 0 0 60px rgba(0, 245, 212, 0.06);
331
+ }
332
+
333
+ .scan-line {
334
+ position: relative;
335
+ overflow: hidden;
336
+ }
337
+
338
+ .scan-line::after {
339
+ content: '';
340
+ position: absolute;
341
+ inset-inline: 0;
342
+ height: 2px;
343
+ background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
344
+ opacity: 0.6;
345
+ animation: scan 2.5s ease-in-out infinite;
346
+ pointer-events: none;
347
+ }
348
+
349
+ .noise {
350
+ position: relative;
351
+ }
352
+
353
+ .noise::before {
354
+ content: '';
355
+ position: absolute;
356
+ inset: 0;
357
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
358
+ opacity: 0.04;
359
+ pointer-events: none;
360
+ z-index: 0;
361
+ }
362
+
363
+ .canvas-host {
364
+ position: absolute;
365
+ inset: 0;
366
+ pointer-events: none;
367
+ z-index: 0;
368
+ }
369
  }
370
 
371
+ @media (prefers-reduced-motion: reduce) {
372
+ *,
373
+ *::before,
374
+ *::after {
375
+ animation-duration: 0.01ms !important;
376
+ animation-iteration-count: 1 !important;
377
+ transition-duration: 0.01ms !important;
378
+ scroll-behavior: auto !important;
379
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
  }
 
bioai-platform/frontend/src/app/page.tsx CHANGED
@@ -1,159 +1,375 @@
1
  'use client';
2
 
 
3
  import Link from 'next/link';
4
- import { Dna, Zap, Brain, Database, ChevronRight, ArrowRight } from 'lucide-react';
5
- import { SequenceTypewriter } from '@/components/SequenceTypewriter';
6
- import { ThemeToggle } from '@/components/ThemeToggle';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
- export default function Home() {
9
  return (
10
- <div className="min-h-screen">
11
- <nav className="border-b border-gray-100 bg-white/80 backdrop-blur-sm sticky top-0 z-50">
12
- <div className="max-w-6xl mx-auto px-6 h-16 flex items-center justify-between">
13
- <div className="flex items-center gap-2">
14
- <Dna className="w-8 h-8 text-teal-600" />
15
- <span className="text-xl font-bold text-gray-900 font-display">Bio Nexus</span>
16
- </div>
17
- <div className="flex items-center gap-2">
18
- <ThemeToggle compact />
19
- <Link href="/auth" className="text-sm text-gray-600 hover:text-gray-900 font-medium">
20
- Sign in
21
- </Link>
22
- <Link
23
- href="/analyze"
24
- className="px-5 py-2 bg-teal-600 text-white text-sm font-medium rounded-lg hover:bg-teal-700 transition"
25
- >
26
- Get started
27
- </Link>
28
- </div>
 
 
 
 
 
 
 
29
  </div>
30
  </nav>
31
 
32
- <section className="max-w-6xl mx-auto px-6 pt-20 pb-24">
33
- <div className="grid lg:grid-cols-2 gap-16 items-center">
34
- <div className="animate-fadeUp">
35
- <div className="inline-flex items-center gap-2 px-3 py-1.5 bg-teal-50 border border-teal-200 rounded-full text-xs font-medium text-teal-700 mb-6">
36
- <span className="w-1.5 h-1.5 rounded-full bg-teal-500" />
37
- Free for academic researchers
38
- </div>
39
- <h1 className="text-5xl font-bold text-gray-900 leading-tight tracking-tight font-display">
40
- One interface for every{' '}
41
- <span className="text-teal-600">bioinformatics</span>{' '}
42
- tool you use.
43
- </h1>
44
- <p className="mt-6 text-lg text-gray-600 leading-relaxed">
45
- BLAST, UniProt, AlphaFold, docking, MSA, pathway analysis — run from a single dashboard.
46
- No command line. No juggling browser tabs.
47
- </p>
48
- <div className="mt-10 flex items-center gap-4">
49
- <Link
50
- href="/analyze"
51
- className="inline-flex items-center gap-2 px-8 py-4 bg-teal-600 text-white font-semibold rounded-xl hover:bg-teal-700 transition text-lg"
52
- >
53
- Start analyzing
54
- <ArrowRight className="w-5 h-5" />
55
- </Link>
56
- <Link
57
- href="/auth"
58
- className="px-8 py-4 bg-white border border-gray-200 text-gray-700 font-medium rounded-xl hover:border-teal-300 hover:text-teal-700 transition text-lg"
59
- >
60
- Sign in
61
- </Link>
62
- </div>
63
- <p className="mt-4 text-sm text-gray-400">
64
- No credit card required. No spam. Ever.
65
- </p>
66
- </div>
67
 
68
- <div className="animate-fadeUp" style={{ animationDelay: '0.2s' }}>
69
- <SequenceTypewriter />
70
- </div>
71
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  </section>
73
 
74
- <section className="border-t border-gray-100 bg-gray-50 py-24">
75
- <div className="max-w-6xl mx-auto px-6">
76
- <h2 className="text-3xl font-bold text-center text-gray-900 mb-4 font-display">
77
- Everything you need, nothing you don't
78
- </h2>
79
- <p className="text-gray-500 text-center max-w-2xl mx-auto mb-16">
80
- From sequence to insight in minutes. Built for wet-lab researchers who need answers, not a terminal.
81
  </p>
82
- <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
83
- {[
84
- { icon: Database, title: 'BLAST + UniProt', desc: 'Run searches and pull annotations in seconds. Cached for speed.' },
85
- { icon: Brain, title: 'AI Interpretation', desc: 'Every result explained in plain language with citations to primary sources.' },
86
- { icon: Zap, title: 'AlphaFold Structures', desc: 'Fetch 3D predictions for 200M+ proteins. Interactive 3D viewer built in.' },
87
- { icon: Dna, title: 'Drug Discovery', desc: 'ChEMBL bioactivity, PubChem compounds, molecular docking — all connected.' },
88
- ].map((f, i) => (
89
- <div
90
- key={f.title}
91
- className="bg-white rounded-2xl border border-gray-200 p-6 hover:border-teal-300 hover:shadow-lg transition animate-fadeUp"
92
- style={{ animationDelay: `${0.1 * i}s` }}
 
93
  >
94
- <div className="w-10 h-10 bg-teal-50 rounded-xl flex items-center justify-center mb-4">
95
- <f.icon className="w-5 h-5 text-teal-600" />
96
- </div>
97
- <h3 className="font-semibold text-gray-900 mb-2">{f.title}</h3>
98
- <p className="text-gray-600 text-sm leading-relaxed">{f.desc}</p>
99
- </div>
100
  ))}
101
- </div>
102
  </div>
103
  </section>
104
 
105
- <section className="py-24">
106
- <div className="max-w-6xl mx-auto px-6">
107
- <h2 className="text-3xl font-bold text-center text-gray-900 mb-4 font-display">
108
- Three clicks. One answer.
 
 
 
 
 
 
 
 
 
109
  </h2>
110
- <p className="text-gray-500 text-center max-w-xl mx-auto mb-16">
111
- No dropdown menus with 50 options. No parameters you've never heard of. Just paste, pick, and learn.
112
  </p>
113
- <div className="grid md:grid-cols-3 gap-8 max-w-4xl mx-auto">
114
- {[
115
- { step: '1', text: 'Paste your protein sequence or FASTA file' },
116
- { step: '2', text: 'Pick a tool — BLAST, structure, docking, anything' },
117
- { step: '3', text: 'Get results with AI explanation you can cite' },
118
- ].map((s, i) => (
119
- <div key={s.step} className="text-center animate-fadeUp" style={{ animationDelay: `${0.1 * i}s` }}>
120
- <div className="w-14 h-14 bg-teal-50 text-teal-700 rounded-2xl flex items-center justify-center text-2xl font-bold mx-auto mb-4 font-display">
121
- {s.step}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  </div>
123
- <p className="text-gray-700 font-medium">{s.text}</p>
124
- </div>
 
 
 
 
125
  ))}
126
- </div>
127
  </div>
128
  </section>
129
 
130
- <section className="bg-gray-900 py-24">
131
- <div className="max-w-6xl mx-auto px-6 text-center">
132
- <h2 className="text-3xl font-bold text-white mb-4 font-display">
133
- Ready to analyze?
 
 
 
 
 
 
 
 
 
134
  </h2>
135
- <p className="text-gray-400 max-w-xl mx-auto mb-8">
136
- No account needed. Paste a sequence and get BLAST results + AI interpretation in under 3 minutes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  </p>
138
- <Link
139
- href="/analyze"
140
- className="inline-flex items-center gap-2 px-8 py-4 bg-teal-500 text-white font-semibold rounded-xl hover:bg-teal-400 transition text-lg"
141
- >
142
- Start your first analysis
143
- <ChevronRight className="w-5 h-5" />
 
 
 
144
  </Link>
145
- </div>
146
  </section>
147
 
148
- <footer className="border-t border-gray-200 bg-white py-8">
149
- <div className="max-w-6xl mx-auto px-6 flex items-center justify-between text-sm text-gray-500">
150
- <div className="flex items-center gap-2">
151
- <Dna className="w-5 h-5 text-teal-600" />
152
- <span className="font-medium">Bio Nexus</span>
153
- </div>
154
- <span>Built for Indian computational biology researchers</span>
 
 
155
  </div>
156
  </footer>
157
- </div>
158
  );
159
  }
 
1
  'use client';
2
 
3
+ import dynamic from 'next/dynamic';
4
  import Link from 'next/link';
5
+ import { useRef } from 'react';
6
+ import { motion, useScroll, useTransform } from 'framer-motion';
7
+ import { ArrowRight, Database, Zap, Brain, ChevronDown } from 'lucide-react';
8
+
9
+ const DNAHelix = dynamic(
10
+ () => import('@/components/three/DNAHelix'),
11
+ { ssr: false, loading: () => <div className="w-full h-full bg-void" /> }
12
+ );
13
+
14
+ const DATABASES = ['NCBI', 'UniProt', 'PDB', 'KEGG', 'Ensembl', 'STRING', 'EMBL', 'Pfam'];
15
+
16
+ const PIPELINE = [
17
+ { step: '01', label: 'Sequence Input', sub: 'FASTA / accession ID' },
18
+ { step: '02', label: 'BLAST Search', sub: 'EBI BLAST + NCBI' },
19
+ { step: '03', label: 'UniProt Lookup', sub: 'Annotation & function' },
20
+ { step: '04', label: 'Structure Prediction', sub: 'AlphaFold 3D viewer' },
21
+ { step: '05', label: 'AI Interpretation', sub: 'Plain-language insight' },
22
+ ];
23
+
24
+ const FEATURES = [
25
+ {
26
+ icon: Database,
27
+ color: '#00F5D4',
28
+ title: 'Unified Access',
29
+ body: 'NCBI, UniProt, PDB, KEGG, Ensembl — one plain-English query retrieves across every major database simultaneously.',
30
+ },
31
+ {
32
+ icon: Zap,
33
+ color: '#8B5CF6',
34
+ title: 'Pipeline Automation',
35
+ body: 'BLAST → UniProt → AlphaFold runs sequentially, hands-free. Real-time progress via SSE, results assembled automatically.',
36
+ },
37
+ {
38
+ icon: Brain,
39
+ color: '#F59E0B',
40
+ title: 'AI Interpretation',
41
+ body: 'Every result is narrated in plain language. Clinical relevance, evolutionary context, functional insights — streamed live.',
42
+ },
43
+ ];
44
+
45
+ const fadeUp = {
46
+ hidden: { opacity: 0, y: 24 },
47
+ show: { opacity: 1, y: 0, transition: { duration: 0.6, ease: [0.25, 1, 0.5, 1] as const } },
48
+ };
49
+
50
+ const stagger = {
51
+ show: { transition: { staggerChildren: 0.1 } },
52
+ };
53
+
54
+ export default function LandingPage() {
55
+ const heroRef = useRef<HTMLDivElement>(null);
56
+
57
+ const { scrollYProgress } = useScroll({
58
+ target: heroRef,
59
+ offset: ['start start', 'end start'],
60
+ });
61
+
62
+ const helixY = useTransform(scrollYProgress, [0, 1], ['0%', '28%']);
63
+ const helixOpacity = useTransform(scrollYProgress, [0, 0.55], [1, 0]);
64
+ const textY = useTransform(scrollYProgress, [0, 1], ['0%', '18%']);
65
+ const textOpacity = useTransform(scrollYProgress, [0, 0.4], [1, 0]);
66
 
 
67
  return (
68
+ <main className="relative bg-void text-text-primary overflow-x-hidden">
69
+ <nav
70
+ className="fixed top-0 inset-x-0 z-50 flex items-center justify-between px-8 py-5"
71
+ style={{ backdropFilter: 'blur(12px)', WebkitBackdropFilter: 'blur(12px)' }}
72
+ >
73
+ <span className="font-display text-sm font-semibold tracking-widest uppercase">
74
+ Bio<span className="text-gradient">Flow</span>
75
+ <span className="text-accent-cyan">_</span>AI
76
+ </span>
77
+
78
+ <div className="flex items-center gap-6">
79
+ <Link href="#features" className="hidden sm:block text-xs text-text-muted hover:text-text-primary transition-colors tracking-wide">
80
+ Features
81
+ </Link>
82
+ <Link href="#pipeline" className="hidden sm:block text-xs text-text-muted hover:text-text-primary transition-colors tracking-wide">
83
+ Pipeline
84
+ </Link>
85
+ <Link
86
+ href="/auth"
87
+ className="text-xs px-4 py-2 rounded-full border border-glass-border text-text-secondary hover:border-accent-cyan/40 hover:text-accent-cyan transition-all"
88
+ >
89
+ Sign in
90
+ </Link>
91
+ <Link href="/dashboard" className="btn-primary text-xs py-2 px-4">
92
+ Get started
93
+ </Link>
94
  </div>
95
  </nav>
96
 
97
+ <section
98
+ ref={heroRef}
99
+ className="relative h-screen flex items-center justify-center overflow-hidden"
100
+ >
101
+ <motion.div
102
+ style={{ y: helixY, opacity: helixOpacity }}
103
+ className="absolute inset-0 z-0"
104
+ >
105
+ <DNAHelix className="w-full h-full" />
106
+ </motion.div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
+ <div className="absolute inset-0 z-[1] bg-grid pointer-events-none opacity-40" />
109
+ <div className="absolute inset-0 z-[2] bg-vignette pointer-events-none" />
110
+
111
+ <div
112
+ className="absolute z-[1] w-[40vw] h-[40vw] rounded-full pointer-events-none"
113
+ style={{
114
+ top: '20%', left: '10%',
115
+ background: 'radial-gradient(circle, rgba(0,245,212,0.07) 0%, transparent 70%)',
116
+ filter: 'blur(40px)',
117
+ }}
118
+ />
119
+ <div
120
+ className="absolute z-[1] w-[35vw] h-[35vw] rounded-full pointer-events-none"
121
+ style={{
122
+ bottom: '15%', right: '8%',
123
+ background: 'radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%)',
124
+ filter: 'blur(40px)',
125
+ }}
126
+ />
127
+
128
+ <motion.div
129
+ style={{ y: textY, opacity: textOpacity }}
130
+ className="relative z-10 text-center max-w-4xl px-6"
131
+ >
132
+ <motion.p
133
+ variants={fadeUp}
134
+ initial="hidden"
135
+ animate="show"
136
+ transition={{ delay: 0.2 }}
137
+ className="text-[10px] tracking-[0.35em] uppercase text-accent-cyan mb-7 font-mono"
138
+ >
139
+ Bioinformatics · Automated · AI-powered
140
+ </motion.p>
141
+
142
+ <motion.h1
143
+ variants={fadeUp}
144
+ initial="hidden"
145
+ animate="show"
146
+ transition={{ delay: 0.4 }}
147
+ className="font-display font-bold leading-[0.92] tracking-tight mb-8"
148
+ style={{ fontSize: 'clamp(3.2rem, 8.5vw, 7.5rem)' }}
149
+ >
150
+ One query.{' '}
151
+ <br className="hidden sm:block" />
152
+ <span className="text-gradient">Every database.</span>
153
+ </motion.h1>
154
+
155
+ <motion.p
156
+ variants={fadeUp}
157
+ initial="hidden"
158
+ animate="show"
159
+ transition={{ delay: 0.6 }}
160
+ className="text-text-secondary text-lg max-w-[520px] mx-auto mb-10 leading-relaxed"
161
+ >
162
+ BioFlow AI unifies NCBI, UniProt, PDB, and KEGG into a single plain-language
163
+ interface — with AI-interpreted visual results, instantly.
164
+ </motion.p>
165
+
166
+ <motion.div
167
+ variants={fadeUp}
168
+ initial="hidden"
169
+ animate="show"
170
+ transition={{ delay: 0.75 }}
171
+ className="flex flex-col sm:flex-row items-center justify-center gap-4"
172
+ >
173
+ <Link href="/dashboard" className="btn-primary">
174
+ Start analyzing
175
+ <ArrowRight size={15} />
176
+ </Link>
177
+ <Link href="#pipeline" className="btn-ghost">
178
+ See the pipeline
179
+ </Link>
180
+ </motion.div>
181
+ </motion.div>
182
+
183
+ <motion.div
184
+ className="absolute bottom-9 left-1/2 -translate-x-1/2 z-10 flex flex-col items-center gap-2 opacity-50"
185
+ animate={{ y: [0, 7, 0] }}
186
+ transition={{ repeat: Infinity, duration: 2, ease: 'easeInOut' }}
187
+ >
188
+ <ChevronDown size={14} className="text-text-muted" />
189
+ </motion.div>
190
  </section>
191
 
192
+ <section className="relative py-14 border-y border-glass-border overflow-hidden">
193
+ <div className="absolute inset-0 bg-surface-0/60" />
194
+ <div className="relative z-10">
195
+ <p className="text-center text-[10px] tracking-[0.35em] uppercase text-text-muted font-mono mb-8">
196
+ Unified access to
 
 
197
  </p>
198
+ <motion.div
199
+ variants={stagger}
200
+ initial="hidden"
201
+ whileInView="show"
202
+ viewport={{ once: true }}
203
+ className="flex flex-wrap items-center justify-center gap-x-10 gap-y-3 px-6"
204
+ >
205
+ {DATABASES.map((db) => (
206
+ <motion.span
207
+ key={db}
208
+ variants={fadeUp}
209
+ className="text-sm font-mono text-text-muted hover:text-accent-cyan transition-colors cursor-default select-none"
210
  >
211
+ {db}
212
+ </motion.span>
 
 
 
 
213
  ))}
214
+ </motion.div>
215
  </div>
216
  </section>
217
 
218
+ <section id="pipeline" className="py-28 px-6 max-w-5xl mx-auto">
219
+ <motion.div
220
+ variants={fadeUp}
221
+ initial="hidden"
222
+ whileInView="show"
223
+ viewport={{ once: true }}
224
+ className="text-center mb-20"
225
+ >
226
+ <p className="text-[10px] tracking-[0.35em] uppercase text-accent-cyan font-mono mb-4">
227
+ How it works
228
+ </p>
229
+ <h2 className="font-display text-4xl font-bold tracking-tight">
230
+ From sequence to insight
231
  </h2>
232
+ <p className="text-text-secondary mt-4 max-w-md mx-auto text-sm leading-relaxed">
233
+ Five automated stages, zero manual database switching.
234
  </p>
235
+ </motion.div>
236
+
237
+ <div className="relative">
238
+ <div className="absolute top-10 left-0 right-0 h-px hidden md:block">
239
+ <div className="h-full bg-gradient-to-r from-transparent via-glass-border to-transparent mx-12" />
240
+ </div>
241
+
242
+ <motion.div
243
+ variants={stagger}
244
+ initial="hidden"
245
+ whileInView="show"
246
+ viewport={{ once: true, margin: '-60px' }}
247
+ className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-5 gap-5"
248
+ >
249
+ {PIPELINE.map(({ step, label, sub }) => (
250
+ <motion.div
251
+ key={step}
252
+ variants={fadeUp}
253
+ whileHover={{ y: -4, transition: { duration: 0.2 } }}
254
+ className="glass-card p-5 text-center relative cursor-default"
255
+ >
256
+ <div className="w-8 h-8 rounded-full bg-accent-cyan/10 border border-accent-cyan/25 flex items-center justify-center mx-auto mb-4">
257
+ <span className="text-accent-cyan text-[10px] font-mono font-semibold">{step}</span>
258
  </div>
259
+
260
+ <p className="font-display text-[13px] font-semibold mb-1 text-text-primary">
261
+ {label}
262
+ </p>
263
+ <p className="text-[11px] text-text-muted font-mono">{sub}</p>
264
+ </motion.div>
265
  ))}
266
+ </motion.div>
267
  </div>
268
  </section>
269
 
270
+ <section id="features" className="py-28 px-6 max-w-5xl mx-auto">
271
+ <motion.div
272
+ variants={fadeUp}
273
+ initial="hidden"
274
+ whileInView="show"
275
+ viewport={{ once: true }}
276
+ className="text-center mb-20"
277
+ >
278
+ <p className="text-[10px] tracking-[0.35em] uppercase text-accent-purple font-mono mb-4">
279
+ Features
280
+ </p>
281
+ <h2 className="font-display text-4xl font-bold tracking-tight">
282
+ Everything you need
283
  </h2>
284
+ </motion.div>
285
+
286
+ <motion.div
287
+ variants={stagger}
288
+ initial="hidden"
289
+ whileInView="show"
290
+ viewport={{ once: true, margin: '-60px' }}
291
+ className="grid grid-cols-1 md:grid-cols-3 gap-6"
292
+ >
293
+ {FEATURES.map((f) => {
294
+ const Icon = f.icon;
295
+ return (
296
+ <motion.div
297
+ key={f.title}
298
+ variants={fadeUp}
299
+ whileHover={{ y: -6, transition: { duration: 0.25 } }}
300
+ className="glass-card p-7 cursor-default"
301
+ >
302
+ <div
303
+ className="w-10 h-10 rounded-xl flex items-center justify-center mb-6"
304
+ style={{
305
+ background: `${f.color}12`,
306
+ border: `1px solid ${f.color}28`,
307
+ }}
308
+ >
309
+ <Icon size={18} style={{ color: f.color }} strokeWidth={1.8} />
310
+ </div>
311
+
312
+ <h3 className="font-display text-base font-semibold mb-2 text-text-primary">
313
+ {f.title}
314
+ </h3>
315
+ <p className="text-sm text-text-secondary leading-relaxed">
316
+ {f.body}
317
+ </p>
318
+
319
+ <div
320
+ className="mt-6 h-px rounded-full"
321
+ style={{
322
+ background: `linear-gradient(90deg, ${f.color}40 0%, transparent 100%)`,
323
+ }}
324
+ />
325
+ </motion.div>
326
+ );
327
+ })}
328
+ </motion.div>
329
+ </section>
330
+
331
+ <section className="py-32 px-6 relative overflow-hidden">
332
+ <div
333
+ className="absolute inset-0 pointer-events-none"
334
+ style={{
335
+ background: 'radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,245,212,0.05) 0%, transparent 70%)',
336
+ }}
337
+ />
338
+
339
+ <motion.div
340
+ variants={fadeUp}
341
+ initial="hidden"
342
+ whileInView="show"
343
+ viewport={{ once: true }}
344
+ className="relative z-10 text-center max-w-xl mx-auto"
345
+ >
346
+ <p className="text-[10px] tracking-[0.35em] uppercase text-accent-amber font-mono mb-6">
347
+ Get started
348
  </p>
349
+ <h2 className="font-display text-4xl font-bold tracking-tight mb-5">
350
+ Ready to decode your sequences?
351
+ </h2>
352
+ <p className="text-text-secondary mb-10 leading-relaxed">
353
+ Free to start. No API keys required to run your first analysis.
354
+ </p>
355
+ <Link href="/dashboard" className="btn-primary text-base px-8 py-4">
356
+ Open BioFlow AI
357
+ <ArrowRight size={17} />
358
  </Link>
359
+ </motion.div>
360
  </section>
361
 
362
+ <footer className="border-t border-glass-border py-8 px-8 flex flex-col sm:flex-row items-center justify-between gap-4">
363
+ <span className="font-mono text-xs text-text-muted">
364
+ BioFlow AI · Built at Jamia Millia Islamia
365
+ </span>
366
+ <div className="flex items-center gap-6">
367
+ <Link href="/auth" className="text-xs text-text-muted hover:text-text-primary transition-colors">
368
+ Sign in
369
+ </Link>
370
+ <span className="text-xs text-text-muted">&copy; 2026</span>
371
  </div>
372
  </footer>
373
+ </main>
374
  );
375
  }
bioai-platform/frontend/src/app/providers.tsx CHANGED
@@ -3,11 +3,14 @@
3
  import { type ReactNode } from 'react';
4
  import { AuthProvider } from '@/contexts/auth';
5
  import { ThemeProvider } from '@/contexts/theme';
 
6
 
7
  export function Providers({ children }: { children: ReactNode }) {
8
  return (
9
- <ThemeProvider>
10
- <AuthProvider>{children}</AuthProvider>
11
- </ThemeProvider>
 
 
12
  );
13
  }
 
3
  import { type ReactNode } from 'react';
4
  import { AuthProvider } from '@/contexts/auth';
5
  import { ThemeProvider } from '@/contexts/theme';
6
+ import SmoothScrollProvider from '@/components/SmoothScrollProvider';
7
 
8
  export function Providers({ children }: { children: ReactNode }) {
9
  return (
10
+ <SmoothScrollProvider>
11
+ <ThemeProvider>
12
+ <AuthProvider>{children}</AuthProvider>
13
+ </ThemeProvider>
14
+ </SmoothScrollProvider>
15
  );
16
  }
bioai-platform/frontend/src/components/SmoothScrollProvider.tsx ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use client';
2
+
3
+ import { useEffect, useRef } from 'react';
4
+ import Lenis from 'lenis';
5
+
6
+ export default function SmoothScrollProvider({ children }: { children: React.ReactNode }) {
7
+ const lenisRef = useRef<Lenis | null>(null);
8
+
9
+ useEffect(() => {
10
+ const lenis = new Lenis({
11
+ duration: 1.25,
12
+ easing: (t: number) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
13
+ orientation: 'vertical',
14
+ smoothWheel: true,
15
+ wheelMultiplier: 0.9,
16
+ touchMultiplier: 1.5,
17
+ });
18
+ lenisRef.current = lenis;
19
+
20
+ lenis.on('scroll', () => {
21
+ window.dispatchEvent(new Event('scroll'));
22
+ });
23
+
24
+ let rafId: number;
25
+ function raf(time: number) {
26
+ lenis.raf(time);
27
+ rafId = requestAnimationFrame(raf);
28
+ }
29
+ rafId = requestAnimationFrame(raf);
30
+
31
+ return () => {
32
+ cancelAnimationFrame(rafId);
33
+ lenis.destroy();
34
+ };
35
+ }, []);
36
+
37
+ return <>{children}</>;
38
+ }
bioai-platform/frontend/src/components/ThemeToggle.tsx CHANGED
@@ -28,3 +28,5 @@ export function ThemeToggle({ compact = false }: { compact?: boolean }) {
28
  </button>
29
  );
30
  }
 
 
 
28
  </button>
29
  );
30
  }
31
+
32
+ export default ThemeToggle;
bioai-platform/frontend/src/components/three/DNAHelix.tsx ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use client';
2
+
3
+ import { useEffect, useRef } from 'react';
4
+ import * as THREE from 'three';
5
+
6
+ export default function DNAHelix({ className }: { className?: string }) {
7
+ const containerRef = useRef<HTMLDivElement>(null);
8
+
9
+ useEffect(() => {
10
+ const container = containerRef.current;
11
+ if (!container) return;
12
+
13
+ const W = container.clientWidth;
14
+ const H = container.clientHeight;
15
+
16
+ const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
17
+ renderer.setSize(W, H);
18
+ renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
19
+ renderer.setClearColor(0x000000, 0);
20
+ container.appendChild(renderer.domElement);
21
+
22
+ const scene = new THREE.Scene();
23
+ const camera = new THREE.PerspectiveCamera(52, W / H, 0.1, 100);
24
+ camera.position.set(0, 0, 10);
25
+
26
+ const matCyan = new THREE.MeshStandardMaterial({
27
+ color: new THREE.Color('#00F5D4'),
28
+ emissive: new THREE.Color('#00F5D4'),
29
+ emissiveIntensity: 0.85,
30
+ roughness: 0.08,
31
+ metalness: 0.9,
32
+ });
33
+ const matPurple = new THREE.MeshStandardMaterial({
34
+ color: new THREE.Color('#8B5CF6'),
35
+ emissive: new THREE.Color('#8B5CF6'),
36
+ emissiveIntensity: 0.85,
37
+ roughness: 0.08,
38
+ metalness: 0.9,
39
+ });
40
+ const matAmber = new THREE.MeshStandardMaterial({
41
+ color: new THREE.Color('#F59E0B'),
42
+ emissive: new THREE.Color('#F59E0B'),
43
+ emissiveIntensity: 0.45,
44
+ roughness: 0.4,
45
+ metalness: 0.5,
46
+ transparent: true,
47
+ opacity: 0.75,
48
+ });
49
+
50
+ const group = new THREE.Group();
51
+ const TURNS = 2.5;
52
+ const HEIGHT = 7.5;
53
+ const RADIUS = 1.2;
54
+ const SEGMENTS = 140;
55
+ const N_PAIRS = 20;
56
+
57
+ const pts1: THREE.Vector3[] = [];
58
+ const pts2: THREE.Vector3[] = [];
59
+ for (let i = 0; i <= SEGMENTS; i++) {
60
+ const frac = i / SEGMENTS;
61
+ const theta = frac * TURNS * Math.PI * 2;
62
+ const y = frac * HEIGHT - HEIGHT / 2;
63
+ pts1.push(new THREE.Vector3(Math.cos(theta) * RADIUS, y, Math.sin(theta) * RADIUS));
64
+ pts2.push(new THREE.Vector3(Math.cos(theta + Math.PI) * RADIUS, y, Math.sin(theta + Math.PI) * RADIUS));
65
+ }
66
+
67
+ const curve1 = new THREE.CatmullRomCurve3(pts1);
68
+ const curve2 = new THREE.CatmullRomCurve3(pts2);
69
+ group.add(new THREE.Mesh(new THREE.TubeGeometry(curve1, SEGMENTS, 0.052, 12, false), matCyan));
70
+ group.add(new THREE.Mesh(new THREE.TubeGeometry(curve2, SEGMENTS, 0.052, 12, false), matPurple));
71
+
72
+ const sphereGeo = new THREE.SphereGeometry(0.10, 20, 20);
73
+ const yAxis = new THREE.Vector3(0, 1, 0);
74
+
75
+ for (let i = 0; i < N_PAIRS; i++) {
76
+ const idx = Math.round((i / N_PAIRS) * SEGMENTS);
77
+ const p1 = pts1[idx].clone();
78
+ const p2 = pts2[idx].clone();
79
+ const dir = new THREE.Vector3().subVectors(p2, p1);
80
+ const len = dir.length();
81
+ const mid = new THREE.Vector3().addVectors(p1, p2).multiplyScalar(0.5);
82
+
83
+ const cylGeo = new THREE.CylinderGeometry(0.026, 0.026, len, 8);
84
+ const conn = new THREE.Mesh(cylGeo, matAmber);
85
+ conn.position.copy(mid);
86
+ conn.quaternion.setFromUnitVectors(yAxis, dir.normalize());
87
+ group.add(conn);
88
+
89
+ const s1 = new THREE.Mesh(sphereGeo, matCyan.clone());
90
+ s1.position.copy(p1);
91
+ const s2 = new THREE.Mesh(sphereGeo, matPurple.clone());
92
+ s2.position.copy(p2);
93
+ group.add(s1, s2);
94
+ }
95
+
96
+ scene.add(group);
97
+
98
+ const P_COUNT = 320;
99
+ const pPositions = new Float32Array(P_COUNT * 3);
100
+ const pColors = new Float32Array(P_COUNT * 3);
101
+ const cCyan = new THREE.Color('#00F5D4');
102
+ const cPurple = new THREE.Color('#8B5CF6');
103
+
104
+ for (let i = 0; i < P_COUNT; i++) {
105
+ pPositions[i * 3] = (Math.random() - 0.5) * 24;
106
+ pPositions[i * 3 + 1] = (Math.random() - 0.5) * 18;
107
+ pPositions[i * 3 + 2] = (Math.random() - 0.5) * 12 - 4;
108
+ const c = Math.random() > 0.55 ? cCyan : cPurple;
109
+ pColors[i * 3] = c.r;
110
+ pColors[i * 3 + 1] = c.g;
111
+ pColors[i * 3 + 2] = c.b;
112
+ }
113
+
114
+ const pGeo = new THREE.BufferGeometry();
115
+ pGeo.setAttribute('position', new THREE.BufferAttribute(pPositions, 3));
116
+ pGeo.setAttribute('color', new THREE.BufferAttribute(pColors, 3));
117
+ const pMat = new THREE.PointsMaterial({
118
+ size: 0.055,
119
+ vertexColors: true,
120
+ transparent: true,
121
+ opacity: 0.55,
122
+ sizeAttenuation: true,
123
+ });
124
+ const particles = new THREE.Points(pGeo, pMat);
125
+ scene.add(particles);
126
+
127
+ scene.add(new THREE.AmbientLight(0xffffff, 0.2));
128
+
129
+ const l1 = new THREE.PointLight('#00F5D4', 3.5, 25);
130
+ l1.position.set(4, 4, 5);
131
+ scene.add(l1);
132
+
133
+ const l2 = new THREE.PointLight('#8B5CF6', 3.5, 25);
134
+ l2.position.set(-4, -4, 5);
135
+ scene.add(l2);
136
+
137
+ const l3 = new THREE.PointLight('#F59E0B', 1.5, 18);
138
+ l3.position.set(0, 0, 7);
139
+ scene.add(l3);
140
+
141
+ let targetMX = 0;
142
+ let targetMY = 0;
143
+ let currentMX = 0;
144
+ let currentMY = 0;
145
+
146
+ const onMouseMove = (e: MouseEvent) => {
147
+ targetMX = (e.clientX / window.innerWidth - 0.5) * 2;
148
+ targetMY = (e.clientY / window.innerHeight - 0.5) * 2;
149
+ };
150
+ window.addEventListener('mousemove', onMouseMove);
151
+
152
+ const clock = new THREE.Clock();
153
+ let rafId: number;
154
+
155
+ const animate = () => {
156
+ rafId = requestAnimationFrame(animate);
157
+ const elapsed = clock.getElapsedTime();
158
+
159
+ currentMX += (targetMX - currentMX) * 0.04;
160
+ currentMY += (targetMY - currentMY) * 0.04;
161
+
162
+ group.rotation.y = elapsed * 0.22 + currentMX * 0.35;
163
+ group.rotation.x = currentMY * 0.08;
164
+ group.position.y = Math.sin(elapsed * 0.38) * 0.14;
165
+
166
+ const pos = pGeo.attributes.position.array as Float32Array;
167
+ for (let i = 0; i < P_COUNT; i++) {
168
+ pos[i * 3 + 1] += 0.006;
169
+ if (pos[i * 3 + 1] > 9) pos[i * 3 + 1] = -9;
170
+ }
171
+ pGeo.attributes.position.needsUpdate = true;
172
+ particles.rotation.y = elapsed * 0.03;
173
+
174
+ renderer.render(scene, camera);
175
+ };
176
+ animate();
177
+
178
+ const onResize = () => {
179
+ const nw = container.clientWidth;
180
+ const nh = container.clientHeight;
181
+ camera.aspect = nw / nh;
182
+ camera.updateProjectionMatrix();
183
+ renderer.setSize(nw, nh);
184
+ };
185
+ window.addEventListener('resize', onResize);
186
+
187
+ return () => {
188
+ cancelAnimationFrame(rafId);
189
+ window.removeEventListener('mousemove', onMouseMove);
190
+ window.removeEventListener('resize', onResize);
191
+ renderer.dispose();
192
+ if (container.contains(renderer.domElement)) {
193
+ container.removeChild(renderer.domElement);
194
+ }
195
+ };
196
+ }, []);
197
+
198
+ return <div ref={containerRef} className={className ?? 'w-full h-full'} />;
199
+ }
bioai-platform/frontend/tailwind.config.ts CHANGED
@@ -6,72 +6,149 @@ const config: Config = {
6
  './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
7
  './src/components/**/*.{js,ts,jsx,tsx,mdx}',
8
  './src/app/**/*.{js,ts,jsx,tsx,mdx}',
 
 
 
9
  ],
10
  theme: {
11
  extend: {
12
  colors: {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  base: {
14
- DEFAULT: 'var(--bg-base)',
15
- surface: 'var(--bg-surface)',
16
- elevated: 'var(--bg-elevated)',
 
 
 
 
 
 
 
 
17
  },
18
  border: {
19
- subtle: 'var(--border-subtle)',
 
 
20
  },
21
  accent: {
22
- DEFAULT: '#2DD4BF',
23
- bright: '#5EEAD4',
24
- glow: 'rgba(45, 212, 191, 0.15)',
25
- },
26
- text: {
27
- primary: 'var(--text-primary)',
28
- secondary: 'var(--text-secondary)',
29
- tertiary: 'var(--text-tertiary)',
30
  },
31
  confidence: {
32
- veryHigh: '#2DD4BF',
33
- high: '#60A5FA',
34
- moderate: '#FBBF24',
35
- low: '#94A3B8',
36
  },
37
  error: {
38
- DEFAULT: 'var(--error)',
 
39
  },
40
  },
41
  fontFamily: {
42
- display: ['"Space Grotesk"', 'sans-serif'],
43
- sans: ['Inter', 'system-ui', 'sans-serif'],
44
- mono: ['"JetBrains Mono"', 'monospace'],
 
45
  },
46
- maxWidth: {
47
- content: '1280px',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  },
49
- spacing: {
50
- 18: '4.5rem',
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  },
52
  keyframes: {
53
- typewriter: {
54
- '0%': { width: '0%' },
55
- '100%': { width: '100%' },
56
  },
57
- blink: {
58
- '0%, 100%': { opacity: '1' },
59
- '50%': { opacity: '0' },
 
 
 
 
 
 
 
 
 
 
 
 
60
  },
61
  fadeUp: {
62
- '0%': { opacity: '0', transform: 'translateY(8px)' },
63
- '100%': { opacity: '1', transform: 'translateY(0)' },
64
  },
65
- pulse: {
 
 
 
 
66
  '0%, 100%': { opacity: '1' },
67
- '50%': { opacity: '0.5' },
68
  },
69
  },
70
- animation: {
71
- typewriter: 'typewriter 3s steps(60) forwards',
72
- blink: 'blink 0.8s step-end infinite',
73
- fadeUp: 'fadeUp 0.2s ease-out forwards',
74
- pulse: 'pulse 2s ease-in-out infinite',
 
 
 
 
 
 
75
  },
76
  },
77
  },
 
6
  './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
7
  './src/components/**/*.{js,ts,jsx,tsx,mdx}',
8
  './src/app/**/*.{js,ts,jsx,tsx,mdx}',
9
+ './pages/**/*.{js,ts,jsx,tsx,mdx}',
10
+ './components/**/*.{js,ts,jsx,tsx,mdx}',
11
+ './app/**/*.{js,ts,jsx,tsx,mdx}',
12
  ],
13
  theme: {
14
  extend: {
15
  colors: {
16
+ void: '#04040A',
17
+ surface: {
18
+ 0: '#080812',
19
+ 1: '#0D0D1A',
20
+ 2: '#111122',
21
+ 3: '#151528',
22
+ },
23
+ 'accent-cyan': '#00F5D4',
24
+ 'accent-purple': '#8B5CF6',
25
+ 'accent-amber': '#F59E0B',
26
+ 'text-primary': '#F0F0FF',
27
+ 'text-secondary': '#8890AA',
28
+ 'text-muted': '#4A4F6A',
29
+ glass: 'rgba(100,110,180,0.07)',
30
+ 'glass-hover': 'rgba(100,110,180,0.13)',
31
+ 'glass-border': 'rgba(100,110,180,0.12)',
32
+ 'glass-border-bright': 'rgba(0,245,212,0.2)',
33
  base: {
34
+ 50: '#f8fafc',
35
+ 100: '#f1f5f9',
36
+ 200: '#e2e8f0',
37
+ 300: '#cbd5e1',
38
+ 400: '#94a3b8',
39
+ 500: '#64748b',
40
+ 600: '#475569',
41
+ 700: '#334155',
42
+ 800: '#1e293b',
43
+ 900: '#0f172a',
44
+ 950: '#020617',
45
  },
46
  border: {
47
+ DEFAULT: 'rgba(100,110,180,0.12)',
48
+ subtle: 'rgba(100,110,180,0.07)',
49
+ bright: 'rgba(0,245,212,0.2)',
50
  },
51
  accent: {
52
+ DEFAULT: '#00F5D4',
53
+ dim: 'rgba(0,245,212,0.15)',
54
+ hover: '#00dbbe',
 
 
 
 
 
55
  },
56
  confidence: {
57
+ high: '#00F5D4',
58
+ medium: '#F59E0B',
59
+ low: '#EF4444',
 
60
  },
61
  error: {
62
+ DEFAULT: '#EF4444',
63
+ dim: 'rgba(239,68,68,0.15)',
64
  },
65
  },
66
  fontFamily: {
67
+ display: ['Space Grotesk', 'sans-serif'],
68
+ body: ['Inter', 'sans-serif'],
69
+ mono: ['JetBrains Mono', 'monospace'],
70
+ sans: ['Inter', 'sans-serif'],
71
  },
72
+ boxShadow: {
73
+ 'glow-cyan': '0 0 20px rgba(0,245,212,0.2), 0 0 60px rgba(0,245,212,0.08)',
74
+ 'glow-purple': '0 0 20px rgba(139,92,246,0.2), 0 0 60px rgba(139,92,246,0.08)',
75
+ 'glow-amber': '0 0 20px rgba(245,158,11,0.2)',
76
+ 'glass-sm': '0 2px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04)',
77
+ 'glass-md': '0 4px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04)',
78
+ 'glass-lg': '0 8px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05)',
79
+ 'nav-active': 'inset 2px 0 0 #00F5D4',
80
+ },
81
+ backgroundImage: {
82
+ 'grid-subtle':
83
+ 'linear-gradient(rgba(100,110,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(100,110,255,0.05) 1px, transparent 1px)',
84
+ 'radial-vignette':
85
+ 'radial-gradient(ellipse 80% 80% at 50% 50%, transparent 25%, rgba(4,4,10,0.65) 70%, rgba(4,4,10,0.97) 100%)',
86
+ 'gradient-cyan-purple':
87
+ 'linear-gradient(135deg, #00F5D4 0%, #8B5CF6 100%)',
88
+ 'gradient-surface':
89
+ 'linear-gradient(180deg, #080812 0%, #04040A 100%)',
90
  },
91
+ backgroundSize: {
92
+ grid: '50px 50px',
93
+ },
94
+ animation: {
95
+ 'float': 'float 6s ease-in-out infinite',
96
+ 'float-slow': 'float 9s ease-in-out infinite',
97
+ 'glow-pulse': 'glow-pulse 3s ease-in-out infinite',
98
+ 'spin-slow': 'spin 20s linear infinite',
99
+ 'scan': 'scan 2.5s ease-in-out infinite',
100
+ 'slide-up': 'slideUp 0.5s ease-out forwards',
101
+ 'fade-in': 'fadeIn 0.5s ease-out forwards',
102
+ fadeUp: 'fadeUp 0.6s ease-out forwards',
103
+ typewriter: 'typewriter 3s steps(40) forwards',
104
+ blink: 'blink 0.75s step-end infinite',
105
+ pulse: 'pulse 2s cubic-bezier(0.4,0,0.6,1) infinite',
106
  },
107
  keyframes: {
108
+ float: {
109
+ '0%, 100%': { transform: 'translateY(0px)' },
110
+ '50%': { transform: 'translateY(-12px)' },
111
  },
112
+ 'glow-pulse': {
113
+ '0%, 100%': { opacity: '0.5' },
114
+ '50%': { opacity: '1' },
115
+ },
116
+ scan: {
117
+ '0%': { transform: 'translateY(-100%)' },
118
+ '100%': { transform: 'translateY(200%)' },
119
+ },
120
+ slideUp: {
121
+ from: { opacity: '0', transform: 'translateY(16px)' },
122
+ to: { opacity: '1', transform: 'translateY(0)' },
123
+ },
124
+ fadeIn: {
125
+ from: { opacity: '0' },
126
+ to: { opacity: '1' },
127
  },
128
  fadeUp: {
129
+ from: { opacity: '0', transform: 'translateY(20px)' },
130
+ to: { opacity: '1', transform: 'translateY(0)' },
131
  },
132
+ typewriter: {
133
+ from: { width: '0' },
134
+ to: { width: '100%' },
135
+ },
136
+ blink: {
137
  '0%, 100%': { opacity: '1' },
138
+ '50%': { opacity: '0' },
139
  },
140
  },
141
+ maxWidth: {
142
+ content: '1280px',
143
+ },
144
+ borderRadius: {
145
+ '2xl': '1rem',
146
+ '3xl': '1.25rem',
147
+ '4xl': '1.5rem',
148
+ },
149
+ transitionTimingFunction: {
150
+ 'spring': 'cubic-bezier(0.25, 0.1, 0.25, 1)',
151
+ 'out-quart': 'cubic-bezier(0.25, 1, 0.5, 1)',
152
  },
153
  },
154
  },