File size: 37,749 Bytes
9be1db8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b560bbb
9be1db8
 
 
 
 
b560bbb
9be1db8
 
b560bbb
9be1db8
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@font-face { font-family: "Inter"; src: url("../fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("../fonts/NotoSansDevanagari-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --deva: "Noto Sans Devanagari", "Inter", sans-serif;
  --bg: #f6f6fb; --bg2: #ffffff; --ink: #0f1222; --ink2: #4a4f6a; --ink3: #8a8fa8;
  --line: rgba(15, 18, 34, .08); --line2: rgba(15, 18, 34, .14);
  --card: rgba(255, 255, 255, .78); --card-solid: #fff; --glass-blur: 18px;
  --accent: #6d4aff; --a1: #6366f1; --a2: #a855f7; --a3: #f97316; --a4: #ec4899;
  --hi: #7c3aed; --en: #0ea5e9; --dev: #f97316; --oth: #94a3b8;
  --shadow: 0 1px 2px rgba(16, 20, 50, .04), 0 8px 24px -6px rgba(16, 20, 50, .10), 0 30px 60px -30px rgba(80, 60, 200, .18);
  --radius: 22px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #090b14; --bg2: #0e1120; --ink: #eef0ff; --ink2: #b3b8d6; --ink3: #7b81a3;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13);
  --card: rgba(18, 21, 38, .72); --card-solid: #12152a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 50px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #090b14; --bg2: #0e1120; --ink: #eef0ff; --ink2: #b3b8d6; --ink3: #7b81a3;
    --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13);
    --card: rgba(18, 21, 38, .72); --card-solid: #12152a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 50px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; line-height: 1.5;
  transition: background .4s var(--ease), color .4s var(--ease); overflow-x: hidden; }
a { color: inherit; }
.deva { font-family: var(--deva); }

/* ---------- ambient background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 22s var(--ease) infinite alternate; }
.b1 { width: 620px; height: 620px; background: radial-gradient(circle at 30% 30%, #8b7bff, transparent 65%); top: -220px; left: -160px; }
.b2 { width: 560px; height: 560px; background: radial-gradient(circle at 50% 50%, #ff9a5a, transparent 65%); top: -120px; right: -200px; animation-delay: -6s; opacity: .38; }
.b3 { width: 700px; height: 700px; background: radial-gradient(circle at 50% 50%, #e879f9, transparent 65%); top: 520px; left: 35%; animation-delay: -12s; opacity: .22; }
:root[data-theme="dark"] .blob { opacity: .28; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .blob { opacity: .28; } }
.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 75%); opacity: .55; }
@keyframes float { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in oklab, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; filter: drop-shadow(0 6px 14px rgba(124, 58, 237, .35)); }
.brand-name { font-weight: 750; letter-spacing: -.02em; font-size: 18px; }
.brand-tag { font-size: 12px; color: var(--ink3); border: 1px solid var(--line2); padding: 2px 8px; border-radius: 99px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-link { text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink2); padding: 8px 12px; border-radius: 10px; transition: background .2s; }
.nav-link:hover { background: var(--line); color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 550; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line2); color: var(--ink2); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: pulse 1.6s infinite; }
.status.ready .dot { background: #10b981; animation: pulse-g 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.icon-btn:hover { transform: rotate(-12deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1/1; transition: opacity .3s, transform .4s var(--ease); }
.icon-btn .moon { fill: currentColor; stroke: none; }
:root .icon-btn .moon, :root[data-theme="dark"] .icon-btn .sun { opacity: 0; transform: scale(.5) rotate(-60deg); }
:root[data-theme="dark"] .icon-btn .moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .icon-btn .sun { opacity: 0; } :root[data-theme="auto"] .icon-btn .moon { opacity: 1; transform: none; } }

/* ---------- hero */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hero { text-align: center; padding: clamp(34px, 6vw, 64px) 0 30px; animation: rise .9s var(--ease) both; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--card); border: 1px solid var(--line2);
  padding: 7px 14px; border-radius: 99px; box-shadow: var(--shadow); }
.spark { background: linear-gradient(90deg, var(--a1), var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { font-size: clamp(30px, 4.9vw, 58px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; margin: 22px auto 18px; max-width: 1020px; text-wrap: balance; }
.grad { background: linear-gradient(100deg, var(--a1) 0%, var(--a2) 40%, var(--a4) 70%, var(--a3) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.lede { max-width: 700px; margin: 0 auto; font-size: clamp(16px, 2vw, 19px); color: var(--ink2); }
.lede-strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 4px; }
.stats { display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px auto 0; border: 1px solid var(--line2); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 14px 26px; display: flex; gap: 12px; align-items: center; text-align: left; }
.stat + .stat { border-left: 1px solid var(--line2); }
.stat b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(100deg, var(--a1), var(--a4)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.stat span { font-size: 12.5px; line-height: 1.3; color: var(--ink2); }
.stat-src { margin: 10px 0 0; font-size: 11.5px; color: var(--ink3, var(--ink2)); opacity: .8; }
.stat-src a { color: inherit; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; width: 100%; } .stat + .stat { border-left: 0; border-top: 1px solid var(--line2); } .stat { padding: 10px 18px; } .stat b { min-width: 74px; } }
.size-chip { font-weight: 700; color: var(--ink); background: linear-gradient(90deg, rgba(99, 102, 241, .14), rgba(249, 115, 22, .14)); padding: 1px 9px; border-radius: 8px; white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- cards */
.card { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); }
.playground { position: relative; padding: 18px; animation: rise 1s .1s var(--ease) both; }
.playground::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, rgba(99, 102, 241, .55), rgba(168, 85, 247, .15) 35%, rgba(249, 115, 22, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 2px 2px 14px; }
.spacer { flex: 1; }
.seg { position: relative; display: inline-flex; background: color-mix(in oklab, var(--ink) 6%, transparent); border-radius: 13px; padding: 4px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink2); padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: color .25s; white-space: nowrap; }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg-glider { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--card-solid); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 14px -6px rgba(80, 60, 200, .35);
  transition: transform .35s var(--ease), width .35s var(--ease); }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 38px; height: 22px; border-radius: 99px; background: color-mix(in oklab, var(--ink) 18%, transparent); position: relative; transition: background .25s; }
.thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: linear-gradient(90deg, var(--a1), var(--a2)); }
.switch input:checked + .track .thumb { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--a2); outline-offset: 2px; }
.lang-badge { font-size: 12.5px; font-weight: 650; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line2); display: inline-flex; gap: 7px; align-items: center; animation: pop .35s var(--ease); }
.lang-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--hi)); }

.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pane { border-radius: 16px; border: 1px solid var(--line2); background: var(--bg2); padding: 14px 16px 16px; min-height: 210px; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.pane.in:focus-within { border-color: color-mix(in oklab, var(--a2) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--a2) 14%, transparent); }
.pane.out { background: linear-gradient(180deg, color-mix(in oklab, var(--a1) 5%, var(--bg2)), var(--bg2)); }
.pane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; min-height: 30px; }
.label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); }
.deva-label { font-family: var(--deva); text-transform: none; letter-spacing: 0; font-size: 13px; }
textarea { flex: 1; width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 clamp(18px, 2.2vw, 22px)/1.55 var(--font); letter-spacing: -.01em; }
textarea::placeholder { color: var(--ink3); opacity: .8; }
.output { flex: 1; font-family: var(--deva); font-size: clamp(22px, 2.8vw, 30px); line-height: 1.6; font-weight: 500; word-wrap: break-word; }
.output .ph { color: var(--ink3); opacity: .6; font-size: .8em; }
.w { position: relative; display: inline; border-radius: 8px; padding: 0 2px; cursor: pointer; transition: background .2s; }
.wt { background-image: linear-gradient(var(--c), var(--c)); background-size: 100% 2px; background-position: 0 96%; background-repeat: no-repeat; padding-bottom: 2px; }
.pn { color: var(--ink2); }
.w:hover, .w.sel { background-color: color-mix(in oklab, var(--c) 14%, transparent); }
.w.lang-HI { --c: color-mix(in oklab, var(--hi) 55%, transparent); }
.w.lang-EN { --c: color-mix(in oklab, var(--en) 60%, transparent); }
.w.lang-DEV { --c: color-mix(in oklab, var(--dev) 55%, transparent); }
.w.pinned { --c: var(--a3); }
.w.new { animation: wordin .45s var(--ease) both; }
@keyframes wordin { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.ghost-btn, .copy-btn { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink2); border: 1px solid var(--line2); background: var(--card-solid); border-radius: 10px; padding: 6px 11px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: transform .15s, background .2s, color .2s; }
.ghost-btn:hover, .copy-btn:hover:not(:disabled) { color: var(--ink); transform: translateY(-1px); }
.copy-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-btn.done { color: #10b981; border-color: rgba(16, 185, 129, .45); }
.copy-btn:disabled { opacity: .5; cursor: default; }

.suggest { display: flex; align-items: center; gap: 12px; padding: 14px 4px 4px; min-height: 58px; }
.suggest-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .hint { color: var(--ink3); font-size: 13.5px; }
.chips .src { font-size: 13px; color: var(--ink3); margin-right: 2px; font-weight: 600; }
.chip { position: relative; overflow: hidden; font-family: var(--deva); font-size: 18px; font-weight: 500; padding: 5px 14px 7px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card-solid); color: var(--ink); cursor: pointer;
  transition: transform .18s var(--ease), border-color .2s, box-shadow .2s; animation: pop .35s var(--ease) both; }
.chip:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--a2) 55%, transparent); box-shadow: 0 6px 16px -8px rgba(124, 58, 237, .5); }
.chip.on { border-color: transparent; color: #fff; background: linear-gradient(120deg, var(--a1), var(--a2)); }
.chip .p { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--a1), var(--a3)); border-radius: 2px; }
.chip.on .p { background: rgba(255, 255, 255, .7); }
.chip .rk { font-family: var(--font); font-size: 10.5px; font-weight: 700; opacity: .55; margin-left: 6px; vertical-align: 2px; }
.chip.latin { font-family: var(--font); font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(4px); } to { opacity: 1; transform: none; } }

.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.m { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }
.m .k { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); }
.m .v { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.m .v small { font-size: 12px; font-weight: 600; color: var(--ink3); margin-left: 3px; }
.lock { font-size: 13px; }
.loader { position: absolute; left: 18px; right: 18px; bottom: 10px; display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink3); transition: opacity .5s; }
.loader .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loader .bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--a1), var(--a3)); border-radius: 3px; animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loader.gone { opacity: 0; pointer-events: none; }

/* ---------- sections */
.section { padding: 64px 0 0; }
.sec-head { text-align: center; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.035em; margin: 0 0 8px; font-weight: 780; }
.sec-head p { color: var(--ink2); margin: 0; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ex { text-align: left; font: inherit; color: inherit; border: 1px solid var(--line2); background: var(--card); border-radius: 18px; padding: 16px 18px 18px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s; display: flex; flex-direction: column; gap: 8px; backdrop-filter: blur(10px); }
.ex:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--a2) 45%, transparent); }
.ex .tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--a2); background: color-mix(in oklab, var(--a2) 12%, transparent); padding: 3px 9px; border-radius: 99px; }
.ex .ro { font-size: 15px; color: var(--ink2); }
.ex .dv { font-family: var(--deva); font-size: 21px; font-weight: 550; line-height: 1.5; min-height: 32px; }
.shimmer { display: inline-block; width: 70%; height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 0%, var(--line2) 50%, var(--line) 100%); background-size: 200% 100%; animation: shim 1.2s linear infinite; }
@keyframes shim { to { background-position: -200% 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { padding: 20px 20px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.feat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .7); }
.feat:nth-child(3n+2) .ic { background: linear-gradient(135deg, var(--a2), var(--a4)); }
.feat:nth-child(3n) .ic { background: linear-gradient(135deg, var(--a4), var(--a3)); }
.feat h3 { margin: 14px 0 4px; font-size: 17px; letter-spacing: -.02em; }
.feat p { margin: 0 0 12px; color: var(--ink2); font-size: 14.5px; }
.demo-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in oklab, var(--ink) 4%, transparent); }
.demo-line .r { color: var(--ink3); }
.demo-line .arrow { color: var(--ink3); }
.demo-line .d { font-family: var(--deva); font-size: 18px; font-weight: 600; }
.demo-line + .demo-line { margin-top: 6px; }

.sizes { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.srow { display: grid; grid-template-columns: 240px 1fr 120px; gap: 16px; align-items: center; }
.srow .nm { font-weight: 650; font-size: 14.5px; }
.srow .nm small { display: block; color: var(--ink3); font-weight: 500; font-size: 12.5px; }
.sbar { height: 14px; border-radius: 8px; background: color-mix(in oklab, var(--ink) 6%, transparent); overflow: hidden; }
.sbar span { display: block; height: 100%; border-radius: 8px; width: 0; transition: width 1.4s var(--ease); background: color-mix(in oklab, var(--ink) 28%, transparent); }
.srow.us .sbar span { background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); min-width: 6px; box-shadow: 0 0 18px rgba(168, 85, 247, .6); }
.srow .val { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.srow.us .val { background: linear-gradient(90deg, var(--a1), var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sizes .note { font-size: 12.5px; color: var(--ink3); }

.how .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { padding: 20px; border-radius: 18px; border: 1px dashed var(--line2); }
.steps .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 750; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a3)); margin-right: 8px; }
.steps b { font-size: 16.5px; }
.steps p { color: var(--ink2); font-size: 14.5px; margin: 10px 0 0; }

.foot { max-width: 1160px; margin: 70px auto 0; padding: 26px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--ink3); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: all .35s var(--ease); pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.l-short { display: none; }
@media (max-width: 600px) {
  .l-long { display: none; } .l-short { display: inline; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 8px 6px; }
  .toolbar { gap: 10px 14px; } .switch { font-size: 13px; }
  .playground { padding: 14px; } h1 { letter-spacing: -.04em; }
  .suggest { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 900px) {
  .panes, .examples, .features, .how .steps { grid-template-columns: 1fr; }
  .meter { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .srow { grid-template-columns: 1fr 90px; } .srow .sbar { grid-column: 1 / -1; grid-row: 2; }
  .brand-tag, .nav-link { display: none; }
  .pane { min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- word language tags, chips meta, feature demos */
.playground.tags .output { line-height: 1.9; }
.playground.tags .w { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; line-height: 1.35; padding: 2px 3px 3px; }
.tg { font-family: var(--font); font-size: 9.5px; font-weight: 750; letter-spacing: .06em; line-height: 1; padding: 3px 5px 2px; border-radius: 5px; margin-top: 1px; color: var(--hi); background: color-mix(in oklab, var(--hi) 13%, transparent); vertical-align: middle; }
.tg-EN { color: var(--en); background: color-mix(in oklab, var(--en) 14%, transparent); }
.tg-DEV { color: var(--dev); background: color-mix(in oklab, var(--dev) 14%, transparent); }
.tg-OTHER { color: var(--oth); background: color-mix(in oklab, var(--oth) 14%, transparent); }
.playground.tags .w.pinned .tg { color: #fff; background: var(--a3); }
.chips .meta { font-size: 12px; color: var(--ink3); font-weight: 600; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line2); }
.chips .reset { padding: 5px 10px; }
.demo-line.big { align-items: center; }
.demo-line.big .d { font-family: var(--font); font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.mini-chip { font-family: var(--deva); font-size: 15px; padding: 2px 9px 3px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card-solid); }
.mini-chip.on { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--a1), var(--a2)); }
.lid-w { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.lid-w .lw { font-size: 14px; color: var(--ink); }
.lang-badge.sm { font-size: 11.5px; padding: 3px 9px; align-self: center; }

/* ---------- on-device capabilities */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a2); margin-bottom: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: pulse-g 2.4s infinite; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cap { position: relative; padding: 20px 20px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow); display: flex; flex-direction: column;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; overflow: hidden; }
.cap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at 0% 0%, color-mix(in oklab, var(--a2) 10%, transparent), transparent 60%); }
.cap:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--a2) 40%, transparent); box-shadow: var(--shadow), 0 18px 40px -22px rgba(124, 58, 237, .55); }
.cap:hover::after { opacity: 1; }
.cap h3 { margin: 14px 0 4px; font-size: 17px; letter-spacing: -.02em; }
.cap p { margin: 0 0 12px; color: var(--ink2); font-size: 14.5px; }
.cap .fslot { margin-top: auto; }
.cic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 10px 22px -10px rgba(124, 58, 237, .8);
  transition: transform .45s var(--ease); }
.cap:nth-child(3n+2) .cic { background: linear-gradient(135deg, var(--a2), var(--a4)); box-shadow: 0 10px 22px -10px rgba(236, 72, 153, .7); }
.cap:nth-child(3n) .cic { background: linear-gradient(135deg, var(--a4), var(--a3)); box-shadow: 0 10px 22px -10px rgba(249, 115, 22, .7); }
.cap:hover .cic { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.cic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cic svg .f { fill: currentColor; stroke: none; }
.cap-offline .cic svg { animation: drift 4.5s ease-in-out infinite; }
.cap-realtime .cic svg { animation: flick 3.2s ease-in-out infinite; }
.cap-private .cic svg { animation: breathe 3.6s ease-in-out infinite; }
.cap-bharat .cic svg path { transform-origin: bottom; transform-box: fill-box; animation: bars 2.4s ease-in-out infinite; }
.cap-bharat .cic .bar2 { animation-delay: .15s; } .cap-bharat .cic .bar3 { animation-delay: .3s; } .cap-bharat .cic .bar4 { animation-delay: .45s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(1.5px, -1.5px) rotate(-4deg); } }
@keyframes flick { 0%, 86%, 100% { opacity: 1; } 90% { opacity: .45; } 94% { opacity: 1; } 97% { opacity: .6; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes bars { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.pl { font-size: 11.5px; font-weight: 650; color: var(--ink2); padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card-solid); }
.net { font-size: 12px; font-weight: 650; margin: -2px 0 10px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink2); }
.net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.net.off::before { background: var(--a3); } .net.off { color: var(--a3); }
.steps-live .st { opacity: 0; animation: stepin .5s var(--ease) forwards; animation-delay: calc(var(--i) * .45s + .2s); }
.steps-live .st:last-child { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--a2) 35%, transparent); }
@keyframes stepin { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.lat-live { margin-top: 8px; font-size: 12.5px; color: var(--ink3); }
.lat-live b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ime { border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ime-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.ime-in { font-size: 14px; color: var(--ink2); min-height: 21px; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--a2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ime-out { font-family: var(--deva); font-size: 18px; font-weight: 600; min-height: 28px; padding-top: 6px; border-top: 1px dashed var(--line2); }
.mode-row .mlab { font-size: 11.5px; font-weight: 700; color: var(--a2); min-width: 108px; }
.cap .mini-chip { animation: pop .35s var(--ease) both; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms), border-color .3s, box-shadow .35s; }
.rv.in { opacity: 1; transform: none; }
.rv.in.cap:hover { transform: translateY(-4px); }

/* ---------- best in class for its size */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; padding: 22px 22px 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); isolation: isolate; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), rgba(99, 102, 241, .65), rgba(168, 85, 247, .15), rgba(249, 115, 22, .6), rgba(236, 72, 153, .15), rgba(99, 102, 241, .65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 9s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.tv { display: flex; align-items: baseline; gap: 4px; }
.tv .num { font-size: clamp(36px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--a1), var(--a2) 45%, var(--a4) 75%, var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv .tu { font-size: 20px; font-weight: 750; color: var(--a2); }
.tl { margin-top: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.ts { margin-top: 4px; font-size: 12.5px; color: var(--ink3); }
.board { margin-top: 14px; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.board .bh { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.brow { display: grid; grid-template-columns: 34px 220px 1fr 120px; gap: 14px; align-items: center; font-size: 14px; }
.brow .rk { font-weight: 800; color: var(--ink3); }
.brow.us .rk, .brow.us .nm { color: var(--hi); font-weight: 750; }
.brow .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.brow.us .sbar span { background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); box-shadow: 0 0 18px rgba(168, 85, 247, .6); }
.best-hl { margin: 14px auto 0; text-align: center; font-weight: 650; color: var(--ink2); }
@media (max-width: 900px) {
  .caps, .tiles { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 30px 1fr 90px; } .brow .sbar { grid-column: 1 / -1; grid-row: 2; }
}
.board[hidden], .best-hl[hidden], .section[hidden], .allres[hidden] { display: none; }
.tiles .tile { min-height: 168px; }
.allres { margin-top: 14px; padding: 0; overflow: hidden; }
.allres > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; font-weight: 700; font-size: 15px; }
.allres > summary::-webkit-details-marker { display: none; }
.allres > summary::after { content: "+"; font-size: 20px; font-weight: 600; color: var(--ink3); transition: transform .25s var(--ease); }
.allres[open] > summary::after { transform: rotate(45deg); }
.allres .ar-n { margin-left: auto; font-size: 12.5px; font-weight: 550; color: var(--ink3); }
.ar-wrap { padding: 0 22px 18px; overflow-x: auto; }
.ar-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ar-t th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); padding: 8px 10px; border-bottom: 1px solid var(--line2); }
.ar-t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ar-t tr:last-child td { border-bottom: 0; }
.ar-v { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-l { font-weight: 600; } .ar-s { color: var(--ink3); }

/* ---------- license & attribution */
.lic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lic-card { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.lic-card h3 { margin: 12px 0 4px; font-size: 17px; letter-spacing: -.02em; }
.lic-card p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.lic-card code, .attr code { font-size: 12.5px; padding: 1px 5px; border-radius: 6px; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.lic-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); }
.lic-card.req .lic-ic { background: linear-gradient(135deg, var(--a2), var(--a3)); }
.attr { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.attr-row { display: grid; grid-template-columns: 190px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); }
.attr-k { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink2); }
.attr-k em { display: block; font-style: normal; font-weight: 600; color: var(--a2); }
.attr-code { margin: 0; font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.attr-copy.done { color: #10b981; border-color: rgba(16, 185, 129, .45); }
@media (max-width: 900px) { .lic { grid-template-columns: 1fr; } .attr-row { grid-template-columns: 1fr; } }

/* v2 real-world test */
.rw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rw-card { margin: 0; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.rw-card figcaption { font-weight: 700; font-size: 15px; }
.rw-bad figcaption { color: inherit; } .rw-good figcaption { color: #6d28d9; }
.rw-good { outline: 2px solid #a855f7; background: linear-gradient(135deg, rgba(99,102,241,.07), rgba(236,72,153,.07)), var(--card); }
.rw-card img { width: 100%; border-radius: 12px; display: block; }
.rw-io { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; }
.rw-io span { color: var(--muted, #6b7280); font-size: 13px; }
.rw-io b { font-size: 18px; }
.rw-wrong { color: inherit; }
.rw-ours { font-size: 34px !important; background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; min-height: 1.3em; }
.rw-note { font-size: 12px; color: var(--muted, #6b7280); margin: 0; }
.rw-foot { margin-top: 12px; font-size: 13px; }
@media (max-width: 760px) { .rw-grid { grid-template-columns: 1fr; } }

/* v2: benchmark + casual tables, usage */
.tbl-wrap { padding: 8px 10px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); font-weight: 700; padding: 12px 12px; border-bottom: 1px solid var(--line, rgba(127,127,160,.2)); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line, rgba(127,127,160,.12)); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.us td { font-weight: 700; } .tbl tr.us td:first-child { background: linear-gradient(90deg, rgba(168,85,247,.12), transparent); border-radius: 10px 0 0 10px; }
.tbl td.num, .tbl th.num { text-align: right; } .tbl .ci { color: var(--ink3); font-weight: 500; font-size: 12px; margin-left: 4px; }
.tbl .up { color: #16a34a; font-weight: 700; } .tbl .eg { color: var(--ink3); font-size: 13px; }
.tbl-note { font-size: 12.5px; color: var(--ink3); margin-top: 10px; line-height: 1.5; }
.usage-code { white-space: pre; overflow-x: auto; font-size: 13px; line-height: 1.6; padding: 18px 20px; }
#casual[hidden] { display: none; }