Nanny7 commited on
Commit
cf80a30
·
1 Parent(s): 162eedf

Responsive onboarding: mobile grid/flex fixes

Browse files
auth_module/flask_auth_routes.py CHANGED
@@ -15,7 +15,7 @@ from .security import (
15
  from .config import auth_settings
16
 
17
 
18
- auth_blueprint = Blueprint("auth_blueprint", __name__)
19
 
20
 
21
  def _run(coro):
 
15
  from .config import auth_settings
16
 
17
 
18
+ auth_blueprint = Blueprint("auth", __name__)
19
 
20
 
21
  def _run(coro):
static/css/style.css CHANGED
@@ -2639,10 +2639,13 @@ body.no-waveform .waveform-canvas {
2639
  @media (max-width: 600px) {
2640
  .lang-cards {
2641
  gap: 6px;
 
 
2642
  }
2643
  .lang-card {
2644
  padding: 10px 12px;
2645
  min-width: 70px;
 
2646
  }
2647
  .lang-flag {
2648
  font-size: 1.4rem;
@@ -2650,6 +2653,17 @@ body.no-waveform .waveform-canvas {
2650
  .lang-name {
2651
  font-size: 0.7rem;
2652
  }
 
 
 
 
 
 
 
 
 
 
 
2653
  .scenario-grid {
2654
  grid-template-columns: repeat(2, 1fr);
2655
  }
@@ -2659,10 +2673,13 @@ body.no-waveform .waveform-canvas {
2659
  }
2660
  .exercise-types {
2661
  gap: 4px;
 
 
2662
  }
2663
  .ex-type-btn {
2664
  padding: 6px 10px;
2665
  font-size: 0.72rem;
 
2666
  }
2667
  .xp-display {
2668
  padding: 3px 6px;
@@ -2686,4 +2703,17 @@ body.no-waveform .waveform-canvas {
2686
  .side-panel:not(.hidden) {
2687
  right: 0;
2688
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
2689
  }
 
2639
  @media (max-width: 600px) {
2640
  .lang-cards {
2641
  gap: 6px;
2642
+ flex-wrap: wrap;
2643
+ justify-content: center;
2644
  }
2645
  .lang-card {
2646
  padding: 10px 12px;
2647
  min-width: 70px;
2648
+ flex: 1 1 calc(33% - 10px);
2649
  }
2650
  .lang-flag {
2651
  font-size: 1.4rem;
 
2653
  .lang-name {
2654
  font-size: 0.7rem;
2655
  }
2656
+ .level-cards {
2657
+ flex-wrap: wrap;
2658
+ }
2659
+ .level-card {
2660
+ flex: 1 1 calc(50% - 10px);
2661
+ font-size: 0.8rem;
2662
+ padding: 10px 16px;
2663
+ }
2664
+ .topic-grid {
2665
+ grid-template-columns: repeat(2, 1fr);
2666
+ }
2667
  .scenario-grid {
2668
  grid-template-columns: repeat(2, 1fr);
2669
  }
 
2673
  }
2674
  .exercise-types {
2675
  gap: 4px;
2676
+ flex-wrap: wrap;
2677
+ justify-content: center;
2678
  }
2679
  .ex-type-btn {
2680
  padding: 6px 10px;
2681
  font-size: 0.72rem;
2682
+ flex: 1 1 auto;
2683
  }
2684
  .xp-display {
2685
  padding: 3px 6px;
 
2703
  .side-panel:not(.hidden) {
2704
  right: 0;
2705
  }
2706
+ .onboarding-screen {
2707
+ padding: 80px 16px 40px;
2708
+ align-items: flex-start; /* Allow scrolling from top */
2709
+ }
2710
+ .onboarding-card {
2711
+ margin-bottom: 40px;
2712
+ }
2713
+ }
2714
+ @media (max-height: 700px) {
2715
+ .onboarding-screen {
2716
+ align-items: flex-start;
2717
+ padding-top: 20px;
2718
+ }
2719
  }
templates/index.html CHANGED
@@ -43,11 +43,7 @@
43
  <div class="onboarding-screen" id="onboarding-screen">
44
  <div class="onboarding-content">
45
  <div class="onboarding-logo">
46
- <div class="logo-orb">
47
- <div class="logo-ring ring-1"></div>
48
- <div class="logo-ring ring-2"></div>
49
- <div class="logo-core"></div>
50
- </div>
51
  </div>
52
  <h1 class="onboarding-title">ECHO <span class="accent">TUTOR</span></h1>
53
  <p class="onboarding-subtitle">Your AI-Powered Language Tutor</p>
@@ -141,7 +137,7 @@
141
  <!-- Header -->
142
  <header class="app-header">
143
  <div class="header-left">
144
- <div class="header-orb"><div class="header-orb-core"></div></div>
145
  <div class="header-text">
146
  <h1 class="header-title">ECHO <span class="accent">TUTOR</span></h1>
147
  <span class="header-status" id="header-status">Ready</span>
 
43
  <div class="onboarding-screen" id="onboarding-screen">
44
  <div class="onboarding-content">
45
  <div class="onboarding-logo">
46
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Echo Tutor Logo" style="width: 100px; height: 100px; border-radius: 50%; box-shadow: 0 0 30px rgba(99, 179, 237, 0.5); object-fit: cover;">
 
 
 
 
47
  </div>
48
  <h1 class="onboarding-title">ECHO <span class="accent">TUTOR</span></h1>
49
  <p class="onboarding-subtitle">Your AI-Powered Language Tutor</p>
 
137
  <!-- Header -->
138
  <header class="app-header">
139
  <div class="header-left">
140
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Logo" style="width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 10px rgba(99, 179, 237, 0.4); margin-right: 12px;">
141
  <div class="header-text">
142
  <h1 class="header-title">ECHO <span class="accent">TUTOR</span></h1>
143
  <span class="header-status" id="header-status">Ready</span>
templates/landing.html CHANGED
@@ -1,726 +1,1463 @@
1
- <!doctype html>
2
- <html lang="en" dir="ltr" data-theme="dark">
3
  <head>
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Echo Tutor Premium AI Language Coach</title>
7
  <meta
8
  name="description"
9
- content="Echo Tutor is a premium AI language coach with real-time conversation, corrections, voice support, and guided practice."
10
  />
11
  <link
12
  rel="stylesheet"
13
  href="{{ url_for('static', filename='css/style.css') }}"
14
  />
 
 
 
 
15
  <style>
16
  :root {
17
- --direction: ltr;
18
- --font-family: 'Inter', -apple-system, sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
 
21
- [data-lang="ar"] {
22
- --direction: rtl;
23
- --font-family: 'Cairo', 'Tajawal', sans-serif;
 
 
 
 
 
24
  }
25
 
26
- body.landing-body {
27
- overflow-y: auto;
28
- justify-content: flex-start;
29
- align-items: stretch;
30
- direction: var(--direction);
31
- font-family: var(--font-family);
 
 
 
 
 
 
32
  }
33
 
34
- /* Language Toggle */
35
- .lang-switch {
36
- cursor: pointer;
37
- padding: 6px 10px;
38
- border-radius: 999px;
39
- background: rgba(255, 255, 255, 0.05);
40
- border: 1px solid var(--border-glass);
41
  display: flex;
42
  align-items: center;
43
- gap: 6px;
44
- transition: 0.3s;
45
- color: var(--text-primary);
46
- font-family: inherit;
47
  }
48
- .lang-switch:hover {
49
- background: rgba(255, 255, 255, 0.1);
 
50
  }
51
- .lang-icon {
52
- font-size: 1.2rem;
 
 
 
53
  }
54
 
55
- .landing-root {
56
- position: relative;
57
- z-index: 2;
58
- min-height: 100vh;
59
- width: min(1180px, 94vw);
60
- margin: 0 auto;
61
- padding: 22px 0 48px;
 
 
62
  }
63
 
64
- .landing-nav {
65
- position: sticky;
66
- top: 12px;
67
- z-index: 20;
 
 
 
 
68
  display: flex;
69
  align-items: center;
70
  justify-content: space-between;
71
- gap: 14px;
72
- background: var(--bg-glass);
73
- border: 1px solid var(--border-glass);
74
- border-radius: 999px;
75
- padding: 10px 14px;
76
- backdrop-filter: blur(14px);
77
- -webkit-backdrop-filter: blur(14px);
78
- box-shadow: var(--shadow-sm);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  }
80
 
81
- .brand-mark {
 
 
 
 
 
 
 
 
 
 
 
 
82
  display: inline-flex;
83
  align-items: center;
84
- gap: 10px;
85
- font-weight: 700;
86
- letter-spacing: 1px;
87
  }
88
 
89
- .echo-logo-inline {
90
- width: 26px;
91
- height: 26px;
92
- object-fit: contain;
93
- border-radius: 8px;
94
- filter: drop-shadow(0 0 12px var(--accent-glow));
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  }
96
 
97
- .echo-logo-inline.sm {
98
- width: 18px;
99
- height: 18px;
100
  }
101
 
102
- .echo-logo-inline.lg {
103
- width: 38px;
104
- height: 38px;
105
- border-radius: 10px;
 
 
 
106
  }
107
 
108
- .nav-actions {
109
- display: inline-flex;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  align-items: center;
111
- gap: 8px;
 
 
112
  }
113
 
114
- .hero {
115
- display: grid;
116
- grid-template-columns: 1.1fr 0.9fr;
117
- gap: 26px;
118
- align-items: stretch;
119
- margin-top: 24px;
 
 
120
  }
121
 
122
- .hero-panel,
123
- .hero-preview,
124
- .section-card {
125
- background: var(--bg-glass);
126
- border: 1px solid var(--border-glass);
127
- border-radius: var(--radius-xl);
128
- box-shadow: var(--shadow-md);
129
- backdrop-filter: blur(14px);
130
- -webkit-backdrop-filter: blur(14px);
 
 
 
 
 
131
  }
132
 
133
- .hero-panel {
134
- padding: 34px;
 
135
  position: relative;
136
- overflow: hidden;
137
  }
138
 
139
- .hero-kicker {
140
- display: inline-flex;
141
- align-items: center;
142
- gap: 8px;
143
- font-size: 0.82rem;
144
- color: var(--accent-bright);
145
- border: 1px solid var(--border-glass);
146
- border-radius: 999px;
147
- padding: 7px 12px;
148
- margin-bottom: 14px;
149
  }
150
 
151
- .hero-title {
152
- font-size: clamp(2rem, 4vw, 3.2rem);
153
- line-height: 1.1;
154
- letter-spacing: 0.5px;
155
- margin-bottom: 12px;
156
  }
157
 
158
- .hero-copy {
159
  color: var(--text-secondary);
160
- max-width: 58ch;
161
- line-height: 1.75;
162
  }
163
 
164
- .cta-row {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  display: flex;
166
- flex-wrap: wrap;
167
- gap: 10px;
168
- margin-top: 22px;
169
  }
170
 
171
- .stats-row {
172
- margin-top: 18px;
173
- display: grid;
174
- grid-template-columns: repeat(3, minmax(100px, 1fr));
175
- gap: 10px;
176
  }
177
 
178
- .stat-chip {
179
- border: 1px solid var(--border-glass);
180
- border-radius: var(--radius-md);
181
- padding: 11px 12px;
182
- background: rgba(255, 255, 255, 0.02);
 
 
 
 
 
 
183
  }
184
 
185
- .stat-value {
186
- font-size: 1.02rem;
 
 
 
187
  font-weight: 700;
188
  }
189
 
190
- .stat-label {
191
- color: var(--text-muted);
192
- font-size: 0.78rem;
 
193
  }
194
 
195
- .hero-preview {
196
- padding: 22px;
 
 
 
 
197
  position: relative;
198
- overflow: hidden;
199
  }
200
 
201
- .echo-character-wrap {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  position: relative;
203
- width: 170px;
204
- height: 170px;
205
- margin: 0 auto 14px;
 
 
 
 
 
 
206
  display: flex;
207
  align-items: center;
208
  justify-content: center;
209
- animation: echoFloat 3.6s ease-in-out infinite;
210
- }
211
-
212
- .echo-character {
213
- width: 104px;
214
- height: 104px;
215
- object-fit: contain;
216
- border-radius: 22px;
217
- border: 1px solid rgba(255, 255, 255, 0.12);
218
- box-shadow:
219
- 0 0 24px var(--accent-glow),
220
- 0 0 60px rgba(99, 179, 237, 0.18);
221
- background: rgba(10, 14, 26, 0.6);
222
- position: relative;
223
- z-index: 3;
224
  }
225
 
226
- .echo-ring {
227
- position: absolute;
228
- border-radius: 50%;
229
- border: 1px solid;
230
- pointer-events: none;
231
  }
232
 
233
- .echo-ring-1 {
234
- width: 132px;
235
- height: 132px;
236
- border-color: rgba(99, 179, 237, 0.36);
237
- animation: ringSpin 8.5s linear infinite;
238
  }
239
 
240
- .echo-ring-2 {
241
- width: 162px;
242
- height: 162px;
243
- border-color: rgba(159, 122, 234, 0.3);
244
- animation: ringSpin 11s linear infinite reverse;
 
 
 
 
 
 
245
  }
246
 
247
- .echo-pulse {
248
- position: absolute;
249
- width: 180px;
250
- height: 180px;
251
- border-radius: 50%;
252
- background: radial-gradient(circle, rgba(99, 179, 237, 0.22) 0%, transparent 72%);
253
- animation: pulseGlow 2.6s ease-in-out infinite;
254
- pointer-events: none;
255
  }
256
 
257
- .preview-glow {
258
- position: absolute;
259
- width: 320px;
260
- height: 320px;
261
- border-radius: 50%;
262
- background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
263
- top: -120px;
264
- right: -80px;
265
- pointer-events: none;
266
  }
267
 
268
- .preview-card {
269
- position: relative;
270
- border: 1px solid var(--border-glass);
271
- border-radius: var(--radius-lg);
272
- background: rgba(10, 14, 26, 0.55);
273
- padding: 14px;
274
- margin-bottom: 10px;
275
- transform: translateY(0);
276
- transition: transform var(--transition-normal), border-color var(--transition-normal);
277
  }
278
 
279
- .preview-card:hover {
280
- transform: translateY(-4px);
281
- border-color: var(--accent);
 
282
  }
283
 
284
- .preview-role {
285
- font-size: 0.74rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  color: var(--text-muted);
287
- margin-bottom: 6px;
288
  }
289
 
290
- .preview-text {
291
- line-height: 1.6;
292
  color: var(--text-secondary);
293
- font-size: 0.92rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  }
295
 
296
- .landing-grid {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
  display: grid;
298
- grid-template-columns: repeat(3, minmax(0, 1fr));
299
- gap: 12px;
300
- margin-top: 14px;
301
  }
302
 
303
- .section {
304
- margin-top: 18px;
 
 
 
305
  }
306
 
307
- .section-card {
308
- padding: 24px;
 
 
309
  }
310
 
311
- .section-title {
312
- font-size: 1.34rem;
 
 
 
 
 
 
 
 
313
  margin-bottom: 12px;
 
314
  }
315
 
316
- .feature-grid {
317
- display: grid;
318
- grid-template-columns: repeat(3, minmax(0, 1fr));
319
- gap: 12px;
320
  }
321
 
322
- .feature-item {
323
- border: 1px solid var(--border-glass);
324
- border-radius: var(--radius-md);
325
- background: rgba(255, 255, 255, 0.02);
326
- padding: 14px;
 
327
  }
328
 
329
- .feature-item h4 {
330
- font-size: 0.95rem;
331
- margin-bottom: 6px;
 
 
 
332
  }
333
 
334
- .feature-item p {
335
- color: var(--text-secondary);
336
- line-height: 1.6;
337
- font-size: 0.88rem;
 
338
  }
339
 
340
- .steps {
341
- display: grid;
342
- grid-template-columns: repeat(3, minmax(0, 1fr));
343
- gap: 12px;
 
 
 
 
 
344
  }
345
 
346
- .step-item {
347
- border: 1px solid var(--border-glass);
348
- border-radius: var(--radius-md);
349
- padding: 14px;
350
- background: rgba(255, 255, 255, 0.02);
351
  }
352
 
353
- .step-num {
354
- display: inline-flex;
 
 
355
  align-items: center;
356
- justify-content: center;
357
- width: 28px;
358
- height: 28px;
 
 
 
 
 
 
 
359
  border-radius: 50%;
360
- font-size: 0.82rem;
361
- font-weight: 700;
362
- background: linear-gradient(135deg, var(--accent), var(--accent-2));
363
- margin-bottom: 8px;
 
 
 
 
 
 
364
  }
365
 
366
- .final-cta {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  text-align: center;
368
- padding: 26px;
 
369
  }
370
 
371
- .muted {
372
- color: var(--text-muted);
 
373
  }
374
 
375
- .logo-text-group {
376
- display: inline-flex;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
377
  align-items: center;
378
- gap: 8px;
379
  }
380
 
381
- .reveal {
382
- opacity: 0;
383
- transform: translateY(16px);
384
- transition: opacity 0.7s ease, transform 0.7s ease;
385
  }
386
 
387
- .reveal.visible {
388
- opacity: 1;
389
- transform: translateY(0);
 
390
  }
391
 
392
- @keyframes echoFloat {
393
- 0%,
394
- 100% {
395
- transform: translateY(0px);
396
- }
397
- 50% {
398
- transform: translateY(-8px);
399
- }
400
  }
401
 
402
- @keyframes ringSpin {
403
- from {
404
- transform: rotate(0deg);
405
- }
406
- to {
407
- transform: rotate(360deg);
408
- }
409
  }
410
 
411
- @keyframes pulseGlow {
412
- 0%,
413
- 100% {
414
- opacity: 0.45;
415
- transform: scale(0.94);
416
- }
417
- 50% {
418
- opacity: 0.85;
419
- transform: scale(1.02);
420
- }
421
  }
422
-
423
- /* Mobile Responsiveness */
 
 
 
 
 
 
 
 
 
 
 
 
 
424
  @media (max-width: 900px) {
425
  .hero {
426
- grid-template-columns: 1fr;
427
- gap: 40px;
 
 
 
 
428
  }
 
429
  .hero-title {
430
- font-size: 2.5rem;
431
  }
432
- .echo-character-wrap {
433
- width: 140px;
434
- height: 140px;
435
  }
436
- .echo-character {
437
- width: 90px;
438
- height: 90px;
439
  }
440
- .echo-ring-1 { width: 110px; height: 110px; }
441
- .echo-ring-2 { width: 140px; height: 140px; }
442
-
443
- .landing-grid, .feature-grid {
444
- grid-template-columns: 1fr;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  }
446
  }
447
  </style>
448
  </head>
449
- <body class="landing-body">
450
- <!-- Particles Background -->
451
- <canvas id="particles-canvas"></canvas>
452
 
453
- <div class="landing-root">
454
-
455
- <div class="landing-nav">
456
- <div class="brand-mark">
457
- <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Echo Logo" class="echo-logo-inline">
458
- <span>Echo Tutor</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  </div>
460
- <div class="nav-actions">
461
- <!-- Language Switcher -->
462
- <button class="lang-switch" onclick="toggleLanguage()" title="Switch Language">
463
- <span class="lang-icon" id="lang-flag"></span>
464
- <span id="lang-text">EN</span>
465
- </button>
466
-
467
- {% if user %}
468
- <a href="{{ url_for('index') }}" class="btn btn-sm btn-ghost" data-i18n="dashboard">Dashboard</a>
469
- <a href="{{ url_for('auth.logout') }}" class="btn btn-sm btn-glass" data-i18n="logout">Log Out</a>
470
- {% else %}
471
- <a href="{{ url_for('auth.login') }}" class="btn btn-sm btn-ghost" data-i18n="login">Log In</a>
472
- <a href="{{ url_for('auth.register') }}" class="btn btn-sm btn-primary" data-i18n="get_started">Get Started</a>
473
- {% endif %}
 
 
 
 
 
 
 
 
474
  </div>
475
  </div>
476
 
477
- <div class="hero">
478
- <div class="hero-panel">
479
- <div class="hero-kicker">
480
- <span class="status-dot"></span>
481
- <span data-i18n="new_ai_model">New Gemini 2.0 Flash Model</span>
 
 
 
 
 
 
 
 
 
 
 
 
482
  </div>
483
- <h1 class="hero-title">
484
- <span class="text-gradient" data-i18n="hero_title_1">Master English</span><br />
485
- <span data-i18n="hero_title_2">with Echo Tutor</span>
486
- </h1>
487
- <p class="hero-copy" data-i18n="hero_desc">
488
- Experience the future of language learning. Real-time conversation,
489
- instant correction, and personalized feedback powered by advanced AI.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490
  </p>
 
491
 
492
- <div class="cta-row">
493
- <a href="{{ url_for('index') }}" class="btn btn-lg btn-primary">
494
- <img src="{{ url_for('static', filename='icons/Echo.png') }}" class="echo-logo-inline sm" style="margin-right:8px; filter:none;">
495
- <span data-i18n="try_demo">Try Echo Live</span>
496
- </a>
497
- <a href="#features" class="btn btn-lg btn-glass" data-i18n="explore_features">Explore Features</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
498
  </div>
499
-
500
- <div class="stats-row">
501
- <div class="stat-chip">
502
- <div class="stat-value">50+</div>
503
- <div class="stat-label" data-i18n="scenarios">Scenarios</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
504
  </div>
505
- <div class="stat-chip">
506
- <div class="stat-value">24/7</div>
507
- <div class="stat-label" data-i18n="availability">AI Availability</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
508
  </div>
509
- <div class="stat-chip">
510
- <div class="stat-value">Whisper</div>
511
- <div class="stat-label" data-i18n="voice_tech">HD Voice Tech</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
512
  </div>
 
 
 
 
513
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
514
  </div>
515
 
516
- <div class="hero-preview">
517
- <div class="preview-glow"></div>
518
-
519
- <!-- Animated Echo Character -->
520
- <div class="echo-character-wrap">
521
- <div class="echo-pulse"></div>
522
- <div class="echo-ring echo-ring-1"></div>
523
- <div class="echo-ring echo-ring-2"></div>
524
- <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Echo AI Character" class="echo-character">
 
 
525
  </div>
526
 
527
- <div class="preview-card">
528
- <div class="preview-role">
529
- <span style="color:var(--accent);"></span> <span data-i18n="echo_role">Echo AI Tutor</span>
 
530
  </div>
531
- <div class="preview-text">
532
- "<span data-i18n="echo_msg">Welcome! I'm Echo, your personal language guide. I can help you practice pronunciation, fix grammar mistakes, and build confidence. Ready to start?</span>"
 
533
  </div>
534
- <div style="margin-top:10px; display:flex; gap:5px;">
535
- <!-- Flag Icons for decoration -->
536
- <span style="font-size:1.2rem;"></span>
537
- <span style="font-size:1.2rem;"></span>
538
- <span style="font-size:1.2rem;"></span>
539
- </div>
540
  </div>
541
-
542
- <div class="preview-card" style="opacity: 0.7; transform: scale(0.98);">
543
- <div class="preview-role"><span style="color:var(--success);"></span> <span data-i18n="you_role">You</span></div>
544
- <div class="preview-text" data-i18n="user_msg">I want to improve my business English skills.</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
  </div>
546
  </div>
547
- </div>
548
 
549
- <div class="section" id="features">
550
- <div class="landing-grid">
551
- <div class="section-card">
552
- <h3 data-i18n="feat_realtime_title">Real-time Voice</h3>
553
- <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_realtime_desc">Powered by Groq & Whisper for lightning-fast speech recognition.</p>
554
- </div>
555
- <div class="section-card">
556
- <h3 data-i18n="feat_feedback_title">Instant Feedback</h3>
557
- <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_feedback_desc">Get corrections on grammar and pronunciation as you speak.</p>
558
- </div>
559
- <div class="section-card">
560
- <h3 data-i18n="feat_scenarios_title">Roleplay Scenarios</h3>
561
- <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_scenarios_desc">Practice ordering coffee, job interviews, and more.</p>
562
- </div>
563
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
564
  </div>
565
-
566
- <footer style="margin-top: 60px; text-align: center; color: var(--text-muted); padding-bottom: 20px;">
567
- <p>&copy; 2026 <span style="color:var(--accent);">robovai.tech</span>. All rights reserved.</p>
568
- </footer>
569
- </div>
570
-
571
- <!-- Language Script -->
572
- <script>
573
- const translations = {
574
- en: {
575
- dashboard: "Dashboard",
576
- logout: "Log Out",
577
- login: "Log In",
578
- get_started: "Get Started",
579
- new_ai_model: "New Gemini 2.0 Flash Model",
580
- hero_title_1: "Master English",
581
- hero_title_2: "with Echo Tutor",
582
- hero_desc: "Experience the future of language learning. Real-time voice conversations, instant grammar correction, and personalized feedback powered by advanced AI.",
583
- try_demo: "Try Echo Live",
584
- explore_features: "Explore Features",
585
- scenarios: "Scenarios",
586
- availability: "AI Availability",
587
- voice_tech: "HD Voice Tech",
588
- echo_role: "Echo AI Tutor",
589
- echo_msg: "Welcome! Im Echo, your personal language guide. I can help you practice pronunciation, fix grammar mistakes, and build confidence. Ready to start?",
590
- you_role: "You",
591
- user_msg: "I want to improve my business English skills.",
592
- feat_realtime_title: "Real-time Voice",
593
- feat_realtime_desc: "Powered by Groq & Whisper for lightning-fast speech recognition.",
594
- feat_feedback_title: "Instant Feedback",
595
- feat_feedback_desc: "Get corrections on grammar and pronunciation as you speak.",
596
- feat_scenarios_title: "Roleplay Scenarios",
597
- feat_scenarios_desc: "Practice ordering coffee, job interviews, and more."
598
- },
599
- ar: {
600
- dashboard: "لوحة التحكم",
601
- logout: "تسجيل خروج",
602
- login: "تسجيل دخول",
603
- get_started: "ابدأ الآن",
604
- new_ai_model: "مدعوم بنموذج Gemini 2.0 Flash",
605
- hero_title_1: "أتقن الإنجليزية",
606
- hero_title_2: "مع إيكو توتور",
607
- hero_desc: "جرب مستقبل تعلم اللغات. محادثات صوتية فورية، تصحيح فوري للقواعد، وملاحظات مخصصة مدعومة بأحدث تقنيات الذكاء الاصطناعي.",
608
- try_demo: "جرب إيكو لايف",
609
- explore_features: "اكتشف المزايا",
610
- scenarios: "سيناريو تعليمي",
611
- availability: "متاح 24/7",
612
- voice_tech: "تقنية صوت HD",
613
- echo_role: "المعلم إيكو",
614
- echo_msg: "أهلاً! أنا إيكو، دليلك الشخصي للغة. أستطيع مساعدتك في تحسين النطق، وتصحيح الأخطاء القواعدية، وبناء ثقتك بنفسك. هل أنت جاهز؟",
615
- you_role: "أنت",
616
- user_msg: "أريد تحسين مهاراتي في اللغة الإنجليزية للأعمال.",
617
- feat_realtime_title: "صوت فوري",
618
- feat_realtime_desc: "مدعوم بتقنيات Groq و Whisper لتعرف فائق السرعة على الكلام.",
619
- feat_feedback_title: "تغذية راجعة فورية",
620
- feat_feedback_desc: "احصل على تصحيحات للقواعد والنطق أثناء تحدثك مباشرة.",
621
- feat_scenarios_title: "سيناريوهات تفاعلية",
622
- feat_scenarios_desc: "تدرب على طلب القهوة، مقابلات العمل، والمزيد من المواقف الحياتية."
623
- }
624
- };
625
 
626
- let currentLang = 'en';
 
 
 
 
 
627
 
628
- function toggleLanguage() {
629
- currentLang = currentLang === 'en' ? 'ar' : 'en';
630
- updateContent();
 
 
 
 
 
 
 
 
 
 
631
  }
632
-
633
- function updateContent() {
634
- const elements = document.querySelectorAll('[data-i18n]');
635
- elements.forEach(el => {
636
- const key = el.getAttribute('data-i18n');
637
- if (translations[currentLang][key]) {
638
- el.innerText = translations[currentLang][key];
639
- }
640
- });
641
-
642
- // Layout changes
643
- document.body.style.direction = currentLang === 'ar' ? 'rtl' : 'ltr';
644
- document.documentElement.setAttribute('lang', currentLang);
645
- document.documentElement.setAttribute('dir', currentLang === 'ar' ? 'rtl' : 'ltr');
646
-
647
- // Update switch button
648
- const flag = document.getElementById('lang-flag');
649
- const txt = document.getElementById('lang-text');
650
-
651
- if (currentLang === 'ar') {
652
- flag.innerText = '';
653
- txt.innerText = 'AR';
654
- document.body.setAttribute('data-lang', 'ar');
655
- } else {
656
- flag.innerText = '';
657
- txt.innerText = 'EN';
658
- document.body.removeAttribute('data-lang');
 
 
659
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
660
  }
661
- </script>
662
- <script>
663
- /* --- Particles Background Logic --- */
664
- (function() {
665
- const canvas = document.getElementById('particles-canvas');
666
- const ctx = canvas.getContext('2d');
667
-
668
- let width, height;
669
-
670
- function resize() {
671
- width = window.innerWidth;
672
- height = window.innerHeight;
673
- canvas.width = width;
674
- canvas.height = height;
675
  }
676
- window.addEventListener('resize', resize);
677
- resize();
678
-
679
- const particles = [];
680
- const particleCount = 40;
681
-
682
- class Particle {
683
- constructor() {
684
- this.x = Math.random() * width;
685
- this.y = Math.random() * height;
686
- this.vx = (Math.random() - 0.5) * 0.4;
687
- this.vy = (Math.random() - 0.5) * 0.4;
688
- this.size = Math.random() * 2 + 1;
689
- this.alpha = Math.random() * 0.5 + 0.1;
690
- }
691
-
692
- update() {
693
- this.x += this.vx;
694
- this.y += this.vy;
695
-
696
- if (this.x < 0) this.x = width;
697
- if (this.x > width) this.x = 0;
698
- if (this.y < 0) this.y = height;
699
- if (this.y > height) this.y = 0;
700
- }
701
-
702
- draw() {
703
- ctx.fillStyle =
704
- ctx.beginPath();
705
- ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
706
- ctx.fill();
707
  }
708
- }
709
-
710
- for (let i=0; i < particleCount; i++) {
711
- particles.push(new Particle());
712
- }
713
-
714
- function animate() {
715
- ctx.clearRect(0, 0, width, height);
716
- particles.forEach(p => {
717
- p.update();
718
- p.draw();
719
- });
720
- requestAnimationFrame(animate);
721
- }
722
- animate();
723
- })();
724
  </script>
725
  </body>
726
- </html>
 
1
+ <!doctype html>
2
+ <html lang="en" data-theme="dark">
3
  <head>
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Echo Tutor — Master Languages with AI</title>
7
  <meta
8
  name="description"
9
+ content="The future of language learning. Real-time AI conversations, instant feedback, and immersive scenarios."
10
  />
11
  <link
12
  rel="stylesheet"
13
  href="{{ url_for('static', filename='css/style.css') }}"
14
  />
15
+ <link
16
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
17
+ rel="stylesheet"
18
+ />
19
  <style>
20
  :root {
21
+ --landing-bg: #050510;
22
+ --landing-card-bg: rgba(20, 20, 40, 0.6);
23
+ --landing-accent: #63b3ed;
24
+ --landing-accent-glow: rgba(99, 179, 237, 0.5);
25
+ --landing-text: #e2e8f0;
26
+ --font-display: 'Space Grotesk', sans-serif;
27
+ }
28
+
29
+ body {
30
+ background-color: var(--landing-bg);
31
+ color: var(--landing-text);
32
+ font-family: 'Inter', sans-serif;
33
+ overflow-x: hidden;
34
+ margin: 0;
35
+ padding: 0;
36
+ }
37
+
38
+ /* Body Override for Landing Page specifically */
39
+ body.landing-page {
40
+ overflow-y: auto !important; /* Force scroll */
41
+ display: block !important; /* Override flex layout of the main app */
42
+ height: auto !important;
43
+ min-height: 100vh;
44
+ -webkit-overflow-scrolling: touch;
45
  }
46
 
47
+ /* Background Canvas */
48
+ #stars-canvas {
49
+ position: fixed;
50
+ top: 0;
51
+ left: 0;
52
+ width: 100%;
53
+ height: 100%;
54
+ z-index: -1;
55
  }
56
 
57
+ /* Navbar */
58
+ .landing-nav {
59
+ display: flex;
60
+ justify-content: space-between;
61
+ align-items: center;
62
+ padding: 20px 5%;
63
+ backdrop-filter: blur(10px);
64
+ position: fixed;
65
+ width: 100%;
66
+ top: 0;
67
+ z-index: 100;
68
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
69
  }
70
 
71
+ .nav-logo {
72
+ font-family: var(--font-display);
73
+ font-weight: 700;
74
+ font-size: 1.5rem;
75
+ color: #fff;
76
+ text-decoration: none;
 
77
  display: flex;
78
  align-items: center;
79
+ gap: 10px;
 
 
 
80
  }
81
+
82
+ .nav-logo span {
83
+ color: var(--landing-accent);
84
  }
85
+
86
+ .nav-links {
87
+ display: flex;
88
+ gap: 20px;
89
+ align-items: center;
90
  }
91
 
92
+ .nav-link {
93
+ color: var(--landing-text);
94
+ text-decoration: none;
95
+ font-weight: 500;
96
+ transition: color 0.3s;
97
+ padding: 8px 16px;
98
+ border-radius: 8px;
99
+ display: flex;
100
+ align-items: center;
101
  }
102
 
103
+ .nav-link:hover {
104
+ color: #fff;
105
+ background: rgba(255, 255, 255, 0.05);
106
+ }
107
+
108
+ /* Hero Section */
109
+ .hero {
110
+ min-height: 100vh;
111
  display: flex;
112
  align-items: center;
113
  justify-content: space-between;
114
+ padding: 120px 10%;
115
+ gap: 50px;
116
+ position: relative;
117
+ }
118
+
119
+ .hero-content {
120
+ flex: 1;
121
+ max-width: 600px;
122
+ z-index: 10;
123
+ animation: fadeIn 1s ease-out;
124
+ }
125
+
126
+ .hero-title {
127
+ font-family: var(--font-display);
128
+ font-size: 4rem;
129
+ line-height: 1.1;
130
+ margin-bottom: 20px;
131
+ background: linear-gradient(to right, #fff, #a0aec0);
132
+ -webkit-background-clip: text;
133
+ -webkit-text-fill-color: transparent;
134
+ }
135
+
136
+ .hero-title span {
137
+ color: var(--landing-accent);
138
+ -webkit-text-fill-color: var(--landing-accent);
139
+ }
140
+
141
+ .hero-subtitle {
142
+ font-size: 1.25rem;
143
+ color: var(--text-secondary);
144
+ margin-bottom: 40px;
145
+ line-height: 1.6;
146
+ }
147
+
148
+ .cta-group {
149
+ display: flex;
150
+ gap: 20px;
151
+ margin-bottom: 20px;
152
+ }
153
+
154
+ .cta-hint {
155
+ color: var(--text-muted);
156
+ font-size: 0.9rem;
157
+ margin-top: 10px;
158
  }
159
 
160
+ /* Enhanced Buttons */
161
+ .btn-glow {
162
+ box-shadow: 0 0 20px var(--landing-accent-glow);
163
+ transition:
164
+ transform 0.2s,
165
+ box-shadow 0.2s;
166
+ padding: 12px 32px;
167
+ font-size: 1.1rem;
168
+ font-weight: 600;
169
+ border-radius: 12px;
170
+ background: var(--landing-accent);
171
+ color: #1a202c;
172
+ text-decoration: none;
173
  display: inline-flex;
174
  align-items: center;
175
+ justify-content: center;
176
+ border: none;
177
+ cursor: pointer;
178
  }
179
 
180
+ .btn-glow:hover {
181
+ transform: translateY(-2px);
182
+ box-shadow: 0 0 30px var(--landing-accent-glow);
183
+ background: #bee3f8;
184
+ }
185
+
186
+ .btn-outline {
187
+ padding: 12px 32px;
188
+ font-size: 1.1rem;
189
+ font-weight: 600;
190
+ border-radius: 12px;
191
+ border: 1px solid rgba(255, 255, 255, 0.2);
192
+ color: #fff;
193
+ text-decoration: none;
194
+ background: rgba(255, 255, 255, 0.05);
195
+ transition: 0.2s;
196
+ display: inline-flex;
197
+ align-items: center;
198
+ justify-content: center;
199
  }
200
 
201
+ .btn-outline:hover {
202
+ background: rgba(255, 255, 255, 0.1);
203
+ border-color: #fff;
204
  }
205
 
206
+ .btn-ghost-nav {
207
+ color: var(--text-muted);
208
+ text-decoration: none;
209
+ font-weight: 500;
210
+ padding: 8px 12px;
211
+ border-radius: 6px;
212
+ transition: 0.2s;
213
  }
214
 
215
+ .btn-ghost-nav:hover {
216
+ color: #fff;
217
+ background: rgba(255, 255, 255, 0.05);
218
+ }
219
+
220
+ /* Scroll Indicator */
221
+ .scroll-indicator {
222
+ position: absolute;
223
+ bottom: 30px;
224
+ left: 50%;
225
+ transform: translateX(-50%);
226
+ animation: bounce 2s infinite;
227
+ opacity: 0.7;
228
+ cursor: pointer;
229
+ z-index: 20;
230
+ }
231
+
232
+ @keyframes bounce {
233
+ 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
234
+ 40% {transform: translateX(-50%) translateY(-10px);}
235
+ 60% {transform: translateX(-50%) translateY(-5px);}
236
+ }
237
+
238
+ /* Hero Character Container */
239
+ .hero-visual {
240
+ flex: 1;
241
+ display: flex;
242
+ justify-content: center;
243
  align-items: center;
244
+ position: relative;
245
+ z-index: 10;
246
+ animation: floatHero 6s ease-in-out infinite;
247
  }
248
 
249
+ @keyframes floatHero {
250
+ 0%,
251
+ 100% {
252
+ transform: translateY(0);
253
+ }
254
+ 50% {
255
+ transform: translateY(-20px);
256
+ }
257
  }
258
 
259
+ @keyframes fadeIn {
260
+ from {
261
+ opacity: 0;
262
+ transform: translateY(20px);
263
+ }
264
+ to {
265
+ opacity: 1;
266
+ transform: translateY(0);
267
+ }
268
+ }
269
+
270
+ /* Character Scaling overrides */
271
+ .hero-visual .avatar-container {
272
+ transform: scale(2.8);
273
  }
274
 
275
+ /* General Section Styles */
276
+ section {
277
+ padding: 100px 10%;
278
  position: relative;
 
279
  }
280
 
281
+ .section-header {
282
+ text-align: center;
283
+ margin-bottom: 60px;
284
+ max-width: 800px;
285
+ margin-left: auto;
286
+ margin-right: auto;
 
 
 
 
287
  }
288
 
289
+ .section-title {
290
+ font-family: var(--font-display);
291
+ font-size: 2.5rem;
292
+ margin-bottom: 20px;
293
+ color: #fff;
294
  }
295
 
296
+ .section-subtitle {
297
  color: var(--text-secondary);
298
+ font-size: 1.1rem;
299
+ line-height: 1.6;
300
  }
301
 
302
+ /* Features Grid */
303
+ .features {
304
+ /* Subtle gradient to separate from hero */
305
+ background: linear-gradient(180deg, var(--landing-bg) 0%, rgba(20,20,40,0.4) 100%);
306
+ position: relative;
307
+ z-index: 2;
308
+ }
309
+
310
+ .feature-grid {
311
+ display: grid;
312
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
313
+ gap: 30px;
314
+ }
315
+
316
+ .feature-card {
317
+ background: var(--landing-card-bg);
318
+ border: 1px solid rgba(255, 255, 255, 0.1);
319
+ backdrop-filter: blur(10px);
320
+ padding: 40px 30px;
321
+ border-radius: 24px;
322
+ transition:
323
+ transform 0.3s,
324
+ background 0.3s,
325
+ border-color 0.3s;
326
+ height: 100%;
327
  display: flex;
328
+ flex-direction: column;
329
+ align-items: flex-start;
 
330
  }
331
 
332
+ .feature-card:hover {
333
+ transform: translateY(-8px);
334
+ background: rgba(30, 30, 60, 0.9);
335
+ border-color: var(--landing-accent);
336
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
337
  }
338
 
339
+ .feature-icon {
340
+ font-size: 2.5rem;
341
+ margin-bottom: 20px;
342
+ display: inline-flex;
343
+ align-items: center;
344
+ justify-content: center;
345
+ width: 60px;
346
+ height: 60px;
347
+ background: rgba(99, 179, 237, 0.1);
348
+ border-radius: 16px;
349
+ color: var(--landing-accent);
350
  }
351
 
352
+ .feature-title {
353
+ font-family: var(--font-display);
354
+ font-size: 1.5rem;
355
+ margin-bottom: 12px;
356
+ color: #fff;
357
  font-weight: 700;
358
  }
359
 
360
+ .feature-desc {
361
+ color: var(--text-secondary);
362
+ line-height: 1.6;
363
+ font-size: 1.05rem;
364
  }
365
 
366
+ /* How It Works Steps */
367
+ .steps-container {
368
+ display: flex;
369
+ justify-content: space-between;
370
+ gap: 40px;
371
+ margin-top: 60px;
372
  position: relative;
 
373
  }
374
 
375
+ /* Connector Line */
376
+ .steps-container::before {
377
+ content: '';
378
+ position: absolute;
379
+ top: 40px;
380
+ left: 10%;
381
+ right: 10%;
382
+ height: 2px;
383
+ background: linear-gradient(
384
+ 90deg,
385
+ transparent,
386
+ var(--landing-accent),
387
+ transparent
388
+ );
389
+ z-index: 0;
390
+ opacity: 0.3;
391
+ }
392
+
393
+ .step-item {
394
+ flex: 1;
395
+ text-align: center;
396
  position: relative;
397
+ z-index: 1;
398
+ }
399
+
400
+ .step-number {
401
+ width: 80px;
402
+ height: 80px;
403
+ background: var(--landing-bg);
404
+ border: 2px solid var(--landing-accent);
405
+ border-radius: 50%;
406
  display: flex;
407
  align-items: center;
408
  justify-content: center;
409
+ font-family: var(--font-display);
410
+ font-size: 2rem;
411
+ font-weight: 700;
412
+ color: var(--landing-accent);
413
+ margin: 0 auto 20px;
414
+ box-shadow: 0 0 20px var(--landing-accent-glow);
 
 
 
 
 
 
 
 
 
415
  }
416
 
417
+ .step-title {
418
+ font-size: 1.25rem;
419
+ font-weight: 600;
420
+ margin-bottom: 10px;
421
+ color: #fff;
422
  }
423
 
424
+ .step-desc {
425
+ color: var(--text-secondary);
426
+ font-size: 0.95rem;
427
+ line-height: 1.5;
 
428
  }
429
 
430
+ /* Stats Banner */
431
+ .stats-banner {
432
+ background: rgba(255, 255, 255, 0.02);
433
+ border-top: 1px solid rgba(255, 255, 255, 0.05);
434
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
435
+ padding: 60px 10%;
436
+ display: flex;
437
+ justify-content: space-around;
438
+ flex-wrap: wrap;
439
+ gap: 40px;
440
+ text-align: center;
441
  }
442
 
443
+ .stat-item h3 {
444
+ font-family: var(--font-display);
445
+ font-size: 3rem;
446
+ color: #fff;
447
+ margin: 0 0 5px 0;
448
+ background: linear-gradient(tobottom, #fff, #a0aec0);
449
+ -webkit-background-clip: text;
450
+ /* -webkit-text-fill-color: transparent; */ /* Can cause issue if fallback needed */
451
  }
452
 
453
+ .stat-item p {
454
+ color: var(--text-muted);
455
+ text-transform: uppercase;
456
+ letter-spacing: 1px;
457
+ font-size: 0.9rem;
458
+ margin: 0;
 
 
 
459
  }
460
 
461
+ /* Testimonials */
462
+ .testimonials {
463
+ background: linear-gradient(180deg, transparent, rgba(5, 5, 16, 0.8));
464
+ padding-bottom: 150px;
 
 
 
 
 
465
  }
466
 
467
+ .testimonial-grid {
468
+ display: grid;
469
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
470
+ gap: 30px;
471
  }
472
 
473
+ .testimonial-card {
474
+ background: rgba(255, 255, 255, 0.03);
475
+ border: 1px solid rgba(255, 255, 255, 0.05);
476
+ padding: 30px;
477
+ border-radius: 16px;
478
+ height: 100%;
479
+ display: flex;
480
+ flex-direction: column;
481
+ }
482
+
483
+ .t-header {
484
+ display: flex;
485
+ align-items: center;
486
+ gap: 15px;
487
+ margin-bottom: 20px;
488
+ }
489
+
490
+ .t-avatar {
491
+ width: 50px;
492
+ height: 50px;
493
+ border-radius: 50%;
494
+ background: #2d3748; /* Placeholder color */
495
+ display: flex;
496
+ align-items: center;
497
+ justify-content: center;
498
+ font-weight: 700;
499
+ color: #fff;
500
+ }
501
+
502
+ .t-info h4 {
503
+ margin: 0;
504
+ color: #fff;
505
+ font-size: 1rem;
506
+ }
507
+ .t-info span {
508
+ font-size: 0.85rem;
509
  color: var(--text-muted);
 
510
  }
511
 
512
+ .t-body {
 
513
  color: var(--text-secondary);
514
+ line-height: 1.6;
515
+ font-style: italic;
516
+ flex: 1;
517
+ }
518
+
519
+ /* CTA Section */
520
+ .cta-section {
521
+ text-align: center;
522
+ background: radial-gradient(
523
+ circle at center,
524
+ rgba(99, 179, 237, 0.15) 0%,
525
+ transparent 60%
526
+ );
527
+ padding: 120px 10%;
528
+ margin-top: -100px; /* Pull up into testimonials */
529
+ position: relative;
530
+ z-index: 2;
531
  }
532
 
533
+ .cta-card {
534
+ max-width: 800px;
535
+ margin: 0 auto;
536
+ background: rgba(20, 20, 40, 0.8);
537
+ border: 1px solid var(--landing-accent);
538
+ box-shadow: 0 0 50px rgba(99, 179, 237, 0.2);
539
+ padding: 60px;
540
+ border-radius: 24px;
541
+ backdrop-filter: blur(20px);
542
+ }
543
+
544
+ /* Footer */
545
+ .landing-footer {
546
+ padding: 80px 10% 40px;
547
+ background: #020205;
548
+ border-top: 1px solid rgba(255, 255, 255, 0.05);
549
+ }
550
+
551
+ .footer-grid {
552
  display: grid;
553
+ grid-template-columns: 2fr 1fr 1fr 1fr;
554
+ gap: 40px;
555
+ margin-bottom: 60px;
556
  }
557
 
558
+ .footer-brand h2 {
559
+ font-family: var(--font-display);
560
+ font-size: 1.8rem;
561
+ color: #fff;
562
+ margin-bottom: 15px;
563
  }
564
 
565
+ .footer-brand p {
566
+ color: var(--text-muted);
567
+ line-height: 1.6;
568
+ max-width: 300px;
569
  }
570
 
571
+ .footer-col h4 {
572
+ color: #fff;
573
+ margin-bottom: 20px;
574
+ font-size: 1.1rem;
575
+ }
576
+
577
+ .footer-col a {
578
+ display: block;
579
+ color: var(--text-muted);
580
+ text-decoration: none;
581
  margin-bottom: 12px;
582
+ transition: color 0.2s;
583
  }
584
 
585
+ .footer-col a:hover {
586
+ color: var(--landing-accent);
 
 
587
  }
588
 
589
+ .footer-bottom {
590
+ text-align: center;
591
+ padding-top: 40px;
592
+ border-top: 1px solid rgba(255, 255, 255, 0.05);
593
+ color: var(--text-muted);
594
+ font-size: 0.9rem;
595
  }
596
 
597
+ .nav-logo-img {
598
+ width: 40px;
599
+ height: 40px;
600
+ border-radius: 50%;
601
+ object-fit: cover;
602
+ box-shadow: 0 0 15px var(--landing-accent-glow);
603
  }
604
 
605
+ /* Interface Preview */
606
+ .interface-preview {
607
+ padding: 50px 5%;
608
+ perspective: 1000px;
609
+ overflow: hidden;
610
  }
611
 
612
+ .interface-mockup {
613
+ max-width: 900px;
614
+ margin: 0 auto;
615
+ background: rgba(15, 23, 42, 0.95);
616
+ border: 1px solid rgba(99, 179, 237, 0.3);
617
+ border-radius: 16px;
618
+ box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
619
+ transform: rotateX(5deg) scale(0.95);
620
+ transition: transform 0.5s ease;
621
  }
622
 
623
+ .interface-mockup:hover {
624
+ transform: rotateX(0deg) scale(1);
 
 
 
625
  }
626
 
627
+ .mockup-header {
628
+ padding: 15px 20px;
629
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
630
+ display: flex;
631
  align-items: center;
632
+ gap: 10px;
633
+ }
634
+
635
+ .mockup-dots {
636
+ display: flex;
637
+ gap: 6px;
638
+ }
639
+ .mockup-dot {
640
+ width: 10px;
641
+ height: 10px;
642
  border-radius: 50%;
643
+ background: #4a5568;
644
+ }
645
+ .mockup-dot.red {
646
+ background: #fc8181;
647
+ }
648
+ .mockup-dot.yellow {
649
+ background: #f6e05e;
650
+ }
651
+ .mockup-dot.green {
652
+ background: #68d391;
653
  }
654
 
655
+ .mockup-body {
656
+ padding: 30px;
657
+ display: flex;
658
+ flex-direction: column;
659
+ gap: 15px;
660
+ min-height: 400px;
661
+ }
662
+
663
+ .chat-bubble {
664
+ padding: 12px 18px;
665
+ border-radius: 12px;
666
+ max-width: 80%;
667
+ line-height: 1.5;
668
+ font-size: 0.95rem;
669
+ opacity: 0;
670
+ animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
671
+ }
672
+
673
+ .chat-bubble:nth-child(1) { animation-delay: 1.0s; }
674
+ .chat-bubble:nth-child(2) { animation-delay: 2.5s; }
675
+ .chat-bubble:nth-child(3) { animation-delay: 4.5s; }
676
+ .chat-bubble:nth-child(4) { animation-delay: 6.0s; }
677
+ .chat-bubble:nth-child(5) { animation-delay: 7.0s; }
678
+ .chat-bubble:nth-child(6) { animation-delay: 9.0s; }
679
+
680
+ @keyframes popIn {
681
+ from { opacity: 0; transform: translateY(10px) scale(0.9); }
682
+ to { opacity: 1; transform: translateY(0) scale(1); }
683
+ }
684
+
685
+ .chat-bubble.ai {
686
+ background: rgba(99, 179, 237, 0.15);
687
+ color: #e2e8f0;
688
+ border-top-left-radius: 2px;
689
+ align-self: flex-start;
690
+ border: 1px solid rgba(99, 179, 237, 0.2);
691
+ }
692
+
693
+ .chat-bubble.user {
694
+ background: var(--landing-accent);
695
+ color: #1a202c;
696
+ border-top-right-radius: 2px;
697
+ align-self: flex-end;
698
+ font-weight: 500;
699
+ }
700
+
701
+ /* Pricing */
702
+ .pricing-grid {
703
+ display: grid;
704
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
705
+ gap: 30px;
706
+ max-width: 1000px;
707
+ margin: 0 auto;
708
+ }
709
+
710
+ .pricing-card {
711
+ background: var(--landing-card-bg);
712
+ border: 1px solid rgba(255, 255, 255, 0.1);
713
+ padding: 40px 30px;
714
+ border-radius: 24px;
715
  text-align: center;
716
+ position: relative;
717
+ overflow: hidden;
718
  }
719
 
720
+ .pricing-card.popular {
721
+ border-color: var(--landing-accent);
722
+ background: rgba(30, 40, 70, 0.8);
723
  }
724
 
725
+ .popular-badge {
726
+ position: absolute;
727
+ top: 20px;
728
+ right: -30px;
729
+ background: var(--landing-accent);
730
+ color: #000;
731
+ font-weight: bold;
732
+ font-size: 0.8rem;
733
+ padding: 5px 30px;
734
+ transform: rotate(45deg);
735
+ }
736
+
737
+ .price-amount {
738
+ font-size: 3rem;
739
+ font-family: var(--font-display);
740
+ color: #fff;
741
+ margin: 20px 0;
742
+ }
743
+
744
+ .price-features {
745
+ list-style: none;
746
+ padding: 0;
747
+ margin: 30px 0;
748
+ text-align: left;
749
+ }
750
+
751
+ .price-features li {
752
+ margin-bottom: 15px;
753
+ color: var(--text-secondary);
754
+ display: flex;
755
  align-items: center;
756
+ gap: 10px;
757
  }
758
 
759
+ .check-icon {
760
+ color: var(--landing-accent);
 
 
761
  }
762
 
763
+ /* FAQ */
764
+ .faq-container {
765
+ max-width: 800px;
766
+ margin: 0 auto;
767
  }
768
 
769
+ .faq-item {
770
+ background: rgba(255, 255, 255, 0.02);
771
+ border: 1px solid rgba(255, 255, 255, 0.05);
772
+ margin-bottom: 15px;
773
+ border-radius: 12px;
774
+ padding: 20px;
775
+ cursor: pointer;
776
+ transition: 0.3s;
777
  }
778
 
779
+ .faq-item:hover {
780
+ background: rgba(255, 255, 255, 0.05);
 
 
 
 
 
781
  }
782
 
783
+ .faq-question {
784
+ font-weight: 600;
785
+ color: #fff;
786
+ display: flex;
787
+ justify-content: space-between;
788
+ align-items: center;
 
 
 
 
789
  }
790
+
791
+ .faq-answer {
792
+ margin-top: 15px;
793
+ color: var(--text-secondary);
794
+ line-height: 1.6;
795
+ display: none;
796
+ padding-top: 15px;
797
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
798
+ }
799
+
800
+ .faq-item.active .faq-answer {
801
+ display: block;
802
+ }
803
+
804
+ /* Responsive */
805
  @media (max-width: 900px) {
806
  .hero {
807
+ flex-direction: column-reverse;
808
+ padding-top: 100px;
809
+ padding-bottom: 60px;
810
+ text-align: center;
811
+ justify-content: center;
812
+ gap: 40px;
813
  }
814
+
815
  .hero-title {
816
+ font-size: 2.8rem;
817
  }
818
+ .hero-visual {
819
+ height: 320px;
820
+ margin-bottom: 10px;
821
  }
822
+ .hero-visual .avatar-container {
823
+ transform: scale(2.2);
 
824
  }
825
+
826
+ .cta-group {
827
+ justify-content: center;
828
+ flex-direction: column;
829
+ }
830
+ .btn-glow,
831
+ .btn-outline {
832
+ width: 100%;
833
+ }
834
+
835
+ .steps-container {
836
+ flex-direction: column;
837
+ gap: 60px;
838
+ }
839
+ .steps-container::before {
840
+ display: none;
841
+ } /* Hide line on mobile */
842
+
843
+ .footer-grid {
844
+ grid-template-columns: 1fr;
845
+ gap: 40px;
846
+ text-align: center;
847
+ }
848
+ .footer-brand p {
849
+ margin: 0 auto;
850
+ }
851
+
852
+ .desktop-only {
853
+ display: none;
854
  }
855
  }
856
  </style>
857
  </head>
858
+ <body class="landing-page">
859
+ <canvas id="stars-canvas"></canvas>
 
860
 
861
+ <nav class="landing-nav">
862
+ <a href="#" class="nav-logo">
863
+ <img
864
+ src="{{ url_for('static', filename='icons/Echo.png') }}"
865
+ class="nav-logo-img"
866
+ alt="Logo"
867
+ />
868
+ <span>ECHO</span>TUTOR
869
+ </a>
870
+ <div class="nav-links">
871
+ <a
872
+ href="{{ url_for('app_page', guest='1') }}"
873
+ class="btn-ghost-nav desktop-only"
874
+ >Try for Free</a
875
+ >
876
+ <a href="{{ url_for('login_page') }}" class="nav-link">Log In</a>
877
+ <a
878
+ href="{{ url_for('signup_page') }}"
879
+ class="btn-glow"
880
+ style="padding: 8px 20px; font-size: 0.9rem; margin-left: 10px"
881
+ >Get Started</a
882
+ >
883
+ </div>
884
+ </nav>
885
+
886
+ <main>
887
+ <!-- Hero Section -->
888
+ <section class="hero">
889
+ <div class="hero-content">
890
+ <h1 class="hero-title">
891
+ Speak Like a Native <br /><span>With AI</span>
892
+ </h1>
893
+ <p class="hero-subtitle">
894
+ Experience the future of language learning with a conversational AI
895
+ agent. Real-time pronunciation feedback, immersive roleplay
896
+ scenarios, and personalized coaching anytime, anywhere.
897
+ </p>
898
+ <div class="cta-group">
899
+ <a href="{{ url_for('signup_page') }}" class="btn-glow"
900
+ >Start For Free</a
901
+ >
902
+ <a href="{{ url_for('app_page', guest='1') }}" class="btn-outline"
903
+ >Try as Guest</a
904
+ >
905
+ </div>
906
+ <p class="cta-hint">
907
+ No credit card required · Instant access for guests
908
+ </p>
909
+ </div>
910
+
911
+ <div class="hero-visual">
912
+ <div class="avatar-container happy" id="avatar-container">
913
+ <div class="avatar-glow" id="avatar-glow"></div>
914
+ <div class="avatar-ring ring-outer" id="ring-outer"></div>
915
+ <div class="avatar-ring ring-inner" id="ring-inner"></div>
916
+ <div class="avatar-particles" id="avatar-particles"></div>
917
+ <div class="avatar-orb" id="avatar-orb">
918
+ <div class="orb-face" id="orb-face">
919
+ <div class="orb-brows">
920
+ <div class="orb-brow left" id="brow-left"></div>
921
+ <div class="orb-brow right" id="brow-right"></div>
922
+ </div>
923
+ <div class="orb-eyes">
924
+ <div class="orb-eye left" id="eye-left">
925
+ <div class="orb-pupil" id="pupil-left"></div>
926
+ <div class="orb-eyelid" id="eyelid-left"></div>
927
+ <div class="orb-eye-shine"></div>
928
+ </div>
929
+ <div class="orb-eye right" id="eye-right">
930
+ <div class="orb-pupil" id="pupil-right"></div>
931
+ <div class="orb-eyelid" id="eyelid-right"></div>
932
+ <div class="orb-eye-shine"></div>
933
+ </div>
934
+ </div>
935
+ <div class="orb-cheeks">
936
+ <div class="orb-cheek left" id="cheek-left"></div>
937
+ <div class="orb-cheek right" id="cheek-right"></div>
938
+ </div>
939
+ <div class="orb-mouth-area">
940
+ <div class="orb-mouth" id="orb-mouth">
941
+ <div class="mouth-bar" id="mouth-bar-1"></div>
942
+ <div class="mouth-bar" id="mouth-bar-2"></div>
943
+ <div class="mouth-bar" id="mouth-bar-3"></div>
944
+ <div class="mouth-bar" id="mouth-bar-4"></div>
945
+ <div class="mouth-bar" id="mouth-bar-5"></div>
946
+ </div>
947
+ </div>
948
+ </div>
949
+ <div class="orb-breath" id="orb-breath"></div>
950
+ </div>
951
+ </div>
952
  </div>
953
+
954
+ <div class="scroll-indicator" onclick="document.getElementById('features-preview').scrollIntoView({behavior: 'smooth'})">
955
+ <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
956
+ <polyline points="7 13 12 18 17 13"></polyline>
957
+ <polyline points="7 6 12 11 17 6"></polyline>
958
+ </svg>
959
+ </div>
960
+ </section>
961
+
962
+ <!-- Value Banner -->
963
+ <div class="stats-banner" id="features-preview">
964
+ <div class="stat-item">
965
+ <h3>Real-time</h3>
966
+ <p>AI Voice Feedback</p>
967
+ </div>
968
+ <div class="stat-item">
969
+ <h3>24/7</h3>
970
+ <p>Practice Anytime</p>
971
+ </div>
972
+ <div class="stat-item">
973
+ <h3>Beta</h3>
974
+ <p>Join Early Access</p>
975
  </div>
976
  </div>
977
 
978
+ <!-- Interface Preview -->
979
+ <section class="interface-preview">
980
+ <div class="interface-mockup">
981
+ <div class="mockup-header">
982
+ <div class="mockup-dots">
983
+ <div class="mockup-dot red"></div>
984
+ <div class="mockup-dot yellow"></div>
985
+ <div class="mockup-dot green"></div>
986
+ </div>
987
+ <span
988
+ style="
989
+ color: rgba(255, 255, 255, 0.3);
990
+ font-size: 0.8rem;
991
+ margin-left: 20px;
992
+ "
993
+ >Echo Tutor - Conversation</span
994
+ >
995
  </div>
996
+ <div class="mockup-body">
997
+ <div class="chat-bubble ai">
998
+ Hello there! Ready to practice your Spanish skills today?
999
+ </div>
1000
+ <div class="chat-bubble user">Hola! Sí, me gustaría practicar.</div>
1001
+ <div class="chat-bubble ai">
1002
+ ¡Excelente! Empecemos con algo sencillo. ¿Cómo estuvo tu día? (How
1003
+ was your day?)
1004
+ </div>
1005
+ <div class="chat-bubble user" style="border: 1px solid #fc8181">
1006
+ Estuvo muy bien. Fui a el cine.
1007
+ </div>
1008
+ <div
1009
+ style="
1010
+ font-size: 0.8rem;
1011
+ color: #fc8181;
1012
+ margin-left: 10px;
1013
+ margin-top: -10px;
1014
+ "
1015
+ >
1016
+ Correction: "Fui <b>al</b> cine" (a + el = al)
1017
+ </div>
1018
+ <div class="chat-bubble ai">
1019
+ Ah, "Fui al cine". ¡Qué bien! ¿Qué película viste?
1020
+ </div>
1021
+ </div>
1022
+ </div>
1023
+ </section>
1024
+
1025
+ <!-- Features Section -->
1026
+ <section class="features" id="features">
1027
+ <div class="section-header">
1028
+ <h2 class="section-title">Why Choose Echo Tutor?</h2>
1029
+ <p class="section-subtitle">
1030
+ A complete language learning ecosystem powered by advanced
1031
+ Artificial Intelligence.
1032
  </p>
1033
+ </div>
1034
 
1035
+ <div class="feature-grid">
1036
+ <div class="feature-card">
1037
+ <div class="feature-icon">🎙️</div>
1038
+ <h3 class="feature-title">Real-time Voice</h3>
1039
+ <p class="feature-desc">
1040
+ Conversations that flow naturally. Our AI listens and responds
1041
+ instantly with human-like intonation, pausing, and expressions.
1042
+ </p>
1043
+ </div>
1044
+ <div class="feature-card">
1045
+ <div class="feature-icon">✨</div>
1046
+ <h3 class="feature-title">Instant Corrections</h3>
1047
+ <p class="feature-desc">
1048
+ Get gentle, real-time corrections on your grammar and
1049
+ pronunciation without interrupting the natural flow of
1050
+ conversation.
1051
+ </p>
1052
+ </div>
1053
+ <div class="feature-card">
1054
+ <div class="feature-icon">🎯</div>
1055
+ <h3 class="feature-title">Adaptive Learning</h3>
1056
+ <p class="feature-desc">
1057
+ Echo learns from your mistakes. The curriculum adapts to focus on
1058
+ your weak points and accelerate your fluency.
1059
+ </p>
1060
+ </div>
1061
+ <div class="feature-card">
1062
+ <div class="feature-icon">🎭</div>
1063
+ <h3 class="feature-title">Immersive Scenarios</h3>
1064
+ <p class="feature-desc">
1065
+ Practice ordering coffee, job interviews, or casual chat. Prepare
1066
+ for real-world situations with roleplay scenarios.
1067
+ </p>
1068
  </div>
1069
+ <div class="feature-card">
1070
+ <div class="feature-icon">🌍</div>
1071
+ <h3 class="feature-title">Multi-Language</h3>
1072
+ <p class="feature-desc">
1073
+ Support for English, Spanish, French, German, and Arabic. Switch
1074
+ languages instantly and maintain your progress.
1075
+ </p>
1076
+ </div>
1077
+ <div class="feature-card">
1078
+ <div class="feature-icon">🏆</div>
1079
+ <h3 class="feature-title">Gamified Progress</h3>
1080
+ <p class="feature-desc">
1081
+ Earn XP, unlock achievements, and climb the leaderboard. Stay
1082
+ motivated with daily streaks and challenges.
1083
+ </p>
1084
+ </div>
1085
+ </div>
1086
+ </section>
1087
+
1088
+ <!-- Pricing -->
1089
+ <section class="pricing" id="pricing">
1090
+ <div class="section-header">
1091
+ <h2 class="section-title">Simple, Transparent Pricing</h2>
1092
+ <p class="section-subtitle">
1093
+ Start for free, scale when you're ready.
1094
+ </p>
1095
+ </div>
1096
+
1097
+ <div class="pricing-grid">
1098
+ <div class="pricing-card">
1099
+ <h3>Free Starter</h3>
1100
+ <div class="price-amount">$0</div>
1101
+ <p>Perfect for trying out the AI.</p>
1102
+ <ul class="price-features">
1103
+ <li><span class="check-icon">✓</span> 5 Conversations / Day</li>
1104
+ <li><span class="check-icon">✓</span> Basic Corrections</li>
1105
+ <li><span class="check-icon">✓</span> 3 Languages</li>
1106
+ </ul>
1107
+ <a
1108
+ href="{{ url_for('signup_page') }}"
1109
+ class="btn-outline"
1110
+ style="width: 100%"
1111
+ >Sign Up Free</a
1112
+ >
1113
+ </div>
1114
+
1115
+ <div class="pricing-card popular">
1116
+ <div class="popular-badge">POPULAR</div>
1117
+ <h3>Pro Learner</h3>
1118
+ <div class="price-amount">
1119
+ $9<span style="font-size: 1rem">/mo</span>
1120
  </div>
1121
+ <p>Everything you need for fluency.</p>
1122
+ <ul class="price-features">
1123
+ <li><span class="check-icon">✓</span> Unlimited Conversations</li>
1124
+ <li>
1125
+ <span class="check-icon">✓</span> Advanced Grammar Analysis
1126
+ </li>
1127
+ <li><span class="check-icon">✓</span> All 20+ Scenarios</li>
1128
+ <li><span class="check-icon">✓</span> Personalized Study Plan</li>
1129
+ </ul>
1130
+ <a href="#" class="btn-glow" style="width: 100%">Go Pro</a>
1131
+ </div>
1132
+
1133
+ <div class="pricing-card">
1134
+ <h3>Team / Family</h3>
1135
+ <div class="price-amount">
1136
+ $29<span style="font-size: 1rem">/mo</span>
1137
  </div>
1138
+ <p>For groups up to 5 members.</p>
1139
+ <ul class="price-features">
1140
+ <li><span class="check-icon">✓</span> All Pro Features</li>
1141
+ <li>
1142
+ <span class="check-icon">✓</span> Shared Progress Dashboard
1143
+ </li>
1144
+ <li><span class="check-icon">✓</span> Priority Support</li>
1145
+ </ul>
1146
+ <a href="#" class="btn-outline" style="width: 100%">Contact Us</a>
1147
+ </div>
1148
+ </div>
1149
+ </section>
1150
+
1151
+ <!-- How It Works -->
1152
+ <section class="how-it-works">
1153
+ <div class="section-header">
1154
+ <h2 class="section-title">How It Works</h2>
1155
+ <p class="section-subtitle">
1156
+ Start speaking confidently in three simple steps.
1157
+ </p>
1158
+ </div>
1159
+
1160
+ <div class="steps-container">
1161
+ <div class="step-item">
1162
+ <div class="step-number">1</div>
1163
+ <h3 class="step-title">Choose Your Path</h3>
1164
+ <p class="step-desc">
1165
+ Select your target language and current proficiency level. Echo
1166
+ customizes the experience for you.
1167
+ </p>
1168
+ </div>
1169
+ <div class="step-item">
1170
+ <div class="step-number">2</div>
1171
+ <h3 class="step-title">Start Talking</h3>
1172
+ <p class="step-desc">
1173
+ Engage in open-ended conversations or structured roleplays. Just
1174
+ speak naturally into your microphone.
1175
+ </p>
1176
+ </div>
1177
+ <div class="step-item">
1178
+ <div class="step-number">3</div>
1179
+ <h3 class="step-title">Get Feedback</h3>
1180
+ <p class="step-desc">
1181
+ Receive instant tips on pronunciation and grammar. Watch your
1182
+ fluency score improve daily.
1183
+ </p>
1184
+ </div>
1185
+ </div>
1186
+ </section>
1187
+
1188
+ <!-- Testimonials -->
1189
+ <section class="testimonials">
1190
+ <div class="section-header">
1191
+ <h2 class="section-title">What Learners Say</h2>
1192
+ </div>
1193
+ <div class="testimonial-grid">
1194
+ <div class="testimonial-card">
1195
+ <div class="t-header">
1196
+ <div class="t-avatar">JD</div>
1197
+ <div class="t-info">
1198
+ <h4>John Doe</h4>
1199
+ <span>Software Engineer</span>
1200
+ </div>
1201
+ </div>
1202
+ <p class="t-body">
1203
+ "I was terrified of speaking Spanish in meetings. After 2 weeks
1204
+ with Echo Tutor, I'm leading the daily standup in Spanish!"
1205
+ </p>
1206
+ </div>
1207
+ <div class="testimonial-card">
1208
+ <div class="t-header">
1209
+ <div
1210
+ class="t-avatar"
1211
+ style="background: var(--landing-accent); color: #000"
1212
+ >
1213
+ AS
1214
+ </div>
1215
+ <div class="t-info">
1216
+ <h4>Anna Smith</h4>
1217
+ <span>Travel Blogger</span>
1218
+ </div>
1219
  </div>
1220
+ <p class="t-body">
1221
+ "The roleplay scenarios are incredible. I practiced ordering food
1222
+ 50 times before my trip to Paris, and it was perfect."
1223
+ </p>
1224
  </div>
1225
+ <div class="testimonial-card">
1226
+ <div class="t-header">
1227
+ <div class="t-avatar" style="background: #fff; color: #000">
1228
+ RK
1229
+ </div>
1230
+ <div class="t-info">
1231
+ <h4>Raj Kumar</h4>
1232
+ <span>Student</span>
1233
+ </div>
1234
+ </div>
1235
+ <p class="t-body">
1236
+ "The instant feedback is better than a human tutor because I don't
1237
+ feel embarrassed making mistakes. Highly recommended!"
1238
+ </p>
1239
+ </div>
1240
+ </div>
1241
+ </section>
1242
+
1243
+ <!-- FAQ -->
1244
+ <section class="faq">
1245
+ <div class="section-header">
1246
+ <h2 class="section-title">Frequently Asked Questions</h2>
1247
  </div>
1248
 
1249
+ <div class="faq-container">
1250
+ <div class="faq-item">
1251
+ <div class="faq-question">
1252
+ Is Echo Tutor really free?
1253
+ <span style="font-size: 1.5rem">+</span>
1254
+ </div>
1255
+ <div class="faq-answer">
1256
+ Yes! You can use Echo Tutor for free with a daily limit on
1257
+ conversations. We believe everyone deserves access to great
1258
+ language learning tools.
1259
+ </div>
1260
  </div>
1261
 
1262
+ <div class="faq-item">
1263
+ <div class="faq-question">
1264
+ What languages do you support?
1265
+ <span style="font-size: 1.5rem">+</span>
1266
  </div>
1267
+ <div class="faq-answer">
1268
+ We currently support English, Spanish, French, German, and Arabic.
1269
+ We add new languages based on user demand every month.
1270
  </div>
 
 
 
 
 
 
1271
  </div>
1272
+
1273
+ <div class="faq-item">
1274
+ <div class="faq-question">
1275
+ How does the AI correction work?
1276
+ <span style="font-size: 1.5rem">+</span>
1277
+ </div>
1278
+ <div class="faq-answer">
1279
+ Our AI listens to your speech in real-time. If you make a
1280
+ grammatical mistake or mispronounce a word, it will gently guide
1281
+ you to the correct usage without breaking the flow of the
1282
+ conversation.
1283
+ </div>
1284
+ </div>
1285
+
1286
+ <div class="faq-item">
1287
+ <div class="faq-question">
1288
+ Can I use it on my phone?
1289
+ <span style="font-size: 1.5rem">+</span>
1290
+ </div>
1291
+ <div class="faq-answer">
1292
+ Absolutely. Echo Tutor is fully responsive and works great on
1293
+ mobile browsers via our Progressive Web App (PWA). No download
1294
+ required.
1295
+ </div>
1296
  </div>
1297
  </div>
1298
+ </section>
1299
 
1300
+ <!-- CTA -->
1301
+ <section class="cta-section">
1302
+ <div class="cta-card">
1303
+ <h2 class="section-title">Ready to Fluent?</h2>
1304
+ <p class="section-subtitle" style="margin-bottom: 30px">
1305
+ Join thousands of learners mastering new languages today. Start your
1306
+ journey now completely free.
1307
+ </p>
1308
+ <a href="{{ url_for('signup_page') }}" class="btn-glow btn-lg"
1309
+ >Get Started Free</a
1310
+ >
1311
+ </div>
1312
+ </section>
1313
+ </main>
1314
+
1315
+ <footer class="landing-footer">
1316
+ <div class="footer-grid">
1317
+ <div class="footer-brand">
1318
+ <h2>ECHO TUTOR</h2>
1319
+ <p>
1320
+ Empowering global communication through accessible, advanced AI
1321
+ technology. Break language barriers today.
1322
+ </p>
1323
+ </div>
1324
+ <div class="footer-col">
1325
+ <h4>Product</h4>
1326
+ <a href="#features">Features</a>
1327
+ <a href="#">Pricing</a>
1328
+ <a href="{{ url_for('app_page', guest='1') }}">Try Demo</a>
1329
+ </div>
1330
+ <div class="footer-col">
1331
+ <h4>Resources</h4>
1332
+ <a href="#">Blog</a>
1333
+ <a href="#">Community</a>
1334
+ <a href="#">Help Center</a>
1335
+ </div>
1336
+ <div class="footer-col">
1337
+ <h4>Company</h4>
1338
+ <a href="#">About Us</a>
1339
+ <a href="#">Careers</a>
1340
+ <a href="#">Privacy Policy</a>
1341
+ <a href="#">Terms of Service</a>
1342
+ </div>
1343
  </div>
1344
+ <div class="footer-bottom">
1345
+ <p>&copy; 2026 RobovAI.tech. All rights reserved.</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1346
 
1347
+ <script>
1348
+ // Starfield Background
1349
+ const canvas = document.getElementById('stars-canvas');
1350
+ const ctx = canvas.getContext('2d');
1351
+ let width, height;
1352
+ const stars = [];
1353
 
1354
+ function initStars() {
1355
+ width = canvas.width = window.innerWidth;
1356
+ height = canvas.height = window.innerHeight;
1357
+ stars.length = 0;
1358
+ const starCount = Math.floor((width * height) / 3000);
1359
+ for (let i = 0; i < starCount; i++) {
1360
+ stars.push({
1361
+ x: Math.random() * width,
1362
+ y: Math.random() * height,
1363
+ size: Math.random() * 1.5,
1364
+ speed: Math.random() * 0.2 + 0.05,
1365
+ opacity: Math.random() * 0.8 + 0.2,
1366
+ });
1367
  }
1368
+ }
1369
+
1370
+ function animateStars() {
1371
+ ctx.clearRect(0, 0, width, height);
1372
+ stars.forEach((star) => {
1373
+ star.y -= star.speed;
1374
+ if (star.y < 0) {
1375
+ star.y = height;
1376
+ star.x = Math.random() * width;
1377
+ }
1378
+ ctx.beginPath();
1379
+ ctx.arc(star.x, star.y, star.size, 0, Math.PI * 2);
1380
+ ctx.fillStyle = `rgba(255, 255, 255, ${star.opacity})`;
1381
+ ctx.fill();
1382
+ });
1383
+ requestAnimationFrame(animateStars);
1384
+ }
1385
+
1386
+ window.addEventListener('resize', initStars);
1387
+ initStars();
1388
+ animateStars();
1389
+
1390
+ // Simple Observer for fade-in elements
1391
+ const observer = new IntersectionObserver(
1392
+ (entries) => {
1393
+ entries.forEach((entry) => {
1394
+ if (entry.isIntersecting) {
1395
+ entry.target.style.opacity = '1';
1396
+ entry.target.style.transform = 'translateY(0)';
1397
  }
1398
+ });
1399
+ },
1400
+ { threshold: 0.1 },
1401
+ );
1402
+
1403
+ document
1404
+ .querySelectorAll('.feature-card, .step-item, .testimonial-card')
1405
+ .forEach((el) => {
1406
+ el.style.opacity = '0';
1407
+ el.style.transform = 'translateY(20px)';
1408
+ el.style.transition = 'all 0.6s ease-out';
1409
+ observer.observe(el);
1410
+ });
1411
+
1412
+ // Character Interaction
1413
+ const container = document.getElementById('avatar-container');
1414
+ const pupils = document.querySelectorAll('.orb-pupil');
1415
+
1416
+ document.addEventListener('mousemove', (e) => {
1417
+ if (!container) return;
1418
+ const rect = container.getBoundingClientRect();
1419
+ const centerX = rect.left + rect.width / 2;
1420
+ const centerY = rect.top + rect.height / 2;
1421
+
1422
+ const deltaX = (e.clientX - centerX) / (window.innerWidth / 2);
1423
+ const deltaY = (e.clientY - centerY) / (window.innerHeight / 2);
1424
+
1425
+ if (pupils.length) {
1426
+ pupils.forEach((pupil) => {
1427
+ pupil.style.transform = `translate(${deltaX * 4}px, ${deltaY * 4}px)`;
1428
+ });
1429
  }
1430
+
1431
+ container.style.transform = `scale(2.8) perspective(1000px) rotateY(${deltaX * 5}deg) rotateX(${-deltaY * 5}deg)`;
1432
+ });
1433
+
1434
+ function randomBlink() {
1435
+ const eyelids = document.querySelectorAll('.orb-eyelid');
1436
+ if (eyelids.length) {
1437
+ eyelids.forEach((l) => (l.style.top = '0%'));
1438
+ setTimeout(
1439
+ () => eyelids.forEach((l) => (l.style.top = '-100%')),
1440
+ 150,
1441
+ );
 
 
1442
  }
1443
+ setTimeout(randomBlink, Math.random() * 4000 + 2000);
1444
+ }
1445
+ randomBlink();
1446
+
1447
+ // FAQ Accordion
1448
+ document.querySelectorAll('.faq-item').forEach((item) => {
1449
+ item.addEventListener('click', () => {
1450
+ item.classList.toggle('active');
1451
+ const span = item.querySelector('.faq-question span');
1452
+ if (item.classList.contains('active')) {
1453
+ span.textContent = '-';
1454
+ span.style.color = 'var(--landing-accent)';
1455
+ } else {
1456
+ span.textContent = '+';
1457
+ span.style.color = 'inherit';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1458
  }
1459
+ });
1460
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1461
  </script>
1462
  </body>
1463
+ </html>
templates/landing_backup.html ADDED
@@ -0,0 +1,728 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en" dir="ltr" data-theme="dark">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Echo Tutor Premium AI Language Coach</title>
7
+ <meta
8
+ name="description"
9
+ content="Echo Tutor is a premium AI language coach with real-time conversation, corrections, voice support, and guided practice."
10
+ />
11
+ <link
12
+ rel="stylesheet"
13
+ href="{{ url_for('static', filename='css/style.css') }}"
14
+ />
15
+ <style>
16
+ :root {
17
+ --direction: ltr;
18
+ --font-family: 'Inter', -apple-system, sans-serif;
19
+ }
20
+
21
+ [data-lang="ar"] {
22
+ --direction: rtl;
23
+ --font-family: 'Cairo', 'Tajawal', sans-serif;
24
+ }
25
+
26
+ body.landing-body {
27
+ overflow-y: auto;
28
+ justify-content: flex-start;
29
+ align-items: stretch;
30
+ direction: var(--direction);
31
+ font-family: var(--font-family);
32
+ }
33
+
34
+ /* Language Toggle */
35
+ .lang-switch {
36
+ cursor: pointer;
37
+ padding: 6px 10px;
38
+ border-radius: 999px;
39
+ background: rgba(255, 255, 255, 0.05);
40
+ border: 1px solid var(--border-glass);
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 6px;
44
+ transition: 0.3s;
45
+ color: var(--text-primary);
46
+ font-family: inherit;
47
+ }
48
+ .lang-switch:hover {
49
+ background: rgba(255, 255, 255, 0.1);
50
+ }
51
+ .lang-icon {
52
+ font-size: 1.2rem;
53
+ }
54
+
55
+ .landing-root {
56
+ position: relative;
57
+ z-index: 2;
58
+ min-height: 100vh;
59
+ width: min(1180px, 94vw);
60
+ margin: 0 auto;
61
+ padding: 22px 0 48px;
62
+ }
63
+
64
+ .landing-nav {
65
+ position: sticky;
66
+ top: 12px;
67
+ z-index: 20;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: space-between;
71
+ gap: 14px;
72
+ background: var(--bg-glass);
73
+ border: 1px solid var(--border-glass);
74
+ border-radius: 999px;
75
+ padding: 10px 14px;
76
+ backdrop-filter: blur(14px);
77
+ -webkit-backdrop-filter: blur(14px);
78
+ box-shadow: var(--shadow-sm);
79
+ }
80
+
81
+ .brand-mark {
82
+ display: inline-flex;
83
+ align-items: center;
84
+ gap: 10px;
85
+ font-weight: 700;
86
+ letter-spacing: 1px;
87
+ }
88
+
89
+ .echo-logo-inline {
90
+ width: 26px;
91
+ height: 26px;
92
+ object-fit: contain;
93
+ border-radius: 8px;
94
+ filter: drop-shadow(0 0 12px var(--accent-glow));
95
+ }
96
+
97
+ .echo-logo-inline.sm {
98
+ width: 18px;
99
+ height: 18px;
100
+ }
101
+
102
+ .echo-logo-inline.lg {
103
+ width: 38px;
104
+ height: 38px;
105
+ border-radius: 10px;
106
+ }
107
+
108
+ .nav-actions {
109
+ display: inline-flex;
110
+ align-items: center;
111
+ gap: 8px;
112
+ }
113
+
114
+ .hero {
115
+ display: grid;
116
+ grid-template-columns: 1.1fr 0.9fr;
117
+ gap: 26px;
118
+ align-items: stretch;
119
+ margin-top: 24px;
120
+ }
121
+
122
+ .hero-panel,
123
+ .hero-preview,
124
+ .section-card {
125
+ background: var(--bg-glass);
126
+ border: 1px solid var(--border-glass);
127
+ border-radius: var(--radius-xl);
128
+ box-shadow: var(--shadow-md);
129
+ backdrop-filter: blur(14px);
130
+ -webkit-backdrop-filter: blur(14px);
131
+ }
132
+
133
+ .hero-panel {
134
+ padding: 34px;
135
+ position: relative;
136
+ overflow: hidden;
137
+ }
138
+
139
+ .hero-kicker {
140
+ display: inline-flex;
141
+ align-items: center;
142
+ gap: 8px;
143
+ font-size: 0.82rem;
144
+ color: var(--accent-bright);
145
+ border: 1px solid var(--border-glass);
146
+ border-radius: 999px;
147
+ padding: 7px 12px;
148
+ margin-bottom: 14px;
149
+ }
150
+
151
+ .hero-title {
152
+ font-size: clamp(2rem, 4vw, 3.2rem);
153
+ line-height: 1.1;
154
+ letter-spacing: 0.5px;
155
+ margin-bottom: 12px;
156
+ }
157
+
158
+ .hero-copy {
159
+ color: var(--text-secondary);
160
+ max-width: 58ch;
161
+ line-height: 1.75;
162
+ }
163
+
164
+ .cta-row {
165
+ display: flex;
166
+ flex-wrap: wrap;
167
+ gap: 10px;
168
+ margin-top: 22px;
169
+ }
170
+
171
+ .stats-row {
172
+ margin-top: 18px;
173
+ display: grid;
174
+ grid-template-columns: repeat(3, minmax(100px, 1fr));
175
+ gap: 10px;
176
+ }
177
+
178
+ .stat-chip {
179
+ border: 1px solid var(--border-glass);
180
+ border-radius: var(--radius-md);
181
+ padding: 11px 12px;
182
+ background: rgba(255, 255, 255, 0.02);
183
+ }
184
+
185
+ .stat-value {
186
+ font-size: 1.02rem;
187
+ font-weight: 700;
188
+ }
189
+
190
+ .stat-label {
191
+ color: var(--text-muted);
192
+ font-size: 0.78rem;
193
+ }
194
+
195
+ .hero-preview {
196
+ padding: 22px;
197
+ position: relative;
198
+ overflow: hidden;
199
+ }
200
+
201
+ .echo-character-wrap {
202
+ position: relative;
203
+ width: 170px;
204
+ height: 170px;
205
+ margin: 0 auto 14px;
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ animation: echoFloat 3.6s ease-in-out infinite;
210
+ }
211
+
212
+ .echo-character {
213
+ width: 104px;
214
+ height: 104px;
215
+ object-fit: contain;
216
+ border-radius: 22px;
217
+ border: 1px solid rgba(255, 255, 255, 0.12);
218
+ box-shadow:
219
+ 0 0 24px var(--accent-glow),
220
+ 0 0 60px rgba(99, 179, 237, 0.18);
221
+ background: rgba(10, 14, 26, 0.6);
222
+ position: relative;
223
+ z-index: 3;
224
+ }
225
+
226
+ .echo-ring {
227
+ position: absolute;
228
+ border-radius: 50%;
229
+ border: 1px solid;
230
+ pointer-events: none;
231
+ }
232
+
233
+ .echo-ring-1 {
234
+ width: 132px;
235
+ height: 132px;
236
+ border-color: rgba(99, 179, 237, 0.36);
237
+ animation: ringSpin 8.5s linear infinite;
238
+ }
239
+
240
+ .echo-ring-2 {
241
+ width: 162px;
242
+ height: 162px;
243
+ border-color: rgba(159, 122, 234, 0.3);
244
+ animation: ringSpin 11s linear infinite reverse;
245
+ }
246
+
247
+ .echo-pulse {
248
+ position: absolute;
249
+ width: 180px;
250
+ height: 180px;
251
+ border-radius: 50%;
252
+ background: radial-gradient(circle, rgba(99, 179, 237, 0.22) 0%, transparent 72%);
253
+ animation: pulseGlow 2.6s ease-in-out infinite;
254
+ pointer-events: none;
255
+ }
256
+
257
+ .preview-glow {
258
+ position: absolute;
259
+ width: 320px;
260
+ height: 320px;
261
+ border-radius: 50%;
262
+ background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
263
+ top: -120px;
264
+ right: -80px;
265
+ pointer-events: none;
266
+ }
267
+
268
+ .preview-card {
269
+ position: relative;
270
+ border: 1px solid var(--border-glass);
271
+ border-radius: var(--radius-lg);
272
+ background: rgba(10, 14, 26, 0.55);
273
+ padding: 14px;
274
+ margin-bottom: 10px;
275
+ transform: translateY(0);
276
+ transition: transform var(--transition-normal), border-color var(--transition-normal);
277
+ }
278
+
279
+ .preview-card:hover {
280
+ transform: translateY(-4px);
281
+ border-color: var(--accent);
282
+ }
283
+
284
+ .preview-role {
285
+ font-size: 0.74rem;
286
+ color: var(--text-muted);
287
+ margin-bottom: 6px;
288
+ }
289
+
290
+ .preview-text {
291
+ line-height: 1.6;
292
+ color: var(--text-secondary);
293
+ font-size: 0.92rem;
294
+ }
295
+
296
+ .landing-grid {
297
+ display: grid;
298
+ grid-template-columns: repeat(3, minmax(0, 1fr));
299
+ gap: 12px;
300
+ margin-top: 14px;
301
+ }
302
+
303
+ .section {
304
+ margin-top: 18px;
305
+ }
306
+
307
+ .section-card {
308
+ padding: 24px;
309
+ }
310
+
311
+ .section-title {
312
+ font-size: 1.34rem;
313
+ margin-bottom: 12px;
314
+ }
315
+
316
+ .feature-grid {
317
+ display: grid;
318
+ grid-template-columns: repeat(3, minmax(0, 1fr));
319
+ gap: 12px;
320
+ }
321
+
322
+ .feature-item {
323
+ border: 1px solid var(--border-glass);
324
+ border-radius: var(--radius-md);
325
+ background: rgba(255, 255, 255, 0.02);
326
+ padding: 14px;
327
+ }
328
+
329
+ .feature-item h4 {
330
+ font-size: 0.95rem;
331
+ margin-bottom: 6px;
332
+ }
333
+
334
+ .feature-item p {
335
+ color: var(--text-secondary);
336
+ line-height: 1.6;
337
+ font-size: 0.88rem;
338
+ }
339
+
340
+ .steps {
341
+ display: grid;
342
+ grid-template-columns: repeat(3, minmax(0, 1fr));
343
+ gap: 12px;
344
+ }
345
+
346
+ .step-item {
347
+ border: 1px solid var(--border-glass);
348
+ border-radius: var(--radius-md);
349
+ padding: 14px;
350
+ background: rgba(255, 255, 255, 0.02);
351
+ }
352
+
353
+ .step-num {
354
+ display: inline-flex;
355
+ align-items: center;
356
+ justify-content: center;
357
+ width: 28px;
358
+ height: 28px;
359
+ border-radius: 50%;
360
+ font-size: 0.82rem;
361
+ font-weight: 700;
362
+ background: linear-gradient(135deg, var(--accent), var(--accent-2));
363
+ margin-bottom: 8px;
364
+ }
365
+
366
+ .final-cta {
367
+ text-align: center;
368
+ padding: 26px;
369
+ }
370
+
371
+ .muted {
372
+ color: var(--text-muted);
373
+ }
374
+
375
+ .logo-text-group {
376
+ display: inline-flex;
377
+ align-items: center;
378
+ gap: 8px;
379
+ }
380
+
381
+ .reveal {
382
+ opacity: 0;
383
+ transform: translateY(16px);
384
+ transition: opacity 0.7s ease, transform 0.7s ease;
385
+ }
386
+
387
+ .reveal.visible {
388
+ opacity: 1;
389
+ transform: translateY(0);
390
+ }
391
+
392
+ @keyframes echoFloat {
393
+ 0%,
394
+ 100% {
395
+ transform: translateY(0px);
396
+ }
397
+ 50% {
398
+ transform: translateY(-8px);
399
+ }
400
+ }
401
+
402
+ @keyframes ringSpin {
403
+ from {
404
+ transform: rotate(0deg);
405
+ }
406
+ to {
407
+ transform: rotate(360deg);
408
+ }
409
+ }
410
+
411
+ @keyframes pulseGlow {
412
+ 0%,
413
+ 100% {
414
+ opacity: 0.45;
415
+ transform: scale(0.94);
416
+ }
417
+ 50% {
418
+ opacity: 0.85;
419
+ transform: scale(1.02);
420
+ }
421
+ }
422
+
423
+ /* Mobile Responsiveness */
424
+ @media (max-width: 900px) {
425
+ .hero {
426
+ grid-template-columns: 1fr;
427
+ gap: 40px;
428
+ }
429
+ .hero-title {
430
+ font-size: 2.5rem;
431
+ }
432
+ .echo-character-wrap {
433
+ width: 140px;
434
+ height: 140px;
435
+ }
436
+ .echo-character {
437
+ width: 90px;
438
+ height: 90px;
439
+ }
440
+ .echo-ring-1 { width: 110px; height: 110px; }
441
+ .echo-ring-2 { width: 140px; height: 140px; }
442
+
443
+ .landing-grid, .feature-grid {
444
+ grid-template-columns: 1fr;
445
+ }
446
+ }
447
+ </style>
448
+ </head>
449
+ <body class="landing-body">
450
+ <!-- Particles Background -->
451
+ <canvas id="particles-canvas"></canvas>
452
+
453
+ <div class="landing-root">
454
+
455
+ <div class="landing-nav">
456
+ <div class="brand-mark">
457
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Echo Logo" class="echo-logo-inline">
458
+ <span>Echo Tutor</span>
459
+ </div>
460
+ <div class="nav-actions">
461
+ <!-- Language Switcher -->
462
+ <button class="lang-switch" onclick="toggleLanguage()" title="Switch Language">
463
+ <span class="lang-icon" id="lang-flag"></span>
464
+ <span id="lang-text">EN</span>
465
+ </button>
466
+
467
+ {% if user %}
468
+ <a href="{{ url_for('index') }}" class="btn btn-sm btn-ghost" data-i18n="dashboard">Dashboard</a>
469
+ <!-- Logout handled by JS or requires POST -->
470
+ <button onclick="fetch('/auth/logout', {method:'POST'}).then(()=>window.location.reload())" class="btn btn-sm btn-glass" data-i18n="logout">Log Out</button>
471
+ {% else %}
472
+ <a href="{{ url_for('login_page') }}" class="btn btn-sm btn-ghost" data-i18n="login">Log In</a>
473
+ <a href="{{ url_for('signup_page') }}" class="btn btn-sm btn-primary" data-i18n="get_started">Get Started</a>
474
+ {% endif %}
475
+ </div>
476
+ </div>
477
+
478
+ <div class="hero">
479
+ <div class="hero-panel">
480
+ <div class="hero-kicker">
481
+ <span class="status-dot"></span>
482
+ <span data-i18n="new_ai_model">New Gemini 2.0 Flash Model</span>
483
+ </div>
484
+ <h1 class="hero-title">
485
+ <span class="text-gradient" data-i18n="hero_title_1">Master English</span><br />
486
+ <span data-i18n="hero_title_2">with Echo Tutor</span>
487
+ </h1>
488
+ <p class="hero-copy" data-i18n="hero_desc">
489
+ Experience the future of language learning. Real-time conversation,
490
+ instant correction, and personalized feedback powered by advanced AI.
491
+ </p>
492
+
493
+ <div class="cta-row">
494
+ <a href="{{ url_for('index') }}" class="btn btn-lg btn-primary">
495
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" class="echo-logo-inline sm" style="margin-right:8px; filter:none;">
496
+ <span data-i18n="try_demo">Try Echo Live</span>
497
+ </a>
498
+ <a href="#features" class="btn btn-lg btn-glass" data-i18n="explore_features">Explore Features</a>
499
+ </div>
500
+
501
+ <div class="stats-row">
502
+ <div class="stat-chip">
503
+ <div class="stat-value">50+</div>
504
+ <div class="stat-label" data-i18n="scenarios">Scenarios</div>
505
+ </div>
506
+ <div class="stat-chip">
507
+ <div class="stat-value">24/7</div>
508
+ <div class="stat-label" data-i18n="availability">AI Availability</div>
509
+ </div>
510
+ <div class="stat-chip">
511
+ <div class="stat-value">Whisper</div>
512
+ <div class="stat-label" data-i18n="voice_tech">HD Voice Tech</div>
513
+ </div>
514
+ </div>
515
+ </div>
516
+
517
+ <div class="hero-preview">
518
+ <div class="preview-glow"></div>
519
+
520
+ <!-- Animated Echo Character -->
521
+ <div class="echo-character-wrap">
522
+ <div class="echo-pulse"></div>
523
+ <div class="echo-ring echo-ring-1"></div>
524
+ <div class="echo-ring echo-ring-2"></div>
525
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Echo AI Character" class="echo-character">
526
+ </div>
527
+
528
+ <div class="preview-card">
529
+ <div class="preview-role">
530
+ <span style="color:var(--accent);"></span> <span data-i18n="echo_role">Echo AI Tutor</span>
531
+ </div>
532
+ <div class="preview-text">
533
+ "<span data-i18n="echo_msg">Welcome! I'm Echo, your personal language guide. I can help you practice pronunciation, fix grammar mistakes, and build confidence. Ready to start?</span>"
534
+ </div>
535
+ <div style="margin-top:10px; display:flex; gap:5px;">
536
+ <!-- Flag Icons for decoration -->
537
+ <span style="font-size:1.2rem;"></span>
538
+ <span style="font-size:1.2rem;"></span>
539
+ <span style="font-size:1.2rem;"></span>
540
+ </div>
541
+ </div>
542
+
543
+ <div class="preview-card" style="opacity: 0.7; transform: scale(0.98);">
544
+ <div class="preview-role"><span style="color:var(--success);"></span> <span data-i18n="you_role">You</span></div>
545
+ <div class="preview-text" data-i18n="user_msg">I want to improve my business English skills.</div>
546
+ </div>
547
+ </div>
548
+ </div>
549
+
550
+ <div class="section" id="features">
551
+ <div class="landing-grid">
552
+ <div class="section-card">
553
+ <h3 data-i18n="feat_realtime_title">Real-time Voice</h3>
554
+ <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_realtime_desc">Powered by Groq & Whisper for lightning-fast speech recognition.</p>
555
+ </div>
556
+ <div class="section-card">
557
+ <h3 data-i18n="feat_feedback_title">Instant Feedback</h3>
558
+ <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_feedback_desc">Get corrections on grammar and pronunciation as you speak.</p>
559
+ </div>
560
+ <div class="section-card">
561
+ <h3 data-i18n="feat_scenarios_title">Roleplay Scenarios</h3>
562
+ <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_scenarios_desc">Practice ordering coffee, job interviews, and more.</p>
563
+ </div>
564
+ </div>
565
+ </div>
566
+
567
+ <footer style="margin-top: 60px; text-align: center; color: var(--text-muted); padding-bottom: 20px;">
568
+ <p>&copy; 2026 <span style="color:var(--accent);">robovai.tech</span>. All rights reserved.</p>
569
+ </footer>
570
+ </div>
571
+
572
+ <!-- Language Script -->
573
+ <script>
574
+ const translations = {
575
+ en: {
576
+ dashboard: "Dashboard",
577
+ logout: "Log Out",
578
+ login: "Log In",
579
+ get_started: "Get Started",
580
+ new_ai_model: "New Gemini 2.0 Flash Model",
581
+ hero_title_1: "Master English",
582
+ hero_title_2: "with Echo Tutor",
583
+ hero_desc: "Experience the future of language learning. Real-time voice conversations, instant grammar correction, and personalized feedback powered by advanced AI.",
584
+ try_demo: "Try Echo Live",
585
+ explore_features: "Explore Features",
586
+ scenarios: "Scenarios",
587
+ availability: "AI Availability",
588
+ voice_tech: "HD Voice Tech",
589
+ echo_role: "Echo AI Tutor",
590
+ echo_msg: "Welcome! Im Echo, your personal language guide. I can help you practice pronunciation, fix grammar mistakes, and build confidence. Ready to start?",
591
+ you_role: "You",
592
+ user_msg: "I want to improve my business English skills.",
593
+ feat_realtime_title: "Real-time Voice",
594
+ feat_realtime_desc: "Powered by Groq & Whisper for lightning-fast speech recognition.",
595
+ feat_feedback_title: "Instant Feedback",
596
+ feat_feedback_desc: "Get corrections on grammar and pronunciation as you speak.",
597
+ feat_scenarios_title: "Roleplay Scenarios",
598
+ feat_scenarios_desc: "Practice ordering coffee, job interviews, and more."
599
+ },
600
+ ar: {
601
+ dashboard: "لوحة التحكم",
602
+ logout: "تسجيل خروج",
603
+ login: "تسجيل دخول",
604
+ get_started: "ابدأ الآن",
605
+ new_ai_model: "مدعوم بنموذج Gemini 2.0 Flash",
606
+ hero_title_1: "أتقن الإنجليزية",
607
+ hero_title_2: "مع إيكو توتور",
608
+ hero_desc: "جرب مستقبل تعلم اللغات. محادثات صوتية فورية، تصحيح فوري للقواعد، وملاحظات مخصصة مدعومة بأحدث تقنيات الذكاء الاصطناعي.",
609
+ try_demo: "جرب إيكو لايف",
610
+ explore_features: "اكتشف المزايا",
611
+ scenarios: "سيناريو تعليمي",
612
+ availability: "متاح 24/7",
613
+ voice_tech: "تقنية صوت HD",
614
+ echo_role: "المعلم إيكو",
615
+ echo_msg: "أهلاً! أنا إيكو، دليلك الشخصي للغة. أستطيع مساعدتك في تحسين النطق، وتصحيح الأخطاء القواعدية، وبناء ثقتك بنفسك. هل أنت جاهز؟",
616
+ you_role: "أنت",
617
+ user_msg: "أريد تحسين مهاراتي في اللغة الإنجليزية للأعمال.",
618
+ feat_realtime_title: "صوت فوري",
619
+ feat_realtime_desc: "مدعوم بتقنيات Groq و Whisper لتعرف فائق السرعة على الكلام.",
620
+ feat_feedback_title: "تغذية راجعة فورية",
621
+ feat_feedback_desc: "احصل على تصحيحات للقواعد والنطق أثناء ت��دثك مباشرة.",
622
+ feat_scenarios_title: "سيناريوهات تفاعلية",
623
+ feat_scenarios_desc: "تدرب على طلب القهوة، مقابلات العمل، والمزيد من المواقف الحياتية."
624
+ }
625
+ };
626
+
627
+ let currentLang = 'en';
628
+
629
+ function toggleLanguage() {
630
+ currentLang = currentLang === 'en' ? 'ar' : 'en';
631
+ updateContent();
632
+ }
633
+
634
+ function updateContent() {
635
+ const elements = document.querySelectorAll('[data-i18n]');
636
+ elements.forEach(el => {
637
+ const key = el.getAttribute('data-i18n');
638
+ if (translations[currentLang][key]) {
639
+ el.innerText = translations[currentLang][key];
640
+ }
641
+ });
642
+
643
+ // Layout changes
644
+ document.body.style.direction = currentLang === 'ar' ? 'rtl' : 'ltr';
645
+ document.documentElement.setAttribute('lang', currentLang);
646
+ document.documentElement.setAttribute('dir', currentLang === 'ar' ? 'rtl' : 'ltr');
647
+
648
+ // Update switch button
649
+ const flag = document.getElementById('lang-flag');
650
+ const txt = document.getElementById('lang-text');
651
+
652
+ if (currentLang === 'ar') {
653
+ flag.innerText = '';
654
+ txt.innerText = 'AR';
655
+ document.body.setAttribute('data-lang', 'ar');
656
+ } else {
657
+ flag.innerText = '';
658
+ txt.innerText = 'EN';
659
+ document.body.removeAttribute('data-lang');
660
+ }
661
+ }
662
+ </script>
663
+ <script>
664
+ /* --- Particles Background Logic --- */
665
+ (function() {
666
+ const canvas = document.getElementById('particles-canvas');
667
+ const ctx = canvas.getContext('2d');
668
+
669
+ let width, height;
670
+
671
+ function resize() {
672
+ width = window.innerWidth;
673
+ height = window.innerHeight;
674
+ canvas.width = width;
675
+ canvas.height = height;
676
+ }
677
+ window.addEventListener('resize', resize);
678
+ resize();
679
+
680
+ const particles = [];
681
+ const particleCount = 40;
682
+
683
+ class Particle {
684
+ constructor() {
685
+ this.x = Math.random() * width;
686
+ this.y = Math.random() * height;
687
+ this.vx = (Math.random() - 0.5) * 0.4;
688
+ this.vy = (Math.random() - 0.5) * 0.4;
689
+ this.size = Math.random() * 2 + 1;
690
+ this.alpha = Math.random() * 0.5 + 0.1;
691
+ }
692
+
693
+ update() {
694
+ this.x += this.vx;
695
+ this.y += this.vy;
696
+
697
+ if (this.x < 0) this.x = width;
698
+ if (this.x > width) this.x = 0;
699
+ if (this.y < 0) this.y = height;
700
+ if (this.y > height) this.y = 0;
701
+ }
702
+
703
+ draw() {
704
+ ctx.fillStyle =
705
+ gba(99, 179, 237, );
706
+ ctx.beginPath();
707
+ ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
708
+ ctx.fill();
709
+ }
710
+ }
711
+
712
+ for (let i=0; i < particleCount; i++) {
713
+ particles.push(new Particle());
714
+ }
715
+
716
+ function animate() {
717
+ ctx.clearRect(0, 0, width, height);
718
+ particles.forEach(p => {
719
+ p.update();
720
+ p.draw();
721
+ });
722
+ requestAnimationFrame(animate);
723
+ }
724
+ animate();
725
+ })();
726
+ </script>
727
+ </body>
728
+ </html>