forked from Dshield-xyz/Dshield
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
307 lines (283 loc) · 7.62 KB
/
Copy pathglobals.css
File metadata and controls
307 lines (283 loc) · 7.62 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
@import "tailwindcss";
@theme inline {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
/* Extra-small breakpoint used by the header wordmark (`xs:inline`). */
--breakpoint-xs: 30rem;
/* Brand accent ramp (indigo) used for highlights and gradients. */
--color-brand-300: #a5b4fc;
--color-brand-400: #818cf8;
--color-brand-500: #6366f1;
--color-brand-600: #4f46e5;
--color-brand-700: #4338ca;
--color-brand-800: #3730a3;
--color-brand-950: #1e1b4b;
/* Secondary accent (cyan) for gradient endpoints. */
--color-accent-400: #22d3ee;
/* Entrance animations — restrained, used for first-paint reveals. */
--animate-fade-up: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
--animate-fade-in: fade-in 0.8s ease both;
}
@layer base {
:root {
/* Page background. */
--bg: #09090b; /* zinc-950 */
}
html {
color-scheme: dark;
}
body {
position: relative;
overflow-x: hidden;
background-color: var(--bg);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/*
* Faint engineering grid masked to the top of the page — adds structure and a
* "protocol" feel under the hero, then dissolves so the rest of the page
* stays calm. The moving color comes from <Background /> (drifting aurora
* blobs) which sits further back; this grid floats just above it.
*/
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
background-image:
linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
background-size: 56px 56px;
-webkit-mask-image: radial-gradient(
58rem 40rem at 50% -2rem,
#000 0%,
transparent 78%
);
mask-image: radial-gradient(
58rem 40rem at 50% -2rem,
#000 0%,
transparent 78%
);
}
::selection {
background-color: color-mix(in oklab, var(--color-brand-500) 35%, transparent);
color: #fff;
}
/* Restrained dark scrollbar so it doesn't fight the UI. */
* {
scrollbar-width: thin;
scrollbar-color: #3f3f46 transparent; /* zinc-700 thumb */
}
@keyframes fade-up {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/*
* Aurora drift — slow, small-amplitude movement for the background blobs.
* Kept gentle (sub-40px travel, ~10% scale) and slow so the page feels alive
* without ever drawing attention to itself.
*/
@keyframes drift-a {
0%,
100% {
transform: translate(-50%, 0) scale(1);
}
50% {
transform: translate(-50%, 34px) scale(1.08);
}
}
@keyframes drift-b {
0%,
100% {
transform: translate(0, 0) scale(1);
}
50% {
transform: translate(-36px, 26px) scale(1.06);
}
}
@keyframes drift-c {
0%,
100% {
transform: translate(0, 0) scale(1);
}
50% {
transform: translate(30px, -28px) scale(1.05);
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
}
}
@layer components {
/* Shared focus ring for interactive primitives (buttons, inputs, cards). */
.focus-ring {
@apply outline-none focus-visible:ring-2 focus-visible:ring-brand-500/60 focus-visible:ring-offset-2 focus-visible:ring-offset-zinc-950;
}
/*
* Static aurora hairline — a faint indigo→cyan→violet gradient ring that
* echoes the moving <Background /> palette, so framed surfaces (cards, the
* nav, the footer) feel tied to the live backdrop. Low opacity by design: it
* sits just over the base border and tints the edge rather than glowing.
*/
.aurora-border {
position: relative;
}
.aurora-border::after {
content: "";
position: absolute;
inset: 0;
z-index: 0;
padding: 1px;
border-radius: inherit;
background: linear-gradient(
135deg,
rgba(99, 102, 241, 0.45),
rgba(34, 211, 238, 0.15) 42%,
transparent 62%,
rgba(139, 92, 246, 0.4)
);
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
pointer-events: none;
}
/*
* Aurora gradient ring for form fields. The double-background / background-clip
* trick paints a real indigo→cyan→violet border directly on the <input> (where
* ::before/::after don't render), respects the rounded corners, and brightens
* with a soft glow on focus.
*/
.aurora-field {
border: 1px solid transparent;
background:
linear-gradient(#27272a, #27272a) padding-box,
linear-gradient(
135deg,
rgba(99, 102, 241, 0.55),
rgba(34, 211, 238, 0.28) 45%,
rgba(139, 92, 246, 0.5)
)
border-box;
transition:
background 0.2s ease,
box-shadow 0.2s ease;
}
.aurora-field:hover {
background:
linear-gradient(#2a2a2e, #2a2a2e) padding-box,
linear-gradient(
135deg,
rgba(99, 102, 241, 0.7),
rgba(34, 211, 238, 0.35) 45%,
rgba(139, 92, 246, 0.65)
)
border-box;
}
.aurora-field:focus,
.aurora-field:focus-visible {
outline: none;
background:
linear-gradient(#27272a, #27272a) padding-box,
linear-gradient(
135deg,
rgba(99, 102, 241, 0.95),
rgba(34, 211, 238, 0.5) 45%,
rgba(139, 92, 246, 0.9)
)
border-box;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
/*
* Animated conic gradient border. Wrap content in `.gradient-border` and the
* brand ramp slowly rotates around the edge — used for the hero CTA so it
* draws the eye without flashing.
*/
.gradient-border {
position: relative;
isolation: isolate;
}
.gradient-border::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
padding: 1px;
border-radius: inherit;
background: conic-gradient(
from var(--angle, 0deg),
var(--color-brand-500),
var(--color-accent-400),
var(--color-brand-700),
var(--color-brand-500)
);
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
animation: spin-border 6s linear infinite;
}
@property --angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
@keyframes spin-border {
to {
--angle: 360deg;
}
}
}
@layer utilities {
/* Stagger helpers for sequenced entrance reveals. */
.delay-100 {
animation-delay: 0.1s;
}
.delay-200 {
animation-delay: 0.2s;
}
.delay-300 {
animation-delay: 0.3s;
}
/*
* Scroll-driven entrance: fades content up as it enters the viewport.
* Fail-open by construction — browsers without animation-timeline support
* ignore the timeline and simply play the fade once on load, so content is
* never left hidden behind a JS observer that didn't fire.
* (`animation-timeline` must come after the `animation` shorthand, which
* would otherwise reset it.)
*/
.scroll-reveal {
animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
animation-timeline: view();
animation-range: entry 0% entry 60%;
}
@media (prefers-reduced-motion: reduce) {
.scroll-reveal {
animation: none;
}
}
}