-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmotion.css
More file actions
659 lines (566 loc) · 15.9 KB
/
motion.css
File metadata and controls
659 lines (566 loc) · 15.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
/* ============================================
MOTION.CSS — 2026 Motion Graphics & Polish
SupaLedgers Design System Extension
============================================ */
/* ============================================
0. RESPECT REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
.aurora, .dot-grid-bg { display: none !important; }
}
/* ============================================
1. FIX: ABOVE-FOLD VISIBILITY
Elements in the viewport on load should be
immediately visible. The IntersectionObserver
will fire, but there's a flash of hidden content.
We mark the hero and first sections as visible
via JS (see motion.js), and also make the hero
content always visible since it's always above fold.
============================================ */
/* Hero content is always above fold — never hide it */
.hero .js-reveal,
.hero .stagger,
.hero .stagger > * {
opacity: 1 !important;
transform: none !important;
}
/* Make js-reveal snappier for below-fold */
.js-reveal {
transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.stagger > * {
transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
/* ============================================
2. HERO AURORA / ANIMATED GRADIENT MESH
Slow-shifting gradient using @property
============================================ */
@property --aurora-1 {
syntax: '<percentage>';
initial-value: 20%;
inherits: false;
}
@property --aurora-2 {
syntax: '<percentage>';
initial-value: 80%;
inherits: false;
}
@property --aurora-3 {
syntax: '<percentage>';
initial-value: 40%;
inherits: false;
}
@property --aurora-4 {
syntax: '<angle>';
initial-value: 0deg;
inherits: false;
}
.aurora {
position: absolute;
inset: 0;
z-index: 0;
overflow: hidden;
pointer-events: none;
}
.aurora::before,
.aurora::after {
content: '';
position: absolute;
inset: -50%;
animation: aurora-shift 16s ease-in-out infinite alternate;
}
.aurora::before {
background:
radial-gradient(ellipse 50% 40% at var(--aurora-1) 30%, rgba(39, 171, 131, 0.12) 0%, transparent 60%),
radial-gradient(ellipse 40% 50% at var(--aurora-2) 60%, rgba(62, 189, 147, 0.08) 0%, transparent 50%),
radial-gradient(ellipse 60% 30% at 50% var(--aurora-3), rgba(20, 125, 100, 0.06) 0%, transparent 60%);
filter: blur(40px);
animation: aurora-move-1 12s ease-in-out infinite alternate;
}
.aurora::after {
background:
radial-gradient(ellipse 45% 35% at 70% 40%, rgba(100, 100, 200, 0.05) 0%, transparent 55%),
radial-gradient(ellipse 50% 40% at 30% 70%, rgba(39, 171, 131, 0.06) 0%, transparent 50%);
filter: blur(60px);
animation: aurora-move-2 18s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-move-1 {
0% { --aurora-1: 20%; --aurora-2: 80%; --aurora-3: 40%; }
33% { --aurora-1: 40%; --aurora-2: 60%; --aurora-3: 55%; }
66% { --aurora-1: 60%; --aurora-2: 35%; --aurora-3: 30%; }
100% { --aurora-1: 30%; --aurora-2: 75%; --aurora-3: 60%; }
}
@keyframes aurora-move-2 {
0% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
50% { transform: translate(5%, -3%) rotate(3deg); opacity: 1; }
100% { transform: translate(-3%, 5%) rotate(-2deg); opacity: 0.8; }
}
/* ============================================
3. ANIMATED DOT GRID FOR DARK SECTIONS
CSS-only pulsing dot pattern
============================================ */
.dot-grid-bg {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
}
.dot-grid-bg::before {
content: '';
position: absolute;
inset: 0;
background-image: radial-gradient(circle 1px at center, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
background-size: 32px 32px;
mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 80%);
-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 80%);
animation: dot-pulse 6s ease-in-out infinite alternate;
}
@keyframes dot-pulse {
0% { opacity: 0.4; }
50% { opacity: 0.7; }
100% { opacity: 0.5; }
}
/* ============================================
4. CARD HOVER GLOW EFFECTS
Subtle border-glow on hover for cards
============================================ */
/* Feature cards, pricing cards, testimonials, value cards */
.card,
.pricing-card,
.pricing-card-full,
.testimonial,
.value-card,
.mockup-card {
position: relative;
transition: box-shadow 0.3s var(--ease-out),
transform 0.3s var(--ease-out),
border-color 0.3s var(--ease-out);
}
.card:hover,
.testimonial:hover,
.value-card:hover {
box-shadow: 0 4px 20px rgba(39, 171, 131, 0.1),
0 0 0 1px rgba(39, 171, 131, 0.08);
border-color: rgba(39, 171, 131, 0.2);
transform: translateY(-2px);
}
.pricing-card:hover,
.pricing-card-full:hover {
box-shadow: 0 4px 20px rgba(39, 171, 131, 0.08),
0 0 0 1px rgba(39, 171, 131, 0.08);
border-color: rgba(39, 171, 131, 0.15);
transform: translateY(-2px);
}
/* Don't override the featured card's existing glow */
.pricing-card--featured:hover,
.pricing-card-full--featured:hover {
box-shadow: 0 0 0 1.5px var(--teal-400),
0 8px 24px rgba(39, 171, 131, 0.12);
}
.mockup-card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
transform: translateY(-1px);
}
/* Card inner glow effect on hover - CSS-only spotlight */
.card::after,
.pricing-card::after,
.pricing-card-full::after,
.testimonial::after,
.value-card::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
opacity: 0;
transition: opacity 0.4s var(--ease-out);
pointer-events: none;
background: radial-gradient(
300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
rgba(39, 171, 131, 0.06),
transparent 60%
);
z-index: 1;
}
.card:hover::after,
.pricing-card:hover::after,
.pricing-card-full:hover::after,
.testimonial:hover::after,
.value-card:hover::after {
opacity: 1;
}
/* Ensure card content stays above the glow */
.card > *,
.pricing-card > *,
.pricing-card-full > *,
.testimonial > *,
.value-card > * {
position: relative;
z-index: 2;
}
/* ============================================
5. SMOOTH NUMBER COUNTERS (pricing)
Handled by JS, CSS provides smooth look
============================================ */
.counter-animated {
display: inline-block;
font-variant-numeric: tabular-nums lining-nums;
}
/* ============================================
6. GLASSMORPHISM POLISH
Enhanced nav on scroll + "Free Beta" card
============================================ */
/* Enhanced nav glassmorphism on scroll */
.nav--scrolled {
background: rgba(255, 255, 255, 0.85) !important;
backdrop-filter: blur(24px) saturate(1.5) !important;
-webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
border-bottom-color: rgba(16, 42, 67, 0.06) !important;
box-shadow: 0 1px 3px rgba(16, 42, 67, 0.04),
0 4px 12px rgba(16, 42, 67, 0.04) !important;
}
/* Glass effect for the Free Beta card on contact page */
.contact-info__card {
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-radius: var(--radius-xl) !important;
overflow: hidden;
position: relative;
}
.contact-info__card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
135deg,
rgba(39, 171, 131, 0.05) 0%,
rgba(255, 255, 255, 0.02) 50%,
rgba(39, 171, 131, 0.03) 100%
);
pointer-events: none;
}
/* ============================================
7. MICRO-INTERACTIONS
Button scale+glow, link underlines, pulse dot
============================================ */
/* Button hover: subtle scale-up + glow */
.btn--primary:hover {
transform: translateY(-1px) scale(1.02) !important;
box-shadow: 0 4px 20px rgba(39, 171, 131, 0.35),
0 0 40px rgba(39, 171, 131, 0.1) !important;
}
.btn--primary:active {
transform: translateY(0) scale(0.98) !important;
box-shadow: 0 2px 8px rgba(39, 171, 131, 0.2) !important;
}
.btn--secondary:hover {
transform: translateY(-1px) scale(1.01);
}
.btn--outline-light:hover {
transform: translateY(-1px) scale(1.02);
box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}
/* Nav link smooth underline animation */
.nav__links a:not(.nav__cta) {
position: relative;
}
.nav__links a:not(.nav__cta)::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 1.5px;
background: var(--color-accent);
transition: width 0.25s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a:not(.nav__cta).active::after {
width: 100%;
}
/* Footer link underline animation */
.footer__col a {
position: relative;
}
.footer__col a::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 0;
height: 1px;
background: currentColor;
transition: width 0.25s var(--ease-out);
}
.footer__col a:hover::after {
width: 100%;
}
/* Pulse dot animation for "Beta spots are limited" badge */
@keyframes pulse-dot {
0%, 100% {
opacity: 1;
box-shadow: 0 0 0 0 rgba(39, 171, 131, 0.5);
}
50% {
opacity: 0.8;
box-shadow: 0 0 0 6px rgba(39, 171, 131, 0);
}
}
/* Ensure the inline pulse dot works */
[style*="animation:pulse"] {
animation: pulse-dot 2s ease-in-out infinite !important;
}
/* ============================================
8. SMOOTH SECTION TRANSITIONS
Gradient dividers instead of hard edges
============================================ */
/* Light → Dark transition */
.section--light + .section--dark,
.section--gray + .section--dark {
position: relative;
}
.section--light + .section--dark::before,
.section--gray + .section--dark::before {
content: '';
position: absolute;
top: -1px;
left: 0;
right: 0;
height: 40px;
background: linear-gradient(
to bottom,
var(--color-bg) 0%,
transparent 100%
);
pointer-events: none;
z-index: 1;
}
.section--gray + .section--dark::before {
background: linear-gradient(
to bottom,
var(--color-surface) 0%,
transparent 100%
);
}
/* Dark → Light transition */
.section--dark + .section--light,
.section--dark + .section--gray {
position: relative;
}
.section--dark + .section--light::before,
.section--dark + .section--gray::before {
content: '';
position: absolute;
top: -1px;
left: 0;
right: 0;
height: 40px;
background: linear-gradient(
to bottom,
var(--color-surface-dark) 0%,
transparent 100%
);
pointer-events: none;
z-index: 1;
}
/* Light → Gray transition */
.section--light + .section--gray {
position: relative;
}
.section--light + .section--gray::before {
content: '';
position: absolute;
top: -1px;
left: 0;
right: 0;
height: 24px;
background: linear-gradient(
to bottom,
var(--color-bg) 0%,
transparent 100%
);
pointer-events: none;
z-index: 1;
}
/* Gray → Light transition */
.section--gray + .section--light {
position: relative;
}
.section--gray + .section--light::before {
content: '';
position: absolute;
top: -1px;
left: 0;
right: 0;
height: 24px;
background: linear-gradient(
to bottom,
var(--color-surface) 0%,
transparent 100%
);
pointer-events: none;
z-index: 1;
}
/* ============================================
9. NAV CTA BUTTON PULSE ON IDLE
Subtle attention-grabbing pulse
============================================ */
.nav__cta {
position: relative;
overflow: visible;
}
.nav__cta::before {
content: '';
position: absolute;
inset: -2px;
border-radius: inherit;
background: var(--color-accent);
opacity: 0;
z-index: -1;
animation: cta-glow 3s ease-in-out infinite;
}
@keyframes cta-glow {
0%, 100% { opacity: 0; transform: scale(1); }
50% { opacity: 0.15; transform: scale(1.08); }
}
/* ============================================
10. VOICE DEMO CARD ENHANCEMENTS
Make the hero demo card feel more alive
============================================ */
.voice-demo {
transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.voice-demo:hover {
transform: translateY(-4px);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
0 0 40px rgba(39, 171, 131, 0.08);
}
/* Typing effect on transcript */
.voice-demo__transcript p {
overflow: hidden;
border-right: 2px solid rgba(159, 179, 200, 0.5);
animation: cursor-blink 1.2s step-end infinite;
}
@keyframes cursor-blink {
0%, 100% { border-color: rgba(159, 179, 200, 0.5); }
50% { border-color: transparent; }
}
/* ============================================
11. THESIS STEP ANIMATION
Subtle continuous animation on the flow icons
============================================ */
.thesis__step-icon {
transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.thesis__step:hover .thesis__step-icon {
transform: scale(1.1);
box-shadow: 0 0 20px rgba(39, 171, 131, 0.2);
}
.thesis__arrow {
animation: arrow-nudge 2s ease-in-out infinite;
}
@keyframes arrow-nudge {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(4px); }
}
@media (max-width: 640px) {
.thesis__arrow {
animation: arrow-nudge-down 2s ease-in-out infinite;
}
@keyframes arrow-nudge-down {
0%, 100% { transform: rotate(90deg) translateX(0); }
50% { transform: rotate(90deg) translateX(4px); }
}
}
/* ============================================
12. HOW-STEP NUMBER ANIMATION
============================================ */
.how-step__num {
transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.how-step:hover .how-step__num {
color: var(--teal-200);
transform: translateY(-2px);
}
/* ============================================
13. FAQ DETAILS ANIMATION
============================================ */
.faq-item summary {
transition: color 0.2s var(--ease-out);
}
.faq-item[open] summary {
color: var(--color-accent);
}
.faq-item p {
animation: faq-expand 0.3s var(--ease-out);
}
@keyframes faq-expand {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ============================================
14. TEAM AVATAR HOVER
============================================ */
.team-avatar {
transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.team-member:hover .team-avatar {
transform: scale(1.05);
box-shadow: 0 0 24px rgba(39, 171, 131, 0.15);
}
/* ============================================
15. GENERAL CARD ENTRANCE STAGGER
(applied to feature sections on features page)
============================================ */
.feature-section .feature-visual {
transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
/* ============================================
16. SAVINGS HIGHLIGHT ANIMATION
Pulsing glow on the savings row
============================================ */
.cost-row--savings {
animation: savings-glow 3s ease-in-out infinite;
}
@keyframes savings-glow {
0%, 100% { box-shadow: 0 0 0 0 rgba(39, 171, 131, 0); }
50% { box-shadow: 0 0 20px rgba(39, 171, 131, 0.1); }
}
/* ============================================
17. MOBILE REFINEMENTS
============================================ */
@media (max-width: 768px) {
/* Reduce section transition heights on mobile */
.section--light + .section--dark::before,
.section--gray + .section--dark::before,
.section--dark + .section--light::before,
.section--dark + .section--gray::before {
height: 40px;
}
.section--light + .section--gray::before,
.section--gray + .section--light::before {
height: 24px;
}
/* Simpler hover effects on touch devices */
@media (hover: none) {
.card:hover,
.testimonial:hover,
.value-card:hover,
.pricing-card:hover,
.pricing-card-full:hover {
transform: none;
}
}
}