Korapati commited on
Commit
af44f13
Β·
verified Β·
1 Parent(s): b7f4ca3

Upload 2 files

Browse files
Files changed (2) hide show
  1. static/script.js +255 -0
  2. static/style.css +892 -0
static/script.js ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ═══════════════════════════════════════════
2
+ NutriVision β€” script.js
3
+ ═══════════════════════════════════════════ */
4
+
5
+ /* ── Hamburger ── */
6
+ const hamburger = document.getElementById('hamburger');
7
+ const mobileMenu = document.getElementById('mobileMenu');
8
+ if (hamburger) {
9
+ hamburger.addEventListener('click', () => {
10
+ hamburger.classList.toggle('open');
11
+ mobileMenu.classList.toggle('open');
12
+ });
13
+ }
14
+
15
+ /* ── Navbar scroll shadow ── */
16
+ window.addEventListener('scroll', () => {
17
+ const nb = document.getElementById('navbar');
18
+ if (nb) nb.style.boxShadow = window.scrollY > 10 ? '0 2px 24px rgba(0,0,0,.4)' : 'none';
19
+ });
20
+
21
+ /* ── Reveal on scroll ── */
22
+ const revealEls = document.querySelectorAll('.reveal');
23
+ if (revealEls.length) {
24
+ const io = new IntersectionObserver(entries => {
25
+ entries.forEach(e => { if (e.isIntersecting) { e.target.classList.add('in-view'); io.unobserve(e.target); } });
26
+ }, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' });
27
+ revealEls.forEach(el => io.observe(el));
28
+ }
29
+
30
+ /* ── Counter animation ── */
31
+ function animateCounter(el, target, duration = 1200) {
32
+ const start = performance.now();
33
+ const update = (now) => {
34
+ const progress = Math.min((now - start) / duration, 1);
35
+ const ease = 1 - Math.pow(1 - progress, 3);
36
+ el.textContent = Math.floor(ease * target);
37
+ if (progress < 1) requestAnimationFrame(update);
38
+ else el.textContent = target;
39
+ };
40
+ requestAnimationFrame(update);
41
+ }
42
+ document.querySelectorAll('.counter').forEach(el => {
43
+ const io = new IntersectionObserver(entries => {
44
+ entries.forEach(e => {
45
+ if (e.isIntersecting) { animateCounter(el, +el.dataset.to); io.unobserve(el); }
46
+ });
47
+ }, { threshold: 0.5 });
48
+ io.observe(el);
49
+ });
50
+
51
+ /* ════════════════════════════════
52
+ ANALYZER PAGE
53
+ ════════════════════════════════ */
54
+ const uploadZone = document.getElementById('uploadZone');
55
+ const imgInput = document.getElementById('imgInput');
56
+ const uploadPlaceholder = document.getElementById('uploadPlaceholder');
57
+ const uploadPreview = document.getElementById('uploadPreview');
58
+ const previewImg = document.getElementById('previewImg');
59
+ const removeImgBtn = document.getElementById('removeImg');
60
+ const analyzerForm = document.getElementById('analyzerForm');
61
+ const loadingOverlay = document.getElementById('loadingOverlay');
62
+ const resultsPanel = document.getElementById('resultsPanel');
63
+
64
+ if (uploadZone) {
65
+ uploadZone.addEventListener('click', () => {
66
+ if (uploadPreview.style.display === 'none' || !uploadPreview.style.display) imgInput.click();
67
+ });
68
+ uploadZone.addEventListener('dragover', e => { e.preventDefault(); uploadZone.classList.add('dragover'); });
69
+ uploadZone.addEventListener('dragleave', () => uploadZone.classList.remove('dragover'));
70
+ uploadZone.addEventListener('drop', e => {
71
+ e.preventDefault(); uploadZone.classList.remove('dragover');
72
+ if (e.dataTransfer.files[0]) handleFile(e.dataTransfer.files[0]);
73
+ });
74
+ imgInput.addEventListener('change', e => { if (e.target.files[0]) handleFile(e.target.files[0]); });
75
+ removeImgBtn.addEventListener('click', e => {
76
+ e.stopPropagation();
77
+ imgInput.value = '';
78
+ previewImg.src = '';
79
+ uploadPreview.style.display = 'none';
80
+ uploadPlaceholder.style.display = 'block';
81
+ });
82
+ }
83
+
84
+ function handleFile(file) {
85
+ const valid = ['image/png','image/jpeg','image/jpg','image/webp'];
86
+ if (!valid.includes(file.type)) { showToast('⚠️ Please upload PNG, JPG, JPEG, or WebP', 'error'); return; }
87
+ if (file.size > 16 * 1024 * 1024) { showToast('⚠️ File too large. Max 16MB.', 'error'); return; }
88
+ const dt = new DataTransfer();
89
+ dt.items.add(file);
90
+ imgInput.files = dt.files;
91
+ const reader = new FileReader();
92
+ reader.onload = e => {
93
+ previewImg.src = e.target.result;
94
+ uploadPlaceholder.style.display = 'none';
95
+ uploadPreview.style.display = 'block';
96
+ };
97
+ reader.readAsDataURL(file);
98
+ }
99
+
100
+ /* ── Form submit ── */
101
+ if (analyzerForm) {
102
+ analyzerForm.addEventListener('submit', async e => {
103
+ e.preventDefault();
104
+ if (!imgInput.files || !imgInput.files[0]) {
105
+ showToast('⚠️ Please upload a food image first', 'error'); return;
106
+ }
107
+ showLoading();
108
+ const fd = new FormData(analyzerForm);
109
+ try {
110
+ stepProgress(1);
111
+ const resp = await fetch('/analyze', { method: 'POST', body: fd });
112
+ stepProgress(2);
113
+ const data = await resp.json();
114
+ stepProgress(3);
115
+ if (!resp.ok) throw new Error(data.error || 'Analysis failed');
116
+ stepProgress(4);
117
+ await sleep(400);
118
+ hideLoading();
119
+ renderResults(data);
120
+ resultsPanel.style.display = 'flex';
121
+ setTimeout(() => resultsPanel.scrollIntoView({ behavior: 'smooth', block: 'start' }), 200);
122
+ } catch (err) {
123
+ hideLoading();
124
+ showToast('❌ ' + err.message, 'error');
125
+ }
126
+ });
127
+ }
128
+
129
+ /* ── Loading helpers ── */
130
+ function showLoading() {
131
+ loadingOverlay.classList.add('active');
132
+ document.querySelectorAll('.lstep').forEach(s => s.classList.remove('active'));
133
+ }
134
+ function hideLoading() { loadingOverlay.classList.remove('active'); }
135
+ function stepProgress(n) {
136
+ const el = document.getElementById('lstep' + n);
137
+ if (el) el.classList.add('active');
138
+ }
139
+ function sleep(ms) { return new Promise(r => setTimeout(r, ms)); }
140
+
141
+ /* ── Render results ── */
142
+ function renderResults(d) {
143
+ // Banner
144
+ document.getElementById('r_food').textContent = d.food || 'Unknown Food';
145
+ document.getElementById('r_confidence').textContent = '🎯 ' + (d.confidence || 'β€”');
146
+ document.getElementById('r_source').textContent = 'πŸ€– ' + (d.detection_source || 'β€”');
147
+
148
+ // BMI
149
+ if (d.bmi) {
150
+ document.getElementById('r_bmi').textContent = d.bmi;
151
+ document.getElementById('r_bmiCat').textContent = d.bmi_category || 'β€”';
152
+ const bmiCat = (d.bmi_category || '').toLowerCase();
153
+ const bmiVal = document.getElementById('r_bmi');
154
+ if (bmiCat.includes('obese')) bmiVal.style.color = '#f47171';
155
+ else if (bmiCat.includes('overweight')) bmiVal.style.color = '#f5c842';
156
+ else if (bmiCat.includes('under')) bmiVal.style.color = '#60a5fa';
157
+ else bmiVal.style.color = 'var(--primary)';
158
+ }
159
+
160
+ // Nutrition grid
161
+ const nutr = d.nutrition || {};
162
+ const nutriMap = [
163
+ { key: 'calories', label: 'Calories', emoji: 'πŸ”₯' },
164
+ { key: 'protein', label: 'Protein', emoji: 'πŸ’ͺ' },
165
+ { key: 'carbohydrates', label: 'Carbs', emoji: '🌾' },
166
+ { key: 'fat', label: 'Fat', emoji: 'πŸ₯‘' },
167
+ { key: 'fiber', label: 'Fiber', emoji: '🌿' },
168
+ { key: 'sugar', label: 'Sugar', emoji: '🍬' },
169
+ { key: 'sodium', label: 'Sodium', emoji: 'πŸ§‚' },
170
+ { key: 'serving_size', label: 'Serving', emoji: 'πŸ₯£' },
171
+ ];
172
+ const ngEl = document.getElementById('r_nutrition');
173
+ ngEl.innerHTML = '';
174
+ nutriMap.forEach(item => {
175
+ const val = nutr[item.key];
176
+ if (!val) return;
177
+ const div = document.createElement('div');
178
+ div.className = 'nutri-item';
179
+ div.innerHTML = `<div class="nutri-val">${item.emoji} ${val}</div><div class="nutri-label">${item.label}</div>`;
180
+ ngEl.appendChild(div);
181
+ });
182
+
183
+ // Benefits
184
+ const bList = document.getElementById('r_benefits');
185
+ bList.innerHTML = '';
186
+ (d.health_benefits || []).forEach(b => {
187
+ const li = document.createElement('li');
188
+ li.textContent = b;
189
+ bList.appendChild(li);
190
+ });
191
+
192
+ // Portion
193
+ document.getElementById('r_portion').textContent = d.portion_advice || '1 standard serving';
194
+
195
+ // Health context
196
+ const ctx = document.getElementById('contextCard');
197
+ if (d.health_context) {
198
+ ctx.style.display = 'block';
199
+ document.getElementById('r_context').textContent = d.health_context;
200
+ } else { ctx.style.display = 'none'; }
201
+
202
+ // Alternatives
203
+ const altCard = document.getElementById('altCard');
204
+ const altList = document.getElementById('r_alternatives');
205
+ altList.innerHTML = '';
206
+ if (d.alternatives && d.alternatives.length) {
207
+ altCard.style.display = 'block';
208
+ d.alternatives.forEach(alt => {
209
+ const div = document.createElement('div');
210
+ div.className = 'alt-item';
211
+ let urlsHtml = '';
212
+ if (alt.urls && alt.urls.length) {
213
+ const links = alt.urls.map(u =>
214
+ `<a href="${u.url}" target="_blank" rel="noopener" class="buy-link">${u.emoji || ''} ${u.platform}</a>`
215
+ ).join('');
216
+ urlsHtml = `<div class="alt-buy"><span class="buy-label">πŸ›’ Buy from:</span>${links}</div>`;
217
+ }
218
+ div.innerHTML = `
219
+ <div class="alt-name">βœ“ ${alt.name}</div>
220
+ <div class="alt-reason">${alt.reason}</div>
221
+ ${urlsHtml}
222
+ `;
223
+ altList.appendChild(div);
224
+ });
225
+ } else { altCard.style.display = 'none'; }
226
+ }
227
+
228
+ /* ── Reset analyzer ── */
229
+ function resetAnalyzer() {
230
+ if (imgInput) { imgInput.value = ''; }
231
+ if (previewImg) { previewImg.src = ''; }
232
+ if (uploadPreview) { uploadPreview.style.display = 'none'; }
233
+ if (uploadPlaceholder) { uploadPlaceholder.style.display = 'block'; }
234
+ if (resultsPanel) { resultsPanel.style.display = 'none'; }
235
+ window.scrollTo({ top: 0, behavior: 'smooth' });
236
+ }
237
+
238
+ /* ── Toast notifications ── */
239
+ function showToast(msg, type = 'info') {
240
+ const t = document.createElement('div');
241
+ t.style.cssText = `
242
+ position:fixed;bottom:1.5rem;right:1.5rem;z-index:99999;
243
+ padding:.85rem 1.4rem;border-radius:12px;font-size:.9rem;font-weight:600;
244
+ background:${type==='error'?'#f47171':'var(--primary)'};
245
+ color:${type==='error'?'#fff':'#080d14'};
246
+ box-shadow:0 8px 24px rgba(0,0,0,.4);
247
+ animation:slideUp .3s ease both;
248
+ max-width:320px;line-height:1.4;
249
+ `;
250
+ t.textContent = msg;
251
+ document.body.appendChild(t);
252
+ setTimeout(() => { t.style.opacity='0'; t.style.transition='.3s'; setTimeout(()=>t.remove(),300); }, 3500);
253
+ }
254
+
255
+ console.log('πŸ₯— NutriVision loaded βœ…');
static/style.css ADDED
@@ -0,0 +1,892 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ═══════════════════════════════════════════════════════
2
+ NutriVision β€” Redesigned Stylesheet
3
+ Theme: Soft Wellness β€” Sky Blue + Mint + White
4
+ Fonts: Plus Jakarta Sans (headings) + Nunito (body)
5
+ ═══════════════════════════════════════════════════════ */
6
+
7
+ @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Nunito:wght@300;400;500;600;700&display=swap');
8
+
9
+ /* ── DESIGN TOKENS ── */
10
+ :root {
11
+ --bg: #f0f7ff;
12
+ --bg-white: #ffffff;
13
+ --bg-card: #ffffff;
14
+ --bg-card2: #f5faff;
15
+ --bg-section: #e8f4fd;
16
+
17
+ --blue: #3b9eff;
18
+ --blue-d: #1a7de0;
19
+ --blue-l: #e0f0ff;
20
+ --blue-g: linear-gradient(135deg, #3b9eff 0%, #5bc4f5 100%);
21
+
22
+ --mint: #2ecb8e;
23
+ --mint-l: #e0f9f0;
24
+ --mint-g: linear-gradient(135deg, #2ecb8e 0%, #3bdfaa 100%);
25
+
26
+ --peach: #ff7e5f;
27
+ --peach-l: #fff0ec;
28
+ --gold: #f59e0b;
29
+ --gold-l: #fef3c7;
30
+ --purple: #8b5cf6;
31
+ --purple-l: #ede9fe;
32
+
33
+ --text: #1a2332;
34
+ --text-2: #374151;
35
+ --sub: #6b7280;
36
+ --muted: #9ca3af;
37
+ --border: #e2ecf5;
38
+ --border2: #c8dff0;
39
+
40
+ --shadow-sm: 0 1px 3px rgba(59,158,255,.08), 0 1px 2px rgba(0,0,0,.04);
41
+ --shadow: 0 4px 16px rgba(59,158,255,.12), 0 2px 8px rgba(0,0,0,.06);
42
+ --shadow-lg: 0 12px 40px rgba(59,158,255,.18), 0 4px 16px rgba(0,0,0,.08);
43
+ --glow-blue: 0 0 32px rgba(59,158,255,.25);
44
+ --glow-mint: 0 0 32px rgba(46,203,142,.22);
45
+
46
+ --r-xs: 6px;
47
+ --r-sm: 10px;
48
+ --r-md: 14px;
49
+ --r-lg: 20px;
50
+ --r-xl: 28px;
51
+ --r-2xl: 36px;
52
+
53
+ --fh: 'Plus Jakarta Sans', sans-serif;
54
+ --fb: 'Nunito', sans-serif;
55
+ --ease: cubic-bezier(.4,0,.2,1);
56
+ }
57
+
58
+ /* ── RESET ── */
59
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
60
+ html { scroll-behavior: smooth; }
61
+ body {
62
+ font-family: var(--fb);
63
+ background: var(--bg);
64
+ color: var(--text);
65
+ line-height: 1.65;
66
+ overflow-x: hidden;
67
+ -webkit-font-smoothing: antialiased;
68
+ }
69
+ a { text-decoration: none; color: inherit; }
70
+ ul { list-style: none; }
71
+ img { max-width: 100%; display: block; }
72
+ input, select, button, textarea { font-family: inherit; }
73
+
74
+ ::-webkit-scrollbar { width: 6px; }
75
+ ::-webkit-scrollbar-track { background: var(--bg); }
76
+ ::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; opacity: .5; }
77
+
78
+ /* ── CONTAINER ── */
79
+ .container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
80
+
81
+ /* ══════════════════════════════════
82
+ NAVIGATION
83
+ ══════════════════════════════════ */
84
+ .nav {
85
+ position: sticky; top: 0; z-index: 900;
86
+ background: rgba(255,255,255,.92);
87
+ backdrop-filter: blur(16px);
88
+ -webkit-backdrop-filter: blur(16px);
89
+ border-bottom: 1px solid var(--border);
90
+ box-shadow: var(--shadow-sm);
91
+ }
92
+ .nav__inner {
93
+ max-width: 1180px; margin: 0 auto;
94
+ padding: .9rem 1.5rem;
95
+ display: flex; align-items: center; gap: 1.5rem;
96
+ }
97
+ .nav__logo { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
98
+ .logo-icon {
99
+ font-size: 1.5rem; display: inline-block;
100
+ animation: float 3s ease-in-out infinite;
101
+ }
102
+ .logo-text {
103
+ font-family: var(--fh); font-size: 1.25rem; font-weight: 800;
104
+ background: var(--blue-g);
105
+ -webkit-background-clip: text; -webkit-text-fill-color: transparent;
106
+ background-clip: text;
107
+ }
108
+ .nav__links { display: flex; gap: 2rem; margin-left: auto; }
109
+ .nav__link {
110
+ font-family: var(--fh); font-size: .88rem; font-weight: 600;
111
+ color: var(--sub); transition: color .2s; position: relative; padding-bottom: 2px;
112
+ }
113
+ .nav__link::after {
114
+ content: ''; position: absolute; bottom: -4px; left: 0;
115
+ width: 0; height: 2px; background: var(--blue);
116
+ border-radius: 2px; transition: width .3s var(--ease);
117
+ }
118
+ .nav__link:hover, .nav__link--active { color: var(--blue); }
119
+ .nav__link:hover::after, .nav__link--active::after { width: 100%; }
120
+ .nav__cta { margin-left: 1.25rem; flex-shrink: 0; }
121
+
122
+ /* hamburger */
123
+ .hamburger {
124
+ display: none; flex-direction: column; gap: 5px;
125
+ background: none; border: none; cursor: pointer;
126
+ padding: .3rem; margin-left: auto;
127
+ }
128
+ .hamburger span {
129
+ display: block; width: 22px; height: 2px;
130
+ background: var(--text); border-radius: 2px; transition: .3s;
131
+ }
132
+ .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
133
+ .hamburger.open span:nth-child(2) { opacity: 0; }
134
+ .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
135
+
136
+ /* mobile menu */
137
+ .mobile-menu {
138
+ display: none; flex-direction: column;
139
+ background: var(--bg-white);
140
+ border-bottom: 1px solid var(--border);
141
+ padding: .75rem 1.5rem 1.25rem; gap: .15rem;
142
+ box-shadow: var(--shadow);
143
+ }
144
+ .mobile-menu.open { display: flex; }
145
+ .mobile-link {
146
+ padding: .75rem .9rem; color: var(--sub); font-weight: 600;
147
+ border-radius: var(--r-sm); transition: .2s; font-family: var(--fh); font-size: .9rem;
148
+ }
149
+ .mobile-link:hover { color: var(--blue); background: var(--blue-l); }
150
+ .mobile-link.highlight { color: var(--blue); font-weight: 700; }
151
+
152
+ /* ══════════════════════════════════
153
+ BUTTONS
154
+ ══════════════════════════════════ */
155
+ .btn {
156
+ display: inline-flex; align-items: center; justify-content: center;
157
+ gap: .5rem; padding: .75rem 1.6rem;
158
+ border-radius: var(--r-md); font-family: var(--fh); font-weight: 700; font-size: .9rem;
159
+ cursor: pointer; border: none; transition: all .22s var(--ease);
160
+ white-space: nowrap; line-height: 1;
161
+ }
162
+ .btn--primary {
163
+ background: var(--blue-g); color: #fff;
164
+ box-shadow: 0 4px 14px rgba(59,158,255,.35);
165
+ }
166
+ .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(59,158,255,.45); }
167
+ .btn--outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
168
+ .btn--outline:hover { background: var(--blue-l); }
169
+ .btn--ghost-sm {
170
+ background: transparent; color: var(--sub);
171
+ border: 1.5px solid var(--border2); font-size: .85rem; padding: .5rem 1rem;
172
+ }
173
+ .btn--ghost-sm:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-l); }
174
+ .btn--sm { padding: .5rem 1.1rem; font-size: .82rem; }
175
+ .btn--lg { padding: 1rem 2.4rem; font-size: 1rem; border-radius: var(--r-lg); }
176
+ .btn--full { width: 100%; margin-top: 1.5rem; padding: 1rem; font-size: .95rem; border-radius: var(--r-md); }
177
+
178
+ .btn-spinner {
179
+ width: 17px; height: 17px;
180
+ border: 2.5px solid rgba(255,255,255,.3);
181
+ border-top-color: #fff;
182
+ border-radius: 50%;
183
+ animation: spin 1s linear infinite;
184
+ }
185
+
186
+ /* ══════════════════════════════════
187
+ BACKGROUND / DECORATIVE BLOBS
188
+ ══════════════════════════════════ */
189
+ .orb {
190
+ position: absolute; border-radius: 50%;
191
+ filter: blur(80px); pointer-events: none;
192
+ }
193
+ .orb--a {
194
+ width: 500px; height: 500px; opacity: .18;
195
+ background: radial-gradient(circle, #3b9eff, transparent 70%);
196
+ top: -150px; right: 5%;
197
+ animation: drift 9s ease-in-out infinite alternate;
198
+ }
199
+ .orb--b {
200
+ width: 380px; height: 380px; opacity: .14;
201
+ background: radial-gradient(circle, #2ecb8e, transparent 70%);
202
+ bottom: -80px; left: -5%;
203
+ animation: drift 12s ease-in-out infinite alternate-reverse;
204
+ }
205
+ .orb--c {
206
+ width: 300px; height: 300px; opacity: .12;
207
+ background: radial-gradient(circle, #8b5cf6, transparent 70%);
208
+ top: 40%; left: 42%;
209
+ animation: drift 15s ease-in-out infinite alternate;
210
+ }
211
+ .grid-bg {
212
+ position: absolute; inset: 0;
213
+ background-image:
214
+ linear-gradient(rgba(59,158,255,.06) 1px, transparent 1px),
215
+ linear-gradient(90deg, rgba(59,158,255,.06) 1px, transparent 1px);
216
+ background-size: 52px 52px; opacity: .7;
217
+ }
218
+
219
+ /* ══════════════════════════════════
220
+ HERO
221
+ ══════════════════════════════════ */
222
+ .hero {
223
+ position: relative; min-height: calc(100vh - 62px);
224
+ display: flex; align-items: center; overflow: hidden;
225
+ background: linear-gradient(160deg, #f0f8ff 0%, #e4f3fe 50%, #edfaf4 100%);
226
+ }
227
+ .hero__bg { position: absolute; inset: 0; }
228
+ .hero__body {
229
+ display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
230
+ align-items: center; padding: 4rem 0;
231
+ position: relative; z-index: 2;
232
+ }
233
+ .hero__badge {
234
+ display: inline-flex; align-items: center; gap: .5rem;
235
+ background: rgba(59,158,255,.1);
236
+ border: 1px solid rgba(59,158,255,.25);
237
+ color: var(--blue); font-size: .8rem; font-weight: 700;
238
+ font-family: var(--fh);
239
+ padding: .38rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
240
+ }
241
+ .pulse-dot {
242
+ width: 7px; height: 7px; background: var(--mint);
243
+ border-radius: 50%; flex-shrink: 0;
244
+ animation: pulse-ring 2s ease-in-out infinite;
245
+ }
246
+ .hero__title {
247
+ font-family: var(--fh);
248
+ font-size: clamp(2.3rem, 5vw, 3.6rem);
249
+ font-weight: 800; line-height: 1.1; letter-spacing: -.025em;
250
+ color: var(--text); margin-bottom: 1.25rem;
251
+ }
252
+ .hero__title em {
253
+ font-style: normal;
254
+ background: var(--blue-g);
255
+ -webkit-background-clip: text; -webkit-text-fill-color: transparent;
256
+ background-clip: text;
257
+ }
258
+ .hero__desc {
259
+ color: var(--sub); font-size: 1.05rem; line-height: 1.8;
260
+ margin-bottom: 2rem; max-width: 480px;
261
+ }
262
+ .hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
263
+ .hero__stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
264
+ .hstat { display: flex; flex-direction: column; gap: .15rem; }
265
+ .hstat b {
266
+ font-family: var(--fh); font-size: 1.9rem; font-weight: 800;
267
+ color: var(--blue); line-height: 1;
268
+ }
269
+ .hstat sup { font-size: 1rem; color: var(--mint); font-weight: 700; }
270
+ .hstat span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
271
+ .hstat-sep { width: 1px; height: 38px; background: var(--border2); }
272
+
273
+ /* ORBIT */
274
+ .hero__right { display: flex; justify-content: center; align-items: center; }
275
+ .orbit-wrap { position: relative; width: 340px; height: 340px; flex-shrink: 0; }
276
+ .orbit-core {
277
+ position: absolute; top: 50%; left: 50%;
278
+ transform: translate(-50%, -50%);
279
+ width: 80px; height: 80px; border-radius: 50%;
280
+ background: linear-gradient(135deg, #fff 0%, #e8f4ff 100%);
281
+ border: 2px solid var(--border2);
282
+ display: flex; align-items: center; justify-content: center;
283
+ font-size: 2rem; box-shadow: var(--shadow-lg); z-index: 2;
284
+ }
285
+ .orbit {
286
+ position: absolute; top: 50%; left: 50%;
287
+ border-radius: 50%; border: 1.5px dashed var(--border2);
288
+ }
289
+ .orbit--1 { width: 200px; height: 200px; transform: translate(-50%,-50%); animation: spin-cw 10s linear infinite; }
290
+ .orbit--2 { width: 320px; height: 320px; transform: translate(-50%,-50%); animation: spin-ccw 16s linear infinite; }
291
+ .orb-food { position: absolute; font-size: 1.65rem; top: 50%; left: 50%; }
292
+
293
+ /* ── MARQUEE ── */
294
+ .marquee-outer {
295
+ overflow: hidden;
296
+ border-top: 1px solid var(--border);
297
+ border-bottom: 1px solid var(--border);
298
+ background: var(--bg-white); padding: .65rem 0;
299
+ }
300
+ .marquee-inner { display: flex; }
301
+ .marquee-track {
302
+ display: flex; gap: 2.5rem; white-space: nowrap;
303
+ animation: marquee 30s linear infinite;
304
+ }
305
+ .marquee-track span {
306
+ color: var(--sub); font-size: .86rem; font-weight: 600;
307
+ font-family: var(--fh); padding: .1rem .4rem; flex-shrink: 0;
308
+ }
309
+
310
+ /* ══════════════════════════════════
311
+ SECTIONS
312
+ ══════════════════════════════════ */
313
+ .section { padding: 5rem 0; }
314
+ .bg-card { background: var(--bg-white); }
315
+ .bg-section { background: var(--bg-section); }
316
+
317
+ .section-head { text-align: center; margin-bottom: 3.5rem; }
318
+ .tag {
319
+ display: inline-block;
320
+ background: var(--blue-l);
321
+ border: 1px solid rgba(59,158,255,.3);
322
+ color: var(--blue); font-family: var(--fh); font-size: .74rem; font-weight: 700;
323
+ letter-spacing: .08em; text-transform: uppercase;
324
+ padding: .28rem .9rem; border-radius: 100px; margin-bottom: .9rem;
325
+ }
326
+ .section-head h2 {
327
+ font-family: var(--fh);
328
+ font-size: clamp(1.7rem, 3.5vw, 2.5rem);
329
+ font-weight: 800; letter-spacing: -.02em; color: var(--text);
330
+ }
331
+
332
+ /* ── HOW IT WORKS ── */
333
+ .how-grid {
334
+ display: flex; align-items: center; justify-content: center;
335
+ gap: 1.5rem; flex-wrap: wrap;
336
+ }
337
+ .how-card {
338
+ background: var(--bg-white); border: 1.5px solid var(--border);
339
+ border-radius: var(--r-xl); padding: 2.1rem 1.75rem;
340
+ max-width: 250px; flex: 1; min-width: 190px; text-align: center;
341
+ transition: all .3s var(--ease); box-shadow: var(--shadow-sm);
342
+ }
343
+ .how-card:hover {
344
+ border-color: var(--blue); transform: translateY(-6px); box-shadow: var(--shadow-lg);
345
+ }
346
+ .how-num {
347
+ font-family: var(--fh); font-size: 2.6rem; font-weight: 800;
348
+ background: var(--blue-g);
349
+ -webkit-background-clip: text; -webkit-text-fill-color: transparent;
350
+ background-clip: text; line-height: 1; margin-bottom: .5rem;
351
+ }
352
+ .how-icon { font-size: 2.2rem; margin-bottom: .75rem; }
353
+ .how-card h3 { font-family: var(--fh); font-size: 1rem; font-weight: 700; margin-bottom: .45rem; color: var(--text); }
354
+ .how-card p { color: var(--sub); font-size: .87rem; line-height: 1.65; }
355
+ .how-arrow { font-size: 1.6rem; color: var(--blue); flex-shrink: 0; opacity: .5; }
356
+
357
+ /* ── FEATURES ── */
358
+ .feat-grid {
359
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.4rem;
360
+ }
361
+ .feat-card {
362
+ background: var(--bg-white); border: 1.5px solid var(--border);
363
+ border-radius: var(--r-xl); padding: 1.8rem;
364
+ transition: all .3s var(--ease); box-shadow: var(--shadow-sm);
365
+ }
366
+ .feat-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
367
+ .feat-card--big { grid-column: span 2; }
368
+ .feat-icon { font-size: 2.2rem; margin-bottom: 1rem; }
369
+ .feat-card h3 { font-family: var(--fh); font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
370
+ .feat-card p { color: var(--sub); font-size: .88rem; line-height: 1.68; }
371
+ .feat-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
372
+ .feat-tags span {
373
+ background: var(--blue-l); color: var(--blue);
374
+ font-size: .74rem; font-weight: 700; font-family: var(--fh); padding: .25rem .7rem;
375
+ border-radius: 100px; border: 1px solid rgba(59,158,255,.25);
376
+ }
377
+
378
+ /* ── MODEL CARDS ── */
379
+ .model-grid {
380
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem;
381
+ }
382
+ .model-card {
383
+ background: var(--bg-white); border: 1.5px solid var(--border);
384
+ border-radius: var(--r-xl); padding: 1.8rem; text-align: center;
385
+ transition: all .3s var(--ease); box-shadow: var(--shadow-sm);
386
+ }
387
+ .model-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow); }
388
+ .model-card--gold { border-color: rgba(245,158,11,.3); background: linear-gradient(135deg, #fffbeb, #fff9e8); }
389
+ .model-card--gold:hover { border-color: var(--gold); box-shadow: 0 8px 28px rgba(245,158,11,.18); }
390
+ .model-badge {
391
+ display: inline-block; background: var(--blue-l); color: var(--blue);
392
+ font-family: var(--fh); font-size: .72rem; font-weight: 700; padding: .22rem .75rem;
393
+ border-radius: 100px; margin-bottom: 1rem; letter-spacing: .04em;
394
+ }
395
+ .model-badge--gold { background: var(--gold-l); color: var(--gold); }
396
+ .model-icon { font-size: 2.4rem; margin-bottom: .75rem; }
397
+ .model-card h4 { font-family: var(--fh); font-size: .98rem; font-weight: 700; margin-bottom: .45rem; color: var(--text); }
398
+ .model-card p { color: var(--sub); font-size: .86rem; line-height: 1.6; }
399
+ .model-pill {
400
+ display: inline-block; margin-top: 1rem;
401
+ background: var(--bg-section); border: 1px solid var(--border2);
402
+ color: var(--sub); font-family: var(--fh); font-size: .76rem; font-weight: 700;
403
+ padding: .25rem .8rem; border-radius: 100px;
404
+ }
405
+
406
+ /* ── CTA BLOCK ── */
407
+ .cta-block {
408
+ background: linear-gradient(135deg, #3b9eff 0%, #2ecb8e 100%);
409
+ border-radius: var(--r-2xl); padding: 4.5rem 2rem;
410
+ text-align: center; position: relative; overflow: hidden;
411
+ box-shadow: 0 16px 48px rgba(59,158,255,.3);
412
+ }
413
+ .cta-glow {
414
+ position: absolute; top: 50%; left: 50%;
415
+ transform: translate(-50%, -50%);
416
+ width: 500px; height: 280px;
417
+ background: radial-gradient(ellipse, rgba(255,255,255,.18) 0%, transparent 70%);
418
+ pointer-events: none;
419
+ }
420
+ .cta-block h2 {
421
+ font-family: var(--fh); font-size: 2.2rem; font-weight: 800;
422
+ margin-bottom: .75rem; position: relative; color: #fff;
423
+ }
424
+ .cta-block p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; position: relative; }
425
+ .cta-block .btn--primary {
426
+ background: #fff; color: var(--blue);
427
+ box-shadow: 0 4px 18px rgba(0,0,0,.15);
428
+ }
429
+ .cta-block .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
430
+
431
+ /* ══════════════════════════════════
432
+ FOOTER
433
+ ══════════════════════════════════ */
434
+ .footer { background: var(--text); border-top: 1px solid rgba(255,255,255,.07); padding: 3.5rem 0 1.5rem; }
435
+ .footer-grid {
436
+ display: grid; grid-template-columns: 2fr 1fr 1fr;
437
+ gap: 3rem; margin-bottom: 2.5rem;
438
+ }
439
+ .footer .logo-text {
440
+ background: var(--blue-g);
441
+ -webkit-background-clip: text; -webkit-text-fill-color: transparent;
442
+ background-clip: text;
443
+ }
444
+ .footer-links { display: flex; flex-direction: column; gap: .6rem; }
445
+ .footer-links h5 {
446
+ font-family: var(--fh); font-size: .76rem; text-transform: uppercase;
447
+ letter-spacing: .09em; color: rgba(255,255,255,.4); margin-bottom: .5rem;
448
+ }
449
+ .footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; transition: color .2s; }
450
+ .footer-links a:hover { color: var(--blue); }
451
+ .footer-links span { color: rgba(255,255,255,.35); font-size: .85rem; }
452
+ .footer-bottom {
453
+ border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
454
+ display: flex; justify-content: space-between;
455
+ align-items: center; flex-wrap: wrap; gap: 1rem;
456
+ }
457
+ .footer-bottom p { color: rgba(255,255,255,.3); font-size: .82rem; }
458
+
459
+ /* ══════════════════════════════════
460
+ PAGE HERO
461
+ ══════════════════════════════════ */
462
+ .page-hero {
463
+ position: relative; overflow: hidden;
464
+ padding: 4rem 0 3rem;
465
+ background: linear-gradient(160deg, #f0f8ff 0%, #e6f4fe 100%);
466
+ }
467
+ .page-title {
468
+ font-family: var(--fh);
469
+ font-size: clamp(1.9rem, 4.5vw, 2.9rem);
470
+ font-weight: 800; margin-bottom: .75rem; color: var(--text);
471
+ }
472
+ .page-sub { color: var(--sub); font-size: 1rem; max-width: 580px; margin: 0 auto; line-height: 1.7; }
473
+
474
+ /* ══════════════════════════════════
475
+ ANALYZER PAGE
476
+ ══════════════════════════════════ */
477
+ .page-wrap { min-height: calc(100vh - 62px); display: flex; flex-direction: column; }
478
+
479
+ .analyzer-layout {
480
+ display: grid; grid-template-columns: 1fr 1fr;
481
+ gap: 2.5rem; padding: 2.5rem 0 5rem;
482
+ align-items: start;
483
+ }
484
+
485
+ /* FORM CARD */
486
+ .form-card {
487
+ background: var(--bg-white);
488
+ border: 1.5px solid var(--border);
489
+ border-radius: var(--r-2xl);
490
+ padding: 2rem;
491
+ position: sticky; top: 80px;
492
+ box-shadow: var(--shadow);
493
+ }
494
+
495
+ /* UPLOAD ZONE */
496
+ .upload-zone {
497
+ border: 2px dashed var(--border2);
498
+ border-radius: var(--r-xl);
499
+ min-height: 190px;
500
+ display: flex; align-items: center; justify-content: center;
501
+ cursor: pointer; position: relative; overflow: hidden;
502
+ transition: all .25s var(--ease);
503
+ background: var(--bg-section);
504
+ }
505
+ .upload-zone:hover, .upload-zone.dragover {
506
+ border-color: var(--blue);
507
+ background: var(--blue-l);
508
+ }
509
+ .upload-placeholder { text-align: center; padding: 2rem; pointer-events: none; }
510
+ .upload-icon-wrap { font-size: 2.6rem; margin-bottom: .6rem; }
511
+ .upload-placeholder h3 {
512
+ font-family: var(--fh); font-size: 1.05rem;
513
+ font-weight: 700; margin-bottom: .4rem; color: var(--text);
514
+ }
515
+ .upload-placeholder p { color: var(--muted); font-size: .83rem; }
516
+ .upload-preview {
517
+ width: 100%; padding: 1rem;
518
+ display: flex; align-items: center; justify-content: center; position: relative;
519
+ }
520
+ .upload-preview img {
521
+ max-height: 250px; object-fit: contain;
522
+ border-radius: var(--r-lg); margin: 0 auto; box-shadow: var(--shadow-sm);
523
+ }
524
+ .remove-btn {
525
+ position: absolute; top: .75rem; right: .75rem;
526
+ width: 30px; height: 30px; border-radius: 50%;
527
+ background: #ff6b6b; color: #fff;
528
+ border: none; font-size: .9rem; cursor: pointer;
529
+ display: flex; align-items: center; justify-content: center;
530
+ transition: transform .2s, box-shadow .2s;
531
+ box-shadow: 0 2px 8px rgba(255,107,107,.35);
532
+ }
533
+ .remove-btn:hover { transform: scale(1.15); box-shadow: 0 4px 14px rgba(255,107,107,.45); }
534
+
535
+ /* PROFILE BLOCK */
536
+ .profile-block { margin-top: 1.75rem; }
537
+ .block-title {
538
+ font-family: var(--fh); font-size: .95rem; font-weight: 700;
539
+ margin-bottom: 1.2rem; color: var(--text);
540
+ display: flex; align-items: center; gap: .5rem;
541
+ }
542
+ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
543
+ .field { display: flex; flex-direction: column; gap: .35rem; }
544
+ .field label {
545
+ font-family: var(--fh); font-size: .75rem; font-weight: 700; color: var(--sub);
546
+ text-transform: uppercase; letter-spacing: .06em;
547
+ }
548
+ .field input, .field select {
549
+ background: var(--bg-section);
550
+ border: 1.5px solid var(--border);
551
+ border-radius: var(--r-sm);
552
+ padding: .62rem .9rem;
553
+ color: var(--text); font-size: .92rem; font-family: var(--fb);
554
+ transition: border-color .2s, box-shadow .2s;
555
+ -webkit-appearance: none; appearance: none;
556
+ }
557
+ .field input:focus, .field select:focus {
558
+ outline: none;
559
+ border-color: var(--blue);
560
+ box-shadow: 0 0 0 3px rgba(59,158,255,.14);
561
+ background: var(--bg-white);
562
+ }
563
+ .field select {
564
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
565
+ background-repeat: no-repeat; background-position: right .85rem center;
566
+ padding-right: 2.4rem; background-color: var(--bg-section);
567
+ }
568
+ .field input[type=number] { -moz-appearance: textfield; }
569
+ .field input[type=number]::-webkit-inner-spin-button,
570
+ .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
571
+
572
+ /* ══════════════════════════════════
573
+ RESULTS PANEL
574
+ ══════════════════════════════════ */
575
+ .results-panel { display: flex; flex-direction: column; gap: 1.1rem; }
576
+
577
+ /* DETECTED FOOD BANNER */
578
+ .result-banner {
579
+ background: linear-gradient(135deg, #3b9eff 0%, #2ecb8e 100%);
580
+ border-radius: var(--r-xl);
581
+ padding: 1.6rem 1.85rem;
582
+ display: flex; align-items: center; gap: 1.4rem;
583
+ box-shadow: 0 8px 28px rgba(59,158,255,.28);
584
+ }
585
+ .result-banner__icon { font-size: 2.6rem; flex-shrink: 0; }
586
+ .result-banner__label {
587
+ font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
588
+ color: rgba(255,255,255,.75); font-family: var(--fh); font-weight: 700; margin-bottom: .2rem;
589
+ }
590
+ .result-banner h2 {
591
+ font-family: var(--fh); font-size: 1.6rem; font-weight: 800;
592
+ color: #fff; margin: .1rem 0 .55rem; line-height: 1.2;
593
+ }
594
+ .result-banner__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
595
+ .confidence-chip, .source-chip {
596
+ font-size: .74rem; font-weight: 700; font-family: var(--fh);
597
+ padding: .22rem .65rem; border-radius: 100px;
598
+ background: rgba(255,255,255,.22); color: #fff;
599
+ }
600
+
601
+ /* BMI STRIP */
602
+ .bmi-strip {
603
+ background: var(--bg-white); border: 1.5px solid var(--border);
604
+ border-radius: var(--r-lg); padding: 1.1rem 1.5rem;
605
+ display: flex; align-items: center; gap: 1.5rem;
606
+ box-shadow: var(--shadow-sm);
607
+ }
608
+ .bmi-item { display: flex; flex-direction: column; gap: .15rem; }
609
+ .bmi-label {
610
+ font-family: var(--fh); font-size: .72rem; font-weight: 700; color: var(--muted);
611
+ text-transform: uppercase; letter-spacing: .06em;
612
+ }
613
+ .bmi-val { font-family: var(--fh); font-size: 1.55rem; font-weight: 800; color: var(--blue); line-height: 1; }
614
+ .bmi-cat { font-family: var(--fh); font-size: .92rem; font-weight: 700; color: var(--text); }
615
+ .bmi-sep { width: 1px; height: 38px; background: var(--border); }
616
+
617
+ /* RESULT CARDS */
618
+ .result-card {
619
+ background: var(--bg-white); border: 1.5px solid var(--border);
620
+ border-radius: var(--r-xl); padding: 1.4rem 1.6rem;
621
+ animation: slide-up .35s var(--ease) both;
622
+ box-shadow: var(--shadow-sm);
623
+ }
624
+ .result-card--amber { border-left: 3px solid var(--gold); background: linear-gradient(to right, #fffbeb, var(--bg-white)); }
625
+ .result-card--pink { border-left: 3px solid var(--peach); background: linear-gradient(to right, #fff5f3, var(--bg-white)); }
626
+ .result-card--teal { border-left: 3px solid var(--mint); background: linear-gradient(to right, #f0fdf8, var(--bg-white)); }
627
+ .result-card__title {
628
+ font-family: var(--fh); font-size: .95rem; font-weight: 700; color: var(--text);
629
+ margin-bottom: 1rem; display: flex; align-items: center; gap: .45rem;
630
+ }
631
+
632
+ /* NUTRITION GRID */
633
+ .nutrition-grid {
634
+ display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: .65rem;
635
+ }
636
+ .nutri-item {
637
+ background: var(--bg-section); border: 1.5px solid var(--border);
638
+ border-radius: var(--r-md); padding: .85rem .8rem;
639
+ text-align: center; transition: all .2s;
640
+ }
641
+ .nutri-item:hover { border-color: var(--blue); background: var(--blue-l); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
642
+ .nutri-val { font-family: var(--fh); font-size: 1rem; font-weight: 800; color: var(--blue); margin-bottom: .2rem; }
643
+ .nutri-label { font-family: var(--fh); font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
644
+
645
+ /* HEALTH BENEFITS */
646
+ .benefits-list { display: flex; flex-direction: column; gap: .5rem; }
647
+ .benefits-list li {
648
+ display: flex; align-items: flex-start; gap: .65rem;
649
+ padding: .65rem .9rem;
650
+ background: var(--mint-l);
651
+ border-radius: var(--r-sm);
652
+ border: 1px solid rgba(46,203,142,.2);
653
+ color: var(--text-2); font-size: .9rem; line-height: 1.55;
654
+ }
655
+ .benefits-list li::before { content: "βœ“"; color: var(--mint); font-weight: 800; flex-shrink: 0; }
656
+
657
+ /* PORTION */
658
+ .portion-text { color: var(--text-2); font-size: .93rem; line-height: 1.7; padding: .3rem 0; }
659
+
660
+ /* HEALTH CONTEXT */
661
+ .result-card--pink p { color: var(--text-2); font-size: .92rem; line-height: 1.72; }
662
+
663
+ /* ALTERNATIVES */
664
+ .alt-intro { color: var(--muted); font-size: .84rem; margin-bottom: 1rem; font-style: italic; }
665
+ .alt-list { display: flex; flex-direction: column; gap: .8rem; }
666
+ .alt-item {
667
+ background: var(--bg-section); border: 1.5px solid var(--border);
668
+ border-radius: var(--r-lg); padding: 1.05rem 1.2rem;
669
+ transition: border-color .22s, transform .22s, box-shadow .22s;
670
+ }
671
+ .alt-item:hover { border-color: var(--mint); transform: translateX(4px); box-shadow: var(--shadow-sm); }
672
+ .alt-name { font-family: var(--fh); font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: .2rem; }
673
+ .alt-reason { color: var(--sub); font-size: .85rem; margin-bottom: .7rem; line-height: 1.55; }
674
+ .alt-buy { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
675
+ .buy-label { font-family: var(--fh); font-size: .74rem; font-weight: 700; color: var(--muted); }
676
+ .buy-link {
677
+ display: inline-flex; align-items: center; gap: .3rem;
678
+ background: var(--blue-l); color: var(--blue);
679
+ font-family: var(--fh); font-size: .74rem; font-weight: 700;
680
+ padding: .22rem .65rem; border-radius: 6px;
681
+ border: 1px solid rgba(59,158,255,.25);
682
+ transition: all .2s;
683
+ }
684
+ .buy-link:hover { background: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
685
+
686
+ /* RESULT ACTIONS */
687
+ .result-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; padding-top: .5rem; }
688
+
689
+ /* ══════════════════════════════════
690
+ LOADING OVERLAY
691
+ ══════════════════════════════════ */
692
+ .loading-overlay {
693
+ position: fixed; inset: 0; z-index: 9999;
694
+ background: rgba(240,248,255,.95);
695
+ backdrop-filter: blur(14px);
696
+ -webkit-backdrop-filter: blur(14px);
697
+ display: none; align-items: center; justify-content: center;
698
+ }
699
+ .loading-overlay.active { display: flex; }
700
+ .loading-box { text-align: center; max-width: 360px; padding: 2rem; }
701
+ .loading-spinner {
702
+ width: 64px; height: 64px; margin: 0 auto 2rem;
703
+ border: 4px solid rgba(59,158,255,.15);
704
+ border-top-color: var(--blue);
705
+ border-radius: 50%; animation: spin 1s linear infinite;
706
+ }
707
+ .loading-box h3 { font-family: var(--fh); font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; color: var(--text); }
708
+ .loading-box > p { color: var(--sub); font-size: .88rem; margin-bottom: 1.5rem; }
709
+ .loading-steps { display: flex; flex-direction: column; gap: .45rem; }
710
+ .lstep {
711
+ padding: .5rem 1rem; border-radius: var(--r-sm);
712
+ color: var(--muted); font-size: .85rem; font-family: var(--fh); font-weight: 600;
713
+ transition: all .4s; opacity: .35;
714
+ }
715
+ .lstep.active {
716
+ background: var(--blue-l); color: var(--blue);
717
+ opacity: 1; border: 1px solid rgba(59,158,255,.25);
718
+ }
719
+
720
+ /* ══════════════════════════════════
721
+ ABOUT PAGE
722
+ ══════════════════════════════════ */
723
+ .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
724
+ .team-card {
725
+ background: var(--bg-white); border: 1.5px solid var(--border);
726
+ border-radius: var(--r-2xl); padding: 2.25rem; text-align: center;
727
+ transition: all .3s var(--ease); box-shadow: var(--shadow-sm);
728
+ }
729
+ .team-card:hover { border-color: var(--blue); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
730
+ .team-avatar {
731
+ width: 92px; height: 92px; border-radius: 50%;
732
+ display: flex; align-items: center; justify-content: center;
733
+ font-family: var(--fh); font-size: 2.3rem; font-weight: 800;
734
+ color: #fff; margin: 0 auto 1.4rem;
735
+ }
736
+ .av--purple { background: linear-gradient(135deg, #8b5cf6, #6d44e8); box-shadow: 0 6px 20px rgba(139,92,246,.3); }
737
+ .av--pink { background: linear-gradient(135deg, #f472b6, #e04e9a); box-shadow: 0 6px 20px rgba(244,114,182,.3); }
738
+ .av--gold { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 6px 20px rgba(245,158,11,.3); }
739
+ .team-card h3 { font-family: var(--fh); font-size: 1.2rem; font-weight: 800; margin-bottom: .3rem; color: var(--text); }
740
+ .team-role { color: var(--blue); font-weight: 700; font-size: .88rem; margin-bottom: 1rem; display: block; font-family: var(--fh); }
741
+ .team-bio { color: var(--sub); font-size: .87rem; line-height: 1.72; margin-bottom: 1.25rem; }
742
+ .skill-chips { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
743
+ .skill-chips span {
744
+ background: var(--blue-l); color: var(--blue);
745
+ font-family: var(--fh); font-size: .74rem; font-weight: 700; padding: .26rem .7rem;
746
+ border-radius: 100px; border: 1px solid rgba(59,158,255,.2);
747
+ }
748
+ .mission-text { color: var(--sub); font-size: 1.02rem; line-height: 1.85; text-align: center; max-width: 720px; margin: 0 auto; }
749
+ .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 1.3rem; }
750
+ .tech-card {
751
+ background: var(--bg-white); border: 1.5px solid var(--border);
752
+ border-radius: var(--r-xl); padding: 1.65rem; text-align: center; transition: all .3s;
753
+ box-shadow: var(--shadow-sm);
754
+ }
755
+ .tech-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow); }
756
+ .tech-card--gold { border-color: rgba(245,158,11,.28); background: linear-gradient(135deg, #fffbeb, #fff9e8); }
757
+ .tech-card--gold:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(245,158,11,.18); }
758
+ .tech-icon { font-size: 2.1rem; margin-bottom: .8rem; }
759
+ .tech-card h4 { font-family: var(--fh); font-size: .96rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
760
+ .tech-card p { color: var(--sub); font-size: .85rem; line-height: 1.6; }
761
+ .diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
762
+ .diff-item {
763
+ display: flex; gap: 1.3rem; align-items: flex-start;
764
+ background: var(--bg-white); border: 1.5px solid var(--border);
765
+ border-radius: var(--r-xl); padding: 1.4rem; transition: border-color .3s;
766
+ box-shadow: var(--shadow-sm);
767
+ }
768
+ .diff-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
769
+ .diff-num {
770
+ font-family: var(--fh); font-size: 2.3rem; font-weight: 800;
771
+ line-height: 1; flex-shrink: 0;
772
+ background: var(--blue-g);
773
+ -webkit-background-clip: text; -webkit-text-fill-color: transparent;
774
+ background-clip: text;
775
+ }
776
+ .diff-item h3 { font-family: var(--fh); font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
777
+ .diff-item p { color: var(--sub); font-size: .87rem; line-height: 1.6; }
778
+
779
+ /* ══════════════════════════════════
780
+ REVEAL ANIMATION
781
+ ══════════════════════════════════ */
782
+ .reveal {
783
+ opacity: 0; transform: translateY(22px);
784
+ transition: opacity .55s var(--ease), transform .55s var(--ease);
785
+ }
786
+ .reveal.in-view { opacity: 1; transform: translateY(0); }
787
+ .d1 { transition-delay: .07s; }
788
+ .d2 { transition-delay: .15s; }
789
+ .d3 { transition-delay: .23s; }
790
+ .d4 { transition-delay: .31s; }
791
+ .d5 { transition-delay: .39s; }
792
+ .d6 { transition-delay: .47s; }
793
+
794
+ /* ══════════════════════════════════
795
+ KEYFRAMES
796
+ ══════════���═══════════════════════ */
797
+ @keyframes float {
798
+ 0%, 100% { transform: translateY(0); }
799
+ 50% { transform: translateY(-6px); }
800
+ }
801
+ @keyframes drift {
802
+ 0% { transform: translate(0, 0); }
803
+ 100% { transform: translate(24px, -24px); }
804
+ }
805
+ @keyframes marquee {
806
+ 0% { transform: translateX(0); }
807
+ 100% { transform: translateX(-50%); }
808
+ }
809
+ @keyframes spin { to { transform: rotate(360deg); } }
810
+ @keyframes spin-cw { to { transform: translate(-50%,-50%) rotate(360deg); } }
811
+ @keyframes spin-ccw { to { transform: translate(-50%,-50%) rotate(-360deg); } }
812
+ @keyframes pulse-ring {
813
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(46,203,142,.6); }
814
+ 50% { box-shadow: 0 0 0 7px rgba(46,203,142,0); }
815
+ }
816
+ @keyframes slide-up {
817
+ from { opacity: 0; transform: translateY(12px); }
818
+ to { opacity: 1; transform: translateY(0); }
819
+ }
820
+
821
+ /* ══════════════════════════════════
822
+ RESPONSIVE β€” TABLET (≀1040px)
823
+ ══════════════════════════════════ */
824
+ @media (max-width: 1040px) {
825
+ .analyzer-layout { grid-template-columns: 1fr; }
826
+ .form-card { position: static; }
827
+ .feat-card--big { grid-column: span 1; }
828
+ .footer-grid { grid-template-columns: 1fr 1fr; }
829
+ }
830
+
831
+ /* ══════════════════════════════════
832
+ RESPONSIVE β€” MOBILE (≀768px)
833
+ ══════════════════════════════════ */
834
+ @media (max-width: 768px) {
835
+ .nav__links, .nav__cta { display: none; }
836
+ .hamburger { display: flex; }
837
+
838
+ .hero { min-height: auto; padding: 2rem 0; }
839
+ .hero__body { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 2.5rem 0; }
840
+ .hero__right { display: none; }
841
+ .hero__btns { justify-content: center; }
842
+ .hero__stats { justify-content: center; }
843
+ .hero__desc { margin-left: auto; margin-right: auto; }
844
+
845
+ .section { padding: 3.5rem 0; }
846
+ .how-arrow { transform: rotate(90deg); }
847
+ .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
848
+ .footer-bottom { flex-direction: column; text-align: center; gap: .4rem; }
849
+ .result-banner { flex-direction: column; text-align: center; }
850
+ .result-banner__meta { justify-content: center; }
851
+ .model-grid { grid-template-columns: 1fr 1fr; }
852
+ .page-title { font-size: 1.75rem; }
853
+ .cta-block { padding: 3rem 1.5rem; }
854
+ .cta-block h2 { font-size: 1.7rem; }
855
+ .diff-grid { grid-template-columns: 1fr; }
856
+ }
857
+
858
+ /* ══════════════════════════════════
859
+ RESPONSIVE β€” SMALL MOBILE (≀520px)
860
+ ══════════════════════════════════ */
861
+ @media (max-width: 520px) {
862
+ .container { padding: 0 1rem; }
863
+ .form-grid { grid-template-columns: 1fr; }
864
+ .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
865
+ .model-grid { grid-template-columns: 1fr; }
866
+ .result-banner h2 { font-size: 1.3rem; }
867
+ .bmi-strip { flex-wrap: wrap; gap: 1rem; }
868
+ .hero__title { font-size: 2rem; }
869
+ .hero__stats { gap: 1.25rem; }
870
+ .hstat b { font-size: 1.55rem; }
871
+ .team-grid { grid-template-columns: 1fr; }
872
+ .section-head h2 { font-size: 1.55rem; }
873
+ .feat-grid { grid-template-columns: 1fr; }
874
+ .tech-grid { grid-template-columns: 1fr 1fr; }
875
+ .footer-grid { grid-template-columns: 1fr; }
876
+ .btn--lg { padding: .85rem 1.6rem; font-size: .9rem; }
877
+ .result-actions { flex-direction: column; align-items: center; }
878
+ .result-actions .btn { width: 100%; max-width: 280px; }
879
+ .how-grid { flex-direction: column; align-items: stretch; }
880
+ .how-card { max-width: 100%; }
881
+ .how-arrow { align-self: center; transform: rotate(90deg); }
882
+ }
883
+
884
+ /* ══════════════════════════════════
885
+ RESPONSIVE β€” VERY SMALL (≀380px)
886
+ ══════════════════════════════════ */
887
+ @media (max-width: 380px) {
888
+ .tech-grid { grid-template-columns: 1fr; }
889
+ .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
890
+ .hero__title { font-size: 1.75rem; }
891
+ .hero__badge { font-size: .72rem; }
892
+ }