@nebutra/tokens 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +21 -676
  3. package/README.md +41 -8
  4. package/brands/gsap/brand.json +133 -0
  5. package/brands/linear/brand.json +163 -0
  6. package/brands/notion/brand.json +145 -0
  7. package/brands/raycast/brand.json +120 -0
  8. package/brands/stripe/brand.json +127 -0
  9. package/brands/vanta/brand.json +151 -0
  10. package/brands/vercel/brand.json +173 -0
  11. package/dist/brand-package/index.d.ts +123 -0
  12. package/dist/brand-package/index.js +61 -0
  13. package/dist/brand-package/index.js.map +1 -0
  14. package/dist/brand-package/use-brand.d.ts +2 -0
  15. package/dist/brand-package/use-brand.js +12 -0
  16. package/dist/brand-package/use-brand.js.map +1 -0
  17. package/dist/chunk-ALJTP5HL.js +881 -0
  18. package/dist/chunk-ALJTP5HL.js.map +1 -0
  19. package/dist/chunk-RGUJQOLH.js +1582 -0
  20. package/dist/chunk-RGUJQOLH.js.map +1 -0
  21. package/dist/index.d.ts +81 -0
  22. package/dist/index.js +187 -0
  23. package/dist/index.js.map +1 -0
  24. package/dist/use-brand-C8d4DPqE.d.ts +371 -0
  25. package/package.json +46 -12
  26. package/recipe.css +435 -0
  27. package/skins/README.md +149 -0
  28. package/skins/gsap.css +159 -0
  29. package/skins/linear.css +198 -0
  30. package/skins/notion.css +158 -0
  31. package/skins/raycast.css +185 -0
  32. package/skins/stripe.css +146 -0
  33. package/skins/vanta.css +160 -0
  34. package/skins/vercel.css +202 -0
  35. package/styles.css +528 -169
  36. package/.turbo/turbo-build.log +0 -5
  37. package/.turbo/turbo-typecheck.log +0 -4
  38. package/AGENTS.md +0 -42
  39. package/DESIGN.md +0 -335
  40. package/src/index.ts +0 -37
  41. package/src/theme-provider.tsx +0 -244
  42. package/tsconfig.json +0 -11
package/styles.css CHANGED
@@ -69,17 +69,22 @@
69
69
  --nebutra-gray-800: #262626;
70
70
  --nebutra-gray-900: #171717;
71
71
  --nebutra-gray-950: #0a0a0a;
72
- --radius-none: 0;
73
- --radius-sm: 0.25rem;
74
- --radius-md: 0.375rem;
75
- --radius-lg: 0.5rem;
76
- --radius-xl: 0.75rem;
77
- --radius-2xl: 1rem;
78
- --radius-3xl: 1.5rem;
79
- --radius-full: 9999px;
80
- --radius-button: 0.5rem; /** 2026 button radius — Vercel/Linear/Cursor consensus */
81
- --radius-card: 0.75rem; /** 2026 card radius */
82
- --radius-panel: 1rem; /** 2026 bento/hero panel radius */
72
+ --breakpoint-xs: 26.25rem; /** 420px — narrow-phone grid flip */
73
+ --breakpoint-tight: 67.5rem; /** 1080px — dense dashboard header horizontal */
74
+ --breakpoint-shell: 73.75rem; /** 1180px — three-pane shell threshold */
75
+ --breakpoint-3xl: 112.5rem; /** 1800px — 4K / Studio Display friendliness */
76
+ --radius-none: 0; /** Job: flush. Edge-to-edge surfaces — a full-bleed table row, a segment welded to its neighbour, an inset that must not round twice. */
77
+ --radius-xs: 0.125rem; /** Job: swatch. The smallest corner that still reads as intentional at 8-12px: chart legend keys, mark highlights, progress and sparkline bar caps. Added because 18 call sites had hand-written 1px, 2px and 3px corners with no step to reach for. Matches the bottom of the Tailwind scale, so rounded-xs and var(--radius-xs) agree. */
78
+ --radius-sm: 0.25rem; /** Job: inner. The corner of something nested inside a control — a thumbnail inside a chip, a swatch inside a tile, a code span inside a paragraph. One step inside md. */
79
+ --radius-md: 0.375rem; /** Job: control. The default for anything you can click or type into at text height: input, select trigger, small button, menu item, badge with square corners. The most-used step on the ladder. */
80
+ --radius-lg: 0.5rem; /** Job: container. Things that hold controls rather than being one: popover, dropdown surface, tooltip, toolbar, inline code block. Aliased as radius-button. */
81
+ --radius-xl: 0.75rem; /** Job: card. A discrete surface in a list or grid that carries its own padding and elevation. Aliased as radius-card. */
82
+ --radius-2xl: 1rem; /** Job: panel. A region that holds cards — bento cell, dialog, sheet, dashboard section. Aliased as radius-panel. */
83
+ --radius-3xl: 1.5rem; /** Job: frame. The outermost shell of a marketing or docs composition — mockup window, hero frame, screenshot chrome. The top of the ladder. */
84
+ --radius-full: 9999px; /** Job: pill. Fully round by intent, not by size: avatar, dot, toggle track, tag. Kept as one step, not a pair, so there is exactly one way to say round. */
85
+ --radius-button: 0.5rem; /** Intent alias for the container step. Reach for this in product code instead of lg so the shape can be re-tuned in one place. */
86
+ --radius-card: 0.75rem; /** Intent alias for the card step. Reach for this in product code instead of xl. */
87
+ --radius-panel: 1rem; /** Intent alias for the panel step. Reach for this in product code instead of 2xl. */
83
88
  --duration-micro: 100ms; /** Micro-feedback: hover, focus, toggle, button press */
84
89
  --duration-flow: 200ms; /** State flow: modal open, dropdown reveal, tab switch, default page transition */
85
90
  --duration-reveal: 300ms; /** Content unveil: slide-in, expand, accordion, drawer */
@@ -95,22 +100,47 @@
95
100
  --leading-heading: 1.15;
96
101
  --ring-hairline: inset 0 0 0 1px rgb(255 255 255 / 0.04); /** Etched-glass hairline (light mode value, dark mode override in themes/dark.json) */
97
102
  --overlay-faint: rgb(0 0 0 / 0.06); /** Light-mode faint overlay (6% black) */
98
- --font-sans: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
99
- --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "vivo Sans", sans-serif;
100
- --font-display: "Geist", "Noto Sans SC", sans-serif;
101
- --font-heading: "Geist", "Noto Sans SC", sans-serif;
102
- --font-mono: "Geist Mono", "Fira Code", ui-monospace, Consolas, "Courier New", monospace;
103
- --transition-duration: 200ms; /** Default transition duration — 200ms flow rail. */
104
- --transition-easing: ease-out; /** ease-out keyword form (CSS-friendly). Equivalent to cubic-bezier(0,0,0.2,1). */
103
+ --font-sans:
104
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
105
+ "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
106
+ --font-cn:
107
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
108
+ "PingFang SC", "Microsoft YaHei", sans-serif; /** CJK-locale stack — same order as sans, minus the Latin-only system faces */
109
+ --font-display:
110
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
111
+ sans-serif;
112
+ --font-heading:
113
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
114
+ sans-serif;
115
+ --font-mono:
116
+ var(--font-geist-mono), "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
105
117
  --brand-primary: #0033fe; /** Brand primary — 云毓蓝 */
106
118
  --brand-accent: #0bf1c3; /** Brand accent — 云毓青 */
107
119
  --brand-tertiary: #8b5cf6;
108
- --brand-gradient: linear-gradient(135deg, #254bfa 0%, #057963 100%); /** UI brand gradient — usage-adjusted from the locked VI blue/cyan anchors to reduce saturation and preserve white-text contrast. */
109
- --brand-gradient-reverse: linear-gradient(135deg, #057963 0%, #254bfa 100%);
110
- --brand-gradient-vertical: linear-gradient(180deg, #254bfa 0%, #057963 100%);
111
- --brand-gradient-radial: radial-gradient(circle, #057963 0%, #254bfa 100%);
112
- --brand-gradient-logo: linear-gradient(135deg, #0033fe 0%, #0bf1c3 100%); /** Logo/VI standard gradient. Use for brand assets only; product UI should use --brand-gradient. */
113
- --brand-gradient-logo-reverse: linear-gradient(135deg, #0bf1c3 0%, #0033fe 100%);
120
+ --brand-gradient-start: hsl(
121
+ var(--primary)
122
+ ); /** Legacy alias of --primary (shadcn product blue). Prefer bg-primary / Button default. */
123
+ --brand-gradient-end: hsl(
124
+ var(--primary)
125
+ ); /** Legacy alias of --primary. Prefer hover:bg-primary/90. */
126
+ --brand-gradient: hsl(
127
+ var(--primary)
128
+ ); /** Legacy --brand-gradient. Same color as --primary — not a second palette. App CTAs should use Button / bg-primary. */
129
+ --brand-gradient-reverse: hsl(var(--primary)); /** Legacy alias of --primary. */
130
+ --brand-gradient-vertical: hsl(var(--primary)); /** Legacy alias of --primary. */
131
+ --brand-gradient-radial: hsl(var(--primary)); /** Legacy alias of --primary. */
132
+ --brand-gradient-logo: linear-gradient(
133
+ 135deg,
134
+ #0033fe 0%,
135
+ #00a2e9 50%,
136
+ #0bf1c3 100%
137
+ ); /** Logo/VI gradient (云毓蓝→云毓青). Mid stop #00a2e9 is the OKLab perceptual midpoint (avoids sRGB mid-path soft spots). Brand assets only — not product CTAs. */
138
+ --brand-gradient-logo-reverse: linear-gradient(
139
+ 135deg,
140
+ #0bf1c3 0%,
141
+ #00a2e9 50%,
142
+ #0033fe 100%
143
+ ); /** Logo/VI reverse gradient with same OKLab mid stop. */
114
144
  --status-danger: #ef4444;
115
145
  --status-warning: #f59e0b;
116
146
  --status-success: #22c55e;
@@ -129,44 +159,46 @@
129
159
  --neutral-3: #f1f5f9; /** component bg default */
130
160
  --neutral-4: #e2e8f0; /** component bg hover */
131
161
  --neutral-5: #cbd5e1; /** component bg active */
132
- --neutral-6: #e2e8f0; /** subtle border */
133
- --neutral-7: #cbd5e1; /** default border */
134
- --neutral-8: #94a3b8; /** hovered border */
162
+ --neutral-6: #b0bccb; /** subtle border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp step5 → step9 at t=0.25. The $value here is a placeholder anchor only; the preprocessor overwrites it. */
163
+ --neutral-7: #96a3b5; /** default border — DERIVED: OKLab lerp step5 → step9 at t=0.50. */
164
+ --neutral-8: #7d8ba0; /** hovered border — DERIVED: OKLab lerp step5 → step9 at t=0.75. */
135
165
  --neutral-9: #64748b; /** solid fill */
136
166
  --neutral-10: #475569; /** solid fill hover */
137
167
  --neutral-11: #334155; /** secondary text */
138
168
  --neutral-12: #0f172a; /** primary text */
139
- --blue-1: #f0f4ff;
140
- --blue-2: #dbe4ff;
141
- --blue-3: #bac8ff;
142
- --blue-4: #91a7ff;
143
- --blue-5: #5c7cfa;
144
- --blue-6: #bac8ff;
145
- --blue-7: #91a7ff;
146
- --blue-8: #5c7cfa;
147
- --blue-9: #0033fe; /** solid fill — main brand */
148
- --blue-10: #002ad4;
149
- --blue-11: #0021ab;
150
- --blue-12: #000f59;
151
- --cyan-1: #e6fff8;
152
- --cyan-2: #b3ffec;
153
- --cyan-3: #80ffe0;
154
- --cyan-4: #4dfcd4;
155
- --cyan-5: #1af7c8;
156
- --cyan-6: #80ffe0;
157
- --cyan-7: #4dfcd4;
158
- --cyan-8: #1af7c8;
159
- --cyan-9: #0bf1c3;
160
- --cyan-10: #09c9a3;
161
- --cyan-11: #07a183;
162
- --cyan-12: #035143;
169
+ --blue-1: #fafcfe; /** app tint — L* 99.01, C 0.003, hue 264. Radix blue-1 sits at L* 99.31 C 0.003. */
170
+ --blue-2: #f2f6fd; /** subtle background — L* 97.21, C 0.010. */
171
+ --blue-3: #e7eefc; /** component background default — L* 94.79, C 0.020. */
172
+ --blue-4: #d8e4fb; /** component background hover — L* 91.69, C 0.034. */
173
+ --blue-5: #c6d7fa; /** component background active — L* 87.77, C 0.052. Anchor for the derived border tier. */
174
+ --blue-6: #9fbcf9; /** subtle border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (deep scale, span 32.3 L*) at t=0.25. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 79.61, C 0.093. */
175
+ --blue-7: #79a1f7; /** default border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (deep scale, span 32.3 L*) at t=0.50. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 71.63, C 0.134. */
176
+ --blue-8: #5384f3; /** hovered border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (deep scale, span 32.3 L*) at t=0.75. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 63.47, C 0.175. */
177
+ --blue-9: #2e65ee; /** solid fill — L* 55.50, C 0.215, hue 264.0. White label 4.99:1, inside the 4.7-5.4 band comparable products ship. Same value as shadcn --primary so the deep solid fill has one source, not two. The VI hex #0033FE (C 0.290, L* 48.4) stays the identity token --brand-primary and is deliberately NOT pinned into this ramp slot: pinning it left steps 6-9 only 3.5 L* apart with chroma climbing to 0.290. */
178
+ --blue-10: #2253d4; /** solid fill hover — L* 49.52, C 0.205. White label 6.45:1. */
179
+ --blue-11: #1740ad; /** secondary text — L* 42.04, C 0.180. 8.60:1 on step 1. */
180
+ --blue-12: #031654; /** primary text — L* 23.91, C 0.115. 16.38:1 on step 1. */
181
+ --blue-contrast: #ffffff; /** Label ink for the solid fill tier. Absolute value, identical in both modes: a deep fill always takes white, never the scale's own step 12, which is light in dark mode. 4.99:1 on step 9, 6.45:1 on step 10. */
182
+ --cyan-1: #f9fdfb; /** app tint — L* 99.05, C 0.005, hue 172. */
183
+ --cyan-2: #effbf7; /** subtle background — L* 97.81, C 0.014. */
184
+ --cyan-3: #daf9ee; /** component background default — L* 95.68, C 0.035. */
185
+ --cyan-4: #c3f6e4; /** component background hover — L* 93.29, C 0.058. */
186
+ --cyan-5: #a3f2d8; /** component background active — L* 90.27, C 0.086. Anchor for the derived border tier. */
187
+ --cyan-6: #8eefd1; /** subtle border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step10 (bright scale: |L9-L5| = 4.9 L* < 6.0, so the tier continues toward step 10) at t=0.25. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 88.38, C 0.102. */
188
+ --cyan-7: #77ecc9; /** default border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step10 (bright scale: |L9-L5| = 4.9 L* < 6.0, so the tier continues toward step 10) at t=0.50. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 86.50, C 0.119. */
189
+ --cyan-8: #5be8c2; /** hovered border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step10 (bright scale: |L9-L5| = 4.9 L* < 6.0, so the tier continues toward step 10) at t=0.75. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 84.42, C 0.134. */
190
+ --cyan-9: #0bf1c3; /** solid fill — bright scale, so the fill is LIGHT and takes dark ink: L* 85.41, C 0.164, hue 172.1. Ink 10.35:1 against --cyan-contrast. Step 9 legitimately sits above step 8 on a bright scale, exactly as Radix mint does (8 at L* 72.2, 9 at L* 87.0). */
191
+ --cyan-10: #33e5bb; /** solid fill hover — L* 82.61, C 0.150. 2.80 L* below step 9, matching Radix mint's own 2.95 L* step9-to-step10 drop, so hovering the bright fill deepens it slightly instead of collapsing past its own border tier. The previous value was 10.87 L* below step 9 and landed DARKER than step 8. Ink 9.40:1. */
192
+ --cyan-11: #027a61; /** secondary text — L* 51.64, C 0.100. 5.17:1 on step 1. */
193
+ --cyan-12: #004133; /** primary text — L* 33.45, C 0.065. 11.35:1 on step 1. */
194
+ --cyan-contrast: #0d2b25; /** Label ink for the bright fill tier. Absolute near-black, identical in both modes, carrying a trace of the scale hue. A bright fill needs an explicit dark ink; comparing white against the scale's own step 12 picks white in dark mode, where step 12 is light, and measures 1.52:1. 10.35:1 on step 9, 9.40:1 on step 10. */
163
195
  --background: 0 0% 100%; /** HSL channel triple — consume via hsl(var(--background)) */
164
196
  --foreground: 222 47% 11%;
165
197
  --card: 0 0% 100%;
166
198
  --card-foreground: 222 47% 11%;
167
199
  --popover: 0 0% 100%;
168
200
  --popover-foreground: 222 47% 11%;
169
- --primary: 228 85% 56%; /** Softer brand blue #254bfa */
201
+ --primary: 222.8 85% 55.7%; /** Product action blue. Derived, not borrowed: hue 264 is the VI hue, L* and C were chosen inside the band the industry actually ships (measured OKLCH C 0.167-0.235, L* 54-67 across Vercel, Stripe, Linear, GitHub, Tailwind, Radix, Figma, Notion). #2e65ee = L*55.5 C0.215, white label 4.99:1. The previous 228 85% 56% (#2f56ee, C0.232) also passed at 5.70:1 — this trims it to the middle of the band rather than its top edge. The VI lock --blue-9 (#0033FE, C0.290) is 23% above anything in that band and must never surface on a component. */
170
202
  --primary-foreground: 0 0% 100%;
171
203
  --secondary: 210 40% 96%;
172
204
  --secondary-foreground: 222 47% 11%;
@@ -176,10 +208,13 @@
176
208
  --accent-foreground: 228 85% 56%; /** Softer brand blue — desaturated to match --primary, avoids 100% saturation glare on focus/accent */
177
209
  --destructive: 0 84% 45%;
178
210
  --destructive-foreground: 0 0% 100%;
211
+ --destructive-strong: 0 84% 45%; /** Red as FOREGROUND. In light mode --destructive already passes (5.42:1 on white), so this equals it; the token exists so consumers reference one name across themes. In DARK, --destructive is 0 63% 38% = 2.15:1 on --card, unreadable as text — see dark.json. Mirrors --warning-strong. */
179
212
  --success: 142 71% 29%;
180
213
  --success-foreground: 0 0% 100%;
214
+ --success-strong: 142 71% 27%; /** Green as FOREGROUND. --success (142 71% 29%) is 5.15:1 on white but only 4.49:1 as ink on its own 10% tint — one hundredth under AA, which is where badge green-subtle sat. Darkened two points: 5.71:1 on white, 4.99:1 on the tint, alongside --warning-strong (5.40) and --destructive-strong (5.42) so the three status foregrounds read with the same weight. Completes the trio; use --success for fills with --success-foreground on top. */
181
215
  --warning: 38 92% 50%;
182
216
  --warning-foreground: 222 47% 11%;
217
+ --warning-strong: 38 92% 30%; /** Amber as FOREGROUND on a light surface. --warning is a fill: at 38 92% 50% it is 2.04:1 against --neutral-2, so it is unreadable as text or as an icon stroke. This darkened step is 5.17:1, which sits between --success (4.92) and --destructive (5.19) so the three status colours read with the same weight. Use --warning for fills with --warning-foreground on top; use this for amber text and icons. Destructive and success need no equivalent — they already pass AA as foreground. */
183
218
  --info: 228 85% 56%;
184
219
  --info-foreground: 0 0% 100%;
185
220
  --border: 240 5.9% 90%;
@@ -238,6 +273,30 @@
238
273
  --elevation-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
239
274
  --elevation-brand: 0 0 0 1px rgb(0 51 254 / 0.15), 0 4px 20px -2px rgb(0 51 254 / 0.2);
240
275
  --elevation-brand-lg: 0 0 0 1px rgb(0 51 254 / 0.2), 0 8px 40px -4px rgb(0 51 254 / 0.3);
276
+ --elevation-ambient-sm:
277
+ 0 1px 2px -1px hsl(222 47% 11% / 0.06), 0 6px 16px -6px hsl(222 47% 11% / 0.12); /** Ambient elevation, small. Contact layer plus a wide soft pool — the marketing-surface counterpart to the tight xs..2xl product ramp. */
278
+ --elevation-ambient-md:
279
+ 0 2px 4px -2px hsl(222 47% 11% / 0.06), 0 12px 32px -10px hsl(222 47% 11% / 0.14); /** Ambient elevation, medium. Default resting depth for a floating marketing card. */
280
+ --elevation-ambient-lg:
281
+ 0 4px 8px -4px hsl(222 47% 11% / 0.06), 0 24px 56px -18px hsl(222 47% 11% / 0.16); /** Ambient elevation, large. One step up from md; use for hover of a md surface, not as a resting default. */
282
+ --elevation-glass-sm:
283
+ inset 0 1px 0 rgb(255 255 255 / 0.5), 0 1px 2px -1px hsl(222 47% 11% / 0.06),
284
+ 0 6px 16px -6px hsl(222 47% 11% / 0.12); /** Ambient-sm plus a lit top edge, for translucent panels over a blurred backdrop. */
285
+ --elevation-glass-md:
286
+ inset 0 1px 0 rgb(255 255 255 / 0.5), 0 2px 4px -2px hsl(222 47% 11% / 0.06),
287
+ 0 12px 32px -10px hsl(222 47% 11% / 0.14); /** Ambient-md plus a lit top edge. */
288
+ --elevation-glass-lg:
289
+ inset 0 1px 0 rgb(255 255 255 / 0.5), 0 4px 8px -4px hsl(222 47% 11% / 0.06),
290
+ 0 24px 56px -18px hsl(222 47% 11% / 0.16); /** Ambient-lg plus a lit top edge. */
291
+ --elevation-sheen: inset 0 1px 0 rgb(255 255 255 / 0.2); /** Top-edge sheen for solid inverted fills (bg-foreground). Lifts with light on a dark fill, with shade on a light one. */
292
+ --elevation-ambient-glow: 0 0 80px hsl(222 47% 11% / 0.1); /** Centred offsetless halo — the only non-directional step on the ramp. For a translucent panel that needs separation from its backdrop without reading as lifted off a surface. In dark mode this inverts to a low-alpha light halo, because a black halo cannot read against a dark surround. */
293
+ --elevation-glow-accent:
294
+ 0 8px 32px rgb(0 0 0 / 0.4), 0 0 60px color-mix(in srgb, var(--brand-accent) 8%, transparent); /** Directional pool plus a wide brand-accent halo, for fixed dark-glass surfaces. The pool is theme-invariant black on purpose: the surfaces that carry an accent halo present the same dark glass in both themes, so a theme-flipping pool would lighten in light mode exactly where the panel needs the most separation. Accent sourced from --brand-accent, so it follows the light and dark accent values. */
295
+ --elevation-glow-accent-lg:
296
+ 0 12px 48px rgb(0 0 0 / 0.5), 0 0 80px color-mix(in srgb, var(--brand-accent) 12%, transparent); /** Hover escalation of glow-accent. Deeper pool, wider and stronger accent halo. */
297
+ --elevation-glow-accent-sm: 0 0 20px color-mix(in srgb, var(--brand-accent) 10%, transparent); /** Accent halo alone, no pool. For a small accent-tinted chip or icon plate inside a glow-accent surface. */
298
+ --elevation-glow-primary:
299
+ 0 20px 25px -5px hsl(var(--primary) / 0.05), 0 8px 10px -6px hsl(var(--primary) / 0.05); /** xl geometry tinted with the action fill at 5 percent. For the emphasised card in a set (a highlighted plan) where the lift should read as coloured rather than neutral. */
241
300
  }
242
301
 
243
302
  :root {
@@ -339,17 +398,22 @@
339
398
  --nebutra-gray-800: #262626;
340
399
  --nebutra-gray-900: #171717;
341
400
  --nebutra-gray-950: #0a0a0a;
342
- --radius-none: 0;
343
- --radius-sm: 0.25rem;
344
- --radius-md: 0.375rem;
345
- --radius-lg: 0.5rem;
346
- --radius-xl: 0.75rem;
347
- --radius-2xl: 1rem;
348
- --radius-3xl: 1.5rem;
349
- --radius-full: 9999px;
350
- --radius-button: 0.5rem; /** 2026 button radius — Vercel/Linear/Cursor consensus */
351
- --radius-card: 0.75rem; /** 2026 card radius */
352
- --radius-panel: 1rem; /** 2026 bento/hero panel radius */
401
+ --breakpoint-xs: 26.25rem; /** 420px — narrow-phone grid flip */
402
+ --breakpoint-tight: 67.5rem; /** 1080px — dense dashboard header horizontal */
403
+ --breakpoint-shell: 73.75rem; /** 1180px — three-pane shell threshold */
404
+ --breakpoint-3xl: 112.5rem; /** 1800px — 4K / Studio Display friendliness */
405
+ --radius-none: 0; /** Job: flush. Edge-to-edge surfaces — a full-bleed table row, a segment welded to its neighbour, an inset that must not round twice. */
406
+ --radius-xs: 0.125rem; /** Job: swatch. The smallest corner that still reads as intentional at 8-12px: chart legend keys, mark highlights, progress and sparkline bar caps. Added because 18 call sites had hand-written 1px, 2px and 3px corners with no step to reach for. Matches the bottom of the Tailwind scale, so rounded-xs and var(--radius-xs) agree. */
407
+ --radius-sm: 0.25rem; /** Job: inner. The corner of something nested inside a control — a thumbnail inside a chip, a swatch inside a tile, a code span inside a paragraph. One step inside md. */
408
+ --radius-md: 0.375rem; /** Job: control. The default for anything you can click or type into at text height: input, select trigger, small button, menu item, badge with square corners. The most-used step on the ladder. */
409
+ --radius-lg: 0.5rem; /** Job: container. Things that hold controls rather than being one: popover, dropdown surface, tooltip, toolbar, inline code block. Aliased as radius-button. */
410
+ --radius-xl: 0.75rem; /** Job: card. A discrete surface in a list or grid that carries its own padding and elevation. Aliased as radius-card. */
411
+ --radius-2xl: 1rem; /** Job: panel. A region that holds cards — bento cell, dialog, sheet, dashboard section. Aliased as radius-panel. */
412
+ --radius-3xl: 1.5rem; /** Job: frame. The outermost shell of a marketing or docs composition — mockup window, hero frame, screenshot chrome. The top of the ladder. */
413
+ --radius-full: 9999px; /** Job: pill. Fully round by intent, not by size: avatar, dot, toggle track, tag. Kept as one step, not a pair, so there is exactly one way to say round. */
414
+ --radius-button: 0.5rem; /** Intent alias for the container step. Reach for this in product code instead of lg so the shape can be re-tuned in one place. */
415
+ --radius-card: 0.75rem; /** Intent alias for the card step. Reach for this in product code instead of xl. */
416
+ --radius-panel: 1rem; /** Intent alias for the panel step. Reach for this in product code instead of 2xl. */
353
417
  --duration-micro: 100ms; /** Micro-feedback: hover, focus, toggle, button press */
354
418
  --duration-flow: 200ms; /** State flow: modal open, dropdown reveal, tab switch, default page transition */
355
419
  --duration-reveal: 300ms; /** Content unveil: slide-in, expand, accordion, drawer */
@@ -364,23 +428,50 @@
364
428
  --leading-display: 1.05;
365
429
  --leading-heading: 1.15;
366
430
  --ring-hairline: inset 0 0 0 1px rgb(255 255 255 / 0.06); /** Hairline override — more visible on dark background */
367
- --overlay-faint: rgb(255 255 255 / 0.06); /** Dark-mode faint overlay (6% white) — inverted from light */
368
- --font-sans: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
369
- --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "vivo Sans", sans-serif;
370
- --font-display: "Geist", "Noto Sans SC", sans-serif;
371
- --font-heading: "Geist", "Noto Sans SC", sans-serif;
372
- --font-mono: "Geist Mono", "Fira Code", ui-monospace, Consolas, "Courier New", monospace;
373
- --transition-duration: 200ms; /** Default transition duration — 200ms flow rail. */
374
- --transition-easing: ease-out; /** ease-out keyword form (CSS-friendly). Equivalent to cubic-bezier(0,0,0.2,1). */
375
- --brand-primary: #5c7cfa; /** Dark-mode brand primary — visible against dark surfaces (uses --blue-9 = nebutra-blue-400). */
376
- --brand-accent: #1af7c8; /** Dark-mode brand accent — visible against dark surfaces (uses --cyan-9 = nebutra-cyan-400). */
431
+ --overlay-faint: rgb(
432
+ 255 255 255 / 0.06
433
+ ); /** Dark-mode faint overlay (6% white) — inverted from light */
434
+ --font-sans:
435
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
436
+ "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
437
+ --font-cn:
438
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
439
+ "PingFang SC", "Microsoft YaHei", sans-serif; /** CJK-locale stack — same order as sans, minus the Latin-only system faces */
440
+ --font-display:
441
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
442
+ sans-serif;
443
+ --font-heading:
444
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
445
+ sans-serif;
446
+ --font-mono:
447
+ var(--font-geist-mono), "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
448
+ --brand-primary: #5c7cfa; /** Dark-mode brand primary — the identity blue lifted to nebutra-blue-400 so it stays visible on dark surfaces. This is the identity alias, not the functional fill: the dark solid fill is --blue-9 (#396ae2, white label 4.85:1). The two are deliberately separate now that the VI hex is no longer pinned into ramp slot 9. */
449
+ --brand-accent: #1af7c8; /** Dark-mode brand accent — nebutra-cyan-400 (L* 87.1). The functional bright fill is --cyan-9 (#0bf1c3, L* 85.41), the same hex in both modes; dark ink for it is --cyan-contrast at 10.35:1. */
377
450
  --brand-tertiary: #8b5cf6;
378
- --brand-gradient: linear-gradient(135deg, #254bfa 0%, #057963 100%); /** UI brand gradient — usage-adjusted from the locked VI blue/cyan anchors to reduce saturation and preserve white-text contrast. */
379
- --brand-gradient-reverse: linear-gradient(135deg, #057963 0%, #254bfa 100%);
380
- --brand-gradient-vertical: linear-gradient(180deg, #254bfa 0%, #057963 100%);
381
- --brand-gradient-radial: radial-gradient(circle, #057963 0%, #254bfa 100%);
382
- --brand-gradient-logo: linear-gradient(135deg, #0033fe 0%, #0bf1c3 100%); /** Logo/VI standard gradient. Use for brand assets only; product UI should use --brand-gradient. */
383
- --brand-gradient-logo-reverse: linear-gradient(135deg, #0bf1c3 0%, #0033fe 100%);
451
+ --brand-gradient-start: hsl(
452
+ var(--primary)
453
+ ); /** Legacy alias of --primary (shadcn product blue). Prefer bg-primary / Button default. */
454
+ --brand-gradient-end: hsl(
455
+ var(--primary)
456
+ ); /** Legacy alias of --primary. Prefer hover:bg-primary/90. */
457
+ --brand-gradient: hsl(
458
+ var(--primary)
459
+ ); /** Legacy --brand-gradient. Same color as --primary — not a second palette. App CTAs should use Button / bg-primary. */
460
+ --brand-gradient-reverse: hsl(var(--primary)); /** Legacy alias of --primary. */
461
+ --brand-gradient-vertical: hsl(var(--primary)); /** Legacy alias of --primary. */
462
+ --brand-gradient-radial: hsl(var(--primary)); /** Legacy alias of --primary. */
463
+ --brand-gradient-logo: linear-gradient(
464
+ 135deg,
465
+ #0033fe 0%,
466
+ #00a2e9 50%,
467
+ #0bf1c3 100%
468
+ ); /** Logo/VI gradient (云毓蓝→云毓青). Mid stop #00a2e9 is the OKLab perceptual midpoint (avoids sRGB mid-path soft spots). Brand assets only — not product CTAs. */
469
+ --brand-gradient-logo-reverse: linear-gradient(
470
+ 135deg,
471
+ #0bf1c3 0%,
472
+ #00a2e9 50%,
473
+ #0033fe 100%
474
+ ); /** Logo/VI reverse gradient with same OKLab mid stop. */
384
475
  --status-danger: #ef4444;
385
476
  --status-warning: #f59e0b;
386
477
  --status-success: #22c55e;
@@ -399,70 +490,75 @@
399
490
  --neutral-3: #1e293b;
400
491
  --neutral-4: #334155;
401
492
  --neutral-5: #475569;
402
- --neutral-6: #171717;
403
- --neutral-7: #262626;
404
- --neutral-8: #404040;
493
+ --neutral-6: #666666; /** subtle border — DERIVED: OKLab lerp step5 → step9 at t=0.25, chroma forced to 0. The achromatic result is deliberate and preserves the documented intent of color.nebutra-gray ('used where blue undertone clashes — primarily dark-mode borders, dividers, elevation hairlines'). What was broken was the LIGHTNESS: gray-900/800/700 are darker than the slate background tier they sit above, so the border read as a hole rather than a hairline. */
494
+ --neutral-7: #7a7a7a; /** default border — DERIVED: OKLab lerp step5 → step9 at t=0.50, chroma 0. */
495
+ --neutral-8: #8d8d8d; /** hovered border — DERIVED: OKLab lerp step5 → step9 at t=0.75, chroma 0. */
405
496
  --neutral-9: #94a3b8;
406
497
  --neutral-10: #cbd5e1;
407
498
  --neutral-11: #e2e8f0;
408
499
  --neutral-12: #f8fafc;
409
- --blue-1: #000830;
410
- --blue-2: #000f59;
411
- --blue-3: #001882;
412
- --blue-4: #0021ab;
413
- --blue-5: #002ad4;
414
- --blue-6: #001882;
415
- --blue-7: #0021ab;
416
- --blue-8: #002ad4;
417
- --blue-9: #5c7cfa;
418
- --blue-10: #91a7ff;
419
- --blue-11: #bac8ff;
420
- --blue-12: #dbe4ff;
421
- --cyan-1: #012923;
422
- --cyan-2: #035143;
423
- --cyan-3: #057963;
424
- --cyan-4: #07a183;
425
- --cyan-5: #09c9a3;
426
- --cyan-6: #057963;
427
- --cyan-7: #07a183;
428
- --cyan-8: #09c9a3;
429
- --cyan-9: #1af7c8;
430
- --cyan-10: #4dfcd4;
431
- --cyan-11: #80ffe0;
432
- --cyan-12: #b3ffec;
433
- --background: 222 47% 4%;
434
- --foreground: 210 40% 98%;
435
- --card: 222 47% 7%;
436
- --card-foreground: 210 40% 98%;
437
- --popover: 222 47% 7%;
438
- --popover-foreground: 210 40% 98%;
439
- --primary: 228 90% 72%;
440
- --primary-foreground: 222 47% 4%;
441
- --secondary: 217 33% 17%;
442
- --secondary-foreground: 210 40% 98%;
443
- --muted: 217 33% 17%;
444
- --muted-foreground: 215 20% 65%;
445
- --accent: 228 100% 12%;
446
- --accent-foreground: 228 95% 67%;
447
- --destructive: 0 63% 31%;
448
- --destructive-foreground: 210 40% 98%;
449
- --success: 142 76% 36%;
450
- --success-foreground: 222 47% 4%;
451
- --warning: 38 80% 45%;
452
- --warning-foreground: 222 47% 4%;
453
- --info: 228 95% 67%;
454
- --info-foreground: 222 47% 4%;
455
- --border: 0 0% 14.9%;
456
- --input: 0 0% 14.9%;
500
+ --blue-1: #030815; /** app tint — L* 13.59, C 0.031, hue 264. */
501
+ --blue-2: #060f25; /** subtle background — L* 17.43, C 0.048. */
502
+ --blue-3: #09183b; /** component background default — L* 22.04, C 0.071. */
503
+ --blue-4: #0d2254; /** component background hover — L* 26.99, C 0.095. */
504
+ --blue-5: #132e6f; /** component background active — L* 32.46, C 0.118. Anchor for the derived border tier. */
505
+ --blue-6: #1c3c8a; /** subtle border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (deep scale, span 23.5 L*) at t=0.25. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 38.25, C 0.136. */
506
+ --blue-7: #254ba7; /** default border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (deep scale, span 23.5 L*) at t=0.50. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 44.21, C 0.155. */
507
+ --blue-8: #2f5ac4; /** hovered border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (deep scale, span 23.5 L*) at t=0.75. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 50.01, C 0.173. */
508
+ --blue-9: #396ae2; /** solid fill — L* 55.92, C 0.191, hue 264.3. White label 4.85:1. Same value as the dark shadcn --primary, so light and dark both take their deep fill from one source. Chroma ceiling for dark is 0.190; this is 0.191. */
509
+ --blue-10: #3f70e3; /** solid fill hover — L* 57.44, C 0.183. White label 4.53:1. The hover has to move UP in a dark ramp, which costs contrast, so the step is deliberately small (1.52 L*) to keep white above 4.5:1. */
510
+ --blue-11: #89aaee; /** secondary text — L* 74.01, C 0.106. 8.62:1 on step 1. */
511
+ --blue-12: #d2e0fd; /** primary text — L* 90.52, C 0.043. 15.08:1 on step 1. */
512
+ --blue-contrast: #ffffff; /** Label ink for the solid fill tier. Absolute value, identical in both modes. 4.85:1 on step 9, 4.53:1 on step 10. */
513
+ --cyan-1: #04100c; /** app tint — L* 15.90, C 0.021, hue 172. */
514
+ --cyan-2: #091e18; /** subtle background — L* 21.54, C 0.030. */
515
+ --cyan-3: #0f2e25; /** component background default — L* 27.46, C 0.041. */
516
+ --cyan-4: #1c4035; /** component background hover — L* 34.10, C 0.046. */
517
+ --cyan-5: #2b5347; /** component background active — L* 40.88, C 0.050. Anchor for the derived border tier. */
518
+ --cyan-6: #307864; /** subtle border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (span 44.5 L*) at t=0.25. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 52.12, C 0.079. */
519
+ --cyan-7: #309e82; /** default border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (span 44.5 L*) at t=0.50. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 63.04, C 0.107. */
520
+ --cyan-8: #28c7a2; /** hovered border — DERIVED at build time (scripts/derive-border-tier.mjs): OKLab lerp of step 5 toward step9 (span 44.5 L*) at t=0.75. The value here is a placeholder anchor only; the preprocessor overwrites it. Lands at L* 74.30, C 0.136. */
521
+ --cyan-9: #0bf1c3; /** solid fill — same bright value as light mode, the way Radix ships one hex for mint-9 in both modes: L* 85.41, C 0.164. Ink 10.35:1 against --cyan-contrast. */
522
+ --cyan-10: #5af8ce; /** solid fill hover — L* 88.53, C 0.145, 3.12 L* above step 9 (Radix mint dark moves up 4.60 L*). Ink 11.34:1. */
523
+ --cyan-11: #90fbdb; /** secondary text — L* 91.46, C 0.110. 15.68:1 on step 1. */
524
+ --cyan-12: #bdfde8; /** primary text — L* 94.54, C 0.070. 16.95:1 on step 1. */
525
+ --cyan-contrast: #0d2b25; /** Label ink for the bright fill tier. Absolute near-black, identical in both modes. 10.35:1 on step 9, 11.34:1 on step 10. */
526
+ --background: 222 14% 9%;
527
+ --foreground: 210 18% 96%;
528
+ --card: 222 12% 13%;
529
+ --card-foreground: 210 18% 96%;
530
+ --popover: 222 12% 13%;
531
+ --popover-foreground: 210 18% 96%;
532
+ --primary: 222.6 74.4% 55.5%; /** Dark-mode action blue, paired with the near-black --primary-foreground, not white. #396ae2 keeps the VI hue and sits at L*55.9 C0.191. */
533
+ --primary-foreground: 0 0% 100%; /** White, matching light mode and matching --blue-contrast. It was near-black (222 14% 9%) when --primary was a LIGHT fill at L* 68.3, where dark ink read 6.20:1. Once --primary became a deep fill at L* 55.9 the pairing inverted and measured 3.74:1, below AA — the fill moved and the ink did not. The deep-fill tier takes white in both modes; --blue-contrast says the same thing, and they must agree because --primary and --blue-9 are now the same value. */
534
+ --secondary: 222 10% 18%;
535
+ --secondary-foreground: 210 18% 96%;
536
+ --muted: 222 10% 17%;
537
+ --muted-foreground: 220 8% 65%;
538
+ --accent: 228 38% 22%;
539
+ --accent-foreground: 228 95% 80%;
540
+ --destructive: 0 63% 38%;
541
+ --destructive-foreground: 210 18% 96%;
542
+ --destructive-strong: 0 80% 66%; /** Red as FOREGROUND on a dark surface. --destructive (0 63% 38%) is 2.15:1 on --card here — a fill only. Lightened to 5.18:1 on --card / 5.61:1 on --neutral-1, which sits alongside the light-mode 5.42:1 so red reads with the same weight in both themes. Use --destructive for fills with --destructive-foreground on top; use this for red text and icons. */
543
+ --success: 142 60% 42%;
544
+ --success-foreground: 222 14% 9%;
545
+ --success-strong: 142 60% 42%; /** Green as foreground on a dark surface. Needs no adjustment — 142 60% 42% is already 4.83:1 as ink on its own 10% tint — so it deliberately equals --success, matching how --warning-strong behaves in this theme. */
546
+ --warning: 38 80% 52%;
547
+ --warning-foreground: 222 14% 9%;
548
+ --warning-strong: 38 80% 52%; /** Amber as foreground on a dark surface. Unlike light mode this needs no adjustment — 38 80% 52% is already 7.98:1 against --neutral-1 — so it deliberately equals --warning. The token exists in both themes so consumers can reference one name. */
549
+ --info: 228 95% 72%;
550
+ --info-foreground: 222 14% 9%;
551
+ --border: 220 8% 22%;
552
+ --input: 220 8% 22%;
457
553
  --ring: 0 0% 88%; /** Focus ring (dark mode) — neutral light gray. Mirrors light-mode neutral foreground choice. */
458
- --sidebar: 222 47% 6%;
459
- --sidebar-foreground: 210 40% 96%;
460
- --sidebar-primary: 228 95% 67%;
461
- --sidebar-primary-foreground: 222 47% 4%;
462
- --sidebar-accent: 228 100% 12%;
463
- --sidebar-accent-foreground: 228 95% 67%;
464
- --sidebar-border: 0 0% 14.9%;
465
- --sidebar-ring: 228 95% 67%;
554
+ --sidebar: 222 16% 8%;
555
+ --sidebar-foreground: 210 18% 94%;
556
+ --sidebar-primary: 228 95% 72%;
557
+ --sidebar-primary-foreground: 222 14% 9%;
558
+ --sidebar-accent: 228 38% 22%;
559
+ --sidebar-accent-foreground: 228 95% 80%;
560
+ --sidebar-border: 220 8% 18%;
561
+ --sidebar-ring: 228 95% 72%;
466
562
  --chart-1: 228 95% 67%;
467
563
  --chart-2: 168 96% 54%;
468
564
  --chart-3: 228 100% 82%;
@@ -508,6 +604,30 @@
508
604
  --elevation-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.8);
509
605
  --elevation-brand: 0 0 0 1px rgb(92 124 250 / 0.25), 0 4px 20px -2px rgb(92 124 250 / 0.3);
510
606
  --elevation-brand-lg: 0 0 0 1px rgb(92 124 250 / 0.3), 0 8px 40px -4px rgb(92 124 250 / 0.4);
607
+ --elevation-ambient-sm:
608
+ 0 1px 2px -1px rgb(0 0 0 / 0.4), 0 6px 16px -6px rgb(0 0 0 / 0.5); /** Ambient elevation, small. Contact layer plus a wide soft pool — the marketing-surface counterpart to the tight xs..2xl product ramp. */
609
+ --elevation-ambient-md:
610
+ 0 2px 4px -2px rgb(0 0 0 / 0.4), 0 12px 32px -10px rgb(0 0 0 / 0.55); /** Ambient elevation, medium. Default resting depth for a floating marketing card. */
611
+ --elevation-ambient-lg:
612
+ 0 4px 8px -4px rgb(0 0 0 / 0.4), 0 24px 56px -18px rgb(0 0 0 / 0.6); /** Ambient elevation, large. One step up from md; use for hover of a md surface, not as a resting default. */
613
+ --elevation-glass-sm:
614
+ inset 0 1px 0 rgb(255 255 255 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.4),
615
+ 0 6px 16px -6px rgb(0 0 0 / 0.5); /** Ambient-sm plus a lit top edge, for translucent panels over a blurred backdrop. */
616
+ --elevation-glass-md:
617
+ inset 0 1px 0 rgb(255 255 255 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.4),
618
+ 0 12px 32px -10px rgb(0 0 0 / 0.55); /** Ambient-md plus a lit top edge. */
619
+ --elevation-glass-lg:
620
+ inset 0 1px 0 rgb(255 255 255 / 0.08), 0 4px 8px -4px rgb(0 0 0 / 0.4),
621
+ 0 24px 56px -18px rgb(0 0 0 / 0.6); /** Ambient-lg plus a lit top edge. */
622
+ --elevation-sheen: inset 0 1px 0 rgb(0 0 0 / 0.12); /** Top-edge sheen for solid inverted fills (bg-foreground). Lifts with light on a dark fill, with shade on a light one. */
623
+ --elevation-ambient-glow: 0 0 80px rgb(255 255 255 / 0.06); /** Centred offsetless halo — the only non-directional step on the ramp. Inverted from the light value: a black halo has nothing to darken against a dark surround, so the halo becomes light. Keep the alpha low; this is separation, not a bloom. */
624
+ --elevation-glow-accent:
625
+ 0 8px 32px rgb(0 0 0 / 0.4), 0 0 60px color-mix(in srgb, var(--brand-accent) 8%, transparent); /** Identical to the light value by design. The pool is theme-invariant black because glow-accent surfaces are fixed dark glass in both themes; only the accent halo shifts, via --brand-accent. */
626
+ --elevation-glow-accent-lg:
627
+ 0 12px 48px rgb(0 0 0 / 0.5), 0 0 80px color-mix(in srgb, var(--brand-accent) 12%, transparent); /** Hover escalation of glow-accent. Identical to the light value by design. */
628
+ --elevation-glow-accent-sm: 0 0 20px color-mix(in srgb, var(--brand-accent) 10%, transparent); /** Accent halo alone, no pool. Identical to the light value by design. */
629
+ --elevation-glow-primary:
630
+ 0 20px 25px -5px hsl(var(--primary) / 0.05), 0 8px 10px -6px hsl(var(--primary) / 0.05); /** xl geometry tinted with the action fill at 5 percent. Same reference as light; --primary carries the dark channels. */
511
631
  }
512
632
 
513
633
  .dark {
@@ -724,24 +844,73 @@
724
844
  --shadow-brand: var(--elevation-brand);
725
845
  --shadow-brand-lg: var(--elevation-brand-lg);
726
846
 
727
- /* Motion — Easing curves */
728
- --ease-in: cubic-bezier(0.4, 0, 1, 1);
729
- --ease-out: cubic-bezier(0, 0, 0.2, 1);
730
- --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
731
- --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
847
+ /* shadow-ambient-md / shadow-glass-lg / shadow-sheen — so marketing surfaces
848
+ reach for a step on the ramp instead of spelling out a blur and a spread.
849
+ Aliased to var() rather than inlined so the dark theme's values apply. */
850
+ --shadow-ambient-sm: var(--elevation-ambient-sm);
851
+ --shadow-ambient-md: var(--elevation-ambient-md);
852
+ --shadow-ambient-lg: var(--elevation-ambient-lg);
853
+ --shadow-glass-sm: var(--elevation-glass-sm);
854
+ --shadow-glass-md: var(--elevation-glass-md);
855
+ --shadow-glass-lg: var(--elevation-glass-lg);
856
+ --shadow-sheen: var(--elevation-sheen);
857
+
858
+ /* Coloured and centred elevation. shadow-ambient-glow is the one
859
+ non-directional step; shadow-glow-accent|-lg|-sm carry a brand-accent halo
860
+ so a glass card never hand-types the accent as raw rgba; shadow-glow-primary
861
+ tints the xl geometry with the action fill. */
862
+ --shadow-ambient-glow: var(--elevation-ambient-glow);
863
+ --shadow-glow-accent: var(--elevation-glow-accent);
864
+ --shadow-glow-accent-lg: var(--elevation-glow-accent-lg);
865
+ --shadow-glow-accent-sm: var(--elevation-glow-accent-sm);
866
+ --shadow-glow-primary: var(--elevation-glow-primary);
867
+
868
+ /* Motion — Easing curves.
869
+ Indirect, like the shadows above: an @theme entry holding a literal is
870
+ inlined into the utility, so the ease-out class compiled to a fixed
871
+ cubic-bezier and no Brand Package could move it. Pointing at the runtime
872
+ rail in static/base.css makes it follow the language the page is under.
873
+ (No backticks in this block — it is inside a JS template literal.) */
874
+ --ease-in: var(--motion-ease-in);
875
+ --ease-out: var(--motion-ease-out);
876
+ --ease-in-out: var(--motion-ease-in-out);
877
+ --ease-spring: var(--motion-ease-spring);
732
878
 
733
879
  /* Motion — Durations (four-rail; see core.json:duration). Names denote intent, not relative speed. */
734
- --duration-micro: 100ms;
735
- --duration-flow: 200ms;
736
- --duration-reveal: 300ms;
737
- --duration-cinematic: 500ms;
738
-
739
- /* Font family — Geist primary stack with CJK fallbacks */
740
- --font-sans: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
741
- --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "vivo Sans", sans-serif;
742
- --font-display: "Geist", "Noto Sans SC", sans-serif;
743
- --font-heading: "Geist", "Noto Sans SC", sans-serif;
744
- --font-mono: "Geist Mono", "Fira Code", ui-monospace, Consolas, "Courier New", monospace;
880
+ --duration-micro: var(--motion-duration-micro);
881
+ --duration-flow: var(--motion-duration-flow);
882
+ --duration-reveal: var(--motion-duration-reveal);
883
+ --duration-cinematic: var(--motion-duration-cinematic);
884
+
885
+ /* Spacing — DO NOT register --spacing-sm|md|lg|xl|2xl here.
886
+ Tailwind v4 puts every --spacing-{key} on the shared size rail, so
887
+ max-w-sm / max-w-2xl (and width/height/gap utilities with the same keys)
888
+ resolve to the breathing-room lengths (0.75rem to 3rem) instead of the
889
+ container scale (24rem to 42rem). That shipped as one-word-per-line prose
890
+ and a 32px install box on nebutra.com (measured 2026-08-03).
891
+ Brand Packages still override --space-source-*; consumers must read
892
+ those vars directly (var(--space-source-md, ...)), never via a @theme
893
+ --spacing-{step} alias. --spacing itself (0.25rem arithmetic base) stays
894
+ untouched. See static/base.css. */
895
+
896
+ /* Font family — Geist keeps Latin + numerals, self-hosted vivo Sans SC takes
897
+ CJK, system CJK faces behind it. Order is the design decision; see the
898
+ fontFamily $description in tokens/core.json. Mirror of those tokens — keep
899
+ the two in sync (verify:parity compares them). */
900
+ --font-sans:
901
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
902
+ "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
903
+ --font-cn:
904
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
905
+ "PingFang SC", "Microsoft YaHei", sans-serif;
906
+ --font-display:
907
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
908
+ sans-serif;
909
+ --font-heading:
910
+ var(--font-geist-sans), "Geist", var(--font-vivo-sans-sc, "vivo Sans SC"), "Noto Sans SC",
911
+ sans-serif;
912
+ --font-mono:
913
+ var(--font-geist-mono), "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
745
914
  }
746
915
 
747
916
  /* ============================================
@@ -749,15 +918,80 @@
749
918
  This file is concatenated into styles.generated.css after the @theme block.
750
919
  ============================================ */
751
920
 
752
- *,
753
- *::before,
754
- *::after {
755
- /* Token-aware default border — resolves via cascade:
756
- :root → light (hsl 240 5.9% 90% ≈ #e4e4e7)
757
- .dark → dark (hsl 0 0% 14.9% ≈ #262626)
758
- Previously hardcoded to the light value, which leaked a near-white border
759
- into every element in dark mode regardless of component. See ADR 2026-05-11. */
760
- border-color: hsl(var(--border));
921
+ /* ─── Edge tokens (2026-05 perf governance) ─────────────────
922
+ Pre-computed alpha values for borders / hairlines / outer glows.
923
+ Replaces ~70 runtime `color-mix(foreground, transparent N%)` calls per
924
+ page that re-evaluated on every paint. Mode-aware via CSS cascade.
925
+ Lives in static/ so it survives Style Dictionary rebuilds.
926
+ ─────────────────────────────────────────────────────────── */
927
+ /* ─── Motion source rail ────────────────────────────────────
928
+ The runtime half of the motion tokens, and the reason it exists under a
929
+ second name: a theme entry cannot point at itself, so the utility layer
930
+ needs a source that is not the same property. Durations already had that
931
+ pair; the curves did not, which is why the ease utilities compiled to a
932
+ literal cubic-bezier and stayed on the default ramp no matter which brand
933
+ package was applied.
934
+
935
+ Same shape as elevation, where `--shadow-*: var(--elevation-*)` has always
936
+ given the utilities something a skin can move. A Brand Package overrides
937
+ these; nothing else should.
938
+ ─────────────────────────────────────────────────────────── */
939
+ :root {
940
+ --motion-ease-in: cubic-bezier(0.4, 0, 1, 1);
941
+ --motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
942
+ --motion-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
943
+ --motion-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
944
+ }
945
+
946
+ /* ─── Spacing source rail ────────────────────────────────────
947
+ A second, named scale — NOT Tailwind's own `--spacing` multiplier.
948
+ `--spacing` (0.25rem) is shared arithmetic for width, height and
949
+ line-height as well as padding/gap; repointing it per brand would rescale
950
+ icons and text along with whitespace.
951
+
952
+ Brand Packages override `--space-source-*`. Consumers MUST read these
953
+ vars directly (`var(--space-source-md, ...)`). Do NOT bridge them into
954
+ `@theme --spacing-sm|md|xl|2xl`: Tailwind v4 maps every --spacing-{key}
955
+ onto max-width / width / height utilities as well as padding / gap, so
956
+ those keys hijack the container max-width scale (max-w-2xl became 48px
957
+ on production 2026-08-03).
958
+ ─────────────────────────────────────────────────────────── */
959
+ :root {
960
+ --space-source-xs: 0.5rem;
961
+ --space-source-sm: 0.75rem;
962
+ --space-source-md: 1rem;
963
+ --space-source-lg: 1.5rem;
964
+ --space-source-xl: 2rem;
965
+ --space-source-2xl: 3rem;
966
+ }
967
+
968
+ :root {
969
+ --edge-faint: rgb(0 0 0 / 0.04);
970
+ --edge-soft: rgb(0 0 0 / 0.07);
971
+ --edge-medium: rgb(0 0 0 / 0.12);
972
+ --halo-faint: rgb(0 0 0 / 0.03);
973
+ }
974
+ .dark {
975
+ --edge-faint: rgb(255 255 255 / 0.04);
976
+ --edge-soft: rgb(255 255 255 / 0.06);
977
+ --edge-medium: rgb(255 255 255 / 0.1);
978
+ --halo-faint: rgb(255 255 255 / 0.03);
979
+ }
980
+
981
+ @layer base {
982
+ *,
983
+ *::before,
984
+ *::after {
985
+ /* Token-aware default border — resolves via cascade:
986
+ :root → light (hsl 240 5.9% 90% ≈ #e4e4e7)
987
+ .dark → dark (hsl 0 0% 14.9% ≈ #262626)
988
+ Previously hardcoded to the light value, which leaked a near-white border
989
+ into every element in dark mode regardless of component. See ADR 2026-05-11.
990
+
991
+ Keep this in Tailwind's base layer so component utilities such as
992
+ border-r-transparent can override it. */
993
+ border-color: hsl(var(--border));
994
+ }
761
995
  }
762
996
 
763
997
  body {
@@ -773,7 +1007,25 @@ html {
773
1007
  scroll-behavior: smooth;
774
1008
  }
775
1009
 
776
- :focus-visible {
1010
+ /*
1011
+ * MUST STAY UNLAYERED. Do not wrap this rule in `@layer base` (or any layer).
1012
+ *
1013
+ * Tailwind v4's `@import "tailwindcss"` puts every generated utility — including
1014
+ * every `outline-none` / `focus-visible:outline-none` a component might carry —
1015
+ * inside `@layer utilities`. Per the cascade-layers spec, unlayered rules beat
1016
+ * layered ones regardless of specificity or source order, which is the only
1017
+ * reason this single declaration can supply the keyboard focus ring for the
1018
+ * whole design system without each component opting in.
1019
+ *
1020
+ * Move it into a layer and keyboard focus indication disappears library-wide,
1021
+ * silently: nothing throws, nothing looks wrong until someone tabs.
1022
+ *
1023
+ * Verified against apps/landing's built CSS (2026-07-30): this rule emits
1024
+ * unlayered, `.outline-none` emits inside `@layer components;@layer utilities`.
1025
+ */
1026
+ :focus-visible:not(
1027
+ :where(input, textarea, select, [cmdk-input], [role="textbox"], [contenteditable="true"])
1028
+ ) {
777
1029
  outline: 2px solid hsl(var(--ring) / 0.5);
778
1030
  outline-offset: 2px;
779
1031
  border-radius: inherit;
@@ -1352,31 +1604,138 @@ html {
1352
1604
  @utility font-cn {
1353
1605
  font-family: var(--font-cn);
1354
1606
  line-height: 1.75;
1355
- word-break: break-all;
1607
+ /* Never use word-break: break-all on CJK chrome — see CJK layout note below. */
1356
1608
  overflow-wrap: break-word;
1609
+ word-break: normal;
1357
1610
  }
1358
1611
 
1359
1612
  /* ─── CJK Auto-Activation via :lang() ───────────────────────
1360
1613
  When <html lang="zh|ja|ko"> is set by app layouts, body
1361
1614
  automatically switches to the CJK font stack.
1615
+
1616
+ Layout note (2026-08): CJK soft-wrap offers a break between almost every
1617
+ glyph, so the CSS *min-content* size of a text run is often one character.
1618
+ Combined with:
1619
+ • flex-col + items-center (children size to fit-content/min-content)
1620
+ • grid tracks minmax(0, fr) (tracks may size from that min-content)
1621
+ prose collapses into a vertical one-glyph strip (forge/landing heroes &
1622
+ footers). Do NOT "fix" this with a global min-width on all p/h* — that
1623
+ breaks responsive cards. Prefer stretch rules below + local w-full.
1362
1624
  ─────────────────────────────────────────────────────────── */
1363
1625
  :is(html:lang(zh), html:lang(ja), html:lang(ko)) body {
1364
1626
  font-family: var(--font-cn);
1365
1627
  line-height: 1.75;
1366
- word-break: break-all;
1367
1628
  overflow-wrap: break-word;
1629
+ word-break: normal;
1630
+ }
1631
+
1632
+ /*
1633
+ * flex-col + items-center:
1634
+ * 1) Direct children (incl. AnimateIn wrappers) get a sane box — max 100% of
1635
+ * the column, min-width 0 so they can wrap instead of forcing the column
1636
+ * to min-content.
1637
+ * 2) Nested prose (p/h*) under those columns takes width:100% so Chinese
1638
+ * copy does not collapse to a 1-glyph strip. We deliberately do NOT set
1639
+ * max-width here — leave Tailwind max-w-* / max-w-[…] in control.
1640
+ */
1641
+ :is(html:lang(zh), html:lang(ja), html:lang(ko))
1642
+ :is(.flex.flex-col.items-center, .inline-flex.flex-col.items-center)
1643
+ > * {
1644
+ box-sizing: border-box;
1645
+ max-width: 100%;
1646
+ min-width: 0;
1647
+ }
1648
+
1649
+ :is(html:lang(zh), html:lang(ja), html:lang(ko))
1650
+ :is(.flex.flex-col.items-center, .inline-flex.flex-col.items-center)
1651
+ :is(p, h1, h2, h3, h4, h5, h6, blockquote) {
1652
+ box-sizing: border-box;
1653
+ width: 100%;
1654
+ min-width: 0;
1655
+ }
1656
+
1657
+ /*
1658
+ * Brand blurbs that only set max-w-*: give an explicit width so flex/grid
1659
+ * parents don't size them to 1-glyph min-content. min(100%, …) stays mobile-safe.
1660
+ */
1661
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-xs {
1662
+ width: min(100%, 20rem);
1663
+ min-width: 0;
1664
+ }
1665
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-sm {
1666
+ width: min(100%, 24rem);
1667
+ min-width: 0;
1668
+ }
1669
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-md {
1670
+ width: min(100%, 28rem);
1671
+ min-width: 0;
1672
+ }
1673
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-lg {
1674
+ width: min(100%, 32rem);
1675
+ min-width: 0;
1676
+ }
1677
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-xl {
1678
+ width: min(100%, 36rem);
1679
+ min-width: 0;
1680
+ }
1681
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-2xl {
1682
+ width: min(100%, 42rem);
1683
+ min-width: 0;
1684
+ }
1685
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-3xl {
1686
+ width: min(100%, 48rem);
1687
+ min-width: 0;
1688
+ }
1689
+ :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(p, h1, h2, h3, h4, h5, h6).max-w-4xl {
1690
+ width: min(100%, 56rem);
1691
+ min-width: 0;
1692
+ }
1693
+
1694
+ /* Opt-in for wrappers (div/section) that hold CJK prose in flex/grid tracks */
1695
+ @utility cjk-prose {
1696
+ width: 100%;
1697
+ min-width: 0;
1698
+ max-width: 100%;
1699
+ overflow-wrap: break-word;
1700
+ word-break: normal;
1701
+ }
1702
+
1703
+ /*
1704
+ * Mobile: kill horizontal page scroll from 100vw / wide tables / marquees.
1705
+ * clip (not hidden) preserves sticky headers.
1706
+ */
1707
+ @media (max-width: 767px) {
1708
+ html {
1709
+ overflow-x: clip;
1710
+ }
1711
+
1712
+ body {
1713
+ overflow-x: clip;
1714
+ max-width: 100%;
1715
+ }
1716
+
1717
+ /* Grid/flex children should be allowed to shrink below min-content */
1718
+ .grid > *,
1719
+ .flex > *,
1720
+ .inline-flex > * {
1721
+ min-width: 0;
1722
+ }
1368
1723
  }
1369
1724
 
1370
1725
  :is(html:lang(zh), html:lang(ja), html:lang(ko)) :is(code, kbd, pre, samp) {
1371
1726
  font-family: var(--font-mono);
1372
1727
  word-break: normal;
1728
+ min-width: 0;
1373
1729
  }
1374
1730
 
1375
1731
  /* ─── Reduced Motion ─────────────────────────────────────── */
1732
+ /* Honors OS preference EXCEPT for functional progress indicators
1733
+ * (spinners / pulses / pings). Per WCAG 2.3.3, those are excluded
1734
+ * from the "animation from interactions" reduction requirement. */
1376
1735
  @media (prefers-reduced-motion: reduce) {
1377
- *,
1378
- *::before,
1379
- *::after {
1736
+ *:not(.animate-spin):not(.animate-pulse):not(.animate-ping),
1737
+ *:not(.animate-spin):not(.animate-pulse):not(.animate-ping)::before,
1738
+ *:not(.animate-spin):not(.animate-pulse):not(.animate-ping)::after {
1380
1739
  animation-duration: 0.01ms;
1381
1740
  animation-iteration-count: 1;
1382
1741
  transition-duration: 0.01ms;